diff --git a/404.html b/404.html index 0cdeb7093..6aefb8ce6 100644 --- a/404.html +++ b/404.html @@ -9,5 +9,5 @@ - + diff --git a/chunk-3KXZLJ4I.js b/chunk-3KXZLJ4I.js new file mode 100644 index 000000000..c57af9e00 --- /dev/null +++ b/chunk-3KXZLJ4I.js @@ -0,0 +1 @@ +import{a as g}from"./chunk-BXPD2UYH.js";import{h as b}from"./chunk-DRE72XA7.js";import{a as y,b as C,c as D}from"./chunk-G2BQMJPO.js";import{Mb as n,Nb as u,Ob as f,Oc as T,Xb as h,Ya as r,nb as d,qa as s,rb as p,sb as c,tb as l,ub as o,vb as m}from"./chunk-ZFID6WDR.js";import"./chunk-HFDGAYQF.js";function v(e,t){if(e&1&&(o(0,"a",0)(1,"h2",1),n(2),o(3,"span",2),n(4),m()()()),e&2){let a=t.$implicit;d("routerLink",a.link),r(2),f(" ",a.title," "),r(2),u(a.description)}}var x=[{title:"Iot Dashboard",link:"/dashboards/iot",description:"Smart home dashboard"},{title:"Crypto Dashboard",link:"/dashboards/crypto",description:"Crypto token dashboard"}],N=(()=>{let t=class t{constructor(){this.dashboardsListData=x}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=s({type:t,selectors:[["lmb-dashboards-list"]],standalone:!0,features:[h],decls:2,vars:0,consts:[["tuiCardLarge","","tuiHeader","","tuiSurface","elevated",3,"routerLink"],["tuiTitle",""],["tuiSubtitle",""]],template:function(i,k){i&1&&c(0,v,5,3,"a",0,p),i&2&&l(k.dashboardsListData)},dependencies:[T,b,C,D,g,y],styles:["[_nghost-%COMP%]{display:flex;padding-top:1rem;flex-direction:column;gap:1rem}"],changeDetection:0});let e=t;return e})();export{N as DashboardsListComponent}; diff --git a/chunk-BWBFGBYY.js b/chunk-BWBFGBYY.js new file mode 100644 index 000000000..2d6f52c51 --- /dev/null +++ b/chunk-BWBFGBYY.js @@ -0,0 +1 @@ +import{a as Re,f as Me,g as _e,k as Pe}from"./chunk-VQIVFWH7.js";import"./chunk-P7BVBIJ3.js";import{a as U,b as K,c as ve}from"./chunk-G2BQMJPO.js";import{Aa as B,Ab as w,Db as z,Eb as u,Ha as te,Ka as ne,Mb as h,Mc as O,Nc as me,Ob as x,Oc as R,Qb as ae,Rb as re,Sb as oe,Sd as ge,Tb as Y,Ub as se,Uc as pe,Vb as le,X as J,Xb as b,Xc as j,Xe as be,Ya as l,Yc as ue,Zb as ce,ae as fe,bc as g,cc as k,ce as Se,da as q,dc as $,de as De,ef as H,fb as ie,ga as Q,ja as p,lb as _,mf as ke,nb as S,ob as y,pd as de,qa as f,qb as P,r as F,rb as N,rd as he,s as X,sb as C,ta as ee,tb as T,ub as c,uc as M,vb as m,wb as D,za as A}from"./chunk-ZFID6WDR.js";import{a as W,b as Z}from"./chunk-HFDGAYQF.js";var we=new Q("",{factory:()=>"https://api.coincap.io/v2/assets"}),I=(()=>{let i=class i{constructor(){this.http=p(pe),this.API=p(we),this.info$=this.getTokens()}getTokens(){return this.http.get(this.API)}getHistory(r,a){return this.http.get(`${this.API}/${r}/history`,{params:{interval:a}}).pipe(F(o=>o.data))}};i.\u0275fac=function(a){return new(a||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var t=function(e){return e.ArmenianDram="AMD",e.AustralianDollar="AUD",e.AzerbaijaniManat="AZN",e.Baht="THB",e.BahrainiDinar="BHD",e.BelarusianRuble="BYN",e.BrazilianReal="BRL",e.CanadianDollar="CAD",e.CzechKoruna="CZK",e.Dirham="AED",e.Dollar="USD",e.EastCaribbeanDollar="XCD",e.Euro="EUR",e.Forint="HUF",e.GeorgianLari="GEL",e.HongKongDollar="HKD",e.Hryvnia="UAH",e.IndianRupee="INR",e.IndonesianRupiah="IDR",e.IranianRial="IRR",e.IsraeliShekel="ILS",e.KyrgyzstanSom="KGS",e.MalaysianRinggit="MYR",e.MexicanPeso="MXN",e.MoldovanLeu="MDL",e.MongolianTugrik="MNT",e.NewTurkmenManat="TMT",e.PolandZloty="PLN",e.Pound="GBP",e.Ruble="RUB",e.SaudiRiyal="SAR",e.SerbianDinar="RSD",e.SingaporeDollar="SGD",e.SouthAfricanRand="ZAR",e.SriLankanRupee="LKR",e.SwissFranc="CHF",e.TajikistaniSomoni="TJS",e.Tenge="KZT",e.TurkishLira="TRY",e.UzbekSum="UZS",e.VietnameseDong="VND",e.Won="KRW",e.Yen="JPY",e.YuanRenminbi="CNY",e}(t||{}),n=function(e){return e.ArmenianDram="051",e.AustralianDollar="036",e.AzerbaijaniManat="944",e.Baht="764",e.BahrainiDinar="048",e.BelarusianRuble="933",e.BrazilianReal="986",e.CanadianDollar="124",e.CzechKoruna="203",e.Dirham="784",e.Dollar="840",e.EastCaribbeanDollar="951",e.Euro="978",e.Forint="348",e.GeorgianLari="981",e.HongKongDollar="344",e.Hryvnia="980",e.IndianRupee="356",e.IndonesianRupiah="360",e.IranianRial="364",e.IsraeliShekel="376",e.KyrgyzstanSom="417",e.MalaysianRinggit="458",e.MexicanPeso="484",e.MoldovanLeu="498",e.MongolianTugrik="496",e.NewTurkmenManat="934",e.PolandZloty="985",e.Pound="826",e.Ruble="643",e.SaudiRiyal="682",e.SerbianDinar="941",e.SingaporeDollar="702",e.SouthAfricanRand="710",e.SriLankanRupee="144",e.SwissFranc="756",e.TajikistaniSomoni="972",e.Tenge="398",e.TurkishLira="949",e.UzbekSum="860",e.VietnameseDong="704",e.Won="410",e.Yen="392",e.YuanRenminbi="156",e}(n||{});function ze(e){switch(e){case t.Ruble:case n.Ruble:return"\u20BD";case t.Dollar:case n.Dollar:case t.MexicanPeso:case n.MexicanPeso:return"$";case t.SingaporeDollar:case n.SingaporeDollar:return"S$";case t.AustralianDollar:case n.AustralianDollar:return"A$";case t.BahrainiDinar:case n.BahrainiDinar:return"BD";case t.CzechKoruna:case n.CzechKoruna:return"K\u010D";case t.HongKongDollar:case n.HongKongDollar:return"HK$";case t.CanadianDollar:case n.CanadianDollar:return"C$";case t.EastCaribbeanDollar:case n.EastCaribbeanDollar:return"EC$";case t.Euro:case n.Euro:return"\u20AC";case t.Forint:case n.Forint:return"Ft";case t.Pound:case n.Pound:return"\xA3";case t.Baht:case n.Baht:return"\u0E3F";case t.TurkishLira:case n.TurkishLira:return"\u20BA";case t.YuanRenminbi:case n.YuanRenminbi:return"CN\xA5";case t.Yen:case n.Yen:return"\xA5";case t.IsraeliShekel:case n.IsraeliShekel:return"\u20AA";case t.IndianRupee:case n.IndianRupee:return"\u20B9";case t.SwissFranc:case n.SwissFranc:return"\u20A3";case t.ArmenianDram:case n.ArmenianDram:return"\u058F";case t.Won:case n.Won:return"\u20A9";case t.Tenge:case n.Tenge:return"\u20B8";case t.Hryvnia:case n.Hryvnia:return"\u20B4";case t.UzbekSum:case n.UzbekSum:return"So'm";case t.KyrgyzstanSom:case n.KyrgyzstanSom:return"c";case t.Dirham:case n.Dirham:return"Dh";case t.TajikistaniSomoni:case n.TajikistaniSomoni:return"SM";case t.MalaysianRinggit:case n.MalaysianRinggit:return"RM";case t.BelarusianRuble:case n.BelarusianRuble:return"Br";case t.GeorgianLari:case n.GeorgianLari:return"\u20BE";case t.AzerbaijaniManat:case n.AzerbaijaniManat:return"\u20BC";case t.SriLankanRupee:case n.SriLankanRupee:return"Rs.";case t.SerbianDinar:case n.SerbianDinar:return"DIN";case t.SaudiRiyal:case n.SaudiRiyal:return"SR";case t.MoldovanLeu:case n.MoldovanLeu:return"L";case t.MongolianTugrik:case n.MongolianTugrik:return"\u20AE";case t.PolandZloty:case n.PolandZloty:return"z\u0142";case t.SouthAfricanRand:case n.SouthAfricanRand:return"R";case t.IranianRial:case n.IranianRial:return"IR";case t.IndonesianRupiah:case n.IndonesianRupiah:return"Rp";case t.VietnameseDong:case n.VietnameseDong:return"\u0111";case t.NewTurkmenManat:case n.NewTurkmenManat:return"TMT";case t.BrazilianReal:case n.BrazilianReal:return"R$";default:return null}}function Ee(e){return e===null||he(e)?e||"":String(e).padStart(3,"0")}function xe(e){let i=Ee(e);return ze(i)||i}var et={[t.Ruble]:n.Ruble,[t.Dollar]:n.Dollar,[t.MexicanPeso]:n.MexicanPeso,[t.MoldovanLeu]:n.MoldovanLeu,[t.PolandZloty]:n.PolandZloty,[t.SingaporeDollar]:n.SingaporeDollar,[t.AustralianDollar]:n.AustralianDollar,[t.HongKongDollar]:n.HongKongDollar,[t.CanadianDollar]:n.CanadianDollar,[t.CzechKoruna]:n.CzechKoruna,[t.EastCaribbeanDollar]:n.EastCaribbeanDollar,[t.Euro]:n.Euro,[t.Forint]:n.Forint,[t.Pound]:n.Pound,[t.Baht]:n.Baht,[t.BahrainiDinar]:n.BahrainiDinar,[t.TurkishLira]:n.TurkishLira,[t.YuanRenminbi]:n.YuanRenminbi,[t.Yen]:n.Yen,[t.IsraeliShekel]:n.IsraeliShekel,[t.IndianRupee]:n.IndianRupee,[t.SwissFranc]:n.SwissFranc,[t.ArmenianDram]:n.ArmenianDram,[t.Won]:n.Won,[t.Tenge]:n.Tenge,[t.Hryvnia]:n.Hryvnia,[t.UzbekSum]:n.UzbekSum,[t.KyrgyzstanSom]:n.KyrgyzstanSom,[t.Dirham]:n.Dirham,[t.TajikistaniSomoni]:n.TajikistaniSomoni,[t.MalaysianRinggit]:n.MalaysianRinggit,[t.BelarusianRuble]:n.BelarusianRuble,[t.GeorgianLari]:n.GeorgianLari,[t.AzerbaijaniManat]:n.AzerbaijaniManat,[t.SriLankanRupee]:n.SriLankanRupee,[t.SerbianDinar]:n.SerbianDinar,[t.SaudiRiyal]:n.SaudiRiyal,[t.MongolianTugrik]:n.MongolianTugrik,[t.SouthAfricanRand]:n.SouthAfricanRand,[t.IranianRial]:n.IranianRial,[t.IndonesianRupiah]:n.IndonesianRupiah,[t.VietnameseDong]:n.VietnameseDong,[t.NewTurkmenManat]:n.NewTurkmenManat,[t.BrazilianReal]:n.BrazilianReal};var tt={[n.Ruble]:t.Ruble,[n.Dollar]:t.Dollar,[n.MexicanPeso]:t.MexicanPeso,[n.MoldovanLeu]:t.MoldovanLeu,[n.PolandZloty]:t.PolandZloty,[n.SingaporeDollar]:t.SingaporeDollar,[n.AustralianDollar]:t.AustralianDollar,[n.HongKongDollar]:t.HongKongDollar,[n.CanadianDollar]:t.CanadianDollar,[n.CzechKoruna]:t.CzechKoruna,[n.EastCaribbeanDollar]:t.EastCaribbeanDollar,[n.Euro]:t.Euro,[n.Forint]:t.Forint,[n.Pound]:t.Pound,[n.Baht]:t.Baht,[n.BahrainiDinar]:t.BahrainiDinar,[n.TurkishLira]:t.TurkishLira,[n.YuanRenminbi]:t.YuanRenminbi,[n.Yen]:t.Yen,[n.IsraeliShekel]:t.IsraeliShekel,[n.IndianRupee]:t.IndianRupee,[n.SwissFranc]:t.SwissFranc,[n.ArmenianDram]:t.ArmenianDram,[n.Won]:t.Won,[n.Tenge]:t.Tenge,[n.Hryvnia]:t.Hryvnia,[n.UzbekSum]:t.UzbekSum,[n.KyrgyzstanSom]:t.KyrgyzstanSom,[n.Dirham]:t.Dirham,[n.TajikistaniSomoni]:t.TajikistaniSomoni,[n.MalaysianRinggit]:t.MalaysianRinggit,[n.BelarusianRuble]:t.BelarusianRuble,[n.GeorgianLari]:t.GeorgianLari,[n.AzerbaijaniManat]:t.AzerbaijaniManat,[n.SriLankanRupee]:t.SriLankanRupee,[n.SerbianDinar]:t.SerbianDinar,[n.SaudiRiyal]:t.SaudiRiyal,[n.MongolianTugrik]:t.MongolianTugrik,[n.SouthAfricanRand]:t.SouthAfricanRand,[n.IranianRial]:t.IranianRial,[n.IndonesianRupiah]:t.IndonesianRupiah,[n.VietnameseDong]:t.VietnameseDong,[n.NewTurkmenManat]:t.NewTurkmenManat,[n.BrazilianReal]:t.BrazilianReal};var Fe={currency:null,currencyAlign:"right",sign:"negative-only"},Ne=de(Fe);function Ce(e,i){return i==="never"||!e||i==="negative-only"&&e>0?"":i==="force-negative"||e<0&&i!=="force-positive"?Se:De}var Te=2,Ie=(()=>{let i=class i{constructor(){this.options=p(Ne),this.format=p(be)}transform(r,a=this.options.currency,o=this.options.currencyAlign){return this.format.pipe(F(d=>{let v=Ce(r,this.options.sign),L=xe(a),V=Re(Math.abs(r),Z(W({},d),{precision:Number.isNaN(d.precision)?Te:d.precision})),G=(L==null?void 0:L.length)>1||o==="right"?fe:"";return o==="right"?`${v}${V}${G}${L}`:`${v}${L}${G}${V}`}))}};i.\u0275fac=function(a){return new(a||i)},i.\u0275pipe=ee({name:"tuiAmount",type:i,pure:!0,standalone:!0});let e=i;return e})();var Le={Y:"d1",M6:"h6",M:"h1",W:"m15",D:"m1"};var Oe=(e,i)=>[e,i];function He(e,i){if(e&1){let s=w();c(0,"button",4),z("click",function(){let a=A(s).$implicit,o=u();return B(o.filterButton.set(a))}),h(1),m()}if(e&2){let s=i.$implicit,r=u();S("tuiAppearanceState",s===r.filterButton()?"active":null),l(),x(" ",s," ")}}var Ae=(()=>{let i=class i{constructor(){this.pricesService=p(I),this.step=M(()=>Math.ceil((this.history()??[]).length/this.maxPoints)),this.xTargets=M(()=>new Map((this.history()??[]).map((r,a)=>[Math.trunc(a/this.step()),new Date(r.date).toDateString()]))),this.chart=M(()=>this.processData(this.history())),this.minPrice=M(()=>Math.min(...(this.history()??[]).map(r=>Number(r.priceUsd)))),this.maxPrice=M(()=>Math.max(...(this.history()??[]).map(r=>Number(r.priceUsd)))),this.filterButtons=["D","W","M","M6","Y"],this.filterButton=ie(this.filterButtons[0]),this.maxPoints=150,this.token=ne.required(),this.interval=M(()=>Le[this.filterButton()]),this.history=ue(X([j(this.token),j(this.interval)]).pipe(J(([r,a])=>this.pricesService.getHistory(r,a)))),this.yStringify=r=>`${(this.maxPrice()>10?r:r/100).toLocaleString("en-US",{maximumFractionDigits:this.maxPrice()>10?0:2})} $`,this.xStringify=r=>`${this.xTargets().get(r)}`}processData(r){return(r??[]).map((o,d)=>[Math.trunc(d/this.step()),Number(o.priceUsd)*(this.maxPrice()>10?1:100)]).filter((o,d)=>d%this.step()===0)}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=f({type:i,selectors:[["lmb-price-chart"]],inputs:{token:[1,"token"]},standalone:!0,features:[b],decls:9,vars:21,consts:[[1,"axes",3,"axisYLabels","horizontalLines","verticalLines"],[1,"chart",3,"height","value","width","x","xStringify","y","yStringify"],[1,"buttons"],["appearance","icon","tuiButton","",1,"period",3,"tuiAppearanceState"],["appearance","icon","tuiButton","",1,"period",3,"click","tuiAppearanceState"]],template:function(a,o){a&1&&(c(0,"tui-axes",0),g(1,"tuiAmount"),g(2,"async"),g(3,"tuiAmount"),g(4,"async"),D(5,"tui-line-chart",1),m(),c(6,"div",2),C(7,He,2,2,"button",3,N),m()),a&2&&(S("axisYLabels",ce(18,Oe,k(2,12,k(1,10,o.minPrice()))||"",k(4,16,k(3,14,o.maxPrice()))||""))("horizontalLines",4)("verticalLines",4),l(5),S("height",o.maxPrice()*(o.maxPrice()>10?1:100)-o.minPrice()*(o.maxPrice()>10?1:100))("value",o.chart())("width",o.chart().length)("x",0)("xStringify",o.xStringify)("y",o.minPrice()*(o.maxPrice()>10?1:100))("yStringify",o.yStringify),l(2),T(o.filterButtons))},dependencies:[O,R,Ie,_e,H,Pe],styles:[".buttons[_ngcontent-%COMP%]{display:flex;margin-top:1.5rem;justify-content:space-between}.axes[_ngcontent-%COMP%]{height:12.5rem}.period[_ngcontent-%COMP%]{width:2.5rem;height:1.5rem}.chart[_ngcontent-%COMP%]{color:var(--tui-chart-categorical-07);position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let e=i;return e})();function Ue(e,i){if(e&1){let s=w();c(0,"div",4),z("click",function(){A(s);let a=u().$implicit,o=u(2);return B(o.chooseToken(a.id))}),D(1,"tui-avatar",5),c(2,"div",6),h(3),c(4,"div",7),h(5),g(6,"number"),c(7,"span"),h(8),g(9,"number"),m()()()()}if(e&2){let s=u().$implicit;l(),S("src","https://assets.coincap.io/assets/icons/"+s.symbol.toLowerCase()+"@2x.png"),l(2),x(" ",s.name," "),l(2),x(" ",$(6,6,s.priceUsd,"1.2-2"),"$ "),l(2),y("color",s.changePercent24Hr[0]==="-"?"var(--tui-status-negative)":"var(--tui-status-positive)"),l(),x(" ",$(9,9,s.changePercent24Hr,"1.2-2"),"% ")}}function Ke(e,i){if(e&1&&_(0,Ue,10,12,"div",3),e&2){let s=i.$implicit,r=u(2);P(r.token===""||s.id===r.token?0:-1)}}function Ye(e,i){if(e&1){let s=w();c(0,"button",8),z("click",function(){A(s);let a=u(2);return B(a.addToken())}),h(1," Add Token "),m()}}function $e(e,i){if(e&1&&(Y(0),c(1,"div",0)(2,"div",1),C(3,Ke,1,1,null,null,N),m(),_(5,Ye,2,0,"button",2),m()),e&2){let s=u(),a=le(0).data;l(3),T(a.slice(0,s.showTokens)),l(2),P(s.token===""&&s.showTokens{let i=class i{constructor(){this.pricesService=p(I),this.info$=this.pricesService.info$,this.showTokens=4,this.token="",this.tokenChange=new te}addToken(){this.showTokens+=1}chooseToken(r){let a=this.token===r?"":r;this.token=a,this.tokenChange.emit(a)}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=f({type:i,selectors:[["lmb-price-list"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[b],decls:3,vars:4,consts:[["tuiCardLarge","",1,"price-list"],[1,"list"],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add"],["tuiCell","l"],["tuiCell","l",3,"click"],[3,"src"],["tuiTitle",""],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add",3,"click"]],template:function(a,o){if(a&1&&(Y(0),g(1,"async"),_(2,$e,6,1,"div",0)),a&2){let d=se(k(1,1,o.info$));l(2),P(d?2:-1)}},dependencies:[O,R,me,ke,H,K,Me,U],styles:["[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:not(:last-child){border-radius:0;box-shadow:0 1px var(--tui-border-normal)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:hover{background-color:var(--tui-background-neutral-1-hover)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:active{background-color:var(--tui-background-neutral-1-pressed)}.price-list[_ngcontent-%COMP%]{padding:0}.button-add[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.list[_ngcontent-%COMP%]{max-height:22.5rem;overflow:scroll;background-color:var(--tui-background-base-alt);border-radius:1rem;border:1px solid var(--tui-border-normal)}"],changeDetection:0});let e=i;return e})();function je(e,i){if(e&1&&D(0,"lmb-price-chart",3),e&2){let s=u();S("token",s.token)}}var ye=(()=>{let i=class i{constructor(){this.pricesService=p(I),this.token=""}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=f({type:i,selectors:[["lmb-prices"]],standalone:!0,features:[b],decls:6,vars:6,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle",""],[3,"token"],[3,"tokenChange","token"]],template:function(a,o){a&1&&(c(0,"div",0)(1,"header",1)(2,"h2",2),h(3," Cryptocurrency Prices "),m()(),_(4,je,1,1,"lmb-price-chart",3),c(5,"lmb-price-list",4),oe("tokenChange",function(v){return re(o.token,v)||(o.token=v),v}),m()()),a&2&&(y("height","100%"),l(2),y("text-align","center"),l(2),P(o.token!==""?4:-1),l(),ae("token",o.token))},dependencies:[R,Ae,Be,ge,K,ve,U],encapsulation:2,changeDetection:0});let e=i;return e})();var on=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=f({type:i,selectors:[["lmb-crypto"]],standalone:!0,features:[b],decls:3,vars:0,consts:[[1,"column"],[1,"row"],[1,"grow"]],template:function(a,o){a&1&&(c(0,"div",0)(1,"div",1),D(2,"lmb-prices",2),m()())},dependencies:[R,ye],styles:[".grow[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{position:relative;display:grid;flex:0 0 auto;grid-template-columns:4fr 6fr 4fr;gap:1rem}@media (max-width: 56.25rem){.row[_ngcontent-%COMP%]{display:flex;flex:1;flex-wrap:wrap}.grow[_ngcontent-%COMP%]{height:max-content}}@media (max-width: 35.625rem){.grow[_ngcontent-%COMP%]{width:100%}}.column[_ngcontent-%COMP%]{display:flex;gap:.625rem;padding-top:1.25rem;flex-direction:column}"],changeDetection:0});let e=i;return e})();export{on as CryptoComponent}; diff --git a/chunk-BXPD2UYH.js b/chunk-BXPD2UYH.js new file mode 100644 index 000000000..978248788 --- /dev/null +++ b/chunk-BXPD2UYH.js @@ -0,0 +1,2 @@ +import{Ad as s,Xb as c,mb as u,qa as o,sa as n}from"./chunk-ZFID6WDR.js";var d=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-surface-styles"],standalone:!0,features:[c],decls:0,vars:0,template:function(e,i){},styles:[`[data-surface]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;--tui-gap: .25rem;position:relative;box-sizing:border-box;background:none no-repeat;background-size:cover;overflow:hidden;isolation:isolate;-webkit-appearance:none;appearance:none;border:0;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background,border-radius,box-shadow,transform,-webkit-backdrop-filter,-webkit-mask!important;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform!important;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform,-webkit-backdrop-filter,-webkit-mask!important}[data-surface]:focus-visible{outline-color:var(--tui-border-focus)}@supports (not (-moz-appearance: none)) and (not (-webkit-hyphens: none)){[data-surface]:before{mix-blend-mode:multiply}}button[data-surface]{cursor:pointer}[data-surface]:before,[data-surface]:after,[tuiSurfaceLayer]:before,[tuiSurfaceLayer]:after{position:absolute;top:0;left:0;width:100%;height:100%;transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";z-index:-1;border-radius:inherit;pointer-events:none;background-size:cover;background-repeat:no-repeat;transition-property:opacity,transform,-webkit-backdrop-filter;transition-property:opacity,backdrop-filter,transform;transition-property:opacity,backdrop-filter,transform,-webkit-backdrop-filter}[tuiSurfaceLayer]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;position:absolute!important;z-index:-1;object-fit:cover;border-radius:inherit;box-sizing:border-box;transition-property:box-shadow,filter,padding}input[tuiSurfaceLayer]+[tuiSurfaceLayer]{will-change:padding;background-clip:content-box;overflow:clip;overflow-clip-margin:content-box}input[tuiSurfaceLayer]:checked+[tuiSurfaceLayer]{padding:var(--tui-gap)}input[tuiSurfaceLayer]:focus-visible+[tuiSurfaceLayer]{padding:var(--tui-gap)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]+[tuiSurfaceLayer]{padding:var(--tui-gap)}}input[tuiSurfaceLayer]{color:var(--tui-background-accent-2);-webkit-appearance:none;appearance:none;margin:0;border-radius:inherit;outline:none;box-shadow:inset 0 0,inset 0 0 var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:checked{box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:focus-visible{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:checked:focus-visible{filter:brightness(.7);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}[data-surface]:hover input[tuiSurfaceLayer]:checked{filter:brightness(.9);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}}[tuiSurface][data-surface=elevated]{box-shadow:var(--tui-shadow-small);background-color:var(--tui-background-elevation-1)}button[tuiSurface][data-surface=elevated]:active,a[tuiSurface][data-surface=elevated]:active{box-shadow:var(--tui-shadow-small);transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[tuiSurface][data-surface=elevated]:hover,a[tuiSurface][data-surface=elevated]:hover{box-shadow:var(--tui-shadow-small-hover);transform:translate3d(0,-.25rem,0);background:var(--tui-background-elevation-1)}}[tuiSurface][data-surface=flat]{background-color:var(--tui-background-neutral-1)}button[tuiSurface][data-surface=flat]:active,a[tuiSurface][data-surface=flat]:active{transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[tuiSurface][data-surface=flat]:hover,a[tuiSurface][data-surface=flat]:hover{transform:scale(1.15)}} +`],encapsulation:2,changeDetection:0});let a=t;return a})(),l=(()=>{let t=class t{constructor(){this.nothing=s(d),this.tuiSurface=""}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n({type:t,selectors:[["","tuiSurface",""]],hostAttrs:["tuiSurface",""],hostVars:1,hostBindings:function(e,i){e&2&&u("data-surface",i.tuiSurface)},inputs:{tuiSurface:"tuiSurface"},standalone:!0});let a=t;return a})();export{l as a}; diff --git a/chunk-DRE72XA7.js b/chunk-DRE72XA7.js new file mode 100644 index 000000000..c6a940205 --- /dev/null +++ b/chunk-DRE72XA7.js @@ -0,0 +1 @@ +import{Ac as U,B as J,Bc as Mr,Ca as _t,Cc as Ee,D as re,Da as nr,Db as gr,Dc as Tr,E as ie,Ea as zt,Ec as Ar,Fc as Me,Ga as rr,Gc as Dr,H as Pt,Ha as oe,Hb as vr,I as se,Ia as K,J as Wn,Ja as Ft,Jb as mr,Kb as yr,La as Ht,M as et,Ma as ir,N as Z,Na as Bt,O as Ut,Oa as sr,P as Zn,Pa as be,Pc as Or,Ra as Vt,Rc as Yt,S as Kn,Sc as Nr,Tc as Pr,Ua as or,W as Qn,X as k,Xa as Ie,Xb as wr,Y as Yn,Za as $,_ as E,_a as ar,a as Hn,ab as cr,ba as b,bb as qt,c as Bn,da as C,db as ur,e as Dt,ea as xt,eb as lr,f as Ot,fa as Xn,g as G,ga as M,h as P,ha as Lt,ia as y,ib as hr,ic as rt,ja as g,jb as dr,jc as Sr,k as W,kb as Gt,kc as Wt,la as jt,lc as Zt,m as A,mb as fr,mc as Kt,n as p,na as Jn,nc as it,o as we,p as Vn,pa as Ce,pc as st,q as qn,qa as er,r as S,ra as kt,rc as Cr,s as Je,sa as tt,sc as Rr,t as D,tc as ot,u as Se,ua as $t,v as Gn,va as tr,w as Nt,wa as Re,wb as pr,wc as br,xa as F,xc as Qt,ya as nt,yc as Ir,zc as Er}from"./chunk-ZFID6WDR.js";import{a as d,b as T}from"./chunk-HFDGAYQF.js";var en=class extends Er{constructor(){super(...arguments),this.supportsDOMEvents=!0}},tn=class n extends en{static makeCurrent(){Ir(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=ji();return i==null?null:ki(i)}resetBaseElement(){Te=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Dr(document.cookie,e)}},Te=null;function ji(){return Te=Te||document.querySelector("base"),Te?Te.getAttribute("href"):null}function ki(n){return new URL(n,document.baseURI).pathname}var $i=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),at=new M(""),jr=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(y(at),y(K))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ae=class{constructor(e){this._doc=e}},Xt="ng-app-id",kr=(()=>{let e=class e{constructor(t,r,s,o={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Yt(o),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){var s,o;let r=this.styleRef;(o=(s=r.get(t))==null?void 0:s.elements)==null||o.forEach(a=>a.remove()),r.delete(t)}collectServerRenderedStyles(){var r;let t=(r=this.doc.head)==null?void 0:r.querySelectorAll(`style[${Xt}="${this.appId}"]`);if(t!=null&&t.length){let s=new Map;return t.forEach(o=>{o.textContent!=null&&s.set(o.textContent,o)}),s}return null}changeUsageCount(t,r){let s=this.styleRef;if(s.has(t)){let o=s.get(t);return o.usage+=r,o.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,o=s==null?void 0:s.get(r);if((o==null?void 0:o.parentNode)===t)return s.delete(r),o.removeAttribute(Xt),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Xt,this.appId),t.appendChild(a),a}}addStyleToHost(t,r){var u;let s=this.getStyleElement(t,r),o=this.styleRef,a=(u=o.get(r))==null?void 0:u.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(y(U),y(Bt),y(Vt,8),y(be))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Jt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},rn=/%COMP%/g,$r="%COMP%",_i=`_nghost-${$r}`,zi=`_ngcontent-${$r}`,Fi=!0,Hi=new M("",{providedIn:"root",factory:()=>Fi});function Bi(n){return zi.replace(rn,n)}function Vi(n){return _i.replace(rn,n)}function _r(n,e){return e.map(i=>i.replace(rn,n))}var Ur=(()=>{let e=class e{constructor(t,r,s,o,a,u,c,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Yt(u),this.defaultRenderer=new De(t,a,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ce.ShadowDom&&(r=T(d({},r),{encapsulation:Ce.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof ct?s.applyToHost(t):s instanceof Oe&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(r.encapsulation){case Ce.Emulated:o=new ct(c,l,r,this.appId,h,a,u,f);break;case Ce.ShadowDom:return new nn(c,l,t,r,a,u,this.nonce,f);default:o=new Oe(c,l,r,h,a,u,f);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(y(jr),y(kr),y(Bt),y(Hi),y(U),y(be),y(K),y(Vt))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),De=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Jt[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(xr(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(xr(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new b(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let s=Jt[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=Jt[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(Ie.DashCase|Ie.Important)?e.style.setProperty(i,t,r&Ie.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&Ie.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=Qt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function xr(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var nn=class extends De{constructor(e,i,t,r,s,o,a,u){super(e,s,o,u),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=_r(r.id,r.styles);for(let l of c){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=l,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Oe=class extends De{constructor(e,i,t,r,s,o,a,u){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=u?_r(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ct=class extends Oe{constructor(e,i,t,r,s,o,a,u){let c=r+"-"+t.id;super(e,i,t,s,o,a,u,c),this.contentAttr=Bi(c),this.hostAttr=Vi(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},qi=(()=>{let e=class e extends Ae{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(y(U))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Gi=(()=>{let e=class e extends Ae{constructor(t){super(t),this.delegate=g(Rr,{optional:!0})}supports(t){return this.delegate?this.delegate.supports(t):!1}addEventListener(t,r,s){return this.delegate.addEventListener(t,r,s)}removeEventListener(t,r,s){return this.delegate.removeEventListener(t,r,s)}};e.\u0275fac=function(r){return new(r||e)(y(U))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Lr=["alt","control","meta","shift"],Wi={"\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"},Zi={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Ki=(()=>{let e=class e extends Ae{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qt().onAndCancel(t,o.domEventName,a))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),a="code."),Lr.forEach(l=>{let h=r.indexOf(l);h>-1&&(r.splice(h,1),a+=l+".")}),a+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(t,r){let s=Wi[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(s=t.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Lr.forEach(a=>{if(a!==s){let u=Zi[a];u(t)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(t,r,s){return o=>{e.matchEventFullKeyCode(o,t)&&s.runGuarded(()=>r(o))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(y(U))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function xa(n,e){return Cr(d({rootComponent:n},Qi(e)))}function Qi(n){return{appProviders:[...ts,...(n==null?void 0:n.providers)??[]],platformProviders:es}}function Yi(){tn.makeCurrent()}function Xi(){return new Ft}function Ji(){return ir(document),document}var es=[{provide:be,useValue:Or},{provide:sr,useValue:Yi,multi:!0},{provide:U,useFactory:Ji,deps:[]}];var ts=[{provide:tr,useValue:"root"},{provide:Ft,useFactory:Xi,deps:[]},{provide:at,useClass:qi,multi:!0,deps:[U,K,be]},{provide:at,useClass:Ki,multi:!0,deps:[U]},{provide:at,useClass:Gi,multi:!0},Ur,kr,jr,{provide:cr,useExisting:Ur},{provide:Pr,useClass:$i,deps:[]},[]];var zr=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(y(U))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var v="primary",qe=Symbol("RouteTitle"),un=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function de(n){return new un(n)}function rs(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.lengtht[s]===r)}else return n===e}function Jr(n){return n.length>0?n[n.length-1]:null}function X(n){return Vn(n)?n:Sr(n)?A(Promise.resolve(n)):p(n)}var ss={exact:ti,subset:ni},ei={exact:os,subset:as,ignored:()=>!0};function Fr(n,e,i){return ss[i.paths](n.root,e.root,i.matrixParams)&&ei[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function os(n,e){return H(n,e)}function ti(n,e,i){if(!te(n.segments,e.segments)||!ht(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!ti(n.children[t],e.children[t],i))return!1;return!0}function as(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Xr(n[i],e[i]))}function ni(n,e,i){return ri(n,e,e.segments,i)}function ri(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!te(r,i)||e.hasChildren()||!ht(r,i,t))}else if(n.segments.length===i.length){if(!te(n.segments,i)||!ht(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!ni(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!te(n.segments,r)||!ht(n.segments,r,t)||!n.children[v]?!1:ri(n.children[v],e,s,t)}}function ht(n,e,i){return e.every((t,r)=>ei[i](n[r].parameters,t.parameters))}var q=class{constructor(e=new m([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=de(this.queryParams)),this._queryParamMap}toString(){return ls.serialize(this)}},m=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dt(this)}},ee=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??(this._parameterMap=de(this.parameters)),this._parameterMap}toString(){return si(this)}};function cs(n,e){return te(n,e)&&n.every((i,t)=>H(i.parameters,e[t].parameters))}function te(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function us(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===v&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==v&&(i=i.concat(e(r,t)))}),i}var Ge=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>new fe,providedIn:"root"});let n=e;return n})(),fe=class{parse(e){let i=new dn(e);return new q(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Ne(e.root,!0)}`,t=fs(e.queryParams),r=typeof e.fragment=="string"?`#${hs(e.fragment)}`:"";return`${i}${t}${r}`}},ls=new fe;function dt(n){return n.segments.map(e=>si(e)).join("/")}function Ne(n,e){if(!n.hasChildren())return dt(n);if(e){let i=n.children[v]?Ne(n.children[v],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==v&&t.push(`${r}:${Ne(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=us(n,(t,r)=>r===v?[Ne(n.children[v],!1)]:[`${r}:${Ne(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[v]!=null?`${dt(n)}/${i[0]}`:`${dt(n)}/(${i.join("//")})`}}function ii(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ut(n){return ii(n).replace(/%3B/gi,";")}function hs(n){return encodeURI(n)}function hn(n){return ii(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ft(n){return decodeURIComponent(n)}function Hr(n){return ft(n.replace(/\+/g,"%20"))}function si(n){return`${hn(n.path)}${ds(n.parameters)}`}function ds(n){return Object.entries(n).map(([e,i])=>`;${hn(e)}=${hn(i)}`).join("")}function fs(n){let e=Object.entries(n).map(([i,t])=>Array.isArray(t)?t.map(r=>`${ut(i)}=${ut(r)}`).join("&"):`${ut(i)}=${ut(t)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var ps=/^[^\/()?;#]+/;function sn(n){let e=n.match(ps);return e?e[0]:""}var gs=/^[^\/()?;=#]+/;function vs(n){let e=n.match(gs);return e?e[0]:""}var ms=/^[^=?&#]+/;function ys(n){let e=n.match(ms);return e?e[0]:""}var ws=/^[^&#]+/;function Ss(n){let e=n.match(ws);return e?e[0]:""}var dn=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[v]=new m(e,i)),t}parseSegment(){let e=sn(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(e),new ee(ft(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=vs(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=sn(this.remaining);r&&(t=r,this.capture(t))}e[ft(i)]=ft(t)}parseQueryParam(e){let i=ys(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let o=Ss(this.remaining);o&&(t=o,this.capture(t))}let r=Hr(i),s=Hr(t);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=sn(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new b(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=v);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[v]:new m([],o),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new b(4011,!1)}};function oi(n){return n.segments.length>0?new m([],{[v]:n}):n}function ai(n){let e={};for(let[t,r]of Object.entries(n.children)){let s=ai(r);if(t===v&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new m(n.segments,e);return Cs(i)}function Cs(n){if(n.numberOfChildren===1&&n.children[v]){let e=n.children[v];return new m(n.segments.concat(e.segments),e.children)}return n}function ne(n){return n instanceof q}function Rs(n,e,i=null,t=null){let r=ci(n);return ui(r,e,i,t)}function ci(n){let e;function i(s){let o={};for(let u of s.children){let c=i(u);o[u.outlet]=c}let a=new m(s.url,o);return s===n&&(e=a),a}let t=i(n.root),r=oi(t);return e??r}function ui(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return on(r,r,r,i,t);let s=bs(e);if(s.toRoot())return on(r,r,new m([],{}),i,t);let o=Is(s,r,n),a=o.processChildren?xe(o.segmentGroup,o.index,s.commands):hi(o.segmentGroup,o.index,s.commands);return on(r,o.segmentGroup,a,i,t)}function pt(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function ke(n){return typeof n=="object"&&n!=null&&n.outlets}function on(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([u,c])=>{s[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;n===e?o=i:o=li(n,e,i);let a=oi(ai(o));return new q(a,s,r)}function li(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=li(s,e,i)}),new m(n.segments,t)}var gt=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&pt(t[0]))throw new b(4003,!1);let r=t.find(ke);if(r&&r!==Jr(t))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function bs(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new gt(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new gt(i,e,t)}var ue=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Is(n,e,i){if(n.isAbsolute)return new ue(e,!0,0);if(!i)return new ue(e,!1,NaN);if(i.parent===null)return new ue(i,!0,0);let t=pt(n.commands[0])?0:1,r=i.segments.length-1+t;return Es(i,r,n.numberOfDoubleDots)}function Es(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new b(4005,!1);r=t.segments.length}return new ue(t,!1,r-s)}function Ms(n){return ke(n[0])?n[0].outlets:{[v]:n}}function hi(n,e,i){if(n??(n=new m([],{})),n.segments.length===0&&n.hasChildren())return xe(n,e,i);let t=Ts(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndexs!==v)&&n.children[v]&&n.numberOfChildren===1&&n.children[v].segments.length===0){let s=xe(n.children[v],e,i);return new m(n.segments,s.children)}return Object.entries(t).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=hi(n.children[s],e,o))}),Object.entries(n.children).forEach(([s,o])=>{t[s]===void 0&&(r[s]=o)}),new m(n.segments,r)}}function Ts(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let o=n.segments[r],a=i[t];if(ke(a))break;let u=`${a}`,c=t0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Vr(u,c,o))return s;t+=2}else{if(!Vr(u,{},o))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function fn(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=fn(new m([],{}),0,t))}),e}function Br(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Vr(n,e,i){return n==i.path&&H(e,i.parameters)}var Le="imperative",I=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(I||{}),x=class{constructor(e,i){this.id=e,this.url=i}},pe=class extends x{constructor(e,i,t="imperative",r=null){super(e,i),this.type=I.NavigationStart,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},z=class extends x{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=I.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},N=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(N||{}),vt=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(vt||{}),V=class extends x{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=I.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Q=class extends x{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=I.NavigationSkipped}},$e=class extends x{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=I.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},mt=class extends x{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=I.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pn=class extends x{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=I.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gn=class extends x{constructor(e,i,t,r,s){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=I.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},vn=class extends x{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=I.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mn=class extends x{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=I.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yn=class{constructor(e){this.route=e,this.type=I.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},wn=class{constructor(e){this.route=e,this.type=I.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Sn=class{constructor(e){this.snapshot=e,this.type=I.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cn=class{constructor(e){this.snapshot=e,this.type=I.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rn=class{constructor(e){this.snapshot=e,this.type=I.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bn=class{constructor(e){this.snapshot=e,this.type=I.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{constructor(e,i,t){this.routerEvent=e,this.position=i,this.anchor=t,this.type=I.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},_e=class{},ge=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};function Ds(n,e){return n.providers&&!n._injector&&(n._injector=Gt(n.providers,e,`Route: ${n.path}`)),n._injector??e}function _(n){return n.outlet||v}function Os(n,e){let i=n.filter(t=>_(t)===e);return i.push(...n.filter(t=>_(t)!==e)),i}function We(n){var e;if(!n)return null;if((e=n.routeConfig)!=null&&e._injector)return n.routeConfig._injector;for(let i=n.parent;i;i=i.parent){let t=i.routeConfig;if(t!=null&&t._loadedInjector)return t._loadedInjector;if(t!=null&&t._injector)return t._injector}return null}var In=class{get injector(){var e;return We((e=this.route)==null?void 0:e.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new Ze(this.rootInjector),this.attachRef=null}},Ze=(()=>{let e=class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,r){let s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new In(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)(y(Re))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),wt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=En(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=En(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Mn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Mn(e,this._root).map(i=>i.value)}};function En(n,e){if(n===e.value)return e;for(let i of e.children){let t=En(n,i);if(t)return t}return null}function Mn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=Mn(n,i);if(t.length)return t.unshift(e),t}return[]}var O=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function ce(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var St=class extends wt{constructor(e,i){super(e),this.snapshot=i,Ln(this,e)}toString(){return this.snapshot.toString()}};function di(n){let e=Ns(n),i=new P([new ee("",{})]),t=new P({}),r=new P({}),s=new P({}),o=new P(""),a=new Y(i,t,s,o,r,v,n,e.root);return a.snapshot=e.root,new St(new O(a,[]),e)}function Ns(n){let e={},i={},t={},r="",s=new le([],e,t,r,i,v,n,null,{});return new Rt("",new O(s,[]))}var Y=class{constructor(e,i,t,r,s,o,a,u){var c;this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=((c=this.dataSubject)==null?void 0:c.pipe(S(l=>l[qe])))??p(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s}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(S(e=>de(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=this.queryParams.pipe(S(e=>de(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ct(n,e,i="emptyOnly"){var s;let t,{routeConfig:r}=n;return e!==null&&(i==="always"||(r==null?void 0:r.path)===""||!e.component&&!((s=e.routeConfig)!=null&&s.loadComponent))?t={params:d(d({},e.params),n.params),data:d(d({},e.data),n.data),resolve:d(d(d(d({},n.data),e.data),r==null?void 0:r.data),n._resolvedData)}:t={params:d({},n.params),data:d({},n.data),resolve:d(d({},n.data),n._resolvedData??{})},r&&pi(r)&&(t.resolve[qe]=r.title),t}var le=class{get title(){var e;return(e=this.data)==null?void 0:e[qe]}constructor(e,i,t,r,s,o,a,u,c){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??(this._paramMap=de(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=de(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},Rt=class extends wt{constructor(e,i){super(i),this.url=e,Ln(this,i)}toString(){return fi(this._root)}};function Ln(n,e){e.value._routerState=n,e.children.forEach(i=>Ln(n,i))}function fi(n){let e=n.children.length>0?` { ${n.children.map(fi).join(", ")} } `:"";return`${n.value}${e}`}function an(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,H(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),H(e.params,i.params)||n.paramsSubject.next(i.params),is(e.url,i.url)||n.urlSubject.next(i.url),H(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Tn(n,e){let i=H(n.params,e.params)&&cs(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||Tn(n.parent,e.parent))}function pi(n){return typeof n.title=="string"||n.title===null}var Ps=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=v,this.activateEvents=new oe,this.deactivateEvents=new oe,this.attachEvents=new oe,this.detachEvents=new oe,this.parentContexts=g(Ze),this.location=g(lr),this.changeDetector=g(st),this.inputBinder=g(Mt,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){var t;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(t=this.inputBinder)==null||t.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){var r;return((r=this.parentContexts.getContext(t))==null?void 0:r.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t!=null&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){var s;this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),(s=this.inputBinder)==null||s.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){var l;if(this.isActivated)throw new b(4013,!1);this._activatedRoute=t;let s=this.location,a=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new An(t,u,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),(l=this.inputBinder)==null||l.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=tt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[nt]});let n=e;return n})(),An=class n{__ngOutletInjector(e){return new n(this.route,this.childContexts,e)}constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===Y?this.route:e===Ze?this.childContexts:this.parent.get(e,i)}},Mt=new M(""),qr=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){var r;(r=this.outletDataSubscriptions.get(t))==null||r.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,s=Je([r.queryParams,r.params,r.data]).pipe(k(([o,a,u],c)=>(u=d(d(d({},o),a),u),c===0?p(u):Promise.resolve(u)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let a=br(r.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:u}of a.inputs)t.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(t,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function Us(n,e,i){let t=ze(n,e._root,i?i._root:void 0);return new St(t,e)}function ze(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=xs(n,e,i);return new O(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>ze(n,a)),o}}let t=Ls(e.value),r=e.children.map(s=>ze(n,s));return new O(t,r)}}function xs(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ze(n,t,r);return ze(n,t)})}function Ls(n){return new Y(new P(n.url),new P(n.params),new P(n.queryParams),new P(n.fragment),new P(n.data),n.outlet,n.component,n)}var Fe=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},gi="ngNavigationCancelingError";function bt(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=ne(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=vi(!1,N.Redirect);return r.url=i,r.navigationBehaviorOptions=t,r}function vi(n,e){let i=new Error(`NavigationCancelingError: ${n||""}`);return i[gi]=!0,i.cancellationCode=e,i}function js(n){return mi(n)&&ne(n.url)}function mi(n){return!!n&&n[gi]}var ks=(n,e,i,t)=>S(r=>(new Dn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),Dn=class{constructor(e,i,t,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),an(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=ce(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],t),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=t.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,t);else s&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ce(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(t&&t.outlet){let o=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ce(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=ce(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new bn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Cn(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(an(r),r===s)if(r.component){let o=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let o=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),an(a.route.value),this.activateChildRoutes(e,null,o.children)}else o.attachRef=null,o.route=r,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}else this.activateChildRoutes(e,null,t)}},It=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},he=class{constructor(e,i){this.component=e,this.route=i}};function $s(n,e,i){let t=n._root,r=e?e._root:null;return Pe(t,r,i,[t.value])}function _s(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function me(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Xn(n)?n:e.get(n):t}function Pe(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=ce(e);return n.children.forEach(o=>{zs(o,s[o.value.outlet],i,t.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>je(a,i.getContext(o),r)),r}function zs(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,o=e?e.value:null,a=i?i.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=Fs(o,s,s.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new It(t)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Pe(n,e,a?a.children:null,t,r):Pe(n,e,i,t,r),u&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new he(a.outlet.component,o))}else o&&je(e,a,r),r.canActivateChecks.push(new It(t)),s.component?Pe(n,null,a?a.children:null,t,r):Pe(n,null,i,t,r);return r}function Fs(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!te(n.url,e.url);case"pathParamsOrQueryParamsChange":return!te(n.url,e.url)||!H(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tn(n,e)||!H(n.queryParams,e.queryParams);case"paramsChange":default:return!Tn(n,e)}}function je(n,e,i){let t=ce(n),r=n.value;Object.entries(t).forEach(([s,o])=>{r.component?e?je(o,e.children.getContext(s),i):je(o,null,i):je(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new he(e.outlet.component,r)):i.canDeactivateChecks.push(new he(null,r)):i.canDeactivateChecks.push(new he(null,r))}function Ke(n){return typeof n=="function"}function Hs(n){return typeof n=="boolean"}function Bs(n){return n&&Ke(n.canLoad)}function Vs(n){return n&&Ke(n.canActivate)}function qs(n){return n&&Ke(n.canActivateChild)}function Gs(n){return n&&Ke(n.canDeactivate)}function Ws(n){return n&&Ke(n.canMatch)}function yi(n){return n instanceof qn||(n==null?void 0:n.name)==="EmptyError"}var lt=Symbol("INITIAL_VALUE");function ve(){return k(n=>Je(n.map(e=>e.pipe(se(1),Qn(lt)))).pipe(S(e=>{for(let i of e)if(i!==!0){if(i===lt)return lt;if(i===!1||Zs(i))return i}return!0}),J(e=>e!==lt),se(1)))}function Zs(n){return ne(n)||n instanceof Fe}function Ks(n,e){return D(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?p(T(d({},i),{guardsResult:!0})):Qs(o,t,r,n).pipe(D(a=>a&&Hs(a)?Ys(t,s,n,e):p(a)),S(a=>T(d({},i),{guardsResult:a})))})}function Qs(n,e,i,t){return A(n).pipe(D(r=>no(r.component,r.route,i,e,t)),Z(r=>r!==!0,!0))}function Ys(n,e,i,t){return A(e).pipe(ie(r=>Gn(Js(r.route.parent,t),Xs(r.route,t),to(n,r.path,i),eo(n,r.route,i))),Z(r=>r!==!0,!0))}function Xs(n,e){return n!==null&&e&&e(new Rn(n)),p(!0)}function Js(n,e){return n!==null&&e&&e(new Sn(n)),p(!0)}function eo(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return p(!0);let r=t.map(s=>Nt(()=>{let o=We(e)??i,a=me(s,o),u=Vs(a)?a.canActivate(e,n):F(o,()=>a(e,n));return X(u).pipe(Z())}));return p(r).pipe(ve())}function to(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>_s(o)).filter(o=>o!==null).map(o=>Nt(()=>{let a=o.guards.map(u=>{let c=We(o.node)??i,l=me(u,c),h=qs(l)?l.canActivateChild(t,n):F(c,()=>l(t,n));return X(h).pipe(Z())});return p(a).pipe(ve())}));return p(s).pipe(ve())}function no(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return p(!0);let o=s.map(a=>{let u=We(e)??r,c=me(a,u),l=Gs(c)?c.canDeactivate(n,e,i,t):F(u,()=>c(n,e,i,t));return X(l).pipe(Z())});return p(o).pipe(ve())}function ro(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return p(!0);let s=r.map(o=>{let a=me(o,n),u=Bs(a)?a.canLoad(e,i):F(n,()=>a(e,i));return X(u)});return p(s).pipe(ve(),wi(t))}function wi(n){return Bn(E(e=>{if(typeof e!="boolean")throw bt(n,e)}),S(e=>e===!0))}function io(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return p(!0);let s=r.map(o=>{let a=me(o,n),u=Ws(a)?a.canMatch(e,i):F(n,()=>a(e,i));return X(u)});return p(s).pipe(ve(),wi(t))}var He=class{constructor(e){this.segmentGroup=e||null}},Be=class extends Error{constructor(e){super(),this.urlTree=e}};function ae(n){return we(new He(n))}function so(n){return we(new b(4e3,!1))}function oo(n){return we(vi(!1,N.GuardRejected))}var On=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return p(t);if(r.numberOfChildren>1||!r.children[v])return so(`${e.redirectTo}`);r=r.children[v]}}applyRedirectCommands(e,i,t,r,s){if(typeof i!="string"){let a=i,{queryParams:u,fragment:c,routeConfig:l,url:h,outlet:f,params:w,data:R,title:L}=r,j=F(s,()=>a({params:w,data:R,queryParams:u,fragment:c,routeConfig:l,url:h,outlet:f,title:L}));if(j instanceof q)throw new Be(j);i=j}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i[0]==="/")throw new Be(o);return o}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new q(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);t[r]=i[a]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),o={};return Object.entries(i.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(e,u,t,r)}),new m(s,o)}createSegments(e,i,t,r){return i.map(s=>s.path[0]===":"?this.findPosParam(e,s,r):this.findOrReturn(s,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new b(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},Nn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ao(n,e,i,t,r){let s=jn(n,e,i);return s.matched?(t=Ds(e,t),io(t,e,i,r).pipe(S(o=>o===!0?s:d({},Nn)))):p(s)}function jn(n,e,i){if(e.path==="**")return co(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?d({},Nn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||rs)(i,n,e);if(!r)return d({},Nn);let s={};Object.entries(r.posParams??{}).forEach(([a,u])=>{s[a]=u.path});let o=r.consumed.length>0?d(d({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function co(n){return{matched:!0,parameters:n.length>0?Jr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Gr(n,e,i,t){return i.length>0&&ho(n,i,t)?{segmentGroup:new m(e,lo(t,new m(i,n.children))),slicedSegments:[]}:i.length===0&&fo(n,i,t)?{segmentGroup:new m(n.segments,uo(n,i,t,n.children)),slicedSegments:i}:{segmentGroup:new m(n.segments,n.children),slicedSegments:i}}function uo(n,e,i,t){let r={};for(let s of i)if(Tt(n,e,s)&&!t[_(s)]){let o=new m([],{});r[_(s)]=o}return d(d({},t),r)}function lo(n,e){let i={};i[v]=e;for(let t of n)if(t.path===""&&_(t)!==v){let r=new m([],{});i[_(t)]=r}return i}function ho(n,e,i){return i.some(t=>Tt(n,e,t)&&_(t)!==v)}function fo(n,e,i){return i.some(t=>Tt(n,e,t))}function Tt(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function po(n,e,i,t){return _(n)!==t&&(t===v||!Tt(e,i,n))?!1:jn(e,n,i).matched}function go(n,e,i){return e.length===0&&!n.children[i]}var Pn=class{};function vo(n,e,i,t,r,s,o="emptyOnly"){return new Un(n,e,i,t,r,o,s).recognize()}var mo=31,Un=class{constructor(e,i,t,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new On(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new b(4002,`'${e.segmentGroup}'`)}recognize(){let e=Gr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(S(({children:i,rootSnapshot:t})=>{let r=new O(t,i),s=new Rt("",r),o=Rs(t,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(e){let i=new le([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),v,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,v,i).pipe(S(t=>({children:t,rootSnapshot:i})),re(t=>{if(t instanceof Be)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof He?this.noMatchError(t):t}))}processSegmentGroup(e,i,t,r,s){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t,s):this.processSegment(e,i,t,t.segments,r,!0,s).pipe(S(o=>o instanceof O?[o]:[]))}processChildren(e,i,t,r){let s=[];for(let o of Object.keys(t.children))o==="primary"?s.unshift(o):s.push(o);return A(s).pipe(ie(o=>{let a=t.children[o],u=Os(i,o);return this.processSegmentGroup(e,u,a,o,r)}),Kn((o,a)=>(o.push(...a),o)),Pt(null),Zn(),D(o=>{if(o===null)return ae(t);let a=Si(o);return yo(a),p(a)}))}processSegment(e,i,t,r,s,o,a){return A(i).pipe(ie(u=>this.processSegmentAgainstRoute(u._injector??e,i,u,t,r,s,o,a).pipe(re(c=>{if(c instanceof He)return p(null);throw c}))),Z(u=>!!u),re(u=>{if(yi(u))return go(t,r,s)?p(new Pn):ae(t);throw u}))}processSegmentAgainstRoute(e,i,t,r,s,o,a,u){return po(t,r,s,o)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,o,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,o,u):ae(r):ae(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,o,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:h,remainingSegments:f}=jn(i,r,s);if(!u)return ae(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mo&&(this.allowRedirects=!1));let w=new le(s,c,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Wr(r),_(r),r.component??r._loadedComponent??null,r,Zr(r)),R=Ct(w,a,this.paramsInheritanceStrategy);w.params=Object.freeze(R.params),w.data=Object.freeze(R.data);let L=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,h,w,e);return this.applyRedirects.lineralizeSegments(r,L).pipe(D(j=>this.processSegment(e,t,i,j.concat(f),o,!1,a)))}matchSegmentAgainstRoute(e,i,t,r,s,o){let a=ao(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(k(u=>u.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(k(({routes:c})=>{let l=t._loadedInjector??e,{parameters:h,consumedSegments:f,remainingSegments:w}=u,R=new le(f,h,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Wr(t),_(t),t.component??t._loadedComponent??null,t,Zr(t)),L=Ct(R,o,this.paramsInheritanceStrategy);R.params=Object.freeze(L.params),R.data=Object.freeze(L.data);let{segmentGroup:j,slicedSegments:ye}=Gr(i,f,w,c);if(ye.length===0&&j.hasChildren())return this.processChildren(l,c,j,R).pipe(S(Xe=>new O(R,Xe)));if(c.length===0&&ye.length===0)return p(new O(R,[]));let At=_(t)===s;return this.processSegment(l,c,j,ye,At?v:s,!0,R).pipe(S(Xe=>new O(R,Xe instanceof O?[Xe]:[])))}))):ae(i)))}getChildConfig(e,i,t){return i.children?p({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?p({routes:i._loadedRoutes,injector:i._loadedInjector}):ro(e,i,t,this.urlSerializer).pipe(D(r=>r?this.configLoader.loadChildren(e,i).pipe(E(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):oo(i))):p({routes:[],injector:e})}};function yo(n){n.sort((e,i)=>e.value.outlet===v?-1:i.value.outlet===v?1:e.value.outlet.localeCompare(i.value.outlet))}function wo(n){let e=n.value.routeConfig;return e&&e.path===""}function Si(n){let e=[],i=new Set;for(let t of n){if(!wo(t)){e.push(t);continue}let r=e.find(s=>t.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=Si(t.children);e.push(new O(t.value,r))}return e.filter(t=>!i.has(t))}function Wr(n){return n.data||{}}function Zr(n){return n.resolve||{}}function So(n,e,i,t,r,s){return D(o=>vo(n,e,i,t,o.extractedUrl,r,s).pipe(S(({state:a,tree:u})=>T(d({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function Co(n,e){return D(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return p(i);let s=new Set(r.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let c of Ci(u))o.add(c);let a=0;return A(o).pipe(ie(u=>s.has(u)?Ro(u,t,n,e):(u.data=Ct(u,u.parent,n).resolve,p(void 0))),E(()=>a++),Ut(1),D(u=>a===o.size?p(i):W))})}function Ci(n){let e=n.children.map(i=>Ci(i)).flat();return[n,...e]}function Ro(n,e,i,t){let r=n.routeConfig,s=n._resolve;return(r==null?void 0:r.title)!==void 0&&!pi(r)&&(s[qe]=r.title),bo(s,n,e,t).pipe(S(o=>(n._resolvedData=o,n.data=Ct(n,n.parent,i).resolve,null)))}function bo(n,e,i,t){let r=ln(n);if(r.length===0)return p({});let s={};return A(r).pipe(D(o=>Io(n[o],e,i,t).pipe(Z(),E(a=>{if(a instanceof Fe)throw bt(new fe,a);s[o]=a}))),Ut(1),Wn(s),re(o=>yi(o)?W:we(o)))}function Io(n,e,i,t){let r=We(e)??t,s=me(n,r),o=s.resolve?s.resolve(e,i):F(r,()=>s(e,i));return X(o)}function cn(n){return k(e=>{let i=n(e);return i?A(i).pipe(S(()=>e)):p(e)})}var Ri=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===v);return r}getResolvedTitleForRoute(t){return t.data[qe]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>g(Eo),providedIn:"root"});let n=e;return n})(),Eo=(()=>{let e=class e extends Ri{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(y(zr))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Qe=new M("",{providedIn:"root",factory:()=>({})}),Mo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=er({type:e,selectors:[["ng-component"]],standalone:!0,features:[wr],decls:1,vars:0,template:function(r,s){r&1&&pr(0,"router-outlet")},dependencies:[Ps],encapsulation:2});let n=e;return n})();function kn(n){let e=n.children&&n.children.map(kn),i=e?T(d({},n),{children:e}):d({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==v&&(i.component=Mo),i}var Ve=new M(""),$n=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(it)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return p(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=X(t.loadComponent()).pipe(S(bi),E(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),et(()=>{this.componentLoaders.delete(t)})),s=new Ot(r,()=>new G).pipe(Dt());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return p({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=To(r,this.compiler,t,this.onLoadEndListener).pipe(et(()=>{this.childrenLoaders.delete(r)})),a=new Ot(o,()=>new G).pipe(Dt());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function To(n,e,i,t){return X(n.loadChildren()).pipe(S(bi),D(r=>r instanceof dr||Array.isArray(r)?p(r):A(e.compileModuleAsync(r))),S(r=>{t&&t(n);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(Ve,[],{optional:!0,self:!0}).flat()),{routes:o.map(kn),injector:s}}))}function Ao(n){return n&&typeof n=="object"&&"default"in n}function bi(n){return Ao(n)?n.default:n}var _n=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>g(Do),providedIn:"root"});let n=e;return n})(),Do=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ii=new M(""),Ei=new M("");function Oo(n,e,i){let t=n.get(Ei),r=n.get(U);return n.get(K).runOutsideAngular(()=>{if(!r.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),a=r.startViewTransition(()=>(s(),No(n))),{onViewTransitionCreated:u}=t;return u&&F(n,()=>u({transition:a,from:e,to:i})),o})}function No(n){return new Promise(e=>{ur({read:()=>setTimeout(e)},{injector:n})})}var Po=new M(""),zn=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new G,this.transitionAbortSubject=new G,this.configLoader=g($n),this.environmentInjector=g(Re),this.urlSerializer=g(Ge),this.rootContexts=g(Ze),this.location=g(Me),this.inputBindingEnabled=g(Mt,{optional:!0})!==null,this.titleStrategy=g(Ri),this.options=g(Qe,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(_n),this.createViewTransition=g(Ii,{optional:!0}),this.navigationErrorHandler=g(Po,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>p(void 0),this.rootComponentType=null;let t=s=>this.events.next(new yn(s)),r=s=>this.events.next(new wn(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){var t;(t=this.transitions)==null||t.complete()}handleNavigationRequest(t){var s;let r=++this.navigationId;(s=this.transitions)==null||s.next(T(d(d({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new P({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Le,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(J(o=>o.id!==0),S(o=>T(d({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),k(o=>{let a=!1,u=!1;return p(o).pipe(k(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",N.SupersededByNewNavigation),W;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?T(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=c.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!l&&h!=="reload"){let f="";return this.events.next(new Q(c.id,this.urlSerializer.serialize(c.rawUrl),f,vt.IgnoredSameUrlNavigation)),c.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return p(c).pipe(k(f=>{var R,L;let w=(R=this.transitions)==null?void 0:R.getValue();return this.events.next(new pe(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),w!==((L=this.transitions)==null?void 0:L.getValue())?W:Promise.resolve(f)}),So(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),E(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=T(d({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let w=new mt(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(w)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:w,source:R,restoredState:L,extras:j}=c,ye=new pe(f,this.urlSerializer.serialize(w),R,L);this.events.next(ye);let At=di(this.rootComponentType).snapshot;return this.currentTransition=o=T(d({},c),{targetSnapshot:At,urlAfterRedirects:w,extras:T(d({},j),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=w,p(o)}else{let f="";return this.events.next(new Q(c.id,this.urlSerializer.serialize(c.extractedUrl),f,vt.IgnoredByUrlHandlingStrategy)),c.resolve(!1),W}}),E(c=>{let l=new pn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),S(c=>(this.currentTransition=o=T(d({},c),{guards:$s(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),Ks(this.environmentInjector,c=>this.events.next(c)),E(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw bt(this.urlSerializer,c.guardsResult);let l=new gn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),J(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",N.GuardRejected),!1)),cn(c=>{if(c.guards.canActivateChecks.length)return p(c).pipe(E(l=>{let h=new vn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}),k(l=>{let h=!1;return p(l).pipe(Co(this.paramsInheritanceStrategy,this.environmentInjector),E({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(l,"",N.NoDataFromResolver)}}))}),E(l=>{let h=new mn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}))}),cn(c=>{let l=h=>{var w;let f=[];(w=h.routeConfig)!=null&&w.loadComponent&&!h.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(h.routeConfig).pipe(E(R=>{h.component=R}),S(()=>{})));for(let R of h.children)f.push(...l(R));return f};return Je(l(c.targetSnapshot.root)).pipe(Pt(null),se(1))}),cn(()=>this.afterPreactivation()),k(()=>{var f;let{currentSnapshot:c,targetSnapshot:l}=o,h=(f=this.createViewTransition)==null?void 0:f.call(this,this.environmentInjector,c.root,l.root);return h?A(h).pipe(S(()=>o)):p(o)}),S(c=>{let l=Us(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=T(d({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),E(()=>{this.events.next(new _e)}),ks(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),se(1),E({next:c=>{var l;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new z(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),(l=this.titleStrategy)==null||l.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Yn(this.transitionAbortSubject.pipe(E(c=>{throw c}))),et(()=>{var c;!a&&!u&&this.cancelNavigationTransition(o,"",N.SupersededByNewNavigation),((c=this.currentTransition)==null?void 0:c.id)===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),re(c=>{if(u=!0,mi(c))this.events.next(new V(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),js(c)?this.events.next(new ge(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let l=new $e(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let h=F(this.environmentInjector,()=>{var f;return(f=this.navigationErrorHandler)==null?void 0:f.call(this,l)});if(h instanceof Fe){let{message:f,cancellationCode:w}=bt(this.urlSerializer,h);this.events.next(new V(o.id,this.urlSerializer.serialize(o.extractedUrl),f,w)),this.events.next(new ge(h.redirectTo,h.navigationBehaviorOptions))}else{this.events.next(l);let f=t.errorHandler(c);o.resolve(!!f)}}catch(h){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(h)}}return W}))}))}cancelNavigationTransition(t,r,s){let o=new V(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){var t,r;return((t=this.currentTransition)==null?void 0:t.extractedUrl.toString())!==((r=this.currentTransition)==null?void 0:r.currentUrlTree.toString())}isUpdatedBrowserUrl(){var s,o,a;let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=((s=this.currentNavigation)==null?void 0:s.targetBrowserUrl)??((o=this.currentNavigation)==null?void 0:o.extractedUrl);return t.toString()!==(r==null?void 0:r.toString())&&!((a=this.currentNavigation)!=null&&a.extras.skipLocationChange)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Uo(n){return n!==Le}var xo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>g(Lo),providedIn:"root"});let n=e;return n})(),xn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},Lo=(()=>{let e=class e extends xn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=_t(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Mi=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>g(jo),providedIn:"root"});let n=e;return n})(),jo=(()=>{let e=class e extends Mi{constructor(){super(...arguments),this.location=g(Me),this.urlSerializer=g(Ge),this.options=g(Qe,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(_n),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new q,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=di(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var t;return this.canceledNavigationResolution!=="computed"?this.currentPageId:((t=this.restoredState())==null?void 0:t.\u0275routerPageId)??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof pe)this.stateMemento=this.createStateMemento();else if(t instanceof Q)this.rawUrlTree=r.initialUrl;else if(t instanceof mt){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??s,r)}}else t instanceof _e?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):t instanceof V&&(t.code===N.GuardRejected||t.code===N.NoDataFromResolver)?this.restoreHistory(r):t instanceof $e?this.restoreHistory(r,!0):t instanceof z&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let s=t instanceof q?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=d(d({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=d(d({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&o===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=_t(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ue=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Ue||{});function Ti(n,e){n.events.pipe(J(i=>i instanceof z||i instanceof V||i instanceof $e||i instanceof Q),S(i=>i instanceof z||i instanceof Q?Ue.COMPLETE:(i instanceof V?i.code===N.Redirect||i.code===N.SupersededByNewNavigation:!1)?Ue.REDIRECTING:Ue.FAILED),J(i=>i!==Ue.REDIRECTING),se(1)).subscribe(()=>{e()})}function ko(n){throw n}var $o={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_o={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},B=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var t;this.disposed=!1,this.console=g(rt),this.stateManager=g(Mi),this.options=g(Qe,{optional:!0})||{},this.pendingTasks=g(rr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(zn),this.urlSerializer=g(Ge),this.location=g(Me),this.urlHandlingStrategy=g(_n),this._events=new G,this.errorHandler=this.options.errorHandler||ko,this.navigated=!1,this.routeReuseStrategy=g(xo),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=((t=g(Ve,{optional:!0}))==null?void 0:t.flat())??[],this.componentInputBindingEnabled=!!g(Mt,{optional:!0}),this.eventsSubscription=new Hn,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof V&&r.code!==N.Redirect&&r.code!==N.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof z)this.navigated=!0;else if(r instanceof ge){let a=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c=d({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Uo(s.source)},a);this.scheduleNavigation(u,Le,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Fo(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Le,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)}))}navigateToSyncWithBrowser(t,r,s){let o={replaceUrl:!0},a=s!=null&&s.navigationId?s:null;if(s){let c=d({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let u=this.parseUrl(t);this.scheduleNavigation(u,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(kn),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(t,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:u,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:a,h=null;switch(u){case"merge":h=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let w=s?s.snapshot:this.routerState.snapshot.root;f=ci(w)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),f=this.currentUrlTree.root}return ui(f,t,h,l??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=ne(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Le,null,r)}navigate(t,r={skipLocationChange:!1}){return zo(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let s;if(r===!0?s=d({},$o):r===!1?s=d({},_o):s=r,ne(t))return Fr(this.currentUrlTree,t,s);let o=this.parseUrl(t);return Fr(this.currentUrlTree,o,s)}removeEmptyProps(t){return Object.entries(t).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(t,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,w)=>{u=f,c=w});let h=this.pendingTasks.add();return Ti(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function zo(n){for(let e=0;e{let e=class e{constructor(t,r,s,o,a,u){var l;this.router=t,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=u,this.href=null,this.onChanges=new G,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=(l=a.nativeElement.tagName)==null?void 0:l.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=t.events.subscribe(h=>{h instanceof z&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ne(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,r,s,o,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(t!==0||r||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,c),!this.isAnchorElement}ngOnDestroy(){var t;(t=this.subscription)==null||t.unsubscribe()}updateHref(){var s;let t=this.urlTree;this.href=t!==null&&this.locationStrategy?(s=this.locationStrategy)==null?void 0:s.prepareExternalUrl(this.router.serializeUrl(t)):null;let r=this.href===null?null:or(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,t,r):s.removeAttribute(o,t)}get urlTree(){return this.routerLinkInput===null?null:ne(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)($(B),$(Y),nr("tabindex"),$(qt),$(Ht),$(Ee))},e.\u0275dir=tt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&gr("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&fr("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ot],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ot],replaceUrl:[2,"replaceUrl","replaceUrl",ot],routerLink:"routerLink"},standalone:!0,features:[hr,nt]});let n=e;return n})(),ec=(()=>{let e=class e{get isActive(){return this._isActive}constructor(t,r,s,o,a){this.router=t,this.element=r,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new oe,this.routerEventsSubscription=t.events.subscribe(u=>{u instanceof z&&this.update()})}ngAfterContentInit(){p(this.links.changes,p(null)).pipe(Se()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var r;(r=this.linkInputChangesSubscription)==null||r.unsubscribe();let t=[...this.links.toArray(),this.link].filter(s=>!!s).map(s=>s.onChanges);this.linkInputChangesSubscription=A(t).pipe(Se()).subscribe(s=>{this._isActive!==this.isLinkActive(this.router)(s)&&this.update()})}set routerLinkActive(t){let r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(s=>!!s)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),(t=this.linkInputChangesSubscription)==null||t.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let r=Ho(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?t.isActive(o,r):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}};e.\u0275fac=function(r){return new(r||e)($(B),$(Ht),$(qt),$(st),$(Kr,8))},e.\u0275dir=tt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,s,o){if(r&1&&vr(o,Kr,5),r&2){let a;mr(a=yr())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[nt]});let n=e;return n})();function Ho(n){return!!n.paths}var Et=class{};var Bo=(()=>{let e=class e{constructor(t,r,s,o,a){this.router=t,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(J(t=>t instanceof z),ie(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Gt(o.providers,t,`Route: ${o.path}`));let a=o._injector??t,u=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(u,o.children??o._loadedRoutes))}return A(s).pipe(Se())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(t,r):s=p(null);let o=s.pipe(D(a=>a===null?p(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return A([o,a]).pipe(Se())}else return o})}};e.\u0275fac=function(r){return new(r||e)(y(B),y(it),y(Re),y(Et),y($n))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ai=new M(""),Vo=(()=>{let e=class e{constructor(t,r,s,o,a={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||(a.scrollPositionRestoration="disabled"),a.anchorScrolling||(a.anchorScrolling="disabled")}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof z?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Q&&t.code===vt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof yt&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new yt(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){var t,r;(t=this.routerEventsSubscription)==null||t.unsubscribe(),(r=this.scrollEventsSubscription)==null||r.unsubscribe()}};e.\u0275fac=function(r){ar()},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function tc(n,...e){return $t([{provide:Ve,multi:!0,useValue:n},[],{provide:Y,useFactory:Di,deps:[B]},{provide:Zt,multi:!0,useFactory:Oi},e.map(i=>i.\u0275providers)])}function Di(n){return n.routerState.root}function Ye(n,e){return{\u0275kind:n,\u0275providers:e}}function Oi(){let n=g(zt);return e=>{var s,o;let i=n.get(Kt);if(e!==i.components[0])return;let t=n.get(B),r=n.get(Ni);n.get(Fn)===1&&t.initialNavigation(),(s=n.get(Pi,null,Lt.Optional))==null||s.setUpPreloading(),(o=n.get(Ai,null,Lt.Optional))==null||o.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var Ni=new M("",{factory:()=>new G}),Fn=new M("",{providedIn:"root",factory:()=>1});function qo(){return Ye(2,[{provide:Fn,useValue:0},{provide:Wt,multi:!0,deps:[zt],useFactory:e=>{let i=e.get(Mr,Promise.resolve());return()=>i.then(()=>new Promise(t=>{let r=e.get(B),s=e.get(Ni);Ti(r,()=>{t(!0)}),e.get(zn).afterPreactivation=()=>(t(!0),s.closed?p(void 0):s),r.initialNavigation()}))}}])}function Go(){return Ye(3,[{provide:Wt,multi:!0,useFactory:()=>{let e=g(B);return()=>{e.setUpLocationChangeListener()}}},{provide:Fn,useValue:2}])}var Pi=new M("");function Wo(n){return Ye(0,[{provide:Pi,useExisting:Bo},{provide:Et,useExisting:n}])}function Zo(){return Ye(8,[qr,{provide:Mt,useExisting:qr}])}function Ko(n){let e=[{provide:Ii,useValue:Oo},{provide:Ei,useValue:d({skipNextTransition:!!(n!=null&&n.skipInitialTransition)},n)}];return Ye(9,e)}var Qr=new M("ROUTER_FORROOT_GUARD"),Qo=[Me,{provide:Ge,useClass:fe},B,Ze,{provide:Y,useFactory:Di,deps:[B]},$n,[]],nc=(()=>{let e=class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[Qo,[],{provide:Ve,multi:!0,useValue:t},{provide:Qr,useFactory:ea,deps:[[B,new jt,new Jn]]},{provide:Qe,useValue:r||{}},r!=null&&r.useHash?Xo():Jo(),Yo(),r!=null&&r.preloadingStrategy?Wo(r.preloadingStrategy).\u0275providers:[],r!=null&&r.initialNavigation?ta(r):[],r!=null&&r.bindToComponentInputs?Zo().\u0275providers:[],r!=null&&r.enableViewTransitions?Ko().\u0275providers:[],na()]}}static forChild(t){return{ngModule:e,providers:[{provide:Ve,multi:!0,useValue:t}]}}};e.\u0275fac=function(r){return new(r||e)(y(Qr,8))},e.\u0275mod=kt({type:e}),e.\u0275inj=xt({});let n=e;return n})();function Yo(){return{provide:Ai,useFactory:()=>{let n=g(Nr),e=g(K),i=g(Qe),t=g(zn),r=g(Ge);return i.scrollOffset&&n.setOffset(i.scrollOffset),new Vo(r,t,n,e,i)}}}function Xo(){return{provide:Ee,useClass:Ar}}function Jo(){return{provide:Ee,useClass:Tr}}function ea(n){return"guarded"}function ta(n){return[n.initialNavigation==="disabled"?Go().\u0275providers:[],n.initialNavigation==="enabledBlocking"?qo().\u0275providers:[]]}var Yr=new M("");function na(){return[{provide:Yr,useFactory:Oi},{provide:Zt,multi:!0,useExisting:Yr}]}export{at as a,Ur as b,xa as c,bn as d,Y as e,Ps as f,B as g,Kr as h,ec as i,tc as j,nc as k}; diff --git a/chunk-G2BQMJPO.js b/chunk-G2BQMJPO.js new file mode 100644 index 000000000..4e7f44a5a --- /dev/null +++ b/chunk-G2BQMJPO.js @@ -0,0 +1,4 @@ +import{Ad as d,Wb as l,Xb as u,df as c,lf as m,mb as s,nf as p,qa as n,sa as o}from"./chunk-ZFID6WDR.js";var g=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=n({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-title"],standalone:!0,features:[u],decls:0,vars:0,template:function(i,r){},styles:[`[tuiTitle]{position:relative;display:flex;flex-direction:column;text-align:left;gap:.25rem;margin:0;font:var(--tui-font-text-ui-m)}[tuiTitle][data-size=s]{gap:.125rem;font:var(--tui-font-text-s)}[tuiTitle][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-xs)}[tuiTitle][data-size=m]{gap:.125rem;font:var(--tui-font-heading-5)}[tuiTitle][data-size=m] [tuiSubtitle]{font:var(--tui-font-text-m)}[tuiTitle][data-size=l]{gap:.5rem;font:var(--tui-font-heading-3)}[tuiTitle][data-size=l] [tuiSubtitle]{font:var(--tui-font-text-m)}[tuiSubtitle]{font:var(--tui-font-text-ui-s)} +`],encapsulation:2,changeDetection:0});let e=t;return e})(),b=(()=>{let t=class t{constructor(){this.nothing=d(g),this.size=""}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=o({type:t,selectors:[["","tuiTitle",""]],hostAttrs:["tuiTitle",""],hostVars:1,hostBindings:function(i,r){i&2&&s("data-size",r.size||null)},inputs:{size:[0,"tuiTitle","size"]},standalone:!0});let e=t;return e})();var h=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=n({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-card"],standalone:!0,features:[u],decls:0,vars:0,template:function(i,r){},styles:[`[tuiCardMedium],[tuiCardLarge]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;position:relative;display:flex;align-items:flex-start;flex-shrink:0;text-decoration:none;overscroll-behavior:contain}[tuiCardMedium][tuiTitle],[tuiCardLarge][tuiTitle],[tuiCardMedium] [tuiTitle]:not([tuiCell] *),[tuiCardLarge] [tuiTitle]:not([tuiCell] *){font-weight:700}[tuiCardMedium] [tuiTitle],[tuiCardLarge] [tuiTitle],[tuiCardMedium] [tuiSubtitle],[tuiCardLarge] [tuiSubtitle]{max-width:100%}[tuiCardMedium]>*,[tuiCardLarge]>*{scrollbar-width:none;-ms-overflow-style:none}[tuiCardMedium]>*::-webkit-scrollbar,[tuiCardLarge]>*::-webkit-scrollbar,[tuiCardMedium]>*::-webkit-scrollbar-thumb,[tuiCardLarge]>*::-webkit-scrollbar-thumb{display:none}[tuiCardMedium]{width:8.75rem;height:8.75rem;flex-direction:column;justify-content:space-between;padding:.75rem;border-radius:var(--tui-radius-l);box-sizing:border-box}[tuiCardMedium][tuiTitle]{padding:.625rem .75rem}[tuiCardMedium] [tuiTitle]{margin:-.125rem 0}[tuiCardMedium] [tuiSubtitle]{color:var(--tui-text-primary)}[tuiCardLarge][data-space]{--t-gap: .75rem;--t-radius: var(--tui-radius-l);--t-comp: -.25rem;--t-padding: .75rem;--t-dim: calc(var(--t-padding) + var(--t-comp));font:var(--tui-font-text-m);padding:var(--t-padding);border-radius:var(--t-radius);box-sizing:border-box}[tuiCardLarge][data-space][data-space=normal]{--t-radius: 1.5rem;--t-padding: 1.5rem;--t-gap: 1.5rem}[tuiCardLarge][data-space][data-space=compact]{--t-radius: 1rem;--t-padding: 1.25rem;--t-gap: 1.25rem}[tuiCardLarge][data-space]:not([tuiCell],[tuiHeader]){flex-direction:column;gap:var(--t-gap);align-items:stretch}[tuiCardLarge][data-space]:not([tuiCell],[tuiHeader])>:last-child:not([tuiCell]){margin-top:auto}[tuiCardLarge][data-space][tuiHeader]{padding:var(--t-dim) var(--t-dim) var(--t-dim) var(--t-padding)}[tuiCardLarge][data-space][tuiHeader] [tuiLink]:last-child{margin-right:calc(-1 * var(--t-comp))}[tuiCardLarge][data-space]>[tuiHeader]{margin:var(--t-comp) var(--t-comp) calc(1.5 * var(--t-comp)) 0}[tuiCardLarge][data-space]>[tuiHeader] [tuiLink]:last-child{margin-right:calc(-1 * var(--t-comp))}[tuiCardLarge][data-space] [tuiCell]{width:-webkit-fill-available;width:-moz-available;width:stretch;padding:.5rem;margin:-.5rem -.5rem -.75rem;border-radius:var(--tui-radius-l)}[tuiCardLarge][data-space]>[tuiLink]:last-child{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-bottom:var(--t-comp)} +`],encapsulation:2,changeDetection:0});let e=t;return e})();var y=(()=>{let t=class t{constructor(){this.nothing=d(h),this.space="normal"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=o({type:t,selectors:[["","tuiCardLarge",""]],hostAttrs:["tuiCardLarge",""],hostVars:1,hostBindings:function(i,r){i&2&&s("data-space",r.space||"normal")},inputs:{space:[0,"tuiCardLarge","space"]},standalone:!0});let e=t;return e})();var v=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=n({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-header"],standalone:!0,features:[u],decls:0,vars:0,template:function(i,r){},styles:[`[tuiHeader]{position:relative;display:flex;align-items:flex-start;box-sizing:content-box;color:var(--tui-text-primary);text-align:left}[tuiHeader] [tuiTitle]{flex-grow:2}[tuiHeader] [tuiAccessories]{display:flex;align-items:center;gap:.75rem}[tuiHeader] [tuiAccessories]:before{content:"\\200b";visibility:hidden}[tuiHeader] [tuiSubtitle]{font:var(--tui-font-text-m);color:var(--tui-text-secondary)}[tuiHeader] [tuiCaption]{font:var(--tui-font-text-s);color:var(--tui-text-secondary);font-weight:500;text-transform:uppercase}[tuiHeader][data-size=xxl] [tuiTitle],[tuiHeader][data-size=xxl] [tuiAccessories]{font:var(--tui-font-heading-1)}[tuiHeader][data-size=xl] [tuiTitle],[tuiHeader][data-size=xl] [tuiAccessories]{font:var(--tui-font-heading-2)}[tuiHeader][data-size=l] [tuiTitle],[tuiHeader][data-size=l] [tuiAccessories]{font:var(--tui-font-heading-3)}[tuiHeader][data-size=m] [tuiTitle],[tuiHeader][data-size=m] [tuiAccessories]{font:var(--tui-font-heading-4)}[tuiHeader][data-size=s] [tuiTitle],[tuiHeader][data-size=s] [tuiAccessories]{font:var(--tui-font-heading-5)}[tuiHeader][data-size=xs] [tuiTitle],[tuiHeader][data-size=xs] [tuiAccessories]{font:var(--tui-font-heading-6)}[tuiHeader][data-size=xxs] [tuiTitle],[tuiHeader][data-size=xxs] [tuiAccessories]{font:var(--tui-font-text-xl)}[tuiHeader][data-size=xxl] [tuiSubtitle],[tuiHeader][data-size=xl] [tuiSubtitle],[tuiHeader][data-size=l] [tuiSubtitle]{font:var(--tui-font-text-l)}tui-root._mobile [tuiHeader] [tuiAccessories]{gap:1rem}tui-root._mobile [tuiHeader][data-size=xxs] [tuiTitle],tui-root._mobile [tuiHeader][data-size=xxs] [tuiAccessories]{font:var(--tui-font-heading-6)} +`],encapsulation:2,changeDetection:0});let e=t;return e})(),L=(()=>{let t=class t{constructor(){this.nothing=d(v),this.size="s"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=o({type:t,selectors:[["","tuiHeader",""]],hostAttrs:["tuiHeader",""],hostVars:1,hostBindings:function(i,r){i&2&&s("data-size",r.size||"s")},inputs:{size:[0,"tuiHeader","size"]},standalone:!0,features:[l([m({size:"s"}),c({size:"s"}),p({size:"m"})])]});let e=t;return e})();export{b as a,y as b,L as c}; diff --git a/chunk-HIUNHKUB.js b/chunk-HIUNHKUB.js deleted file mode 100644 index 10a2d61b3..000000000 --- a/chunk-HIUNHKUB.js +++ /dev/null @@ -1,18 +0,0 @@ -import{a as M,b as K,c as sc,d as le,e as ti}from"./chunk-HFDGAYQF.js";function Ph(t,e){return Object.is(t,e)}var we=null,Xi=!1,as=1,Ut=Symbol("SIGNAL");function Y(t){let e=we;return we=t,e}function Rh(){return we}function j0(){return Xi}var ni={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 cs(t){if(Xi)throw new Error("");if(we===null)return;we.consumerOnSignalRead(t);let e=we.nextProducerIndex++;if(ps(we),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ds(t){ps(t);for(let e=0;e0}function ps(t){t.producerNode??(t.producerNode=[]),t.producerIndexOfThis??(t.producerIndexOfThis=[]),t.producerLastReadVersion??(t.producerLastReadVersion=[])}function Hh(t){t.liveConsumerNode??(t.liveConsumerNode=[]),t.liveConsumerIndexOfThis??(t.liveConsumerIndexOfThis=[])}function Uh(t){return t.producerNode!==void 0}function $h(t){let e=Object.create(H0);e.computation=t;let n=()=>{if(kh(e),cs(e),e.value===us)throw e.error;return e.value};return n[Ut]=e,n}var ac=Symbol("UNSET"),uc=Symbol("COMPUTING"),us=Symbol("ERRORED"),H0=K(M({},ni),{value:ac,dirty:!0,error:null,equal:Ph,producerMustRecompute(t){return t.value===ac||t.value===uc},producerRecomputeValue(t){if(t.value===uc)throw new Error("Detected cycle in computations.");let e=t.value;t.value=uc;let n=eo(t),r;try{r=t.computation()}catch(i){r=us,t.error=i}finally{ls(t,n)}if(e!==ac&&e!==us&&r!==us&&t.equal(e,r)){t.value=e;return}t.value=r,t.version++}});function U0(){throw new Error}var zh=U0;function Gh(){zh()}function Wh(t){zh=t}var cc=null;function qh(t){let e=Object.create(dc);e.value=t;let n=()=>(cs(e),e.value);return n[Ut]=e,n}function ms(t,e){Vh()||Gh(),t.equal(t.value,e)||(t.value=e,$0(t))}function Yh(t,e){Vh()||Gh(),ms(t,e(t.value))}var dc=K(M({},ni),{equal:Ph,value:void 0});function $0(t){t.version++,B0(),Lh(t),cc==null||cc()}function Zh(t,e,n){let r=Object.create(z0);n&&(r.consumerAllowSignalWrites=!0),r.fn=t,r.schedule=e;let i=u=>{r.cleanupFn=u};function o(u){return u.fn===null&&u.schedule===null}function s(u){o(u)||(fs(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=lc)}let a=()=>{if(r.fn===null)return;if(j0())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!ds(r))return;r.hasRun=!0;let u=eo(r);try{r.cleanupFn(),r.cleanupFn=lc,r.fn(i)}finally{ls(r,u)}};return r.ref={notify:()=>jh(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[Ut]:r},r.ref}var lc=()=>{},z0=K(M({},ni),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:lc});function P(t){return typeof t=="function"}function ri(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var gs=ri(t=>function(n){t(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 fr(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Ee=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage: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(P(r))try{r()}catch(o){e=o instanceof gs?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Qh(o)}catch(s){e=e??[],s instanceof gs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new gs(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Qh(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&fr(n,e)}remove(e){let{_finalizers:n}=this;n&&fr(n,e),e instanceof t&&e._removeParent(this)}};Ee.EMPTY=(()=>{let t=new Ee;return t.closed=!0,t})();var fc=Ee.EMPTY;function ys(t){return t instanceof Ee||t&&"closed"in t&&P(t.remove)&&P(t.add)&&P(t.unsubscribe)}function Qh(t){P(t)?t():t.unsubscribe()}var $t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ii={setTimeout(t,e,...n){let{delegate:r}=ii;return r!=null&&r.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=ii;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function vs(t){ii.setTimeout(()=>{let{onUnhandledError:e}=$t;if(e)e(t);else throw t})}function bt(){}var Kh=hc("C",void 0,void 0);function Xh(t){return hc("E",void 0,t)}function Jh(t){return hc("N",t,void 0)}function hc(t,e,n){return{kind:t,value:e,error:n}}var hr=null;function oi(t){if($t.useDeprecatedSynchronousErrorHandling){let e=!hr;if(e&&(hr={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=hr;if(hr=null,n)throw r}}else t()}function ep(t){$t.useDeprecatedSynchronousErrorHandling&&hr&&(hr.errorThrown=!0,hr.error=t)}var pr=class extends Ee{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ys(e)&&e.add(this)):this.destination=q0}static create(e,n,r){return new Dn(e,n,r)}next(e){this.isStopped?mc(Jh(e),this):this._next(e)}error(e){this.isStopped?mc(Xh(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?mc(Kh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},G0=Function.prototype.bind;function pc(t,e){return G0.call(t,e)}var gc=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Ds(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Ds(r)}else Ds(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Ds(n)}}},Dn=class extends pr{constructor(e,n,r){super();let i;if(P(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&$t.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&pc(e.next,o),error:e.error&&pc(e.error,o),complete:e.complete&&pc(e.complete,o)}):i=e}this.destination=new gc(i)}};function Ds(t){$t.useDeprecatedSynchronousErrorHandling?ep(t):vs(t)}function W0(t){throw t}function mc(t,e){let{onStoppedNotification:n}=$t;n&&ii.setTimeout(()=>n(t,e))}var q0={closed:!0,next:bt,error:W0,complete:bt};var si=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Be(t){return t}function to(...t){return yc(t)}function yc(t){return t.length===0?Be:t.length===1?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}var I=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=Z0(n)?n:new Dn(n,r,i);return oi(()=>{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=tp(r),new r((i,o)=>{let s=new Dn({next:a=>{try{n(a)}catch(u){o(u),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)}[si](){return this}pipe(...n){return yc(n)(this)}toPromise(n){return n=tp(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function tp(t){var e;return(e=t??$t.Promise)!==null&&e!==void 0?e:Promise}function Y0(t){return t&&P(t.next)&&P(t.error)&&P(t.complete)}function Z0(t){return t&&t instanceof pr||Y0(t)&&ys(t)}function vc(t){return P(t==null?void 0:t.lift)}function T(t){return e=>{if(vc(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function C(t,e,n,r,i){return new Dc(t,e,n,r,i)}var Dc=class extends pr{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function bc(){return T((t,e)=>{let n=null;t._refCount++;let r=C(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let i=t._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var _c=class extends I{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,vc(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e==null||e.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ee;let n=this.getSubject();e.add(this.source.subscribe(C(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ee.EMPTY)}return e}refCount(){return bc()(this)}};var ai={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=ai;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let i=e(o=>{n=void 0,t(o)});return new Ee(()=>n==null?void 0:n(i))},requestAnimationFrame(...t){let{delegate:e}=ai;return((e==null?void 0:e.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=ai;return((e==null?void 0:e.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0};var np=ri(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Pe=(()=>{class t extends I{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new bs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new np}next(n){oi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){oi(()=>{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(){oi(()=>{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?fc:(this.currentObservers=null,o.push(n),new Ee(()=>{this.currentObservers=null,fr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new I;return n.source=this,n}}return t.create=(e,n)=>new bs(e,n),t})(),bs=class extends Pe{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:fc}};var zt=class extends Pe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var no={now(){return(no.delegate||Date).now()},delegate:void 0};var mr=class extends Pe{constructor(e=1/0,n=1/0,r=no){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(e),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;srp(e)&&t()),e},clearImmediate(t){rp(t)}};var{setImmediate:K0,clearImmediate:X0}=ip,io={setImmediate(...t){let{delegate:e}=io;return((e==null?void 0:e.setImmediate)||K0)(...t)},clearImmediate(t){let{delegate:e}=io;return((e==null?void 0:e.clearImmediate)||X0)(t)},delegate:void 0};var Es=class extends Bn{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=io.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,n,r=0){var i;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:o}=e;n!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==n&&(io.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}};var ui=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};ui.now=no.now;var Hn=class extends ui{constructor(e,n=ui.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}};var ws=class extends Hn{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,i;e=e||r.shift();do if(i=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,i){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw i}}};var J0=new ws(Es);var bn=new Hn(Bn),op=bn;var Cs=class extends Bn{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=ai.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,n,r=0){var i;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:o}=e;n!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==n&&(ai.cancelAnimationFrame(n),e._scheduled=void 0)}};var Is=class extends Hn{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,i;e=e||r.shift();do if(i=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,i){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw i}}};var eb=new Is(Cs);var Nt=new I(t=>t.complete());function Ms(t){return t&&P(t.schedule)}function Cc(t){return t[t.length-1]}function ci(t){return P(Cc(t))?t.pop():void 0}function en(t){return Ms(Cc(t))?t.pop():void 0}function sp(t,e){return typeof Cc(t)=="number"?t.pop():e}function _n(t,e,n,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function up(t,e,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{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(t,e||[])).next())})}function ap(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function gr(t){return this instanceof gr?(this.v=t,this):new gr(t)}function cp(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(p){return Promise.resolve(p).then(h,d)}}function a(h,p){r[h]&&(i[h]=function(g){return new Promise(function(v,D){o.push([h,g,v,D])>1||u(h,g)})},p&&(i[h]=p(i[h])))}function u(h,p){try{c(r[h](p))}catch(g){m(o[0][3],g)}}function c(h){h.value instanceof gr?Promise.resolve(h.value.v).then(l,d):m(o[0][2],h)}function l(h){u("next",h)}function d(h){u("throw",h)}function m(h,p){h(p),o.shift(),o.length&&u(o[0][0],o[0][1])}}function lp(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof ap=="function"?ap(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var li=t=>t&&typeof t.length=="number"&&typeof t!="function";function Ts(t){return P(t==null?void 0:t.then)}function Ss(t){return P(t[si])}function As(t){return Symbol.asyncIterator&&P(t==null?void 0:t[Symbol.asyncIterator])}function xs(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function tb(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ns=tb();function Os(t){return P(t==null?void 0:t[Ns])}function Fs(t){return cp(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:i}=yield gr(n.read());if(i)return yield gr(void 0);yield yield gr(r)}}finally{n.releaseLock()}})}function Ps(t){return P(t==null?void 0:t.getReader)}function W(t){if(t instanceof I)return t;if(t!=null){if(Ss(t))return nb(t);if(li(t))return rb(t);if(Ts(t))return ib(t);if(As(t))return dp(t);if(Os(t))return ob(t);if(Ps(t))return sb(t)}throw xs(t)}function nb(t){return new I(e=>{let n=t[si]();if(P(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function rb(t){return new I(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,vs)})}function ob(t){return new I(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function dp(t){return new I(e=>{ab(t,e).catch(n=>e.error(n))})}function sb(t){return dp(Fs(t))}function ab(t,e){var n,r,i,o;return up(this,void 0,void 0,function*(){try{for(n=lp(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.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}}e.complete()})}function at(t,e,n,r=0,i=!1){let o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function Rs(t,e=0){return T((n,r)=>{n.subscribe(C(r,i=>at(r,t,()=>r.next(i),e),()=>at(r,t,()=>r.complete(),e),i=>at(r,t,()=>r.error(i),e)))})}function ks(t,e=0){return T((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function fp(t,e){return W(t).pipe(ks(e),Rs(e))}function hp(t,e){return W(t).pipe(ks(e),Rs(e))}function pp(t,e){return new I(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function mp(t,e){return new I(n=>{let r;return at(n,e,()=>{r=t[Ns](),at(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>P(r==null?void 0:r.return)&&r.return()})}function Ls(t,e){if(!t)throw new Error("Iterable cannot be null");return new I(n=>{at(n,e,()=>{let r=t[Symbol.asyncIterator]();at(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function gp(t,e){return Ls(Fs(t),e)}function yp(t,e){if(t!=null){if(Ss(t))return fp(t,e);if(li(t))return pp(t,e);if(Ts(t))return hp(t,e);if(As(t))return Ls(t,e);if(Os(t))return mp(t,e);if(Ps(t))return gp(t,e)}throw xs(t)}function nt(t,e){return e?yp(t,e):W(t)}function Ce(...t){let e=en(t);return nt(t,e)}function ub(t,e){let n=P(t)?t:()=>t,r=i=>i.error(n());return new I(e?i=>e.schedule(r,0,i):r)}function cb(t){return!!t&&(t instanceof I||P(t.lift)&&P(t.subscribe))}var yr=ri(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function vp(t){return t instanceof Date&&!isNaN(t)}function N(t,e){return T((n,r)=>{let i=0;n.subscribe(C(r,o=>{r.next(t.call(e,o,i++))}))})}var{isArray:lb}=Array;function db(t,e){return lb(e)?t(...e):t(e)}function di(t){return N(e=>db(t,e))}var{isArray:fb}=Array,{getPrototypeOf:hb,prototype:pb,keys:mb}=Object;function Vs(t){if(t.length===1){let e=t[0];if(fb(e))return{args:e,keys:null};if(gb(e)){let n=mb(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function gb(t){return t&&typeof t=="object"&&hb(t)===pb}function js(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function oo(...t){let e=en(t),n=ci(t),{args:r,keys:i}=Vs(t);if(r.length===0)return nt([],e);let o=new I(yb(r,e,i?s=>js(i,s):Be));return n?o.pipe(di(n)):o}function yb(t,e,n=Be){return r=>{Dp(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=nt(t[u],e),l=!1;c.subscribe(C(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Dp(t,e,n){t?at(n,t,e):e()}function bp(t,e,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,m=()=>{d&&!u.length&&!c&&e.complete()},h=g=>c{o&&e.next(g),c++;let v=!1;W(n(g,l++)).subscribe(C(e,D=>{i==null||i(D),o?h(D):e.next(D)},()=>{v=!0},void 0,()=>{if(v)try{for(c--;u.length&&cp(D)):p(D)}m()}catch(D){e.error(D)}}))};return t.subscribe(C(e,h,()=>{d=!0,m()})),()=>{a==null||a()}}function Gt(t,e,n=1/0){return P(e)?Gt((r,i)=>N((o,s)=>e(r,o,i,s))(W(t(r,i))),n):(typeof e=="number"&&(n=e),T((r,i)=>bp(r,i,t,n)))}function so(t=1/0){return Gt(Be,t)}function _p(){return so(1)}function vr(...t){return _p()(nt(t,en(t)))}function vb(t){return new I(e=>{W(t()).subscribe(e)})}function Ic(...t){let e=ci(t),{args:n,keys:r}=Vs(t),i=new I(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=m},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(r?js(r,a):a),o.complete())}))}});return e?i.pipe(di(e)):i}var Db=["addListener","removeListener"],bb=["addEventListener","removeEventListener"],_b=["on","off"];function ut(t,e,n,r){if(P(n)&&(r=n,n=void 0),r)return ut(t,e,n).pipe(di(r));let[i,o]=Cb(t)?bb.map(s=>a=>t[s](e,a,n)):Eb(t)?Db.map(Ep(t,e)):wb(t)?_b.map(Ep(t,e)):[];if(!i&&li(t))return Gt(s=>ut(s,e,n))(W(t));if(!i)throw new TypeError("Invalid event target");return new I(s=>{let a=(...u)=>s.next(1o(a)})}function Ep(t,e){return n=>r=>t[n](e,r)}function Eb(t){return P(t.addListener)&&P(t.removeListener)}function wb(t){return P(t.on)&&P(t.off)}function Cb(t){return P(t.addEventListener)&&P(t.removeEventListener)}function ct(t=0,e,n=op){let r=-1;return e!=null&&(Ms(e)?n=e:r=e),new I(i=>{let o=vp(t)?+t-n.now():t;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 Qe(...t){let e=en(t),n=sp(t,1/0),r=t;return r.length?r.length===1?W(r[0]):so(n)(nt(r,e)):Nt}var Mc=new I(bt);function Ne(t,e){return T((n,r)=>{let i=0;n.subscribe(C(r,o=>t.call(e,o,i++)&&r.next(o)))})}function wp(t){return T((e,n)=>{let r=!1,i=null,o=null,s=!1,a=()=>{if(o==null||o.unsubscribe(),o=null,r){r=!1;let c=i;i=null,n.next(c)}s&&n.complete()},u=()=>{o=null,s&&n.complete()};e.subscribe(C(n,c=>{r=!0,i=c,o||W(t(c)).subscribe(o=C(n,a,u))},()=>{s=!0,(!r||!o||o.closed)&&n.complete()}))})}function Ib(t,e=bn){return wp(()=>ct(t,e))}function ao(t){return T((e,n)=>{let r=null,i=!1,o;r=e.subscribe(C(n,void 0,void 0,s=>{o=W(t(s,ao(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Cp(t,e,n,r,i){return(o,s)=>{let a=n,u=e,c=0;o.subscribe(C(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function Tc(t,e){return P(e)?Gt(t,e,1):Gt(t,1)}function Sc(t){return T((e,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)}};e.subscribe(C(n,a=>{o==null||o.unsubscribe(),r=!0,i=a,o=C(n,s,bt),W(t(a)).subscribe(o)},()=>{s(),n.complete()},void 0,()=>{i=o=null}))})}function Mb(t,e=bn){return T((n,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,r.next(c)}};function u(){let c=s+t,l=e.now();if(l{o=c,s=e.now(),i||(i=e.schedule(u,t),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function Un(t){return T((e,n)=>{let r=!1;e.subscribe(C(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function tn(t){return t<=0?()=>Nt:T((e,n)=>{let r=0;e.subscribe(C(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function Ip(){return T((t,e)=>{t.subscribe(C(e,bt))})}function Ac(t){return N(()=>t)}function xc(t,e){return e?n=>vr(e.pipe(tn(1),Ip()),n.pipe(xc(t))):Gt((n,r)=>W(t(n,r)).pipe(tn(1),Ac(n)))}function Bs(t,e=bn){let n=ct(t,e);return xc(()=>n)}function Oe(t,e=Be){return t=t??Tb,T((n,r)=>{let i,o=!0;n.subscribe(C(r,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,r.next(s))}))})}function Tb(t,e){return t===e}function Hs(t=Sb){return T((e,n)=>{let r=!1;e.subscribe(C(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function Sb(){return new yr}function fi(t){return T((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Mp(t,e){let n=arguments.length>=2;return r=>r.pipe(t?Ne((i,o)=>t(i,o,r)):Be,tn(1),n?Un(e):Hs(()=>new yr))}function Nc(t){return t<=0?()=>Nt:T((e,n)=>{let r=[];e.subscribe(C(n,i=>{r.push(i),t{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Ab(t,e){let n=arguments.length>=2;return r=>r.pipe(t?Ne((i,o)=>t(i,o,r)):Be,Nc(1),n?Un(e):Hs(()=>new yr))}function xb(){return T((t,e)=>{let n,r=!1;t.subscribe(C(e,i=>{let o=n;n=i,r&&e.next([o,i]),r=!0}))})}function Dr(t){let e=1/0,n;return t!=null&&(typeof t=="object"?{count:e=1/0,delay:n}=t:e=t),e<=0?()=>Nt:T((r,i)=>{let o=0,s,a=()=>{if(s==null||s.unsubscribe(),s=null,n!=null){let c=typeof n=="number"?ct(n):W(n(o)),l=C(i,()=>{l.unsubscribe(),u()});c.subscribe(l)}else u()},u=()=>{let c=!1;s=r.subscribe(C(i,void 0,()=>{++o=2,!0))}function nn(t={}){let{connector:e=()=>new Pe,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,u,c=0,l=!1,d=!1,m=()=>{a==null||a.unsubscribe(),a=void 0},h=()=>{m(),s=u=void 0,l=d=!1},p=()=>{let g=s;h(),g==null||g.unsubscribe()};return T((g,v)=>{c++,!d&&!l&&m();let D=u=u??e();v.add(()=>{c--,c===0&&!d&&!l&&(a=Oc(p,i))}),D.subscribe(v),!s&&c>0&&(s=new Dn({next:x=>D.next(x),error:x=>{d=!0,m(),a=Oc(h,n,x),D.error(x)},complete:()=>{l=!0,m(),a=Oc(h,r),D.complete()}}),W(g).subscribe(s))})(o)}}function Oc(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new Dn({next:()=>{r.unsubscribe(),t()}});return W(e(...n)).subscribe(r)}function $n(t,e,n){let r,i=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:n}=t:r=t??1/0,nn({connector:()=>new mr(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function uo(t){return Ne((e,n)=>t<=n)}function Re(...t){let e=en(t);return T((n,r)=>{(e?vr(t,n,e):vr(t,n)).subscribe(r)})}function He(t,e){return T((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(C(r,u=>{i==null||i.unsubscribe();let c=0,l=o++;W(t(u,l)).subscribe(i=C(r,d=>r.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function lt(t){return T((e,n)=>{W(t).subscribe(C(n,()=>n.complete(),bt)),!n.closed&&e.subscribe(n)})}function Us(t,e=!1){return T((n,r)=>{let i=0;n.subscribe(C(r,o=>{let s=t(o,i++);(s||e)&&r.next(o),!s&&r.complete()}))})}function En(t,e,n){let r=P(t)||e||n?{next:t,error:e,complete:n}:t;return r?T((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(C(o,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Be}function Tp(t,e){return T((n,r)=>{let{leading:i=!0,trailing:o=!1}=e??{},s=!1,a=null,u=null,c=!1,l=()=>{u==null||u.unsubscribe(),u=null,o&&(h(),c&&r.complete())},d=()=>{u=null,c&&r.complete()},m=p=>u=W(t(p)).subscribe(C(r,l,d)),h=()=>{if(s){s=!1;let p=a;a=null,r.next(p),!c&&m(p)}};n.subscribe(C(r,p=>{s=!0,a=p,!(u&&!u.closed)&&(i?h():m(p))},()=>{c=!0,!(o&&s&&u&&!u.closed)&&r.complete()}))})}function Ob(t,e=bn,n){let r=ct(t,e);return Tp(()=>r,n)}function Fc(...t){let e=ci(t);return T((n,r)=>{let i=t.length,o=new Array(i),s=t.map(()=>!1),a=!1;for(let u=0;u{o[u]=c,!a&&!s[u]&&(s[u]=!0,(a=s.every(Be))&&(s=null))},bt));n.subscribe(C(r,u=>{if(a){let c=[u,...o];r.next(e?e(...c):c)}}))})}var bm="https://g.co/ng/security#xss",_=class extends Error{constructor(e,n){super(Kl(e,n)),this.code=e}};function Kl(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var _m=Symbol("InputSignalNode#UNSET"),Fb=K(M({},dc),{transformFn:void 0,applyValueToInputSignal(t,e){ms(t,e)}});function Em(t,e){let n=Object.create(Fb);n.value=t,n.transformFn=e==null?void 0:e.transform;function r(){if(cs(n),n.value===_m)throw new _(-950,!1);return n.value}return r[Ut]=n,r}function _o(t){return{toString:t}.toString()}var $s="__parameters__";function Pb(t){return function(...n){if(t){let r=t(...n);for(let i in r)this[i]=r[i]}}}function Aa(t,e,n){return _o(()=>{let r=Pb(e);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(u,c,l){let d=u.hasOwnProperty($s)?u[$s]:Object.defineProperty(u,$s,{value:[]})[$s];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Gn=globalThis;function de(t){for(let e in t)if(t[e]===de)return e;throw Error("Could not find renamed property on target object.")}function Rb(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function rt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(rt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` -`);return n===-1?e:e.substring(0,n)}function Sp(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var kb=de({__forward_ref__:de});function Tn(t){return t.__forward_ref__=Tn,t.toString=function(){return rt(this())},t}function $e(t){return wm(t)?t():t}function wm(t){return typeof t=="function"&&t.hasOwnProperty(kb)&&t.__forward_ref__===Tn}function L(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Rr(t){return{providers:t.providers||[],imports:t.imports||[]}}function xa(t){return Ap(t,Cm)||Ap(t,Im)}function Zj(t){return xa(t)!==null}function Ap(t,e){return t.hasOwnProperty(e)?t[e]:null}function Lb(t){let e=t&&(t[Cm]||t[Im]);return e||null}function xp(t){return t&&(t.hasOwnProperty(Np)||t.hasOwnProperty(Vb))?t[Np]:null}var Cm=de({\u0275prov:de}),Np=de({\u0275inj:de}),Im=de({ngInjectableDef:de}),Vb=de({ngInjectorDef:de}),b=class{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=L({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Mm(t){return t&&!!t.\u0275providers}var jb=de({\u0275cmp:de}),Bb=de({\u0275dir:de}),Hb=de({\u0275pipe:de}),Ub=de({\u0275mod:de}),ea=de({\u0275fac:de}),lo=de({__NG_ELEMENT_ID__:de}),Op=de({__NG_ENV_ID__:de});function wr(t){return typeof t=="string"?t:t==null?"":String(t)}function $b(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():wr(t)}function zb(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new _(-200,t)}function Xl(t,e){throw new _(-201,!1)}var Q=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Q||{}),Zc;function Tm(){return Zc}function dt(t){let e=Zc;return Zc=t,e}function Sm(t,e,n){let r=xa(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&Q.Optional)return null;if(e!==void 0)return e;Xl(t,"Injector")}var Gb={},fo=Gb,Qc="__NG_DI_FLAG__",ta="ngTempTokenPath",Wb="ngTokenPath",qb=/\n/gm,Yb="\u0275",Fp="__source",gi;function Zb(){return gi}function zn(t){let e=gi;return gi=t,e}function Qb(t,e=Q.Default){if(gi===void 0)throw new _(-203,!1);return gi===null?Sm(t,void 0,e):gi.get(t,e&Q.Optional?null:void 0,e)}function ve(t,e=Q.Default){return(Tm()||Qb)($e(t),e)}function f(t,e=Q.Default){return ve(t,Na(e))}function Na(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Kc(t){let e=[];for(let n=0;n ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):rt(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(qb,` - `)}`}var Qj=Oa(Aa("Inject",t=>({token:t})),-1),un=Oa(Aa("Optional"),8),Kj=Oa(Aa("Self"),2),Sn=Oa(Aa("SkipSelf"),4);function Cr(t,e){let n=t.hasOwnProperty(ea);return n?t[ea]:null}function e_(t,e,n){if(t.length!==e.length)return!1;for(let r=0;rArray.isArray(n)?Jl(n,e):e(n))}function Am(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function na(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function n_(t,e){let n=[];for(let r=0;re;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function i_(t,e,n){let r=Eo(t,e);return r>=0?t[r|1]=n:(r=~r,r_(t,r,e,n)),r}function Pc(t,e){let n=Eo(t,e);if(n>=0)return t[n|1]}function Eo(t,e){return o_(t,e,1)}function o_(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<e?i=o:r=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),r&2&&c!==d){if(Wt(r))return!1;s=!0}}}}return Wt(r)||s}function Wt(t){return(t&1)===0}function d_(t,e,n,r){if(e===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!==""&&!Wt(s)&&(e+=Rp(o,i),i=""),r=s,o=o||!Wt(r);n++}return i!==""&&(e+=Rp(o,i)),e}function y_(t){return t.map(g_).join(",")}function v_(t){let e=[],n=[],r=1,i=2;for(;r{let e=Lm(t),n=K(M({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Nm.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ho.Emulated,styles:t.styles||Ot,_:null,schemas:t.schemas||null,tView:null,id:""});Vm(n);let r=t.dependencies;return n.directiveDefs=Lp(r,!1),n.pipeDefs=Lp(r,!0),n.id=E_(n),n})}function D_(t){return Cn(t)||td(t)}function b_(t){return t!==null}function kr(t){return _o(()=>({type:t.type,bootstrap:t.bootstrap||Ot,declarations:t.declarations||Ot,imports:t.imports||Ot,exports:t.exports||Ot,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function kp(t,e){if(t==null)return wn;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=Yn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(n[o]=a!==Yn.None?[r,a]:r,e[o]=s):n[o]=r}return n}function E(t){return _o(()=>{let e=Lm(t);return Vm(e),e})}function Fa(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Cn(t){return t[jb]||null}function td(t){return t[Bb]||null}function Rm(t){return t[Hb]||null}function __(t){let e=Cn(t)||td(t)||Rm(t);return e!==null?e.standalone:!1}function km(t,e){let n=t[Ub]||null;if(!n&&e===!0)throw new Error(`Type ${rt(t)} does not have '\u0275mod' property.`);return n}function Lm(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||wn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ot,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:kp(t.inputs,e),outputs:kp(t.outputs),debugInfo:null}}function Vm(t){var e;(e=t.features)==null||e.forEach(n=>n(t))}function Lp(t,e){if(!t)return null;let n=e?Rm:D_;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(b_)}function E_(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of n)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function nd(t){return{\u0275providers:t}}function w_(...t){return{\u0275providers:jm(!0,t),\u0275fromNgModule:!0}}function jm(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Jl(e,s=>{let a=s;Jc(a,o,[],r)&&(i||(i=[]),i.push(a))}),i!==void 0&&Bm(i,o),n}function Bm(t,e){for(let n=0;n{e(o,r)})}}function Jc(t,e,n,r){if(t=$e(t),!t)return!1;let i=null,o=xp(t),s=!o&&Cn(t);if(!o&&!s){let u=t.ngModule;if(o=xp(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Jc(c,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{Jl(o.imports,l=>{Jc(l,e,n,r)&&(c||(c=[]),c.push(l))})}finally{}c!==void 0&&Bm(c,e)}if(!a){let c=Cr(i)||(()=>new i);e({provide:i,useFactory:c,deps:Ot},i),e({provide:xm,useValue:i,multi:!0},i),e({provide:ra,useValue:()=>ve(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;rd(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function rd(t,e){for(let n of t)Mm(n)&&(n=n.\u0275providers),Array.isArray(n)?rd(n,e):e(n)}var C_=de({provide:String,useValue:de});function Hm(t){return t!==null&&typeof t=="object"&&C_ in t}function I_(t){return!!(t&&t.useExisting)}function M_(t){return!!(t&&t.useFactory)}function bi(t){return typeof t=="function"}function T_(t){return!!t.useClass}var Um=new b(""),Zs={},S_={},Rc;function Pa(){return Rc===void 0&&(Rc=new ia),Rc}var Pt=class{},mo=class extends Pt{get destroyed(){return this._destroyed}constructor(e,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,tl(e,s=>this.processProvider(s)),this.records.set(xi,hi(void 0,this)),i.has("environment")&&this.records.set(Pt,hi(void 0,this));let o=this.records.get(Um);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(xm,Ot,Q.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=Y(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(),Y(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=zn(this),r=dt(void 0),i;try{return e()}finally{zn(n),dt(r)}}get(e,n=fo,r=Q.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Op))return e[Op](this);r=Na(r);let i,o=zn(this),s=dt(void 0);try{if(!(r&Q.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=F_(e)&&xa(e);c&&this.injectableDefInScope(c)?u=hi(el(e),Zs):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=r&Q.Self?Pa():this.parent;return n=r&Q.Optional&&n===fo?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[ta]=a[ta]||[]).unshift(rt(e)),o)throw a;return Xb(a,e,"R3InjectorError",this.source)}else throw a}finally{dt(s),zn(o)}}resolveInjectorInitializers(){let e=Y(null),n=zn(this),r=dt(void 0),i;try{let o=this.get(ra,Ot,Q.Self);for(let s of o)s()}finally{zn(n),dt(r),Y(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(rt(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new _(205,!1)}processProvider(e){e=$e(e);let n=bi(e)?e:$e(e&&e.provide),r=x_(e);if(!bi(e)&&e.multi===!0){let i=this.records.get(n);i||(i=hi(void 0,Zs,!0),i.factory=()=>Kc(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=Y(null);try{return n.value===Zs&&(n.value=S_,n.value=n.factory()),typeof n.value=="object"&&n.value&&O_(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{Y(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=$e(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function el(t){let e=xa(t),n=e!==null?e.factory:Cr(t);if(n!==null)return n;if(t instanceof b)throw new _(204,!1);if(t instanceof Function)return A_(t);throw new _(204,!1)}function A_(t){if(t.length>0)throw new _(204,!1);let n=Lb(t);return n!==null?()=>n.factory(t):()=>new t}function x_(t){if(Hm(t))return hi(void 0,t.useValue);{let e=$m(t);return hi(e,Zs)}}function $m(t,e,n){let r;if(bi(t)){let i=$e(t);return Cr(i)||el(i)}else if(Hm(t))r=()=>$e(t.useValue);else if(M_(t))r=()=>t.useFactory(...Kc(t.deps||[]));else if(I_(t))r=()=>ve($e(t.useExisting));else{let i=$e(t&&(t.useClass||t.provide));if(N_(t))r=()=>new i(...Kc(t.deps));else return Cr(i)||el(i)}return r}function hi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function N_(t){return!!t.deps}function O_(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function F_(t){return typeof t=="function"||typeof t=="object"&&t instanceof b}function tl(t,e){for(let n of t)Array.isArray(n)?tl(n,e):n&&Mm(n)?tl(n.\u0275providers,e):e(n)}function id(t,e){t instanceof mo&&t.assertNotDestroyed();let n,r=zn(t),i=dt(void 0);try{return e()}finally{zn(r),dt(i)}}function zm(){return Tm()!==void 0||Zb()!=null}function Ni(t){if(!zm())throw new _(-203,!1)}function P_(t){return typeof t=="function"}var cn=0,H=1,k=2,Je=3,qt=4,ht=5,_i=6,yi=7,Ke=8,Ei=9,sn=10,be=11,go=12,Vp=13,Oi=14,_t=15,Ir=16,pi=17,Yt=18,Ra=19,Gm=20,Wn=21,vi=22,Ft=23,_e=25,od=1;var Mr=7,oa=8,wi=9,Xe=10,sa=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(sa||{});function qn(t){return Array.isArray(t)&&typeof t[od]=="object"}function An(t){return Array.isArray(t)&&t[od]===!0}function sd(t){return(t.flags&4)!==0}function ka(t){return t.componentOffset>-1}function La(t){return(t.flags&1)===1}function In(t){return!!t.template}function nl(t){return(t[k]&512)!==0}var rl=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Wm(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function Zt(){return qm}function qm(t){return t.type.prototype.ngOnChanges&&(t.setInput=k_),R_}Zt.ngInherit=!0;function R_(){let t=Zm(this),e=t==null?void 0:t.current;if(e){let n=t.previous;if(n===wn)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function k_(t,e,n,r,i){let o=this.declaredInputs[r],s=Zm(t)||L_(t,{previous:wn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new rl(c&&c.currentValue,n,u===wn),Wm(t,e,i,n)}var Ym="__ngSimpleChanges__";function Zm(t){return t[Ym]||null}function L_(t,e){return t[Ym]=e}var jp=null;var rn=function(t,e,n){jp!=null&&jp(t,e,n)},Qm="svg",V_="math";function an(t){for(;Array.isArray(t);)t=t[cn];return t}function j_(t){for(;Array.isArray(t);){if(typeof t[od]=="object")return t;t=t[cn]}return null}function Km(t,e){return an(e[t])}function Rt(t,e){return an(e[t.index])}function ad(t,e){return t.data[e]}function Lr(t,e){return t[e]}function Kn(t,e){let n=e[t];return qn(n)?n:n[cn]}function B_(t){return(t[k]&4)===4}function ud(t){return(t[k]&128)===128}function H_(t){return An(t[Je])}function Zn(t,e){return e==null?null:t[e]}function Xm(t){t[pi]=0}function Jm(t){t[k]&1024||(t[k]|=1024,ud(t)&&Va(t))}function U_(t,e){for(;t>0;)e=e[Oi],t--;return e}function yo(t){var e;return!!(t[k]&9216||(e=t[Ft])!=null&&e.dirty)}function il(t){var e;(e=t[sn].changeDetectionScheduler)==null||e.notify(7),t[k]&64&&(t[k]|=1024),yo(t)&&Va(t)}function Va(t){var n;(n=t[sn].changeDetectionScheduler)==null||n.notify(0);let e=Tr(t);for(;e!==null&&!(e[k]&8192||(e[k]|=8192,!ud(e)));)e=Tr(e)}function eg(t,e){if((t[k]&256)===256)throw new _(911,!1);t[Wn]===null&&(t[Wn]=[]),t[Wn].push(e)}function $_(t,e){if(t[Wn]===null)return;let n=t[Wn].indexOf(e);n!==-1&&t[Wn].splice(n,1)}function Tr(t){let e=t[Je];return An(e)?e[Je]:e}var z={lFrame:pg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var tg=!1;function z_(){return z.lFrame.elementDepthCount}function G_(){z.lFrame.elementDepthCount++}function W_(){z.lFrame.elementDepthCount--}function ng(){return z.bindingsEnabled}function rg(){return z.skipHydrationRootTNode!==null}function q_(t){return z.skipHydrationRootTNode===t}function Y_(){z.skipHydrationRootTNode=null}function O(){return z.lFrame.lView}function pe(){return z.lFrame.tView}function ig(t){return z.lFrame.contextLView=t,t[Ke]}function og(t){return z.lFrame.contextLView=null,t}function ze(){let t=sg();for(;t!==null&&t.type===64;)t=t.parent;return t}function sg(){return z.lFrame.currentTNode}function Z_(){let t=z.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Xn(t,e){let n=z.lFrame;n.currentTNode=t,n.isParent=e}function cd(){return z.lFrame.isParent}function ld(){z.lFrame.isParent=!1}function ag(){return z.lFrame.contextLView}function ug(){return tg}function Bp(t){tg=t}function ln(){let t=z.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Q_(){return z.lFrame.bindingIndex}function K_(t){return z.lFrame.bindingIndex=t}function Jn(){return z.lFrame.bindingIndex++}function cg(t){let e=z.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function X_(){return z.lFrame.inI18n}function J_(t,e){let n=z.lFrame;n.bindingIndex=n.bindingRootIndex=t,ol(e)}function eE(){return z.lFrame.currentDirectiveIndex}function ol(t){z.lFrame.currentDirectiveIndex=t}function lg(t){let e=z.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function dg(){return z.lFrame.currentQueryIndex}function dd(t){z.lFrame.currentQueryIndex=t}function tE(t){let e=t[H];return e.type===2?e.declTNode:e.type===1?t[ht]:null}function fg(t,e,n){if(n&Q.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(n&Q.Host);)if(i=tE(o),i===null||(o=o[Oi],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=z.lFrame=hg();return r.currentTNode=e,r.lView=t,!0}function fd(t){let e=hg(),n=t[H];z.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function hg(){let t=z.lFrame,e=t===null?null:t.child;return e===null?pg(t):e}function pg(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function mg(){let t=z.lFrame;return z.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var gg=mg;function hd(){let t=mg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function nE(t){return(z.lFrame.contextLView=U_(t,z.lFrame.contextLView))[Ke]}function xn(){return z.lFrame.selectedIndex}function Sr(t){z.lFrame.selectedIndex=t}function wo(){let t=z.lFrame;return ad(t.tView,t.selectedIndex)}function yg(){z.lFrame.currentNamespace=Qm}function rE(){return z.lFrame.currentNamespace}var vg=!0;function ja(){return vg}function Ba(t){vg=t}function iE(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=qm(e);(n.preOrderHooks??(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,o))}function Ha(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[pi]+=65536),(a>14>16&&(t[k]&3)===e&&(t[k]+=16384,Hp(a,o)):Hp(a,o)}var Di=-1,Ar=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function sE(t){return t instanceof Ar}function aE(t){return(t.flags&8)!==0}function uE(t){return(t.flags&16)!==0}var Lc={},sl=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=Na(r);let i=this.injector.get(e,Lc,r);return i!==Lc||n===Lc?i:this.parentInjector.get(e,n,r)}};function bg(t){return t!==Di}function aa(t){return t&32767}function cE(t){return t>>16}function ua(t,e){let n=cE(t),r=e;for(;n>0;)r=r[Oi],n--;return r}var al=!0;function ca(t){let e=al;return al=t,e}var lE=256,_g=lE-1,Eg=5,dE=0,on={};function fE(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(lo)&&(r=n[lo]),r==null&&(r=n[lo]=dE++);let i=r&_g,o=1<>Eg)]|=o}function la(t,e){let n=wg(t,e);if(n!==-1)return n;let r=e[H];r.firstCreatePass&&(t.injectorIndex=e.length,Vc(r.data,t),Vc(e,null),Vc(r.blueprint,null));let i=pd(t,e),o=t.injectorIndex;if(bg(i)){let s=aa(i),a=ua(i,e),u=a[H].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function Vc(t,e){t.push(0,0,0,0,0,0,0,0,e)}function wg(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function pd(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=Sg(i),r===null)return Di;if(n++,i=i[Oi],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Di}function ul(t,e,n){fE(t,e,n)}function hE(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,i=0;for(;i>20,d=r?a:a+l,m=i?a+l:c;for(let h=d;h=u&&p.type===n)return h}if(i){let h=s[u];if(h&&In(h)&&h.type===n)return u}return null}function xr(t,e,n,r){let i=t[n],o=e.data;if(sE(i)){let s=i;s.resolving&&zb($b(o[n]));let a=ca(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?dt(s.injectImpl):null,l=fg(t,r,Q.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&iE(n,o[n],e)}finally{c!==null&&dt(c),ca(a),s.resolving=!1,gg()}}return i}function mE(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(lo)?t[lo]:void 0;return typeof e=="number"?e>=0?e&_g:gE:e}function Up(t,e,n){let r=1<>Eg)]&r)}function $p(t,e){return!(t&Q.Self)&&!(t&Q.Host&&e)}var Er=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Mg(this._tNode,this._lView,e,Na(r),n)}};function gE(){return new Er(ze(),O())}function Nn(t){return _o(()=>{let e=t.prototype.constructor,n=e[ea]||cl(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[ea]||cl(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function cl(t){return wm(t)?()=>{let e=cl($e(t));return e&&e()}:Cr(t)}function yE(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[k]&2048&&!(s[k]&512);){let a=Tg(o,s,n,r|Q.Self,on);if(a!==on)return a;let u=o.parent;if(!u){let c=s[Gm];if(c){let l=c.get(n,on,r);if(l!==on)return l}u=Sg(s),s=s[Oi]}o=u}return i}function Sg(t){let e=t[H],n=e.type;return n===2?e.declTNode:n===1?t[ht]:null}function vE(t){return hE(ze(),t)}function zp(t,e=null,n=null,r){let i=Ag(t,e,n,r);return i.resolveInjectorInitializers(),i}function Ag(t,e=null,n=null,r,i=new Set){let o=[n||Ot,w_(t)];return r=r||(typeof t=="object"?void 0:rt(t)),new mo(o,e||Pa(),r||null,i)}var _r=class _r{static create(e,n){if(Array.isArray(e))return zp({name:""},n,e,"");{let r=e.name??"";return zp({name:r},e.parent,e.providers,r)}}};_r.THROW_IF_NOT_FOUND=fo,_r.NULL=new ia,_r.\u0275prov=L({token:_r,providedIn:"any",factory:()=>ve(xi)}),_r.__NG_ELEMENT_ID__=-1;var Et=_r;var DE=new b("");DE.__NG_ELEMENT_ID__=t=>{let e=ze();if(e===null)throw new _(204,!1);if(e.type&2)return e.value;if(t&Q.Optional)return null;throw new _(204,!1)};var bE="ngOriginalError";function jc(t){return t[bE]}var Ge=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=_E,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),ll=class extends Ge{constructor(e){super(),this._lView=e}onDestroy(e){return eg(this._lView,e),()=>$_(this._lView,e)}};function _E(){return new ll(O())}var Vr=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new zt(!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)}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var dl=class extends Pe{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,zm()&&(this.destroyRef=f(Ge,{optional:!0})??void 0,this.pendingTasks=f(Vr,{optional:!0})??void 0)}emit(e){let n=Y(null);try{super.next(e)}finally{Y(n)}}subscribe(e,n,r){var u,c,l;let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let d=e;i=(u=d.next)==null?void 0:u.bind(d),o=(c=d.error)==null?void 0:c.bind(d),s=(l=d.complete)==null?void 0:l.bind(d)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof Ee&&e.add(a),a}wrapInTimeout(e){return n=>{var i;let r=(i=this.pendingTasks)==null?void 0:i.add();setTimeout(()=>{var o;e(n),r!==void 0&&((o=this.pendingTasks)==null||o.remove(r))})}}},Ue=dl;function da(...t){}function xg(t){let e,n;function r(){t=da;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Gp(t){return queueMicrotask(()=>t()),()=>{t=da}}var te=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ue(!1),this.onMicrotaskEmpty=new Ue(!1),this.onStable=new Ue(!1),this.onError=new Ue(!1),typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.callbackScheduled=!1,CE(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new _(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,EE,da,da);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},EE={};function md(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function wE(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{xg(()=>{t.callbackScheduled=!1,fl(t),t.isCheckStableRunning=!0,md(t),t.isCheckStableRunning=!1})}),fl(t))}function CE(t){let e=()=>{wE(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(IE(a))return n.invokeTask(i,o,s,a);try{return Wp(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),qp(t)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return Wp(t),n.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!ME(a)&&e(),qp(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,fl(t),md(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function fl(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Wp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function qp(t){t._nesting--,md(t)}var hl=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ue,this.onMicrotaskEmpty=new Ue,this.onStable=new Ue,this.onError=new Ue}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}};function IE(t){return Ng(t,"__ignore_ng_zone__")}function ME(t){return Ng(t,"__scheduler_tick__")}function Ng(t,e){var n,r;return!Array.isArray(t)||t.length!==1?!1:((r=(n=t[0])==null?void 0:n.data)==null?void 0:r[e])===!0}var Nr=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&jc(e);for(;n&&jc(n);)n=jc(n);return n||null}},TE=new b("",{providedIn:"root",factory:()=>{let t=f(te),e=f(Nr);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function Yp(t,e){return Em(t,e)}function SE(t){return Em(_m,t)}var Xj=(Yp.required=SE,Yp);function AE(){return Fi(ze(),O())}function Fi(t,e){return new Me(Rt(t,e))}var Me=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=AE;let t=e;return t})();function xE(t){return t instanceof Me?t.nativeElement:t}function NE(){return this._results[Symbol.iterator]()}var vo=class t{get changes(){return this._changes??(this._changes=new Ue)}constructor(e=!1){this._emitDistinctChangesOnly=e,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=t.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=NE)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=t_(e);(this._changesDetected=!e_(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(e){this._onDirty=e}setDirty(){var e;this.dirty=!0,(e=this._onDirty)==null||e.call(this)}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Og(t){return(t.flags&128)===128}var Fg=new Map,OE=0;function FE(){return OE++}function PE(t){Fg.set(t[Ra],t)}function RE(t){Fg.delete(t[Ra])}var Zp="__ngContext__";function Qn(t,e){qn(e)?(t[Zp]=e[Ra],PE(e)):t[Zp]=e}function Pg(t){return kg(t[go])}function Rg(t){return kg(t[qt])}function kg(t){for(;t!==null&&!An(t);)t=t[qt];return t}var pl;function Jj(t){pl=t}function Lg(){if(pl!==void 0)return pl;if(typeof document<"u")return document;throw new _(210,!1)}var eB=new b("",{providedIn:"root",factory:()=>kE}),kE="ng",LE=new b(""),jr=new b("",{providedIn:"platform",factory:()=>"unknown"});var tB=new b(""),nB=new b("",{providedIn:"root",factory:()=>{var t,e;return((e=(t=Lg().body)==null?void 0:t.querySelector("[ngCspNonce]"))==null?void 0:e.getAttribute("ngCspNonce"))||null}});var VE="h",jE="b";var BE=()=>null;function gd(t,e,n=!1){return BE(t,e,n)}var Vg=!1,HE=new b("",{providedIn:"root",factory:()=>Vg});var zs;function UE(){if(zs===void 0&&(zs=null,Gn.trustedTypes))try{zs=Gn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return zs}function Ua(t){var e;return((e=UE())==null?void 0:e.createHTML(t))||t}var Gs;function jg(){if(Gs===void 0&&(Gs=null,Gn.trustedTypes))try{Gs=Gn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Gs}function Qp(t){var e;return((e=jg())==null?void 0:e.createHTML(t))||t}function Kp(t){var e;return((e=jg())==null?void 0:e.createScriptURL(t))||t}var fa=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bm})`}};function Co(t){return t instanceof fa?t.changingThisBreaksApplicationSecurity:t}function yd(t,e){let n=$E(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${bm})`)}return n===e}function $E(t){return t instanceof fa&&t.getTypeName()||null}function zE(t){let e=new gl(t);return GE()?new ml(e):e}var ml=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let n=new window.DOMParser().parseFromString(Ua(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch{return null}}},gl=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=Ua(e),n}};function GE(){try{return!!new window.DOMParser().parseFromString(Ua(""),"text/html")}catch{return!1}}var WE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bg(t){return t=String(t),t.match(WE)?t:"unsafe:"+t}function On(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Io(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Hg=On("area,br,col,hr,img,wbr"),Ug=On("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$g=On("rp,rt"),qE=Io($g,Ug),YE=Io(Ug,On("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")),ZE=Io($g,On("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")),Xp=Io(Hg,YE,ZE,qE),zg=On("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),QE=On("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"),KE=On("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"),XE=Io(zg,QE,KE),JE=On("script,style,template"),yl=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.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=nw(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=tw(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(e){let n=Jp(e).toLowerCase();if(!Xp.hasOwnProperty(n))return this.sanitizedSomething=!0,!JE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let i=0;i"),!0}endElement(e){let n=Jp(e).toLowerCase();Xp.hasOwnProperty(n)&&!Hg.hasOwnProperty(n)&&(this.buf.push(""))}chars(e){this.buf.push(em(e))}};function ew(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function tw(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Gg(e);return e}function nw(t){let e=t.firstChild;if(e&&ew(t,e))throw Gg(e);return e}function Jp(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Gg(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var rw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iw=/([^\#-~ |!])/g;function em(t){return t.replace(/&/g,"&").replace(rw,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(iw,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Ws;function ow(t,e){let n=null;try{Ws=Ws||zE(t);let r=e?String(e):"";n=Ws.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=Ws.getInertBodyElement(r)}while(r!==o);let a=new yl().sanitizeChildren(tm(n)||n);return Ua(a)}finally{if(n){let r=tm(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function tm(t){return"content"in t&&sw(t)?t.content:null}function sw(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var $a=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}($a||{});function Wg(t){let e=Dd();return e?Qp(e.sanitize($a.HTML,t)||""):yd(t,"HTML")?Qp(Co(t)):ow(Lg(),wr(t))}function vd(t){let e=Dd();return e?e.sanitize($a.URL,t)||"":yd(t,"URL")?Co(t):Bg(wr(t))}function aw(t){let e=Dd();if(e)return Kp(e.sanitize($a.RESOURCE_URL,t)||"");if(yd(t,"ResourceURL"))return Kp(Co(t));throw new _(904,!1)}function uw(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?aw:vd}function rB(t,e,n){return uw(e,n)(t)}function Dd(){let t=O();return t&&t[sn].sanitizer}var cw=/^>|^->||--!>|)/g,dw="\u200B$1\u200B";function fw(t){return t.replace(cw,e=>e.replace(lw,dw))}function iB(t){return t.ownerDocument.defaultView}function za(t){return t.ownerDocument}function qg(t){return t instanceof Function?t():t}function hw(t){return(t??f(Et)).get(jr)==="browser"}var ha=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ha||{}),pw;function bd(t,e){return pw(t,e)}function mi(t,e,n,r,i){if(r!=null){let o,s=!1;An(r)?o=r:qn(r)&&(s=!0,r=r[cn]);let a=an(r);t===0&&n!==null?i==null?Xg(e,n,a):pa(e,n,a,i||null,!0):t===1&&n!==null?pa(e,n,a,i||null,!0):t===2?Aw(e,a,s):t===3&&e.destroyNode(a),o!=null&&Nw(e,t,o,n,i)}}function mw(t,e){return t.createText(e)}function gw(t,e,n){t.setValue(e,n)}function yw(t,e){return t.createComment(fw(e))}function Yg(t,e,n){return t.createElement(e,n)}function vw(t,e){Zg(t,e),e[cn]=null,e[ht]=null}function Dw(t,e,n,r,i,o){r[cn]=i,r[ht]=e,qa(t,r,n,1,i,o)}function Zg(t,e){var n;(n=e[sn].changeDetectionScheduler)==null||n.notify(8),qa(t,e,e[be],2,null,null)}function bw(t){let e=t[go];if(!e)return Bc(t[H],t);for(;e;){let n=null;if(qn(e))n=e[go];else{let r=e[Xe];r&&(n=r)}if(!n){for(;e&&!e[qt]&&e!==t;)qn(e)&&Bc(e[H],e),e=e[Je];e===null&&(e=t),qn(e)&&Bc(e[H],e),n=e&&e[qt]}e=n}}function _w(t,e,n,r){let i=Xe+r,o=n.length;r>0&&(n[i-1][qt]=e),r0&&(t[n-1][qt]=r[qt]);let o=na(t,Xe+e);vw(r[H],r);let s=o[Yt];s!==null&&s.detachView(o[H]),r[Je]=null,r[qt]=null,r[k]&=-129}return r}function Ga(t,e){if(!(e[k]&256)){let n=e[be];n.destroyNode&&qa(t,e,n,3,null,null),bw(e)}}function Bc(t,e){if(e[k]&256)return;let n=Y(null);try{e[k]&=-129,e[k]|=256,e[Ft]&&fs(e[Ft]),ww(t,e),Ew(t,e),e[H].type===1&&e[be].destroy();let r=e[Ir];if(r!==null&&An(e[Je])){r!==e[Je]&&_d(r,e);let i=e[Yt];i!==null&&i.detachView(t)}RE(e)}finally{Y(n)}}function Ew(t,e){let n=t.cleanup,r=e[yi];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&&(e[yi]=null);let i=e[Wn];if(i!==null){e[Wn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===ho.None||o===ho.Emulated)return null}return Rt(r,n)}}function pa(t,e,n,r,i){t.insertBefore(e,n,r,i)}function Xg(t,e,n){t.appendChild(e,n)}function nm(t,e,n,r,i){r!==null?pa(t,e,n,r,i):Xg(t,e,n)}function Iw(t,e,n,r){t.removeChild(e,n,r)}function Ed(t,e){return t.parentNode(e)}function Mw(t,e){return t.nextSibling(e)}function Jg(t,e,n){return Sw(t,e,n)}function Tw(t,e,n){return t.type&40?Rt(t,n):null}var Sw=Tw,rm;function Wa(t,e,n,r){let i=Kg(t,r,e),o=e[be],s=r.parent||e[ht],a=Jg(s,r,e);if(i!=null)if(Array.isArray(n))for(let u=0;u_e&&iy(t,e,_e,!1),rn(s?2:0,i),n(r,i)}finally{Sr(o),rn(s?3:1,i)}}function Cd(t,e,n){if(sd(e)){let r=Y(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function Hw(t,e,n,r){let i=hy(e);i.push(n),t.firstCreatePass&&py(t).push(r,i.length-1)}function Uw(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return rg()&&(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:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function im(t,e,n,r,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;r??(r={});let a,u=Yn.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?om(r,n,c,a,u):om(r,n,c,a)}return r}function om(t,e,n,r,i){let o;t.hasOwnProperty(n)?(o=t[n]).push(e,r):o=t[n]=[e,r],i!==void 0&&o.push(i)}function $w(t,e,n){let r=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function Yw(t,e,n,r){let i=n.directiveStart,o=n.directiveEnd;ka(n)&&tC(e,n,t.data[i+n.componentOffset]),t.firstCreatePass||la(n,e),Qn(r,e);let s=n.initialInputs;for(let a=i;a{Va(t.lView)},consumerOnSignalRead(){this.lView[Ft]=this}});function mC(t){let e=t[Ft]??Object.create(gC);return e.lView=t,e}var gC=K(M({},ni),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Tr(t.lView);for(;e&&!by(e[H]);)e=Tr(e);e&&Jm(e)},consumerOnSignalRead(){this.lView[Ft]=this}});function by(t){return t.type!==2}var yC=100;function _y(t,e=!0,n=0){var s,a,u;let r=t[sn],i=r.rendererFactory,o=!1;o||(s=i.begin)==null||s.call(i);try{vC(t,n)}catch(c){throw e&&my(t,c),c}finally{o||((a=i.end)==null||a.call(i),(u=r.inlineEffectRunner)==null||u.flush())}}function vC(t,e){let n=ug();try{Bp(!0),_l(t,e);let r=0;for(;yo(t);){if(r===yC)throw new _(103,!1);r++,_l(t,1)}}finally{Bp(n)}}function DC(t,e,n,r){var l;let i=e[k];if((i&256)===256)return;let o=!1,s=!1;!o&&((l=e[sn].inlineEffectRunner)==null||l.flush()),fd(e);let a=!0,u=null,c=null;o||(by(t)?(c=dC(e),u=eo(c)):Rh()===null?(a=!1,c=mC(e),u=eo(c)):e[Ft]&&(fs(e[Ft]),e[Ft]=null));try{Xm(e),K_(t.bindingStartIndex),n!==null&&ay(t,e,n,2,r);let d=(i&3)===3;if(!o)if(d){let p=t.preOrderCheckHooks;p!==null&&Qs(e,p,null)}else{let p=t.preOrderHooks;p!==null&&Ks(e,p,0,null),kc(e,0)}if(s||bC(e),Ey(e,0),t.contentQueries!==null&&fy(t,e),!o)if(d){let p=t.contentCheckHooks;p!==null&&Qs(e,p)}else{let p=t.contentHooks;p!==null&&Ks(e,p,1),kc(e,1)}Rw(t,e);let m=t.components;m!==null&&Cy(e,m,0);let h=t.viewQuery;if(h!==null&&bl(2,h,r),!o)if(d){let p=t.viewCheckHooks;p!==null&&Qs(e,p)}else{let p=t.viewHooks;p!==null&&Ks(e,p,2),kc(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[vi]){for(let p of e[vi])p();e[vi]=null}o||(e[k]&=-73)}catch(d){throw o||Va(e),d}finally{c!==null&&(ls(c,u),a&&hC(c)),hd()}}function Ey(t,e){for(let n=Pg(t);n!==null;n=Rg(n))for(let r=Xe;r-1&&(Do(e,r),na(n,r))}this._attachedToViewContainer=!1}Ga(this._lView[H],this._lView)}onDestroy(e){eg(this._lView,e)}markForCheck(){Nd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[k]&=-129}reattach(){il(this._lView),this._lView[k]|=128}detectChanges(){this._lView[k]|=1024,_y(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=nl(this._lView),n=this._lView[Ir];n!==null&&!e&&_d(n,this._lView),Zg(this._lView[H],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=e;let n=nl(this._lView),r=this._lView[Ir];r!==null&&!n&&Qg(r,this._lView),il(this._lView)}},Ie=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=CC;let t=e;return t})(),EC=Ie,wC=class extends EC{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var e;return((e=this._declarationTContainer.tView)==null?void 0:e.ssrId)||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let i=Mo(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new Or(i)}};function CC(){return Ka(ze(),O())}function Ka(t,e){return t.type&4?new wC(e,t,Fi(t,e)):null}var sB=new RegExp(`^(\\d+)*(${jE}|${VE})*(.*)`);var IC=()=>null;function Ii(t,e){return IC(t,e)}var Mi=class{},Od=new b("",{providedIn:"root",factory:()=>!1});var Iy=new b(""),El=class{},ga=class{};function MC(t){let e=Error(`No component factory found for ${rt(t)}.`);return e[TC]=t,e}var TC="ngComponent";var wl=class{resolveComponentFactory(e){throw MC(e)}},qd=class qd{};qd.NULL=new wl;var Ti=qd,ya=class{},er=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>SC();let t=e;return t})();function SC(){let t=O(),e=ze(),n=Kn(e.index,t);return(qn(n)?n:t)[be]}var AC=(()=>{let e=class e{};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var sm=new Set;function Qt(t){var e;sm.has(t)||(sm.add(t),(e=performance==null?void 0:performance.mark)==null||e.call(performance,"mark_feature_usage",{detail:{feature:t}}))}var ft=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ft||{}),xC={destroy(){}};function NC(t,e){!e&&Ni(NC);let n=(e==null?void 0:e.injector)??f(Et);return hw(n)?(Qt("NgAfterNextRender"),FC(t,n,!0,(e==null?void 0:e.phase)??ft.MixedReadWrite)):xC}function OC(t,e){if(t instanceof Function)switch(e){case ft.EarlyRead:return{earlyRead:t};case ft.Write:return{write:t};case ft.MixedReadWrite:return{mixedReadWrite:t};case ft.Read:return{read:t}}return t}function FC(t,e,n,r){let i=OC(t,r),o=e.get(Fd),s=o.handler??(o.handler=new Il),a=[],u=[],c=()=>{for(let h of u)s.unregister(h);l()},l=e.get(Ge).onDestroy(c),d=0,m=(h,p)=>{if(!p)return;let g=n?(...D)=>(d--,d<1&&c(),p(...D)):p,v=id(e,()=>new Cl(h,a,g));s.register(v),u.push(v),d++};return m(ft.EarlyRead,i.earlyRead),m(ft.Write,i.write),m(ft.MixedReadWrite,i.mixedReadWrite),m(ft.Read,i.read),{destroy:c}}var Cl=class{constructor(e,n,r){var i;this.phase=e,this.pipelinedArgs=n,this.callbackFn=r,this.zone=f(te),this.errorHandler=f(Nr,{optional:!0}),(i=f(Mi,{optional:!0}))==null||i.notify(6)}invoke(){var e;try{let n=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,n)}catch(n){(e=this.errorHandler)==null||e.handleError(n)}}},Il=class{constructor(){this.executingCallbacks=!1,this.buckets={[ft.EarlyRead]:new Set,[ft.Write]:new Set,[ft.MixedReadWrite]:new Set,[ft.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let n of e)n.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Fd=(()=>{let e=class e{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}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function va(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&ny(t,n,o.join(" "))}}function BC(t,e,n){let r=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=UC;let t=e;return t})();function UC(){let t=ze();return Ty(t,O())}var $C=et,My=class extends $C{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Fi(this._hostTNode,this._hostLView)}get injector(){return new Er(this._hostTNode,this._hostLView)}get parentInjector(){let e=pd(this._hostTNode,this._hostLView);if(bg(e)){let n=ua(e,this._hostLView),r=aa(e),i=n[H].data[r+8];return new Er(i,n)}else return new Er(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=um(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-Xe}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Ii(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Ci(this._hostTNode,s)),a}createComponent(e,n,r,i,o){let s=e&&!P_(e),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let u=s?e:new Fr(Cn(e)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let g=(s?c:this.parentInjector).get(Pt,null);g&&(o=g)}let l=Cn(u.componentType??{}),d=Ii(this._lContainer,(l==null?void 0:l.id)??null),m=(d==null?void 0:d.firstChild)??null,h=u.create(c,i,m,o);return this.insertImpl(h.hostView,a,Ci(this._hostTNode,d)),h}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(H_(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[Je],c=new My(u,u[ht],u[Je]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return To(s,i,o,r),e.attachToViewContainerRef(),Am(Hc(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=um(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=Do(this._lContainer,n);r&&(na(Hc(this._lContainer),n),Ga(r[H],r))}detach(e){let n=this._adjustIndex(e,-1),r=Do(this._lContainer,n);return r&&na(Hc(this._lContainer),n)!=null?new Or(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function um(t){return t[oa]}function Hc(t){return t[oa]||(t[oa]=[])}function Ty(t,e){let n,r=e[t.index];return An(r)?n=r:(n=dy(r,e,null,t),e[t.index]=n,Qa(e,n)),GC(n,e,t,r),new My(n,t,e)}function zC(t,e){let n=t[be],r=n.createComment(""),i=Rt(e,t),o=Ed(n,i);return pa(n,o,r,Mw(n,i),!1),r}var GC=YC,WC=()=>!1;function qC(t,e,n){return WC(t,e,n)}function YC(t,e,n,r){if(t[Mr])return;let i;n.type&8?i=an(r):i=zC(e,n),t[Mr]=i}var Tl=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Sl=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=Xe;de.trim())}function xy(t,e,n){t.queries===null&&(t.queries=new Al),t.queries.track(new xl(e,n))}function rI(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function Pd(t,e){return t.queries.getByIndex(e)}function iI(t,e){let n=t[H],r=Pd(n,e);return r.crossesNgTemplate?Nl(n,t,e,[]):Sy(n,t,r,e)}function Xa(t){return typeof t=="function"&&t[Ut]!==void 0}function fn(t,e){Qt("NgSignals");let n=qh(t),r=n[Ut];return e!=null&&e.equal&&(r.equal=e.equal),n.set=i=>ms(r,i),n.update=i=>Yh(r,i),n.asReadonly=oI.bind(n),n}function oI(){let t=this[Ut];if(t.readonlyFn===void 0){let e=()=>this();e[Ut]=t,t.readonlyFn=e}return t.readonlyFn}function Ny(t){return Xa(t)&&typeof t.set=="function"}function sI(t){return Object.getPrototypeOf(t.prototype).constructor}function ke(t){let e=sI(t.type),n=!0,r=[t];for(;e;){let i;if(In(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new _(903,!1);i=e.\u0275dir}if(i){if(n){r.push(i);let s=t;s.inputs=qs(t.inputs),s.inputTransforms=qs(t.inputTransforms),s.declaredInputs=qs(t.declaredInputs),s.outputs=qs(t.outputs);let a=i.hostBindings;a&&dI(t,a);let u=i.viewQuery,c=i.contentQueries;if(u&&cI(t,u),c&&lI(t,c),aI(t,i),Rb(t.outputs,i.outputs),In(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=po(i.hostAttrs,n=po(n,i.hostAttrs))}}function qs(t){return t===wn?{}:t===Ot?[]:t}function cI(t,e){let n=t.viewQuery;n?t.viewQuery=(r,i)=>{e(r,i),n(r,i)}:t.viewQuery=e}function lI(t,e){let n=t.contentQueries;n?t.contentQueries=(r,i,o)=>{e(r,i,o),n(r,i,o)}:t.contentQueries=e}function dI(t,e){let n=t.hostBindings;n?t.hostBindings=(r,i)=>{e(r,i),n(r,i)}:t.hostBindings=e}function kt(t){let e=n=>{let r=(Array.isArray(t)?t:t()).map(i=>typeof i=="function"?{directive:$e(i),inputs:wn,outputs:wn}:{directive:$e(i.directive),inputs:cm(i.inputs),outputs:cm(i.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=Oy,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return e.ngInherit=!0,e}function Oy(t,e,n){if(t.hostDirectives!==null)for(let r of t.hostDirectives){let i=td(r.directive);fI(i.declaredInputs,r.inputs),Oy(i,e,n),n.set(i,r),e.push(i)}}function cm(t){if(t===void 0||t.length===0)return wn;let e={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Fl=class extends Ol{constructor(e){super(),this.moduleType=e}create(e){return new _a(this.moduleType,e,[])}};var Ea=class extends Mn{constructor(e){super(),this.componentFactoryResolver=new Da(this),this.instance=null;let n=new mo([...e.providers,{provide:Mn,useValue:this},{provide:Ti,useValue:this.componentFactoryResolver}],e.parent||Pa(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function pI(t,e,n=null){return new Ea({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}function Py(t){return gI(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function mI(t,e){if(Array.isArray(t))for(let n=0;n>17&32767}function CI(t){return(t&2)==2}function II(t,e){return t&131071|e<<17}function Pl(t){return t|2}function Ai(t){return(t&131068)>>2}function Uc(t,e){return t&-131069|e<<2}function MI(t){return(t&1)===1}function Rl(t){return t|1}function TI(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Pr(s),u=Ai(s);t[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Eo(d,l)>0)&&(c=!0)}else l=n;if(i)if(u!==0){let m=Pr(t[a+1]);t[r+1]=Ys(m,a),m!==0&&(t[m+1]=Uc(t[m+1],r)),t[a+1]=II(t[a+1],r)}else t[r+1]=Ys(a,0),a!==0&&(t[a+1]=Uc(t[a+1],r)),a=r;else t[r+1]=Ys(u,0),a===0?a=r:t[u+1]=Uc(t[u+1],r),u=r;c&&(t[r+1]=Pl(t[r+1])),lm(t,l,r,!0),lm(t,l,r,!1),SI(e,l,t,r,o),s=Ys(a,u),o?e.classBindings=s:e.styleBindings=s}function SI(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Eo(o,e)>=0&&(n[r+1]=Rl(n[r+1]))}function lm(t,e,n,r){let i=t[n+1],o=e===null,s=r?Pr(i):Ai(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],c=t[s+1];AI(u,e)&&(a=!0,t[s+1]=r?Rl(c):Pl(c)),s=r?Pr(c):Ai(c)}a&&(t[n+1]=r?Pl(i):Rl(i))}function AI(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Eo(t,e)>=0:!1}function U(t,e,n){let r=O(),i=Jn();if(it(r,i,e)){let o=pe(),s=wo();Za(o,s,r,t,e,r[be],n,!1)}return U}function dm(t,e,n,r,i){let o=e.inputs,s=i?"class":"style";Ad(t,n,o[s],s,r)}function Te(t,e,n){return ky(t,e,n,!1),Te}function We(t,e){return ky(t,e,null,!0),We}function ky(t,e,n,r){let i=O(),o=pe(),s=cg(2);if(o.firstUpdatePass&&NI(o,t,s,r),e!==dn&&it(i,s,e)){let a=o.data[xn()];kI(o,a,i,i[be],t,i[s+1]=LI(e,n),r,s)}}function xI(t,e){return e>=t.expandoStartIndex}function NI(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[xn()],s=xI(t,n);VI(o,r)&&e===null&&!s&&(e=!1),e=OI(i,o,e,r),TI(i,o,e,n,s,r)}}function OI(t,e,n,r){let i=lg(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=$c(null,t,e,n,r),n=bo(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=$c(i,t,e,n,r),o===null){let u=FI(t,e,r);u!==void 0&&Array.isArray(u)&&(u=$c(null,t,e,u[1],r),u=bo(u,e.attrs,r),PI(t,e,r,u))}else o=RI(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function FI(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Ai(r)!==0)return t[Pr(r)]}function PI(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[Pr(i)]=r}function RI(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,m=n[i+1];m===dn&&(m=d?Ot:void 0);let h=d?Pc(m,r):l===r?m:void 0;if(c&&!Ca(h)&&(h=Pc(u,r)),Ca(h)&&(a=h,s))return a;let p=t[i+1];i=s?Pr(p):Ai(p)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=Pc(u,r))}return a}function Ca(t){return t!==void 0}function LI(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=rt(Co(t)))),t}function VI(t,e){return(t.flags&(e?8:16))!==0}var kl=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),i=Math.max(e,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(e,n){this.attach(n,this.detach(e))}};function zc(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function jI(t,e,n){let r,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let u=e.length-1;for(;o<=s&&o<=u;){let c=t.at(o),l=e[o],d=zc(o,c,o,l,n);if(d!==0){d<0&&t.updateValue(o,l),o++;continue}let m=t.at(s),h=e[u],p=zc(s,m,u,h,n);if(p!==0){p<0&&t.updateValue(s,h),s--,u--;continue}let g=n(o,c),v=n(s,m),D=n(o,l);if(Object.is(D,v)){let x=n(u,h);Object.is(x,g)?(t.swap(o,s),t.updateValue(s,h),u--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(r??(r=new Ia),i??(i=pm(t,o,s,n)),Ll(t,r,o,D))t.updateValue(o,l),o++,s++;else if(i.has(D))r.set(g,t.detach(o)),s--;else{let x=t.create(o,e[o]);t.attach(o,x),o++,s++}}for(;o<=u;)hm(t,r,n,o,e[o]),o++}else if(e!=null){let u=e[Symbol.iterator](),c=u.next();for(;!c.done&&o<=s;){let l=t.at(o),d=c.value,m=zc(o,l,o,d,n);if(m!==0)m<0&&t.updateValue(o,d),o++,c=u.next();else{r??(r=new Ia),i??(i=pm(t,o,s,n));let h=n(o,d);if(Ll(t,r,o,h))t.updateValue(o,d),o++,s++,c=u.next();else if(!i.has(h))t.attach(o,t.create(o,d)),o++,s++,c=u.next();else{let p=n(o,l);r.set(p,t.detach(o)),s--}}}for(;!c.done;)hm(t,r,n,t.length,c.value),c=u.next()}for(;o<=s;)t.destroy(t.detach(s--));r==null||r.forEach(u=>{t.destroy(u)})}function Ll(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function hm(t,e,n,r,i){if(Ll(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function pm(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var Ia=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),e(r,n)}}};function uB(t,e){Qt("NgControlFlow");let n=O(),r=Jn(),i=n[r]!==dn?n[r]:-1,o=i!==-1?Ma(n,_e+i):void 0,s=0;if(it(n,r,t)){let a=Y(null);try{if(o!==void 0&&vy(o,s),t!==-1){let u=_e+t,c=Ma(n,u),l=Hl(n[H],u),d=Ii(c,l.tView.ssrId),m=Mo(n,l,e,{dehydratedView:d});To(c,m,s,Ci(l,d))}}finally{Y(a)}}else if(o!==void 0){let a=yy(o,s);a!==void 0&&(a[Ke]=e)}}var Vl=class{constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Xe}};function cB(t){return t}var jl=class{constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function lB(t,e,n,r,i,o,s,a,u,c,l,d,m){Qt("NgControlFlow");let h=O(),p=pe(),g=u!==void 0,v=O(),D=a?s.bind(v[_t][Ke]):s,x=new jl(g,D);v[_e+t]=x,wa(h,p,t+1,e,n,r,i,Zn(p.consts,o)),g&&wa(h,p,t+2,u,c,l,d,Zn(p.consts,m))}var Bl=class extends kl{constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Xe}at(e){return this.getLView(e)[Ke].$implicit}attach(e,n){let r=n[_i];this.needsIndexUpdate||(this.needsIndexUpdate=e!==this.length),To(this.lContainer,n,e,Ci(this.templateTNode,r))}detach(e){return this.needsIndexUpdate||(this.needsIndexUpdate=e!==this.length-1),BI(this.lContainer,e)}create(e,n){var o;let r=Ii(this.lContainer,this.templateTNode.tView.ssrId),i=Mo(this.hostLView,this.templateTNode,new Vl(this.lContainer,n,e),{dehydratedView:r});return(o=this.operationsCounter)==null||o.recordCreate(),i}destroy(e){var n;Ga(e[H],e),(n=this.operationsCounter)==null||n.recordDestroy()}updateValue(e,n){this.getLView(e)[Ke].$implicit=n}reset(){var e;this.needsIndexUpdate=!1,(e=this.operationsCounter)==null||e.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Ba(!0),Yg(r,i,rE()));function zI(t,e,n,r,i){let o=e.consts,s=Zn(o,r),a=Br(e,t,8,"ng-container",s);s!==null&&va(a,s,!0);let u=Zn(o,i);return Sd(e,n,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function Lt(t,e,n){let r=O(),i=pe(),o=t+_e,s=i.firstCreatePass?zI(o,i,r,e,n):i.data[o];Xn(s,!0);let a=GI(i,r,s,t);return r[o]=a,ja()&&Wa(i,r,a,s),Qn(a,r),La(s)&&(Id(i,r,s),Cd(i,s,r)),n!=null&&Md(r,s),Lt}function Vt(){let t=ze(),e=pe();return cd()?ld():(t=t.parent,Xn(t,!1)),e.firstCreatePass&&(Ha(e,t),sd(t)&&e.queries.elementEnd(t)),Vt}function kd(t,e,n){return Lt(t,e,n),Vt(),kd}var GI=(t,e,n,r)=>(Ba(!0),yw(e[be],""));function Ly(){return O()}function WI(t,e,n){let r=O(),i=Jn();if(it(r,i,e)){let o=pe(),s=wo();Za(o,s,r,t,e,r[be],n,!0)}return WI}function Ld(t,e,n){let r=O(),i=Jn();if(it(r,i,e)){let o=pe(),s=wo(),a=lg(o.data),u=sC(a,s,r);Za(o,s,r,t,e,u,n,!0)}return Ld}var br=void 0;function qI(t){let e=t,n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var YI=["en",[["a","p"],["AM","PM"],br],[["AM","PM"],br,br],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],br,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],br,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",br,"{1} 'at' {0}",br],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",qI],Gc={};function Vd(t){let e=ZI(t),n=mm(e);if(n)return n;let r=e.split("-")[0];if(n=mm(r),n)return n;if(r==="en")return YI;throw new _(701,!1)}function mm(t){return t in Gc||(Gc[t]=Gn.ng&&Gn.ng.common&&Gn.ng.common.locales&&Gn.ng.common.locales[t]),Gc[t]}var Pi=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Pi||{});function ZI(t){return t.toLowerCase().replace(/_/g,"-")}var Ta="en-US";var QI=Ta;function KI(t){typeof t=="string"&&(QI=t.toLowerCase().replace(/_/g,"-"))}var XI=(t,e,n)=>{};function pt(t,e,n,r){let i=O(),o=pe(),s=ze();return Vy(o,i,i[be],s,t,e,r),pt}function JI(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function Vy(t,e,n,r,i,o,s){let a=La(r),c=t.firstCreatePass&&py(t),l=e[Ke],d=hy(e),m=!0;if(r.type&3||s){let g=Rt(r,e),v=s?s(g):g,D=d.length,x=s?A=>s(an(A[r.index])):r.index,Z=null;if(!s&&a&&(Z=JI(t,e,i,r.index)),Z!==null){let A=Z.__ngLastListenerFn__||Z;A.__ngNextListenerFn__=o,Z.__ngLastListenerFn__=o,m=!1}else{o=ym(r,e,l,o),XI(g,i,o);let A=n.listen(v,i,o);d.push(o,A),c&&c.push(i,x,D,D+1)}}else o=ym(r,e,l,o);let h=r.outputs,p;if(m&&h!==null&&(p=h[i])){let g=p.length;if(g)for(let v=0;v-1?Kn(t.index,e):e;Nd(s,5);let a=gm(e,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=gm(e,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function q(t=1){return nE(t)}function eM(t,e){let n=null,r=f_(t);for(let i=0;i=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function By(t){let e=ag();return Lr(e,_e+t)}function wt(t,e=""){let n=O(),r=pe(),i=t+_e,o=r.firstCreatePass?Br(r,i,1,e,null):r.data[i],s=nM(r,n,o,e,t);n[i]=s,ja()&&Wa(r,n,s,o),Xn(o,!1)}var nM=(t,e,n,r,i)=>(Ba(!0),mw(e[be],r));function Hd(t){return mt("",t,""),Hd}function mt(t,e,n){let r=O(),i=EI(r,t,e,n);return i!==dn&&gy(r,xn(),i),mt}function rM(t,e,n,r,i){let o=O(),s=wI(o,t,e,n,r,i);return s!==dn&&gy(o,xn(),s),rM}function iM(t,e,n){Ny(e)&&(e=e());let r=O(),i=Jn();if(it(r,i,e)){let o=pe(),s=wo();Za(o,s,r,t,e,r[be],n,!1)}return iM}function fB(t,e){let n=Ny(t);return n&&t.set(e),n}function oM(t,e){let n=O(),r=pe(),i=ze();return Vy(r,n,n[be],i,t,e),oM}var Hy={};function sM(t){let e=pe(),n=O(),r=t+_e,i=Br(e,r,128,null,null);return Xn(i,!1),Bd(e,n,r,Hy),sM}function hB(t){Qt("NgLet");let e=pe(),n=O(),r=xn();return Bd(e,n,r,t),t}function pB(t){let e=ag(),n=Lr(e,_e+t);if(n===Hy)throw new _(314,!1);return n}function aM(t,e,n){let r=pe();if(r.firstCreatePass){let i=In(t);Ul(n,r.data,r.blueprint,i,!0),Ul(e,r.data,r.blueprint,i,!1)}}function Ul(t,e,n,r,i){if(t=$e(t),Array.isArray(t))for(let o=0;o>20;if(bi(t)||!t.multi){let h=new Ar(c,i,V),p=qc(u,e,i?l:l+m,d);p===-1?(ul(la(a,s),o,u),Wc(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{let h=qc(u,e,l+m,d),p=qc(u,e,l,l+m),g=h>=0&&n[h],v=p>=0&&n[p];if(i&&!v||!i&&!g){ul(la(a,s),o,u);let D=lM(i?cM:uM,n.length,i,r,c);!i&&v&&(n[p].providerFactory=D),Wc(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(D),s.push(D)}else{let D=Uy(n[i?p:h],c,!i&&r);Wc(o,t,h>-1?h:p,D)}!i&&r&&v&&n[p].componentProviders++}}}function Wc(t,e,n,r){let i=bi(e),o=T_(e);if(i||o){let u=(o?$e(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Uy(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function qc(t,e,n,r){for(let i=n;i{n.providersResolver=(r,i)=>aM(r,i?i(t):t,e)}}var dM=(()=>{let e=class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=jm(!1,r.type),o=i.length>0?pI([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()}}};e.\u0275prov=L({token:e,providedIn:"environment",factory:()=>new e(ve(Pt))});let t=e;return t})();function se(t){Qt("NgStandalone"),t.getStandaloneInjector=e=>e.get(dM).getOrCreateStandaloneInjector(t)}function $y(t,e,n,r){return Gy(O(),ln(),t,e,n,r)}function zy(t,e,n,r,i){return Wy(O(),ln(),t,e,n,r,i)}function mB(t,e,n,r,i,o,s){return qy(O(),ln(),t,e,n,r,i,o,s)}function gB(t,e,n,r,i,o,s,a){let u=ln()+t,c=O(),l=Rd(c,u,n,r,i,o);return it(c,u+4,s)||l?Hr(c,u+5,a?e.call(a,n,r,i,o,s):e(n,r,i,o,s)):Ry(c,u+5)}function yB(t,e,n,r,i,o,s,a,u){let c=ln()+t,l=O(),d=Rd(l,c,n,r,i,o);return Si(l,c+4,s,a)||d?Hr(l,c+6,u?e.call(u,n,r,i,o,s,a):e(n,r,i,o,s,a)):Ry(l,c+6)}function So(t,e){let n=t[e];return n===dn?void 0:n}function Gy(t,e,n,r,i,o){let s=e+n;return it(t,s,i)?Hr(t,s+1,o?r.call(o,i):r(i)):So(t,s+1)}function Wy(t,e,n,r,i,o,s){let a=e+n;return Si(t,a,i,o)?Hr(t,a+2,s?r.call(s,i,o):r(i,o)):So(t,a+2)}function fM(t,e,n,r,i,o,s,a){let u=e+n;return yI(t,u,i,o,s)?Hr(t,u+3,a?r.call(a,i,o,s):r(i,o,s)):So(t,u+3)}function qy(t,e,n,r,i,o,s,a,u){let c=e+n;return Rd(t,c,i,o,s,a)?Hr(t,c+4,u?r.call(u,i,o,s,a):r(i,o,s,a)):So(t,c+4)}function hM(t,e,n,r,i,o){let s=e+n,a=!1;for(let u=0;u=0;n--){let r=e[n];if(t===r.name)return r}}function $d(t,e,n){let r=t+_e,i=O(),o=Lr(i,r);return Ao(i,r)?Gy(i,ln(),e,o.transform,n,o):o.transform(n)}function vB(t,e,n,r){let i=t+_e,o=O(),s=Lr(o,i);return Ao(o,i)?Wy(o,ln(),e,s.transform,n,r,s):s.transform(n,r)}function DB(t,e,n,r,i){let o=t+_e,s=O(),a=Lr(s,o);return Ao(s,o)?fM(s,ln(),e,a.transform,n,r,i,a):a.transform(n,r,i)}function bB(t,e,n,r,i,o){let s=t+_e,a=O(),u=Lr(a,s);return Ao(a,s)?qy(a,ln(),e,u.transform,n,r,i,o,u):u.transform(n,r,i,o)}function _B(t,e,n){let r=t+_e,i=O(),o=Lr(i,r);return Ao(i,r)?hM(i,ln(),e,o.transform,n,o):o.transform.apply(o,n)}function Ao(t,e){return t[H].data[e].pure}function EB(t,e){return Ka(t,e)}var wB=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var mM=new b("");function Li(t){return!!t&&typeof t.then=="function"}function zd(t){return!!t&&typeof t.subscribe=="function"}var gM=new b(""),Yy=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=f(gM,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(Li(s))r.push(s);else if(zd(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});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}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Zy=new b("");function yM(){Wh(()=>{throw new _(600,!1)})}function vM(t){return t.isBoundToModule}var DM=10;function bM(t,e,n){try{let r=n();return Li(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var tu=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=f(TE),this.afterRenderEffectManager=f(Fd),this.zonelessEnabled=f(Od),this.externalTestViews=new Set,this.beforeRender=new Pe,this.afterTick=new Pe,this.componentTypes=[],this.components=[],this.isStable=f(Vr).hasPendingTasks.pipe(N(r=>!r)),this._injector=f(Pt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof ga;if(!this._injector.get(Yy).done){let h=!o&&__(r),p=!1;throw new _(405,p)}let a;o?a=r:a=this._injector.get(Ti).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=vM(a)?void 0:this._injector.get(Mn),c=i||a.selector,l=a.create(Et.NULL,[],c,u),d=l.location.nativeElement,m=l.injector.get(mM,null);return m==null||m.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Yc(this.components,l),m==null||m.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new _(101,!1);let i=Y(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,Y(i),this.afterTick.next()}}detectChangesInAttachedViews(r){var a,u;let i=null;this._injector.destroyed||(i=this._injector.get(ya,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oyo(l))&&(s.execute(),!this.allViews.some(({_lView:l})=>yo(l))))break}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Yc(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Zy,[]);[...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),()=>Yc(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new _(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Yc(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function _M(t,e,n,r){if(!n&&!yo(t))return;_y(t,e,n&&!r?0:1)}var zl=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},CB=(()=>{let e=class e{compileModuleSync(r){return new Fl(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=km(r),s=qg(o.declarations).reduce((a,u)=>{let c=Cn(u);return c&&a.push(new Fr(c)),a},[]);return new zl(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var EM=(()=>{let e=class e{constructor(){this.zone=f(te),this.changeDetectionScheduler=f(Mi),this.applicationRef=f(tu)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;(r=this._onMicrotaskEmptySubscription)==null||r.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wM=new b("",{factory:()=>!1});function Qy({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??(t=()=>new te(Ky())),[{provide:te,useFactory:t},{provide:ra,multi:!0,useFactory:()=>{let n=f(EM,{optional:!0});return()=>n.initialize()}},{provide:ra,multi:!0,useFactory:()=>{let n=f(CM);return()=>{n.initialize()}}},e===!0?{provide:Iy,useValue:!0}:[]]}function IB(t){let e=t==null?void 0:t.ignoreChangesOutsideZone,n=Qy({ngZoneFactory:()=>{let r=Ky(t);return r.shouldCoalesceEventChangeDetection&&Qt("NgZone_CoalesceEvent"),new te(r)},ignoreChangesOutsideZone:e});return nd([{provide:wM,useValue:!0},{provide:Od,useValue:!1},n])}function Ky(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(t==null?void 0:t.eventCoalescing)??!1,shouldCoalesceRunChangeDetection:(t==null?void 0:t.runCoalescing)??!1}}var CM=(()=>{let e=class e{constructor(){this.subscription=new Ee,this.initialized=!1,this.zone=f(te),this.pendingTasks=f(Vr)}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(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),r??(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var IM=(()=>{let e=class e{constructor(){this.appRef=f(tu),this.taskService=f(Vr),this.ngZone=f(te),this.zonelessEnabled=f(Od),this.disableScheduling=f(Iy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ee,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||(this.disableScheduling=!this.zonelessEnabled&&(this.ngZone instanceof hl||!this.zoneIsDefined))}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?Gp:xg;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&te.isInAngularZone())}tick(r){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Gp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){var r;if(this.shouldRefreshViews=!1,this.runningTick=!1,(r=this.cancelScheduledCallback)==null||r.call(this),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function MM(){return typeof $localize<"u"&&$localize.locale||Ta}var xo=new b("",{providedIn:"root",factory:()=>f(xo,Q.Optional|Q.SkipSelf)||MM()});var Xy=new b("");var Js=null;function TM(t=[],e){return Et.create({name:e,providers:[{provide:Um,useValue:"platform"},{provide:Xy,useValue:new Set([()=>Js=null])},...t]})}function SM(t=[]){if(Js)return Js;let e=TM(t);return Js=e,yM(),AM(e),e}function AM(t){let e=t.get(LE,null);e==null||e.forEach(n=>n())}var gt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=xM;let t=e;return t})();function xM(t){return NM(ze(),O(),(t&16)===16)}function NM(t,e,n){if(ka(t)&&!n){let r=Kn(t.index,e);return new Or(r,r)}else if(t.type&175){let r=e[_t];return new Or(r,e)}return null}var Gl=class{constructor(){}supports(e){return Py(e)}create(e){return new Wl(e)}},OM=(t,e)=>e,Wl=class{constructor(e){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=e||OM}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){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=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,i),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,i)):e=this._addAfter(new ql(n,r),o,i)),e}_verifyReinsertion(e,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=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(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let i=n===null?this._itHead:n._next;return e._next=i,e._prev=n,i===null?this._itTail=e:i._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new Sa),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Sa),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},ql=class{constructor(e,n){this.item=e,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}},Yl=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Sa=class{constructor(){this.map=new Map}put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Yl,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,i=this.map.get(r);return i?i.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function vm(t,e,n){let r=t.previousIndex;if(r===null)return r;let i=0;return n&&r{let e=class e{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||Dm()),deps:[[e,new Sn,new un]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new _(901,!1)}};e.\u0275prov=L({token:e,providedIn:"root",factory:Dm});let t=e;return t})();function MB(t){try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=SM(r),o=[Qy({}),{provide:Mi,useExisting:IM},...n||[]],a=new Ea({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(te);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(Nr,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:h=>{c.handleError(h)}})});let d=()=>a.destroy(),m=i.get(Xy);return m.add(d),a.onDestroy(()=>{l.unsubscribe(),m.delete(d)}),bM(c,u,()=>{let h=a.get(Yy);return h.runInitializers(),h.donePromise.then(()=>{let p=a.get(xo,Ta);KI(p||Ta);let g=a.get(tu);return e!==void 0&&g.bootstrap(e),g})})})}catch(e){return Promise.reject(e)}}var TB=new b("");function Wd(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Ur(t,e){Qt("NgSignals");let n=$h(t);return e!=null&&e.equal&&(n[Ut].equal=e.equal),n}function yt(t){let e=Y(null);try{return t()}finally{Y(e)}}var FM=new b("",{providedIn:"root",factory:()=>f(PM)}),PM=(()=>{let e=class e{};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new Zl});let t=e;return t})(),Zl=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=f(Vr),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(e){let n=e.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||(this.queuedEffectCount++,r.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,n]of this.queues)e===null?this.flushQueue(n):e.run(()=>this.flushQueue(n))}flushQueue(e){for(let n of e)e.delete(n),this.queuedEffectCount--,n.run()}},Ql=class{constructor(e,n,r,i,o,s){this.scheduler=e,this.effectFn=n,this.creationZone=r,this.injector=o,this.watcher=Zh(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i==null?void 0:i.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(n){let r=this.injector.get(Nr,null,{optional:!0});r==null||r.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var e;this.watcher.destroy(),(e=this.unregisterOnDestroy)==null||e.call(this)}};function No(t,e){var s;Qt("NgSignals"),!(e!=null&&e.injector)&&Ni(No);let n=(e==null?void 0:e.injector)??f(Et),r=(e==null?void 0:e.manualCleanup)!==!0?n.get(Ge):null,i=new Ql(n.get(FM),t,typeof Zone>"u"?null:Zone.current,r,n,(e==null?void 0:e.allowSignalWrites)??!1),o=n.get(gt,null,{optional:!0});return!o||!(o._lView[k]&8)?i.watcher.notify():((s=o._lView)[vi]??(s[vi]=[])).push(i.watcher.notify),i}function Jy(t,e){let n=Cn(t),r=e.elementInjector||Pa();return new Fr(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector)}function SB(t){let e=Cn(t);if(!e)return null;let n=new Fr(e);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var uv=null;function Vi(){return uv}function ZB(t){uv??(uv=t)}var ev=class{};var qe=new b(""),rf=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:()=>f(LM),providedIn:"platform"});let t=e;return t})(),QB=new b(""),LM=(()=>{let e=class e extends rf{constructor(){super(),this._doc=f(qe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Vi().getBaseHref(this._doc)}onPopState(r){let i=Vi().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Vi().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}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function of(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function tv(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-(t[n-1]==="/"?1:0);return t.slice(0,r)+t.slice(n)}function Fn(t){return t&&t[0]!=="?"?"?"+t:t}var ou=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:()=>f(VM),providedIn:"root"});let t=e;return t})(),cv=new b(""),VM=(()=>{let e=class e extends ou{constructor(r,i){var o;super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??((o=f(qe).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 of(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Fn(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Fn(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Fn(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)}};e.\u0275fac=function(i){return new(i||e)(ve(rf),ve(cv,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),KB=(()=>{let e=class e extends ou{constructor(r,i){super(),this._platformLocation=r,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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}path(r=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(r){let i=of(this._baseHref,r);return i.length>0?"#"+i:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Fn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Fn(s));a.length==0&&(a=this._platformLocation.pathname),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)}};e.\u0275fac=function(i){return new(i||e)(ve(rf),ve(cv,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),jM=(()=>{let e=class e{constructor(r){this._subject=new Ue,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=UM(tv(nv(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+Fn(i))}normalize(r){return e.stripTrailingSlash(HM(this._basePath,nv(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+Fn(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Fn(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})}};e.normalizeQueryParams=Fn,e.joinWithSlash=of,e.stripTrailingSlash=tv,e.\u0275fac=function(i){return new(i||e)(ve(ou))},e.\u0275prov=L({token:e,factory:()=>BM(),providedIn:"root"});let t=e;return t})();function BM(){return new jM(ve(ou))}function HM(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function nv(t){return t.replace(/\/index.html$/,"")}function UM(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}var lv=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(lv||{});var Pn={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Oo(t,e){let n=Vd(t),r=n[Pi.NumberSymbols][e];if(typeof r>"u"){if(e===Pn.CurrencyDecimal)return n[Pi.NumberSymbols][Pn.Decimal];if(e===Pn.CurrencyGroup)return n[Pi.NumberSymbols][Pn.Group]}return r}function $M(t,e){return Vd(t)[Pi.NumberFormats][e]}var zM=/^(\d+)?\.((\d+)(-(\d+))?)?$/,rv=22,nu=".",Fo="0",GM=";",WM=",",Yd="#";function qM(t,e,n,r,i,o,s=!1){let a="",u=!1;if(!isFinite(t))a=Oo(n,Pn.Infinity);else{let c=KM(t);s&&(c=QM(c));let l=e.minInt,d=e.minFrac,m=e.maxFrac;if(o){let x=o.match(zM);if(x===null)throw new Error(`${o} is not a valid digit info`);let Z=x[1],A=x[3],Ae=x[5];Z!=null&&(l=Zd(Z)),A!=null&&(d=Zd(A)),Ae!=null?m=Zd(Ae):A!=null&&d>m&&(m=d)}XM(c,d,m);let h=c.digits,p=c.integerLen,g=c.exponent,v=[];for(u=h.every(x=>!x);p0?v=h.splice(p,h.length):(v=h,h=[0]);let D=[];for(h.length>=e.lgSize&&D.unshift(h.splice(-e.lgSize,h.length).join(""));h.length>e.gSize;)D.unshift(h.splice(-e.gSize,h.length).join(""));h.length&&D.unshift(h.join("")),a=D.join(Oo(n,r)),v.length&&(a+=Oo(n,i)+v.join("")),g&&(a+=Oo(n,Pn.Exponential)+"+"+g)}return t<0&&!u?a=e.negPre+a+e.negSuf:a=e.posPre+a+e.posSuf,a}function YM(t,e,n){let r=$M(e,lv.Decimal),i=ZM(r,Oo(e,Pn.MinusSign));return qM(t,i,e,Pn.Group,Pn.Decimal,n)}function ZM(t,e="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(GM),i=r[0],o=r[1],s=i.indexOf(nu)!==-1?i.split(nu):[i.substring(0,i.lastIndexOf(Fo)+1),i.substring(i.lastIndexOf(Fo)+1)],a=s[0],u=s[1]||"";n.posPre=a.substring(0,a.indexOf(Yd));for(let l=0;l-1&&(e=e.replace(nu,"")),(o=e.search(/e/i))>0?(i<0&&(i=o),i+=+e.slice(o+1),e=e.substring(0,o)):i<0&&(i=e.length),o=0;e.charAt(o)===Fo;o++);if(o===(a=e.length))r=[0],i=1;else{for(a--;e.charAt(a)===Fo;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(e.charAt(o))}return i>rv&&(r=r.splice(0,rv-1),n=i-1,i=1),{digits:r,exponent:n,integerLen:i}}function XM(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i=c?p.pop():u=!1),m>=10?1:0},0);l&&(r.unshift(l),t.integerLen++)}function Zd(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function dv(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Qd=/\s+/,iv=[],XB=(()=>{let e=class e{constructor(r,i){this._ngEl=r,this._renderer=i,this.initialClasses=iv,this.stateMap=new Map}set klass(r){this.initialClasses=r!=null?r.trim().split(Qd):iv}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(Qd):r}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let i of r)this._updateState(i,!0);else if(r!=null)for(let i of Object.keys(r))this._updateState(i,!!r[i]);this._applyStateDiff()}_updateState(r,i){let o=this.stateMap.get(r);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(r,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let r of this.stateMap){let i=r[0],o=r[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(r,i){r=r.trim(),r.length>0&&r.split(Qd).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(V(Me),V(er))},e.\u0275dir=E({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})(),JB=(()=>{let e=class e{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=Fy(this.ngComponentOutletNgModule,ov(o)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(ov(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))}};e.\u0275fac=function(i){return new(i||e)(V(et))},e.\u0275dir=E({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[Zt]});let t=e;return t})();function ov(t){return t.get(Mn).injector}var Kd=class{constructor(e,n,r,i){this.$implicit=e,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}},$r=(()=>{let e=class e{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 Kd(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 u=i.get(s);i.move(u,a),sv(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);sv(s,o)})}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(V(et),V(Ie),V(Gd))},e.\u0275dir=E({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function sv(t,e){t.context.$implicit=e.item}var Po=(()=>{let e=class e{constructor(r,i){this._viewContainer=r,this._context=new Xd,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){av("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){av("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}};e.\u0275fac=function(i){return new(i||e)(V(et),V(Ie))},e.\u0275dir=E({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Xd=class{constructor(){this.$implicit=null,this.ngIf=null}};function av(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${rt(e)}'.`)}var ru=class{constructor(e,n){this._viewContainerRef=e,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},su=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(r){this._ngSwitch=r,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(r){this._defaultViews.push(r)}_matchCase(r){let i=r===this._ngSwitch;return this._lastCasesMatched||(this._lastCasesMatched=i),this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(r){if(this._defaultViews.length>0&&r!==this._defaultUsed){this._defaultUsed=r;for(let i of this._defaultViews)i.enforceState(r)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),fv=(()=>{let e=class e{constructor(r,i,o){this.ngSwitch=o,o._addCase(),this._view=new ru(r,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(i){return new(i||e)(V(et),V(Ie),V(su,9))},e.\u0275dir=E({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),hv=(()=>{let e=class e{constructor(r,i,o){o._addDefault(new ru(r,i))}};e.\u0275fac=function(i){return new(i||e)(V(et),V(Ie),V(su,9))},e.\u0275dir=E({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var e2=(()=>{let e=class e{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(r,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(V(et))},e.\u0275dir=E({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Zt]});let t=e;return t})();function pv(t,e){return new _(2100,!1)}var Jd=class{createSubscription(e,n){return yt(()=>e.subscribe({next:n,error:r=>{throw r}}))}dispose(e){yt(()=>e.unsubscribe())}},ef=class{createSubscription(e,n){return e.then(n,r=>{throw r})}dispose(e){}},JM=new ef,eT=new Jd,mv=(()=>{let e=class e{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(Li(r))return JM;if(zd(r))return eT;throw pv(e,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()))}};e.\u0275fac=function(i){return new(i||e)(V(gt,16))},e.\u0275pipe=Fa({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var t2=(()=>{let e=class e{constructor(r){this._locale=r}transform(r,i,o){if(!tT(r))return null;o||(o=this._locale);try{let s=nT(r);return YM(s,o,i)}catch(s){throw pv(e,s.message)}}};e.\u0275fac=function(i){return new(i||e)(V(xo,16))},e.\u0275pipe=Fa({name:"number",type:e,pure:!0,standalone:!0});let t=e;return t})();function tT(t){return!(t==null||t===""||t!==t)}function nT(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var n2=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=kr({type:e}),e.\u0275inj=Rr({});let t=e;return t})(),rT="browser",iT="server";function sf(t){return t===rT}function oT(t){return t===iT}var r2=(()=>{let e=class e{};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>sf(f(jr))?new tf(f(qe),window):new nf});let t=e;return t})(),tf=class{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let n=sT(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function sT(t,e){let n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=r.nextNode()}}return null}var nf=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},iu=class{};var ko=class{},uu=class{},Rn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.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"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let i=(e.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=e.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(e,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var uf=class{encodeKey(e){return gv(e)}encodeValue(e){return gv(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function uT(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}var cT=/%(\d[a-f0-9])/gi,lT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function gv(t){return encodeURIComponent(t).replace(cT,(e,n)=>lT[n]??e)}function au(t){return`${t}`}var nr=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new uf,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=uT(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],i=Array.isArray(r)?r.map(au):[au(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(au(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],i=r.indexOf(au(e.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var cf=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function dT(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function yv(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function vv(t){return typeof Blob<"u"&&t instanceof Blob}function Dv(t){return typeof FormData<"u"&&t instanceof FormData}function fT(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ro=class t{constructor(e,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(dT(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??(this.headers=new Rn),this.context??(this.context=new cf),!this.params)this.params=new nr,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),u=a===-1?"?":am.set(h,e.setHeaders[h]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((m,h)=>m.set(h,e.setParams[h]),l)),new t(n,r,s,{params:l,headers:c,context:d,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},rr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(rr||{}),Lo=class{constructor(e,n=200,r="OK"){this.headers=e.headers||new Rn,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},cu=class t extends Lo{constructor(e={}){super(e),this.type=rr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Vo=class t extends Lo{constructor(e={}){super(e),this.type=rr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},tr=class extends Lo{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},wv=200,hT=204;function af(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var pT=(()=>{let e=class e{constructor(r){this.handler=r}request(r,i,o={}){let s;if(r instanceof Ro)s=r;else{let c;o.headers instanceof Rn?c=o.headers:c=new Rn(o.headers);let l;o.params&&(o.params instanceof nr?l=o.params:l=new nr({fromObject:o.params})),s=new Ro(r,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=Ce(s).pipe(Tc(c=>this.handler.handle(c)));if(r instanceof Ro||o.observe==="events")return a;let u=a.pipe(Ne(c=>c instanceof Vo));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(N(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(N(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(N(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(N(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(r,i={}){return this.request("DELETE",r,i)}get(r,i={}){return this.request("GET",r,i)}head(r,i={}){return this.request("HEAD",r,i)}jsonp(r,i){return this.request("JSONP",r,{params:new nr().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,i={}){return this.request("OPTIONS",r,i)}patch(r,i,o={}){return this.request("PATCH",r,af(o,i))}post(r,i,o={}){return this.request("POST",r,af(o,i))}put(r,i,o={}){return this.request("PUT",r,af(o,i))}};e.\u0275fac=function(i){return new(i||e)(ve(ko))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),mT=/^\)\]\}',?\n/,gT="X-Request-URL";function bv(t){if(t.url)return t.url;let e=gT.toLocaleLowerCase();return t.headers.get(e)}var yT=(()=>{let e=class e{constructor(){var r;this.fetchImpl=((r=f(lf,{optional:!0}))==null?void 0:r.fetch)??fetch.bind(globalThis),this.ngZone=f(te)}handle(r){return new I(i=>{let o=new AbortController;return this.doRequest(r,o.signal,i).then(df,s=>i.error(new tr({error:s}))),()=>o.abort()})}doRequest(r,i,o){return ti(this,null,function*(){let s=this.createRequestInit(r),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(r.urlWithParams,M({signal:i},s)));vT(p),o.next({type:rr.Sent}),a=yield p}catch(p){o.error(new tr({error:p,status:p.status??0,statusText:p.statusText,url:r.urlWithParams,headers:p.headers}));return}let u=new Rn(a.headers),c=a.statusText,l=bv(a)??r.urlWithParams,d=a.status,m=null;if(r.reportProgress&&o.next(new cu({headers:u,status:d,statusText:c,url:l})),a.body){let p=a.headers.get("content-length"),g=[],v=a.body.getReader(),D=0,x,Z,A=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>ti(this,null,function*(){for(;;){let{done:he,value:re}=yield v.read();if(he)break;if(g.push(re),D+=re.length,r.reportProgress){Z=r.responseType==="text"?(Z??"")+(x??(x=new TextDecoder)).decode(re,{stream:!0}):void 0;let xe=()=>o.next({type:rr.DownloadProgress,total:p?+p:void 0,loaded:D,partialText:Z});A?A.run(xe):xe()}}}));let Ae=this.concatChunks(g,D);try{let he=a.headers.get("Content-Type")??"";m=this.parseBody(r,Ae,he)}catch(he){o.error(new tr({error:he,headers:new Rn(a.headers),status:a.status,statusText:a.statusText,url:bv(a)??r.urlWithParams}));return}}d===0&&(d=m?wv:0),d>=200&&d<300?(o.next(new Vo({body:m,headers:u,status:d,statusText:c,url:l})),o.complete()):o.error(new tr({error:m,headers:u,status:d,statusText:c,url:l}))})}parseBody(r,i,o){switch(r.responseType){case"json":let s=new TextDecoder().decode(i).replace(mT,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(r){let i={},o=r.withCredentials?"include":void 0;if(r.headers.forEach((s,a)=>i[s]=a.join(",")),r.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!r.headers.has("Content-Type")){let s=r.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:r.serializeBody(),method:r.method,headers:i,credentials:o}}concatChunks(r,i){let o=new Uint8Array(i),s=0;for(let a of r)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),lf=class{};function df(){}function vT(t){t.then(df,df)}function DT(t,e){return e(t)}function bT(t,e,n){return(r,i)=>id(n,()=>e(r,o=>t(o,i)))}var Cv=new b(""),_T=new b(""),ET=new b("",{providedIn:"root",factory:()=>!0});var _v=(()=>{let e=class e extends ko{constructor(r,i){super(),this.backend=r,this.injector=i,this.chain=null,this.pendingTasks=f(Vr),this.contributeToStability=f(ET)}handle(r){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Cv),...this.injector.get(_T,[])]));this.chain=i.reduceRight((o,s)=>bT(o,s,this.injector),DT)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(r,o=>this.backend.handle(o)).pipe(fi(()=>this.pendingTasks.remove(i)))}else return this.chain(r,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(ve(uu),ve(Pt))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();var wT=/^\)\]\}',?\n/;function CT(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Ev=(()=>{let e=class e{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new _(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?nt(i.\u0275loadImpl()):Ce(null)).pipe(He(()=>new I(s=>{let a=i.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((v,D)=>a.setRequestHeader(v,D.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let v=r.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(r.responseType){let v=r.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let u=r.serializeBody(),c=null,l=()=>{if(c!==null)return c;let v=a.statusText||"OK",D=new Rn(a.getAllResponseHeaders()),x=CT(a)||r.url;return c=new cu({headers:D,status:a.status,statusText:v,url:x}),c},d=()=>{let{headers:v,status:D,statusText:x,url:Z}=l(),A=null;D!==hT&&(A=typeof a.response>"u"?a.responseText:a.response),D===0&&(D=A?wv:0);let Ae=D>=200&&D<300;if(r.responseType==="json"&&typeof A=="string"){let he=A;A=A.replace(wT,"");try{A=A!==""?JSON.parse(A):null}catch(re){A=he,Ae&&(Ae=!1,A={error:re,text:A})}}Ae?(s.next(new Vo({body:A,headers:v,status:D,statusText:x,url:Z||void 0})),s.complete()):s.error(new tr({error:A,headers:v,status:D,statusText:x,url:Z||void 0}))},m=v=>{let{url:D}=l(),x=new tr({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:D||void 0});s.error(x)},h=!1,p=v=>{h||(s.next(l()),h=!0);let D={type:rr.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(D.total=v.total),r.responseType==="text"&&a.responseText&&(D.partialText=a.responseText),s.next(D)},g=v=>{let D={type:rr.UploadProgress,loaded:v.loaded};v.lengthComputable&&(D.total=v.total),s.next(D)};return a.addEventListener("load",d),a.addEventListener("error",m),a.addEventListener("timeout",m),a.addEventListener("abort",m),r.reportProgress&&(a.addEventListener("progress",p),u!==null&&a.upload&&a.upload.addEventListener("progress",g)),a.send(u),s.next({type:rr.Sent}),()=>{a.removeEventListener("error",m),a.removeEventListener("abort",m),a.removeEventListener("load",d),a.removeEventListener("timeout",m),r.reportProgress&&(a.removeEventListener("progress",p),u!==null&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(ve(iu))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Iv=new b(""),IT="XSRF-TOKEN",MT=new b("",{providedIn:"root",factory:()=>IT}),TT="X-XSRF-TOKEN",ST=new b("",{providedIn:"root",factory:()=>TT}),lu=class{},AT=(()=>{let e=class e{constructor(r,i,o){this.doc=r,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=dv(r,this.cookieName),this.lastCookieString=r),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(ve(qe),ve(jr),ve(MT))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();function xT(t,e){let n=t.url.toLowerCase();if(!f(Iv)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=f(lu).getToken(),i=f(ST);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),e(t)}function g2(...t){let e=[pT,Ev,_v,{provide:ko,useExisting:_v},{provide:uu,useFactory:()=>f(yT,{optional:!0})??f(Ev)},{provide:Cv,useValue:xT,multi:!0},{provide:Iv,useValue:!0},{provide:lu,useClass:AT}];for(let n of t)e.push(...n.\u0275providers);return nd(e)}var Pv=(()=>{let e=class e{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)}};e.\u0275fac=function(i){return new(i||e)(V(er),V(Me))},e.\u0275dir=E({type:e});let t=e;return t})(),hf=(()=>{let e=class e extends Pv{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Nn(e)))(o||e)}})(),e.\u0275dir=E({type:e,features:[ke]});let t=e;return t})(),Go=new b(""),NT={provide:Go,useExisting:Tn(()=>OT),multi:!0},OT=(()=>{let e=class e extends hf{writeValue(r){this.setProperty("checked",r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Nn(e)))(o||e)}})(),e.\u0275dir=E({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){i&1&&pt("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[X([NT]),ke]});let t=e;return t})(),FT={provide:Go,useExisting:Tn(()=>Rv),multi:!0};function PT(){let t=Vi()?Vi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var RT=new b(""),Rv=(()=>{let e=class e extends Pv{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!PT())}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)}};e.\u0275fac=function(i){return new(i||e)(V(er),V(Me),V(RT,8))},e.\u0275dir=E({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&pt("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:[X([FT]),ke]});let t=e;return t})();var pf=new b(""),mf=new b("");function kv(t){return t!=null}function Lv(t){return Li(t)?nt(t):t}function Vv(t){let e={};return t.forEach(n=>{e=n!=null?M(M({},e),n):e}),Object.keys(e).length===0?null:e}function jv(t,e){return e.map(n=>n(t))}function kT(t){return!t.validate}function Bv(t){return t.map(e=>kT(e)?e:n=>e.validate(n))}function LT(t){if(!t)return null;let e=t.filter(kv);return e.length==0?null:function(n){return Vv(jv(n,e))}}function gf(t){return t!=null?LT(Bv(t)):null}function VT(t){if(!t)return null;let e=t.filter(kv);return e.length==0?null:function(n){let r=jv(n,e).map(Lv);return Ic(r).pipe(N(Vv))}}function yf(t){return t!=null?VT(Bv(t)):null}function Mv(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Hv(t){return t._rawValidators}function Uv(t){return t._rawAsyncValidators}function ff(t){return t?Array.isArray(t)?t:[t]:[]}function fu(t,e){return Array.isArray(t)?t.includes(e):t===e}function Tv(t,e){let n=ff(e);return ff(t).forEach(i=>{fu(n,i)||n.push(i)}),n}function Sv(t,e){return ff(e).filter(n=>!fu(t,n))}var hu=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=gf(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=yf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},Hi=class extends hu{get formDirective(){return null}get path(){return null}},kn=class extends hu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},pu=class{constructor(e){this._cd=e}get isTouched(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._touched)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.touched)}get isUntouched(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.untouched)}get isPristine(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._pristine)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.pristine)}get isDirty(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.dirty)}get isValid(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._status)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.valid)}get isInvalid(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.invalid)}get isPending(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.pending)}get isSubmitted(){var e,n,r;return(n=(e=this._cd)==null?void 0:e._submitted)==null||n.call(e),!!((r=this._cd)!=null&&r.submitted)}},jT={"[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"},P2=K(M({},jT),{"[class.ng-submitted]":"isSubmitted"}),R2=(()=>{let e=class e extends pu{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(V(kn,2))},e.\u0275dir=E({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&We("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:[ke]});let t=e;return t})(),k2=(()=>{let e=class e extends pu{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(V(Hi,10))},e.\u0275dir=E({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&We("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)("ng-submitted",o.isSubmitted)},features:[ke]});let t=e;return t})();var jo="VALID",du="INVALID",ji="PENDING",Bo="DISABLED",Ui=class{},mu=class extends Ui{constructor(e,n){super(),this.value=e,this.source=n}},Uo=class extends Ui{constructor(e,n){super(),this.pristine=e,this.source=n}},$o=class extends Ui{constructor(e,n){super(),this.touched=e,this.source=n}},Bi=class extends Ui{constructor(e,n){super(),this.status=e,this.source=n}};function vf(t){return(vu(t)?t.validators:t)||null}function BT(t){return Array.isArray(t)?gf(t):t||null}function Df(t,e){return(vu(e)?e.asyncValidators:t)||null}function HT(t){return Array.isArray(t)?yf(t):t||null}function vu(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function $v(t,e,n){let r=t.controls;if(!(e?Object.keys(r):r).length)throw new _(1e3,"");if(!r[n])throw new _(1001,"")}function zv(t,e,n){t._forEachChild((r,i)=>{if(n[i]===void 0)throw new _(1002,"")})}var zo=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Ur(()=>this.statusReactive()),this.statusReactive=fn(void 0),this._pristine=Ur(()=>this.pristineReactive()),this.pristineReactive=fn(!0),this._touched=Ur(()=>this.touchedReactive()),this.touchedReactive=fn(!1),this._events=new Pe,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return yt(this.statusReactive)}set status(e){yt(()=>this.statusReactive.set(e))}get valid(){return this.status===jo}get invalid(){return this.status===du}get pending(){return this.status==ji}get disabled(){return this.status===Bo}get enabled(){return this.status!==Bo}get pristine(){return yt(this.pristineReactive)}set pristine(e){yt(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return yt(this.touchedReactive)}set touched(e){yt(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Tv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Tv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Sv(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Sv(e,this._rawAsyncValidators))}hasValidator(e){return fu(this._rawValidators,e)}hasAsyncValidator(e){return fu(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(K(M({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new $o(!0,r))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),n&&e.emitEvent!==!1&&this._events.next(new $o(!1,r))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(K(M({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Uo(!1,r))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&e.emitEvent!==!1&&this._events.next(new Uo(!0,r))}markAsPending(e={}){this.status=ji;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Bi(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(K(M({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=Bo,this.errors=null,this._forEachChild(i=>{i.disable(K(M({},e),{onlySelf:!0}))}),this._updateValue();let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new mu(this.value,r)),this._events.next(new Bi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(K(M({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=jo,this._forEachChild(r=>{r.enable(K(M({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(K(M({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===jo||this.status===ji)&&this._runAsyncValidator(r,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new mu(this.value,n)),this._events.next(new Bi(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(K(M({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Bo:jo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=ji,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Lv(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){var e;if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=((e=this._hasOwnPendingAsyncValidator)==null?void 0:e.emitEvent)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new Bi(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,r)}_initObservables(){this.valueChanges=new Ue,this.statusChanges=new Ue}_calculateStatus(){return this._allControlsDisabled()?Bo:this.errors?du:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ji)?ji:this._anyControlsHaveStatus(du)?du:jo}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&this._events.next(new Uo(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new $o(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){vu(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=BT(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=HT(this._rawAsyncValidators)}},gu=class extends zo{constructor(e,n,r){super(vf(n),Df(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){zv(this,!0,e),Object.keys(e).forEach(r=>{$v(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(r=>{let i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&e(r))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(e,n){let r=e;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Wo=new b("CallSetDisabledState",{providedIn:"root",factory:()=>Du}),Du="always";function UT(t,e){return[...e.path,t]}function bf(t,e,n=Du){var r,i;Gv(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&((i=(r=e.valueAccessor).setDisabledState)==null||i.call(r,t.disabled)),GT(t,e),qT(t,e),WT(t,e),$T(t,e)}function Av(t,e,n=!0){let r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),zT(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function yu(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function $T(t,e){if(e.valueAccessor.setDisabledState){let n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function Gv(t,e){let n=Hv(t);e.validator!==null?t.setValidators(Mv(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let r=Uv(t);e.asyncValidator!==null?t.setAsyncValidators(Mv(r,e.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();yu(e._rawValidators,i),yu(e._rawAsyncValidators,i)}function zT(t,e){let n=!1;if(t!==null){if(e.validator!==null){let i=Hv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Uv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(n=!0,t.setAsyncValidators(o))}}}let r=()=>{};return yu(e._rawValidators,r),yu(e._rawAsyncValidators,r),n}function GT(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Wv(t,e)})}function WT(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Wv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Wv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function qT(t,e){let n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function YT(t,e){t==null,Gv(t,e)}function qv(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function ZT(t){return Object.getPrototypeOf(t.constructor)===hf}function QT(t,e){t._syncPendingControls(),e.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function Yv(t,e){if(!e)return null;Array.isArray(e);let n,r,i;return e.forEach(o=>{o.constructor===Rv?n=o:ZT(o)?r=o:i=o}),i||r||n||null}var KT={provide:Hi,useExisting:Tn(()=>XT)},Ho=Promise.resolve(),XT=(()=>{let e=class e extends Hi{get submitted(){return yt(this.submittedReactive)}constructor(r,i,o){super(),this.callSetDisabledState=o,this._submitted=Ur(()=>this.submittedReactive()),this.submittedReactive=fn(!1),this._directives=new Set,this.ngSubmit=new Ue,this.form=new gu({},gf(r),yf(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(r){Ho.then(()=>{let i=this._findContainer(r.path);r.control=i.registerControl(r.name,r.control),bf(r.control,r,this.callSetDisabledState),r.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(r)})}getControl(r){return this.form.get(r.path)}removeControl(r){Ho.then(()=>{let i=this._findContainer(r.path);i&&i.removeControl(r.name),this._directives.delete(r)})}addFormGroup(r){Ho.then(()=>{let i=this._findContainer(r.path),o=new gu({});YT(o,r),i.registerControl(r.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(r){Ho.then(()=>{let i=this._findContainer(r.path);i&&i.removeControl(r.name)})}getFormGroup(r){return this.form.get(r.path)}updateModel(r,i){Ho.then(()=>{this.form.get(r.path).setValue(i)})}setValue(r){this.control.setValue(r)}onSubmit(r){var i;return this.submittedReactive.set(!0),QT(this.form,this._directives),this.ngSubmit.emit(r),((i=r==null?void 0:r.target)==null?void 0:i.method)==="dialog"}onReset(){this.resetForm()}resetForm(r=void 0){this.form.reset(r),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(r){return r.pop(),r.length?this.form.get(r):this.form}};e.\u0275fac=function(i){return new(i||e)(V(pf,10),V(mf,10),V(Wo,8))},e.\u0275dir=E({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&pt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[X([KT]),ke]});let t=e;return t})();function xv(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Nv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var JT=class extends zo{constructor(e=null,n,r){super(vf(n),Df(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),vu(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Nv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){xv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){xv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Nv(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var eS={provide:kn,useExisting:Tn(()=>tS)},Ov=Promise.resolve(),tS=(()=>{let e=class e extends kn{constructor(r,i,o,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new JT,this._registered=!1,this.name="",this.update=new Ue,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Yv(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),qv(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(){bf(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){Ov.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&&Wd(i);Ov.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?UT(r,this._parent):[r]}};e.\u0275fac=function(i){return new(i||e)(V(Hi,9),V(pf,10),V(mf,10),V(Go,10),V(gt,8),V(Wo,8))},e.\u0275dir=E({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[X([eS]),ke,Zt]});let t=e;return t})(),V2=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var nS={provide:Go,useExisting:Tn(()=>rS),multi:!0},rS=(()=>{let e=class e extends hf{writeValue(r){this.setProperty("value",parseFloat(r))}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Nn(e)))(o||e)}})(),e.\u0275dir=E({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&pt("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[X([nS]),ke]});let t=e;return t})(),Zv=new b(""),iS={provide:kn,useExisting:Tn(()=>oS)},oS=(()=>{let e=class e extends kn{set isDisabled(r){}constructor(r,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new Ue,this._ngModelWarningSent=!1,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Yv(this,o)}ngOnChanges(r){if(this._isControlChanged(r)){let i=r.form.previousValue;i&&Av(i,this,!1),bf(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}qv(r,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Av(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_isControlChanged(r){return r.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(V(pf,10),V(mf,10),V(Go,10),V(Zv,8),V(Wo,8))},e.\u0275dir=E({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[X([iS]),ke,Zt]});let t=e;return t})();var Qv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=kr({type:e}),e.\u0275inj=Rr({});let t=e;return t})(),Fv=class extends zo{constructor(e,n,r){super(vf(n),Df(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),n&&(this.controls.splice(i,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){zv(this,!1,e),e.forEach((r,i)=>{$v(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var j2=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:Wo,useValue:r.callSetDisabledState??Du}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=kr({type:e}),e.\u0275inj=Rr({imports:[Qv]});let t=e;return t})(),B2=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:Zv,useValue:r.warnOnNgModelWithFormControl??"always"},{provide:Wo,useValue:r.callSetDisabledState??Du}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=kr({type:e}),e.\u0275inj=Rr({imports:[Qv]});let t=e;return t})();function Ct(t){t||(Ni(Ct),t=f(Ge));let e=new I(n=>t.onDestroy(n.next.bind(n)));return n=>n.pipe(lt(e))}function sS(t,e){!(e!=null&&e.injector)&&Ni(sS);let n=(e==null?void 0:e.injector)??f(Et),r=new mr(1),i=No(()=>{let o;try{o=t()}catch(s){yt(()=>r.error(s));return}yt(()=>r.next(o))},{injector:n,manualCleanup:!0});return n.get(Ge).onDestroy(()=>{i.destroy(),r.complete()}),r.asObservable()}function _f(t,e){var a;let n=!(e!=null&&e.manualCleanup);n&&!(e!=null&&e.injector)&&Ni(_f);let r=n?((a=e==null?void 0:e.injector)==null?void 0:a.get(Ge))??f(Ge):null,i=aS(e==null?void 0:e.equal),o;e!=null&&e.requireSync?o=fn({kind:0},{equal:i}):o=fn({kind:1,value:e==null?void 0:e.initialValue},{equal:i});let s=t.subscribe({next:u=>o.set({kind:1,value:u}),error:u=>{if(e!=null&&e.rejectErrors)throw u;o.set({kind:2,error:u})}});if(e!=null&&e.requireSync&&o().kind===0)throw new _(601,!1);return r==null||r.onDestroy(s.unsubscribe.bind(s)),Ur(()=>{let u=o();switch(u.kind){case 1:return u.value;case 2:throw u.error;case 0:throw new _(601,!1)}},{equal:e==null?void 0:e.equal})}function aS(t=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&t(e.value,n.value)}function Xv(t,e){return t.slice(0,Math.max(e,0)).concat(t.slice(Math.max(e+1,0)))}var Q2=(t,e)=>t.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi,e);function me(t){return ne(()=>t)}function ne(t){return new b("",{factory:t})}function Ef(t){return typeof t=="string"}function uS(t,e,n,r={self:!0}){let i=Xa(n)?n:fn(n),o=f(t,r),s=o[`${e.toString()}Change`],a;return No(()=>{var c,l;let u=i();a!==u&&(Xa(o[e])?o[e].set(u):o[e]=u,(c=o.ngOnChanges)==null||c.call(o,{}),(l=s==null?void 0:s.emit)==null||l.call(s,u),a=u)},{allowSignalWrites:!0}),i}function Jv(t){let e=[];return t.find((n,r,i)=>(e=i,!0)),e}function eD(t){return typeof t=="number"}function zr(t){return t!=null}function K2(t,e,n){return t===null?e===null:e===null?!1:n(t,e)}function hn(t,e,n=!1){return{provide:t,useExisting:e,multi:n}}function ir(t,e,n){return{provide:t,deps:[[new un,new Sn,t]],useFactory:r=>M(M({},r||n),e)}}function cS(t){let e=[],n=!1,r;return function(...o){return n&&e.length===o.length&&o.every((a,u)=>a===e[u])||(e=o,r=t.apply(this,o),n=!0),r}}function Kv(t,e,n=!0){return function(){let i=t.call(this);return Object.defineProperty(this,e,{enumerable:n,value:i}),i}}function pn(t,e,n){if(typeof t=="function"){let u=e;if(u.kind==="getter")return Kv(t,u.name);if(u.kind==="method")return cS(t);throw new bu}let{get:r,enumerable:i,value:o}=n,s=e;if(r)return{configurable:!0,enumerable:i,get:Kv(r,s,i)};if(typeof o!="function")throw new bu;let a=o;return{configurable:!0,enumerable:i,get(){let u=[],c=!1,l,d=(...m)=>(c&&u.length===m.length&&m.every((p,g)=>p===u[g])||(u=m,l=a.apply(this,m),c=!0),l);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var bu=class extends Error{constructor(){super("")}};function qo(t){return`${t}px`}var lS=ne(()=>{let t=new Map;return f(Ge).onDestroy(()=>t.forEach(e=>e.destroy())),t});function Le(t){let e=f(lS),n=f(Pt);e.has(t)||e.set(t,Jy(t,{environmentInjector:n}))}var dS={appearance:""},tD=me(dS);function $i(t){return hn(tD,t)}var fS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-appearance"],standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`[tuiAppearance]{transition-property:color,background,opacity,box-shadow,border;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;-webkit-appearance:none;appearance:none;outline:.125rem solid transparent;outline-offset:-.125rem}[tuiAppearance]:focus-visible:not([data-focus=false]){outline-color:var(--tui-border-focus)}[tuiAppearance][data-focus=true]{outline-color:var(--tui-border-focus)}[tuiAppearance]:disabled:not([data-state]),[tuiAppearance][data-state=disabled]{pointer-events:none;opacity:var(--tui-disabled-opacity)} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),hS=(()=>{let e=class e{constructor(){this.nothing=Le(fS),this.tuiAppearance=f(tD).appearance,this.tuiAppearanceState=null,this.tuiAppearanceFocus=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiAppearance",""]],hostAttrs:["tuiAppearance",""],hostVars:3,hostBindings:function(i,o){i&2&&fe("data-appearance",o.tuiAppearance)("data-state",o.tuiAppearanceState)("data-focus",o.tuiAppearanceFocus)},inputs:{tuiAppearance:"tuiAppearance",tuiAppearanceState:"tuiAppearanceState",tuiAppearanceFocus:"tuiAppearanceFocus"},standalone:!0});let t=e;return t})();var zi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,standalone:!0,features:[kt([{directive:hS,inputs:["tuiAppearance","appearance","tuiAppearanceState","tuiAppearanceState","tuiAppearanceFocus","tuiAppearanceFocus"]}])]});let t=e;return t})();var nD={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},_u=new vo,uH=[],cH=()=>{},Gr=K(M({},nD),{toJSON:()=>nD}),Gi=()=>!1,Cf=()=>!0;function pS(t,e){return Array.isArray(t)&&Array.isArray(e)&&!t.length&&!e.length}var lH=(t,e)=>t===e||pS(t,e);var rD={acceptNode(t){return"ownerSVGElement"in t?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},Wr="\xA0",iD="\u2013";var oD="-",dH="\u2212",fH="+";var hH="4.0.0-rc.7";function It(t,e,n){return Math.min(n,Math.max(e,t))}function Yo(t,e,n){return t>=e&&t=n?n:Math.round(t)}var mS=292;function wu(t,e,n){if(t===1/0)return t;e=Math.min(e,mS);let r=`${t}e`.split("e"),o=`${n(+`${r[0]}e${Number(r[1])+e}`)}e`.split("e");return+`${o[0]}e${Number(o[1])-e}`}function gS(t,e=0){return wu(t,e,Math.round)}function yS(t,e=0){return wu(t,e,Math.ceil)}function vS(t,e=0){return wu(t,e,Math.floor)}function DS(t,e=0){return wu(t,e,Math.trunc)}function sD({value:t,precision:e,method:n}){switch(n){case"round":return gS(t,e);case"ceil":return yS(t,e);case"floor":return vS(t,e);default:return DS(t,e)}}function gH(...t){return t.reduce((e,n)=>e+n,0)}function bH(t,e,n){return n&&nt?e:t}var _H=7;var Wi=12,Cu=1,If=0,Mf=11,Tf=0,Sf=9999,Iu=`${Wr}${iD}${Wr}`,bS=1e3,_S=60,ES=60,wS=24,CS=bS*_S,IS=CS*ES,EH=IS*wS,Af=10,MS=2*Af+Iu.length,Mu={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},Ln={January:0,February:1,March:2,April:3,May:4,June:5,July:6,August:7,September:8,October:9,November:10,December:11},jt=class t{constructor(e){this.year=e}static isValidYear(e){return Number.isInteger(e)&&Yo(e,Tf,Sf+1)}static isLeapYear(e){return e%400===0||e%4===0&&e%100!==0}static getAbsoluteLeapYears(e){return Math.ceil(e/400)+(Math.ceil(e/4)-Math.ceil(e/100))}static lengthBetween(e,n){return n.year-e.year}static normalizeYearPart(e){return Eu(e,Tf,Sf)}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:e}){return this.year=e}yearAfter({year:e}){return this.year>e}append({year:e=0}){let n=this.year+e;return new t(n)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](e){return Date.prototype[Symbol.toPrimitive].call(this,e)}toJSON(){return this.formattedYear}},Mt=class t extends jt{constructor(e,n){super(e),this.month=n}static isValidMonth(e,n){return jt.isValidYear(e)&&t.isValidMonthPart(n)}static getMonthDaysCount(e,n){switch(e){case Ln.February:return n?29:28;case Ln.April:case Ln.June:case Ln.September:case Ln.November:return 30;default:return 31}}static currentLocal(){let e=new Date;return new t(e.getFullYear(),e.getMonth())}static currentUtc(){let e=new Date;return new t(e.getUTCFullYear(),e.getUTCMonth())}static lengthBetween(e,n){let r=e.month+e.year*12;return n.month+n.year*12-r}static normalizeMonthPart(e){return Eu(e,If,Mf)}static isValidMonthPart(e){return Number.isInteger(e)&&Yo(e,If,Mf+1)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return t.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(e){return this.yearBefore(e)||this.yearSame(e)&&this.month=e.month}monthAfter(e){return this.yearAfter(e)||this.yearSame(e)&&this.month>e.month}append({year:e=0,month:n=0}){let r=(this.year+e)*Wi+this.month+n;return new t(Math.floor(r/Wi),r%Wi)}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))}},qi=class t extends Mt{constructor(e,n,r){super(e,n),this.day=r}static fromLocalNativeDate(e){return new t(e.getFullYear(),e.getMonth(),e.getDate())}static fromUtcNativeDate(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}static isValidDay(e,n,r){return Mt.isValidMonth(e,n)&&Number.isInteger(r)&&Yo(r,Cu,Mt.getMonthDaysCount(n,jt.isLeapYear(e))+1)}static currentLocal(){let e=new Date,n=e.getFullYear(),r=e.getMonth(),i=e.getDate();return new t(n,r,i)}static currentUtc(){let e=new Date,n=e.getUTCFullYear(),r=e.getUTCMonth(),i=e.getUTCDate();return new t(n,r,i)}static normalizeOf(e,n,r){let i=jt.normalizeYearPart(e),o=Mt.normalizeMonthPart(n),s=t.normalizeDayPart(r,o,i);return new t(i,o,s)}static lengthBetween(e,n){return Math.round((n.toLocalNativeDate().getTime()-e.toLocalNativeDate().getTime())/(1e3*60*60*24))}static parseRawDateString(e,n="DMY"){switch(n){case"YMD":return{day:parseInt(e.slice(8,10),10),month:parseInt(e.slice(5,7),10)-1,year:parseInt(e.slice(0,4),10)};case"MDY":return{day:parseInt(e.slice(3,5),10),month:parseInt(e.slice(0,2),10)-1,year:parseInt(e.slice(6,10),10)};case"DMY":default:return{day:parseInt(e.slice(0,2),10),month:parseInt(e.slice(3,5),10)-1,year:parseInt(e.slice(6,10),10)}}}static normalizeParse(e,n="DMY"){let{day:r,month:i,year:o}=this.parseRawDateString(e,n);return t.normalizeOf(o,i,r)}static jsonParse(e){let{day:n,month:r,year:i}=this.parseRawDateString(e,"YMD");if(!Mt.isValidMonth(i,r)||!Number.isInteger(n)||!Yo(n,Cu,Mt.getMonthDaysCount(r,jt.isLeapYear(i))+1))throw new xf(i,r,n);return new t(i,r,n)}static normalizeDayPart(e,n,r){let i=Mt.getMonthDaysCount(n,jt.isLeapYear(r));return Eu(e,1,i)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let e=this.dayOfWeek(!1);return e===Mu.Saturday||e===Mu.Sunday}dayOfWeek(e=!0){let n=e?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return n<0?6:n}dayBefore(e){return this.monthBefore(e)||this.monthSame(e)&&this.day=e.day}dayAfter(e){return this.monthAfter(e)||this.monthSame(e)&&this.day>e.day}dayLimit(e,n){return e!==null&&this.dayBefore(e)?e:n!==null&&this.dayAfter(n)?n:this}append({year:e=0,month:n=0,day:r=0}){let i=(this.year+e)*Wi+this.month+n,o=Math.floor(i/Wi),s=i%Wi,a=Math.min(this.day,Mt.getMonthDaysCount(s,jt.isLeapYear(o)))+r;for(;a>Mt.getMonthDaysCount(s,jt.isLeapYear(o));)a-=Mt.getMonthDaysCount(s,jt.isLeapYear(o)),s===Ln.December?(o++,s=Ln.January):s++;for(;auD}),lD=new b("[TUI_LANGUAGE]",{factory:()=>Ce(f(cD))}),FS=new b("[TUI_LANGUAGE_LOADER]"),PS=new b("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});var Kt=new b("[WA_WINDOW]",{factory:()=>{let{defaultView:t}=f(qe);if(!t)throw new Error("Window is not available");return t}}),st=Kt,dD=new b("[WA_ANIMATION_FRAME]",{factory:()=>{let{requestAnimationFrame:t,cancelAnimationFrame:e}=f(st);return new I(r=>{let i=NaN,o=s=>{r.next(s),i=t(o)};return i=t(o),()=>{e(i)}}).pipe(nn())}});var RH=new b("[WA_CACHES]",{factory:()=>f(st).caches});var kH=new b("[WA_CRYPTO]",{factory:()=>f(st).crypto});var LH=new b("[WA_CSS]",{factory:()=>f(st).CSS??{escape:t=>t,supports:()=>!1}});var VH=new b("[WA_HISTORY]",{factory:()=>f(st).history});var RS=new b("[WA_LOCAL_STORAGE]",{factory:()=>f(st).localStorage}),jH=RS,BH=new b("[WA_LOCATION]",{factory:()=>f(st).location});var Tu=new b("[WA_NAVIGATOR]",{factory:()=>f(st).navigator}),fD=Tu,HH=new b("[WA_MEDIA_DEVICES]",{factory:()=>f(fD).mediaDevices});var UH=new b("[WA_NETWORK_INFORMATION]",{factory:()=>f(Tu).connection||null});var $H=new b("[WA_PAGE_VISIBILITY]",{factory:()=>{let t=f(qe);return ut(t,"visibilitychange").pipe(Re(0),N(()=>t.visibilityState!=="hidden"),Oe(),$n({refCount:!1,bufferSize:1}))}});var zH=new b("[WA_PERFORMANCE]",{factory:()=>f(st).performance});var GH=new b("[WA_SCREEN]",{factory:()=>f(st).screen});var WH=new b("[WA_SESSION_STORAGE]",{factory:()=>f(st).sessionStorage});var qH=new b("[WA_SPEECH_RECOGNITION]: [SPEECH_RECOGNITION]",{factory:()=>{let t=f(st);return t.speechRecognition||t.webkitSpeechRecognition||null}});var YH=new b("[WA_SPEECH_SYNTHESIS]",{factory:()=>f(st).speechSynthesis});var Of=new b("[WA_USER_AGENT]",{factory:()=>f(fD).userAgent});function qr(t){return()=>f(lD).pipe(N(e=>e[t]))}function aU(t){return new I(e=>{if(!(t!=null&&t.valueChanges))throw new Ff;return t.valueChanges.pipe(Re(t.value)).subscribe(e)})}var Ff=class extends Error{constructor(){super("")}};function ge(t,e,n={}){return ut(t,e,n)}function hD(t,e=Boolean){return to(He(n=>e(n)?t(n):Nt))}function pD(t){return t.changes.pipe(Re(null),N(()=>Jv(t)))}function uU(t){return ge(t===t.ownerDocument.documentElement?t.ownerDocument:t,"scroll")}function cU(t){return to(lt(Mc.pipe(Ct(t),ao(()=>Nt),Un(null))))}function kS(t){return En(()=>t.markForCheck())}function LS(t){return e=>new I(n=>e.subscribe({next:r=>t.run(()=>n.next(r)),error:r=>t.run(()=>n.error(r)),complete:()=>t.run(()=>n.complete())}))}function Yr(t){return e=>new I(n=>t.runOutsideAngular(()=>e.subscribe(n)))}function mn(t){return to(Yr(t),LS(t))}var VS=ne(()=>{var t,e;return((e=(t=f(qe).defaultView)==null?void 0:t.matchMedia)==null?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)??!1}),gD=ne(()=>f(VS)?0:1),jS=me("assets/taiga-ui/icons");var BS={check:"@tui.check",close:"@tui.x",error:"@tui.circle-alert",more:"@tui.chevron-right"},bU=me(BS);var HS={mode:"DMY",separator:"."},_U=me(Ce(HS));var EU=me(t=>t.isWeekend?"weekend":"weekday"),wU=me(Mu.Monday),CU=ne(qr("months")),IU=ne(qr("close")),MU=ne(qr("nothingFoundMessage")),TU=ne(qr("defaultErrorMessage")),SU=ne(qr("spinTexts")),AU=ne(qr("shortWeekDays")),Su=me(""),Au=me(""),US=me({});var $S=ne(()=>{let t=f(jS);return e=>!e||e.includes("/")?e:`${t}/${e.replace("@tui.","").split(".").join("/")}.svg`});function xu(){let t=f(US),e=f($S);return n=>t[n]||e(n)}var yD=me({mobile:768,desktopSmall:1024,desktopLarge:1280}),Nu={precision:NaN,decimalSeparator:",",thousandSeparator:Wr,rounding:"truncate",decimalMode:"pad"},mD=me(Ce(Nu));function xU(t){return{provide:mD,deps:[[new un,new Sn,mD]],useFactory:e=>(e||Ce(Nu)).pipe(N(n=>M(M({},n),t)))}}var NU=ne(()=>new Me(f(qe).documentElement)),OU=ne(()=>{let t=f(qe);return Qe(ge(t,"selectionchange"),ge(t,"mouseup"),ge(t,"mousedown").pipe(He(()=>ge(t,"mousemove").pipe(lt(ge(t,"mouseup"))))),ge(t,"keydown"),ge(t,"keyup")).pipe(nn())}),FU=me({decrement:"@tui.chevron-left",increment:"@tui.chevron-right"}),PU=me("Taiga UI"),Pf=ne(()=>{let t=f(Kt);return{type:"viewport",getClientRect(){let e={top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight,x:0,y:0};return K(M({},e),{toJSON:()=>JSON.stringify(e)})}}});var zS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-icons"],standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`[tuiIcons]:before,[tuiIcons]:after{font-size:1.5rem}[tuiIcons]._icon-start:before,[tuiIcons]._icon-end:after{content:"";width:1em;height:1em;flex-shrink:0;background:currentColor;-webkit-mask:var(--t-mask-start) no-repeat center / contain;mask:var(--t-mask-start) no-repeat center / contain}[tuiIcons]._icon-end:after{-webkit-mask:var(--t-mask-end) no-repeat center / contain;mask:var(--t-mask-end) no-repeat center / contain} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),GS=(()=>{let e=class e{constructor(){this.nothing=Le(zS),this.resolver=xu(),this.iconStart=f(Su,{self:!0,optional:!0})||"",this.iconEnd=f(Au,{self:!0,optional:!0})||""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,hostAttrs:["tuiIcons",""],hostVars:8,hostBindings:function(i,o){i&2&&(Te("--t-mask-start","url("+o.resolver(o.iconStart)+")")("--t-mask-end","url("+o.resolver(o.iconEnd)+")"),We("_icon-start",o.iconStart)("_icon-end",o.iconEnd))},inputs:{iconStart:"iconStart",iconEnd:"iconEnd"},standalone:!0});let t=e;return t})(),Ou=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,standalone:!0,features:[kt([{directive:GS,inputs:["iconStart","iconStart","iconEnd","iconEnd"]}])]});let t=e;return t})();var DD={appearance:"primary",size:"l"},Rf=me(DD);function Fu(t){return ir(Rf,t,DD)}var WS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-button"],standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`[tuiButton],[tuiIconButton]{--t-gap: .125rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-width:100%;gap:calc(var(--t-gap) - 2 * var(--t-margin));height:var(--t-size);justify-content:center;border-radius:var(--t-radius);padding:var(--t-padding);-webkit-user-select:none;user-select:none;cursor:pointer}[tuiButton]>img,[tuiIconButton]>img,[tuiButton]>tui-svg,[tuiIconButton]>tui-svg,[tuiButton]>tui-icon,[tuiIconButton]>tui-icon,[tuiButton]>tui-avatar,[tuiIconButton]>tui-avatar,[tuiButton]>tui-badge,[tuiIconButton]>tui-badge,[tuiButton]>[tuiBadge],[tuiIconButton]>[tuiBadge],[tuiButton]>[tuiRadio],[tuiIconButton]>[tuiRadio],[tuiButton]>[tuiSwitch],[tuiIconButton]>[tuiSwitch],[tuiButton]>[tuiCheckbox],[tuiIconButton]>[tuiCheckbox],[tuiButton]._icon-start:before,[tuiIconButton]._icon-start:before,[tuiButton]._icon-end:after,[tuiIconButton]._icon-end:after{margin:var(--t-margin)}[tuiButton]>.t-loader,[tuiIconButton]>.t-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[tuiButton]>.t-loader .t-text,[tuiIconButton]>.t-loader .t-text{position:absolute}[tuiButton][data-size=xs],[tuiIconButton][data-size=xs]{--t-size: var(--tui-height-xs);--t-radius: var(--tui-radius-xs);--t-padding: 0 .375rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=xs] tui-svg,[tuiIconButton][data-size=xs] tui-svg,[tuiButton][data-size=xs] tui-icon,[tuiIconButton][data-size=xs] tui-icon,[tuiButton][data-size=xs]:before,[tuiIconButton][data-size=xs]:before{font-size:1rem}[tuiButton][data-size=s],[tuiIconButton][data-size=s]{--t-size: var(--tui-height-s);--t-radius: var(--tui-radius-s);--t-padding: 0 .625rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=s] tui-svg,[tuiIconButton][data-size=s] tui-svg,[tuiButton][data-size=s] tui-icon,[tuiIconButton][data-size=s] tui-icon,[tuiButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before,[tuiIconButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before{font-size:1rem}[tuiButton][data-size=m],[tuiIconButton][data-size=m]{--t-size: var(--tui-height-m);--t-radius: var(--tui-radius-m);--t-padding: 0 1rem;--t-margin: -.375rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=m]:after,[tuiIconButton][data-size=m]:after{margin-inline-end:-.125rem}[tuiButton][data-size=l],[tuiIconButton][data-size=l]{--t-size: var(--tui-height-l);--t-radius: var(--tui-radius-l);--t-padding: 0 1.25rem;--t-gap: .25rem;--t-margin: -.25rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=l]:after,[tuiIconButton][data-size=l]:after{margin-inline-start:.25rem;margin-inline-end:-.25rem}[tuiButton]._loading,[tuiIconButton]._loading{--tui-disabled-opacity: 1;-webkit-text-fill-color:transparent}[tuiButton]._loading>*,[tuiIconButton]._loading>*,[tuiButton]._loading:before,[tuiIconButton]._loading:before,[tuiButton]._loading:after,[tuiIconButton]._loading:after{opacity:0}[tuiButton]._loading>.t-loader,[tuiIconButton]._loading>.t-loader{opacity:1}[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{font-size:1rem}[tuiIconButton]{gap:0;width:var(--t-size);font-size:0!important;padding:0}[tuiIconButton][data-size=l]:after{margin:0}[tuiIconButton]._icon-start:after{display:none} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),e$=(()=>{let e=class e{constructor(){this.options=f(Rf),this.nothing=Le(WS),this.size=this.options.size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["a","tuiButton",""],["button","tuiButton",""],["a","tuiIconButton",""],["button","tuiIconButton",""]],hostVars:1,hostBindings:function(i,o){i&2&&fe("data-size",o.size)},inputs:{size:"size"},standalone:!0,features:[X([$i(Rf)]),kt([zi,Ou])]});let t=e;return t})();var bD=(()=>{let e=class e{constructor(){this.resolver=xu(),this.icon=f(Su,{self:!0,optional:!0})||f(Au,{self:!0,optional:!0})||"",this.background=""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["tui-icon"]],hostVars:4,hostBindings:function(i,o){i&2&&Te("--t-mask","url("+o.resolver(o.icon)+")")("--t-mask-bg",o.background?"url("+o.resolver(o.background)+")":null)},inputs:{icon:"icon",background:"background"},standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`tui-icon{position:relative;display:inline-block;width:1em;height:1em;font-size:1.5rem;flex-shrink:0;vertical-align:middle;box-sizing:border-box;-webkit-mask:var(--t-mask-bg) no-repeat center / contain;mask:var(--t-mask-bg) no-repeat center / contain}tui-icon:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";-webkit-mask:var(--t-mask) no-repeat center / contain;mask:var(--t-mask) no-repeat center / contain;background:currentColor} -`],encapsulation:2,changeDetection:0});let t=e;return t})();function qS(t){let e=String(t),[n,r]=e.split("e-"),i=e;if(r){let[,o]=n.split("."),s=Number(r)+((o==null?void 0:o.length)||0);i=t.toFixed(s)}return i}function YS(t,e){let[,n=""]=qS(t).split(".");return eD(e)?n.slice(0,Math.max(0,e)):n}function p$(t,e={}){let{precision:n,decimalSeparator:r,thousandSeparator:i,decimalMode:o,rounding:s}=M(K(M({},Nu),{decimalMode:"always",precision:1/0}),e),a=Number.isFinite(n)?sD({value:t,precision:n,method:s}):t,u=String(Math.floor(Math.abs(a))),c=YS(a,n),l=Number(c)>0;if(Number.isFinite(n))if(o==="always"||l&&o==="pad"){let p=Math.max(n-c.length,0),g="0".repeat(p);c=`${c}${g}`}else c=c.replace(/0*$/,"");let d=u.length%3,h=(t<0?oD:"")+u.charAt(0);for(let p=1;p3&&(h+=i),h+=u.charAt(p);return c?h+r+c:h}function m$(t){if(t==="")return"";let e=0;for(let o=0;o1}function v$({ownerDocument:t}){var i,o,s,a,u,c,l,d;let e=t==null?void 0:t.defaultView,n=typeof e.safari<"u"&&((o=(i=e.safari)==null?void 0:i.pushNotification)==null?void 0:o.toString())==="[object SafariRemoteNotification]",r=!!((a=(s=e.navigator)==null?void 0:s.vendor)!=null&&a.includes("Apple"))&&!((c=(u=e.navigator)==null?void 0:u.userAgent)!=null&&c.includes("CriOS"))&&!((d=(l=e.navigator)==null?void 0:l.userAgent)!=null&&d.includes("FxiOS"));return n||r}function w$(t,e){try{return t.contains(e)||!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}catch{return!1}}function KS(t){return t.matches("input")}function XS(t){return t.matches("textarea")}function JS(t){return KS(t)||XS(t)}function kf(t){return!!t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function Yi(t){return!!t&&t instanceof t.ownerDocument.defaultView.HTMLElement}function Pu(t){return t.composedPath()[0]}function Ru(t){return"getRootNode"in t&&t.isConnected?t.getRootNode():t.ownerDocument}function ED(t){let{ownerDocument:e}=t;if(!(e!=null&&e.defaultView)||!t.getBoundingClientRect)return null;let{innerWidth:n,innerHeight:r}=e.defaultView,i=Ru(t),o=t.getBoundingClientRect();if(o.width===0&&o.height===0)return null;let s=It(Math.round(o.left)+2,0,n),a=It(Math.round(o.top)+2,0,r),u=It(Math.round(o.right)-2,0,n),c=It(Math.round(o.bottom)-2,0,r),l=It(Math.round(o.left+o.width/2),0,n),d=It(Math.round(o.top+o.height/2),0,r),h=[i.elementFromPoint(l,a),i.elementFromPoint(l,c),i.elementFromPoint(s,d),i.elementFromPoint(u,d)].filter(zr);if(!h.length)return[];let p=h.filter(g=>!t.contains(g)&&!g.contains(t));return p.length===4?p:null}function C$(t,e){let{offsetTop:n,offsetLeft:r,offsetParent:i}=e;for(;Yi(i)&&i!==t;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Tt(){return f(Me).nativeElement}function I$(t){return JS(t)&&!t.readOnly||!!t.isContentEditable}function wD(t=0,e=0){let n={x:t,y:e,left:t,right:t,top:e,bottom:e,width:0,height:0};return K(M({},n),{toJSON:()=>n})}function M$(t){return"explicitOriginalTarget"in t?(t==null?void 0:t.explicitOriginalTarget)!==t.target:"pointerId"in t?t.pointerId===-1:"detail"in t&&"webkitForce"in t?(t==null?void 0:t.detail)===0:!1}function Lf({activeElement:t}){if(!(t!=null&&t.shadowRoot))return t;let e=t.shadowRoot.activeElement;for(;e!=null&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function N$(t){let e=Lf(t);Yi(e)&&e.blur()}function CD(t){if(t.hasAttribute("disabled")||t.getAttribute("tabIndex")==="-1")return!1;if(Yi(t)&&t.isContentEditable||t.getAttribute("tabIndex")==="0")return!0;switch(t.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return t.hasAttribute("controls");case"INPUT":return t.getAttribute("type")!=="hidden";case"A":case"LINK":return t.hasAttribute("href");default:return!1}}function eA(t){return!t.hasAttribute("disabled")&&(t.getAttribute("tabIndex")==="-1"||CD(t))}function O$({initial:t,root:e,previous:n=!1,keyboard:r=!0}){if(!e.ownerDocument)return null;let i=r?CD:eA,o=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,rD);for(o.currentNode=t;n?o.previousNode():o.nextNode();)if(Yi(o.currentNode)&&(t=o.currentNode),Yi(t)&&i(t))return t;return null}function Vf(t){return!!(t!=null&&t.ownerDocument)&&Lf(t.ownerDocument)===t&&t.ownerDocument.hasFocus()}function F$(t){var n;let e=(t==null?void 0:t.ownerDocument)&&Lf(t.ownerDocument);return!!e&&t.contains(e)&&!!((n=t.ownerDocument)!=null&&n.hasFocus())}function P$(t,e,n){for(t+=n;t>=0&&te()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Zo=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;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(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let n=e*this.totalTime;this.players.forEach(r=>{let i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){let e=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let n=e=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Lu="!";function MD(t){return new _(3e3,!1)}function tA(){return new _(3100,!1)}function nA(){return new _(3101,!1)}function rA(t){return new _(3001,!1)}function iA(t){return new _(3003,!1)}function oA(t){return new _(3004,!1)}function sA(t,e){return new _(3005,!1)}function aA(){return new _(3006,!1)}function uA(){return new _(3007,!1)}function cA(t,e){return new _(3008,!1)}function lA(t){return new _(3002,!1)}function dA(t,e,n,r,i){return new _(3010,!1)}function fA(){return new _(3011,!1)}function hA(){return new _(3012,!1)}function pA(){return new _(3200,!1)}function mA(){return new _(3202,!1)}function gA(){return new _(3013,!1)}function yA(t){return new _(3014,!1)}function vA(t){return new _(3015,!1)}function DA(t){return new _(3016,!1)}function bA(t,e){return new _(3404,!1)}function _A(t){return new _(3502,!1)}function EA(t){return new _(3503,!1)}function wA(){return new _(3300,!1)}function CA(t){return new _(3504,!1)}function IA(t){return new _(3301,!1)}function MA(t,e){return new _(3302,!1)}function TA(t){return new _(3303,!1)}function SA(t,e){return new _(3400,!1)}function AA(t){return new _(3401,!1)}function xA(t){return new _(3402,!1)}function NA(t,e){return new _(3505,!1)}function sr(t){switch(t.length){case 0:return new or;case 1:return t[0];default:return new Zo(t)}}function zD(t,e,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(e.forEach(u=>{let c=u.get("offset"),l=c==s,d=l&&a||new Map;u.forEach((m,h)=>{let p=h,g=m;if(h!=="offset")switch(p=t.normalizePropertyName(p,i),g){case Lu:g=n.get(h);break;case gn:g=r.get(h);break;default:g=t.normalizeStyleValue(h,p,g,i);break}d.set(p,g)}),l||o.push(d),a=d,s=c}),i.length)throw _A(i);return o}function uh(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&jf(n,"start",t)));break;case"done":t.onDone(()=>r(n&&jf(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&jf(n,"destroy",t)));break}}function jf(t,e,n){let r=n.totalTime,i=!!n.disabled,o=ch(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,r??t.totalTime,i),s=t._data;return s!=null&&(o._data=s),o}function ch(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function At(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function TD(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var OA=typeof document>"u"?null:document.documentElement;function lh(t){let e=t.parentNode||t.host||null;return e===OA?null:e}function FA(t){return t.substring(1,6)=="ebkit"}var Zr=null,SD=!1;function PA(t){Zr||(Zr=RA()||{},SD=Zr.style?"WebkitAppearance"in Zr.style:!1);let e=!0;return Zr.style&&!FA(t)&&(e=t in Zr.style,!e&&SD&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Zr.style)),e}function RA(){return typeof document<"u"?document.body:null}function GD(t,e){for(;e;){if(e===t)return!0;e=lh(e)}return!1}function WD(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var kA=(()=>{let e=class e{validateStyleProperty(r){return PA(r)}containsElement(r,i){return GD(r,i)}getParentElement(r){return lh(r)}query(r,i,o){return WD(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,u=[],c){return new or(o,s)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),ph=class ph{};ph.NOOP=new kA;var AD=ph,Gf=class{};var LA=1e3,qD="{{",VA="}}",YD="ng-enter",Wf="ng-leave",Vu="ng-trigger",$u=".ng-trigger",xD="ng-animating",qf=".ng-animating";function Vn(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Yf(parseFloat(e[1]),e[2])}function Yf(t,e){switch(e){case"s":return t*LA;default:return t}}function zu(t,e,n){return t.hasOwnProperty("duration")?t:jA(t,e,n)}function jA(t,e,n){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof t=="string"){let a=t.match(r);if(a===null)return e.push(MD(t)),{duration:0,delay:0,easing:""};i=Yf(parseFloat(a[1]),a[2]);let u=a[3];u!=null&&(o=Yf(parseFloat(u),a[4]));let c=a[5];c&&(s=c)}else i=t;if(!n){let a=!1,u=e.length;i<0&&(e.push(tA()),a=!0),o<0&&(e.push(nA()),a=!0),a&&e.splice(u,0,MD(t))}return{duration:i,delay:o,easing:s}}function BA(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function yn(t,e,n){e.forEach((r,i)=>{let o=dh(i);n&&!n.has(i)&&n.set(i,t.style[o]),t.style[o]=r})}function Kr(t,e){e.forEach((n,r)=>{let i=dh(r);t.style[i]=""})}function Qo(t){return Array.isArray(t)?t.length==1?t[0]:ID(t):t}function HA(t,e,n){let r=e.params||{},i=ZD(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(rA(o))})}var Zf=new RegExp(`${qD}\\s*(.+?)\\s*${VA}`,"g");function ZD(t){let e=[];if(typeof t=="string"){let n;for(;n=Zf.exec(t);)e.push(n[1]);Zf.lastIndex=0}return e}function Xo(t,e,n){let r=`${t}`,i=r.replace(Zf,(o,s)=>{let a=e[s];return a==null&&(n.push(iA(s)),a=""),a.toString()});return i==r?t:i}var UA=/-+([a-z0-9])/g;function dh(t){return t.replace(UA,(...e)=>e[1].toUpperCase())}function $A(t,e){return t===0||e===0}function zA(t,e,n){if(n.size&&e.length){let r=e[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,fh(t,a)))}}return e}function St(t,e,n){switch(e.type){case $.Trigger:return t.visitTrigger(e,n);case $.State:return t.visitState(e,n);case $.Transition:return t.visitTransition(e,n);case $.Sequence:return t.visitSequence(e,n);case $.Group:return t.visitGroup(e,n);case $.Animate:return t.visitAnimate(e,n);case $.Keyframes:return t.visitKeyframes(e,n);case $.Style:return t.visitStyle(e,n);case $.Reference:return t.visitReference(e,n);case $.AnimateChild:return t.visitAnimateChild(e,n);case $.AnimateRef:return t.visitAnimateRef(e,n);case $.Query:return t.visitQuery(e,n);case $.Stagger:return t.visitStagger(e,n);default:throw oA(e.type)}}function fh(t,e){return window.getComputedStyle(t)[e]}var GA=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"]),ND=class extends Gf{normalizePropertyName(e,n){return dh(e)}normalizeStyleValue(e,n,r,i){let o="",s=r.toString().trim();if(GA.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(sA(e,r))}return s+o}};var Gu="*";function WA(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>qA(r,n,e)):n.push(t),n}function qA(t,e,n){if(t[0]==":"){let u=YA(t,n);if(typeof u=="function"){e.push(u);return}t=u}let r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(vA(t)),e;let i=r[1],o=r[2],s=r[3];e.push(OD(i,s));let a=i==Gu&&s==Gu;o[0]=="<"&&!a&&e.push(OD(s,i))}function YA(t,e){switch(t){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 ju=new Set(["true","1"]),Bu=new Set(["false","0"]);function OD(t,e){let n=ju.has(t)||Bu.has(t),r=ju.has(e)||Bu.has(e);return(i,o)=>{let s=t==Gu||t==i,a=e==Gu||e==o;return!s&&n&&typeof i=="boolean"&&(s=i?ju.has(t):Bu.has(t)),!a&&r&&typeof o=="boolean"&&(a=o?ju.has(e):Bu.has(e)),s&&a}}var QD=":self",ZA=new RegExp(`s*${QD}s*,?`,"g");function KD(t,e,n,r){return new Qf(t).build(e,n,r)}var FD="",Qf=class{constructor(e){this._driver=e}build(e,n,r){let i=new Kf(n);return this._resetContextStyleTimingState(i),St(this,Qo(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=FD,e.collectedStyles=new Map,e.collectedStyles.set(FD,new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(aA()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==$.State){let u=a,c=u.name;c.toString().split(/\s*,\s*/).forEach(l=>{u.name=l,o.push(this.visitState(u,n))}),u.name=c}else if(a.type==$.Transition){let u=this.visitTransition(a,n);r+=u.queryCount,i+=u.depCount,s.push(u)}else n.errors.push(uA())}),{type:$.Trigger,name:e.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(e,n){let r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(u=>{ZD(u).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&n.errors.push(cA(e.name,[...o.values()]))}return{type:$.State,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=St(this,Qo(e.animation),n),i=WA(e.expr,n.errors);return{type:$.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Qr(e.options)}}visitSequence(e,n){return{type:$.Sequence,steps:e.steps.map(r=>St(this,r,n)),options:Qr(e.options)}}visitGroup(e,n){let r=n.currentTime,i=0,o=e.steps.map(s=>{n.currentTime=r;let a=St(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:$.Group,steps:o,options:Qr(e.options)}}visitAnimate(e,n){let r=JA(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:y({});if(o.type==$.Keyframes)i=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};r.easing&&(c.easing=r.easing),s=y(c)}n.currentTime+=r.duration+r.delay;let u=this.visitStyle(s,n);u.isEmptyStep=a,i=u}return n.currentAnimateTimings=null,{type:$.Animate,timings:r,style:i,options:null}}visitStyle(e,n){let r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){let r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===gn?r.push(a):n.errors.push(lA(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 u of a.values())if(u.toString().indexOf(qD)>=0){o=!0;break}}}),{type:$.Style,styles:r,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,n){let r=n.currentAnimateTimings,i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,u)=>{let c=n.collectedStyles.get(n.currentQuerySelector),l=c.get(u),d=!0;l&&(o!=i&&o>=l.startTime&&i<=l.endTime&&(n.errors.push(dA(u,l.startTime,l.endTime,o,i)),d=!1),o=l.startTime),d&&c.set(u,{startTime:o,endTime:i}),n.options&&HA(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:$.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(fA()),r;let i=1,o=0,s=[],a=!1,u=!1,c=0,l=e.steps.map(D=>{let x=this._makeStyleAst(D,n),Z=x.offset!=null?x.offset:XA(x.styles),A=0;return Z!=null&&(o++,A=x.offset=Z),u=u||A<0||A>1,a=a||A0&&o{let Z=m>0?x==h?1:m*x:s[x],A=Z*v;n.currentTime=p+g.delay+A,g.duration=A,this._validateStyleAst(D,n),D.offset=Z,r.styles.push(D)}),r}visitReference(e,n){return{type:$.Reference,animation:St(this,Qo(e.animation),n),options:Qr(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:$.AnimateChild,options:Qr(e.options)}}visitAnimateRef(e,n){return{type:$.AnimateRef,animation:this.visitReference(e.animation,n),options:Qr(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;let[o,s]=QA(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,At(n.collectedStyles,n.currentQuerySelector,new Map);let a=St(this,Qo(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:$.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Qr(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(gA());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:zu(e.timings,n.errors,!0);return{type:$.Stagger,animation:St(this,Qo(e.animation),n),timings:r,options:null}}};function QA(t){let e=!!t.split(/\s*,\s*/).find(n=>n==QD);return e&&(t=t.replace(ZA,"")),t=t.replace(/@\*/g,$u).replace(/@\w+/g,n=>$u+"-"+n.slice(1)).replace(/:animating/g,qf),[t,e]}function KA(t){return t?M({},t):null}var Kf=class{constructor(e){this.errors=e,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 XA(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function JA(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=zu(t,e).duration;return Bf(o,0,"")}let n=t;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Bf(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=zu(n,e);return Bf(i.duration,i.delay,i.easing)}function Qr(t){return t?(t=M({},t),t.params&&(t.params=KA(t.params))):t={},t}function Bf(t,e,n){return{duration:t,delay:e,easing:n}}function hh(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Jo=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},ex=1,tx=":enter",nx=new RegExp(tx,"g"),rx=":leave",ix=new RegExp(rx,"g");function XD(t,e,n,r,i,o=new Map,s=new Map,a,u,c=[]){return new Xf().buildKeyframes(t,e,n,r,i,o,s,a,u,c)}var Xf=class{buildKeyframes(e,n,r,i,o,s,a,u,c,l=[]){c=c||new Jo;let d=new Jf(e,n,c,i,o,l,[]);d.options=u;let m=u.delay?Vn(u.delay):0;d.currentTimeline.delayNextStep(m),d.currentTimeline.setStyles([s],null,d.errors,u),St(this,r,d);let h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let g=h.length-1;g>=0;g--){let v=h[g];if(v.element===n){p=v;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,u)}return h.length?h.map(p=>p.buildKeyframes()):[hh(n,[],[],[],0,m,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let r=n.subInstructions.get(n.element);if(r){let i=n.createSubContext(e.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){let r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(let i of e){let o=i==null?void 0:i.delay;if(o){let s=typeof o=="number"?o:Vn(Xo(o,(i==null?void 0:i.params)??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?Vn(r.duration):null,a=r.delay!=null?Vn(r.delay):null;return s!==0&&e.forEach(u=>{let c=n.appendInstructionToTimeline(u,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),St(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let r=n.subContextCount,i=n,o=e.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==$.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Wu);let s=Vn(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>St(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let r=[],i=n.currentTimeline.currentTime,o=e.options&&e.options.delay?Vn(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);o&&a.delayNextStep(o),St(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=e}_visitTiming(e,n){if(e.dynamic){let r=e.strValue,i=n.params?Xo(r,n.params,n.errors):r;return zu(i,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());let o=e.style;o.type==$.Keyframes?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(u=>{let c=u.offset||0;a.forwardTime(c*o),a.setStyles(u.styles,u.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=e}visitQuery(e,n){let r=n.currentTimeline.currentTime,i=e.options||{},o=i.delay?Vn(i.delay):0;o&&(n.previousNode.type===$.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Wu);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let u=null;a.forEach((c,l)=>{n.currentQueryIndex=l;let d=n.createSubContext(e.options,c);o&&d.delayNextStep(o),c===n.element&&(u=d.currentTimeline),St(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let m=d.currentTimeline.currentTime;s=Math.max(s,m)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),u&&(n.currentTimeline.mergeTimelineCollectedStyles(u),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let r=n.parentContext,i=n.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),u=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=a-u;break;case"full":u=r.currentStaggerTime;break}let l=n.currentTimeline;u&&l.delayNextStep(u);let d=l.currentTime;St(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},Wu={},Jf=class t{constructor(e,n,r,i,o,s,a,u){this._driver=e,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=Wu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new qu(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let r=e,i=this.options;r.duration!=null&&(i.duration=Vn(r.duration)),r.delay!=null&&(i.delay=Vn(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]=Xo(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){let i=n||this.element,o=new t(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(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Wu,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){let i={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},o=new eh(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,o,s){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(nx,"."+this._enterClassName),e=e.replace(ix,"."+this._leaveClassName);let u=r!=1,c=this._driver.query(this.element,e,u);r!==0&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!o&&a.length==0&&s.push(yA(n)),a}},qu=class t{constructor(e,n,r,i){this._driver=e,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(e){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,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+=ex,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||gn),this._currentKeyframe.set(n,gn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=ox(e,this._globalTimelineStyles);for(let[a,u]of s){let c=Xo(u,o,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??gn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{let i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,u)=>{let c=new Map([...this._backFill,...a]);c.forEach((l,d)=>{l===Lu?e.add(d):l===gn&&n.add(d)}),r||c.set("offset",u/this.duration),i.push(c)});let o=[...e.values()],s=[...n.values()];if(r){let a=i[0],u=new Map(a);a.set("offset",0),u.set("offset",1),i=[a,u]}return hh(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},eh=class extends qu{constructor(e,n,r,i,o,s,a=!1){super(e,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 e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=r+n,a=n/s,u=new Map(e[0]);u.set("offset",0),o.push(u);let c=new Map(e[0]);c.set("offset",PD(a)),o.push(c);let l=e.length-1;for(let d=1;d<=l;d++){let m=new Map(e[d]),h=m.get("offset"),p=n+h*r;m.set("offset",PD(p/s)),o.push(m)}r=s,n=0,i="",e=o}return hh(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function PD(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function ox(t,e){let n=new Map,r;return t.forEach(i=>{if(i==="*"){r??(r=e.keys());for(let o of r)n.set(o,gn)}else for(let[o,s]of i)n.set(o,s)}),n}function RD(t,e,n,r,i,o,s,a,u,c,l,d,m){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:d,errors:m}}var Hf={},Yu=class{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return sx(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e==null?void 0:e.toString())||i),i?i.buildStyles(n,r):new Map}build(e,n,r,i,o,s,a,u,c,l){var xe;let d=[],m=this.ast.options&&this.ast.options.params||Hf,h=a&&a.params||Hf,p=this.buildStyles(r,h,d),g=u&&u.params||Hf,v=this.buildStyles(i,g,d),D=new Set,x=new Map,Z=new Map,A=i==="void",Ae={params:JD(g,m),delay:(xe=this.ast.options)==null?void 0:xe.delay},he=l?[]:XD(e,n,this.ast.animation,o,s,p,v,Ae,c,d),re=0;return he.forEach(vt=>{re=Math.max(vt.duration+vt.delay,re)}),d.length?RD(n,this._triggerName,r,i,A,p,v,[],[],x,Z,re,d):(he.forEach(vt=>{let Ht=vt.element,os=At(x,Ht,new Set);vt.preStyleProps.forEach(lr=>os.add(lr));let Ki=At(Z,Ht,new Set);vt.postStyleProps.forEach(lr=>Ki.add(lr)),Ht!==n&&D.add(Ht)}),RD(n,this._triggerName,r,i,A,p,v,he,[...D.values()],x,Z,re))}};function sx(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}function JD(t,e){let n=M({},e);return Object.entries(t).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var th=class{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,i=JD(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Xo(s,i,n));let u=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,u,s,n),r.set(a,s)})}),r}};function ax(t,e,n){return new nh(t,e,n)}var nh=class{constructor(e,n,r){this.name=e,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 th(i.style,o,r))}),kD(this.states,"true","1"),kD(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new Yu(e,i,this.states))}),this.fallbackTransition=ux(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(s=>s.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}};function ux(t,e,n){let r=[(s,a)=>!0],i={type:$.Sequence,steps:[],options:null},o={type:$.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new Yu(t,o,e)}function kD(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}var cx=new Jo,rh=class{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,n){let r=[],i=[],o=KD(this._driver,n,r,i);if(r.length)throw EA(r);i.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,n,r){let i=e.element,o=zD(this._normalizer,e.keyframes,n,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){let i=[],o=this._animations.get(e),s,a=new Map;if(o?(s=XD(this._driver,n,o,YD,Wf,new Map,new Map,r,cx,i),s.forEach(l=>{let d=At(a,l.element,new Map);l.postStyleProps.forEach(m=>d.set(m,null))})):(i.push(wA()),s=[]),i.length)throw CA(i);a.forEach((l,d)=>{l.forEach((m,h)=>{l.set(h,this._driver.computeStyle(d,h,gn))})});let u=s.map(l=>{let d=a.get(l.element);return this._buildPlayer(l,new Map,d)}),c=sr(u);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw IA(e);return n}listen(e,n,r,i){let o=ch(n,"","","");return uh(this._getPlayer(e),r,o,i),()=>{}}command(e,n,r,i){if(r=="register"){this.register(e,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(e,n,s);return}let o=this._getPlayer(e);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(e);break}}},LD="ng-animate-queued",lx=".ng-animate-queued",Uf="ng-animate-disabled",dx=".ng-animate-disabled",fx="ng-star-inserted",hx=".ng-star-inserted",px=[],e0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mx={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xt="__ng_removed",es=class{get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),i=r?e.value:e;if(this.value=yx(i),r){let o=e,{value:s}=o,a=sc(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let r=this.options.params;Object.keys(n).forEach(i=>{r[i]==null&&(r[i]=n[i])})}}},Ko="void",$f=new es(Ko),ih=class{constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Bt(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.has(n))throw MA(r,n);if(r==null||r.length==0)throw TA(n);if(!vx(r))throw SA(r,n);let o=At(this._elementListeners,e,[]),s={name:n,phase:r,callback:i};o.push(s);let a=At(this._engine.statesByElement,e,new Map);return a.has(n)||(Bt(e,Vu),Bt(e,Vu+"-"+n),a.set(n,$f)),()=>{this._engine.afterFlush(()=>{let u=o.indexOf(s);u>=0&&o.splice(u,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw AA(e);return n}trigger(e,n,r,i=!0){let o=this._getTrigger(n),s=new ts(this.id,n,e),a=this._engine.statesByElement.get(e);a||(Bt(e,Vu),Bt(e,Vu+"-"+n),this._engine.statesByElement.set(e,a=new Map));let u=a.get(n),c=new es(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),a.set(n,c),u||(u=$f),!(c.value===Ko)&&u.value===c.value){if(!_x(u.params,c.params)){let g=[],v=o.matchStyles(u.value,u.params,g),D=o.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Kr(e,v),yn(e,D)})}return}let m=At(this._engine.playersByElement,e,[]);m.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let h=o.matchTransition(u.value,c.value,e,c.params),p=!1;if(!h){if(!i)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:h,fromState:u,toState:c,player:s,isFallbackTransition:p}),p||(Bt(e,LD),s.onStart(()=>{Zi(e,LD)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let D=v.indexOf(s);D>=0&&v.splice(D,1)}}),this.players.push(s),m.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let r=this._engine.driver.query(e,$u,!0);r.forEach(i=>{if(i[Xt])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(e,n,r,i){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((u,c)=>{if(s.set(c,u.value),this._triggers.has(c)){let l=this.trigger(e,c,Ko,i);l&&a.push(l)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&sr(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){let i=new Set;n.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let u=this._triggers.get(s).fallbackTransition,c=r.get(s)||$f,l=new es(Ko),d=new ts(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:u,fromState:c,toState:l,player:d,isFallbackTransition:!0})})}}removeNode(e,n){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{let o=e[Xt];(!o||o===e0)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Bt(e,this._hostClassName)}drainQueuedTransitions(e){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 u=ch(o,r.triggerName,r.fromState.value,r.toState.value);u._data=e,uh(r.player,a.phase,u,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(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},oh=class{_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r,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=(i,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){let r=new ih(e,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[e]=r}_balanceNamespaceList(e,n){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let u=i.get(a);if(u){let c=r.indexOf(u);r.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return i.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,r=this.statesByElement.get(e);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}}return n}trigger(e,n,r,i){if(Hu(n)){let o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!Hu(n))return;let o=n[Xt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Bt(e,Uf)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Zi(e,Uf))}removeNode(e,n,r){if(Hu(n)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);let o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,i,o){this.collectedLeaveElements.push(n),n[Xt]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return Hu(n)?this._fetchNamespace(e).listen(n,r,i,o):()=>{}}_buildInstruction(e,n,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,$u,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,qf,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return sr(this.players).onDone(()=>e());e()})}processLeaveNode(e){var r;let n=e[Xt];if(n&&n.setForRemoval){if(e[Xt]=e0,n.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}(r=e.classList)!=null&&r.contains(Uf)&&this.markElementAsDisabled(e,!1),this.driver.query(e,dx,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-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?sr(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw xA(e)}_flushAnimations(e,n){let r=new Jo,i=[],o=new Map,s=[],a=new Map,u=new Map,c=new Map,l=new Set;this.disabledNodes.forEach(w=>{l.add(w);let S=this.driver.query(w,lx,!0);for(let F=0;F{let F=YD+g++;p.set(S,F),w.forEach(ee=>Bt(ee,F))});let v=[],D=new Set,x=new Set;for(let w=0;wD.add(ee)):x.add(S))}let Z=new Map,A=BD(m,Array.from(D));A.forEach((w,S)=>{let F=Wf+g++;Z.set(S,F),w.forEach(ee=>Bt(ee,F))}),e.push(()=>{h.forEach((w,S)=>{let F=p.get(S);w.forEach(ee=>Zi(ee,F))}),A.forEach((w,S)=>{let F=Z.get(S);w.forEach(ee=>Zi(ee,F))}),v.forEach(w=>{this.processLeaveNode(w)})});let Ae=[],he=[];for(let w=this._namespaceList.length-1;w>=0;w--)this._namespaceList[w].drainQueuedTransitions(n).forEach(F=>{let ee=F.player,je=F.element;if(Ae.push(ee),this.collectedEnterElements.length){let Ze=je[Xt];if(Ze&&Ze.setForMove){if(Ze.previousTriggersValues&&Ze.previousTriggersValues.has(F.triggerName)){let dr=Ze.previousTriggersValues.get(F.triggerName),xt=this.statesByElement.get(F.element);if(xt&&xt.has(F.triggerName)){let ss=xt.get(F.triggerName);ss.value=dr,xt.set(F.triggerName,ss)}}ee.destroy();return}}let Jt=!d||!this.driver.containsElement(d,je),Dt=Z.get(je),jn=p.get(je),De=this._buildInstruction(F,r,jn,Dt,Jt);if(De.errors&&De.errors.length){he.push(De);return}if(Jt){ee.onStart(()=>Kr(je,De.fromStyles)),ee.onDestroy(()=>yn(je,De.toStyles)),i.push(ee);return}if(F.isFallbackTransition){ee.onStart(()=>Kr(je,De.fromStyles)),ee.onDestroy(()=>yn(je,De.toStyles)),i.push(ee);return}let Fh=[];De.timelines.forEach(Ze=>{Ze.stretchStartingKeyframe=!0,this.disabledNodes.has(Ze.element)||Fh.push(Ze)}),De.timelines=Fh,r.append(je,De.timelines);let V0={instruction:De,player:ee,element:je};s.push(V0),De.queriedElements.forEach(Ze=>At(a,Ze,[]).push(ee)),De.preStyleProps.forEach((Ze,dr)=>{if(Ze.size){let xt=u.get(dr);xt||u.set(dr,xt=new Set),Ze.forEach((ss,oc)=>xt.add(oc))}}),De.postStyleProps.forEach((Ze,dr)=>{let xt=c.get(dr);xt||c.set(dr,xt=new Set),Ze.forEach((ss,oc)=>xt.add(oc))})});if(he.length){let w=[];he.forEach(S=>{w.push(NA(S.triggerName,S.errors))}),Ae.forEach(S=>S.destroy()),this.reportError(w)}let re=new Map,xe=new Map;s.forEach(w=>{let S=w.element;r.has(S)&&(xe.set(S,S),this._beforeAnimationBuild(w.player.namespaceId,w.instruction,re))}),i.forEach(w=>{let S=w.element;this._getPreviousPlayers(S,!1,w.namespaceId,w.triggerName,null).forEach(ee=>{At(re,S,[]).push(ee),ee.destroy()})});let vt=v.filter(w=>HD(w,u,c)),Ht=new Map;jD(Ht,this.driver,x,c,gn).forEach(w=>{HD(w,u,c)&&vt.push(w)});let Ki=new Map;h.forEach((w,S)=>{jD(Ki,this.driver,new Set(w),u,Lu)}),vt.forEach(w=>{let S=Ht.get(w),F=Ki.get(w);Ht.set(w,new Map([...(S==null?void 0:S.entries())??[],...(F==null?void 0:F.entries())??[]]))});let lr=[],Nh=[],Oh={};s.forEach(w=>{let{element:S,player:F,instruction:ee}=w;if(r.has(S)){if(l.has(S)){F.onDestroy(()=>yn(S,ee.toStyles)),F.disabled=!0,F.overrideTotalTime(ee.totalTime),i.push(F);return}let je=Oh;if(xe.size>1){let Dt=S,jn=[];for(;Dt=Dt.parentNode;){let De=xe.get(Dt);if(De){je=De;break}jn.push(Dt)}jn.forEach(De=>xe.set(De,je))}let Jt=this._buildAnimation(F.namespaceId,ee,re,o,Ki,Ht);if(F.setRealPlayer(Jt),je===Oh)lr.push(F);else{let Dt=this.playersByElement.get(je);Dt&&Dt.length&&(F.parentPlayer=sr(Dt)),i.push(F)}}else Kr(S,ee.fromStyles),F.onDestroy(()=>yn(S,ee.toStyles)),Nh.push(F),l.has(S)&&i.push(F)}),Nh.forEach(w=>{let S=o.get(w.element);if(S&&S.length){let F=sr(S);w.setRealPlayer(F)}}),i.forEach(w=>{w.parentPlayer?w.syncPlayerEvents(w.parentPlayer):w.destroy()});for(let w=0;w!Jt.destroyed);je.length?Dx(this,S,je):this.processLeaveNode(S)}return v.length=0,lr.forEach(w=>{this.players.push(w),w.onDone(()=>{w.destroy();let S=this.players.indexOf(w);this.players.splice(S,1)}),w.play()}),lr}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,o){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let u=!o||o==Ko;a.forEach(c=>{c.queued||!u&&c.triggerName!=i||s.push(c)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){let i=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:i;for(let u of n.timelines){let c=u.element,l=c!==o,d=At(r,c,[]);this._getPreviousPlayers(c,l,s,a,n.toState).forEach(h=>{let p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}Kr(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,s){let a=n.triggerName,u=n.element,c=[],l=new Set,d=new Set,m=n.timelines.map(p=>{let g=p.element;l.add(g);let v=g[Xt];if(v&&v.removedBeforeQueried)return new or(p.duration,p.delay);let D=g!==u,x=bx((r.get(g)||px).map(re=>re.getRealPlayer())).filter(re=>{let xe=re;return xe.element?xe.element===g:!1}),Z=o.get(g),A=s.get(g),Ae=zD(this._normalizer,p.keyframes,Z,A),he=this._buildPlayer(p,Ae,x);if(p.subTimeline&&i&&d.add(g),D){let re=new ts(e,a,g);re.setRealPlayer(he),c.push(re)}return he});c.forEach(p=>{At(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>gx(this.playersByQueriedElement,p.element,p))}),l.forEach(p=>Bt(p,xD));let h=sr(m);return h.onDestroy(()=>{l.forEach(p=>Zi(p,xD)),yn(u,n.toStyles)}),d.forEach(p=>{At(i,p,[]).push(h)}),h}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new or(e.duration,e.delay)}},ts=class{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new or,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>uh(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){At(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function gx(t,e,n){let r=t.get(e);if(r){if(r.length){let i=r.indexOf(n);r.splice(i,1)}r.length==0&&t.delete(e)}return r}function yx(t){return t??null}function Hu(t){return t&&t.nodeType===1}function vx(t){return t=="start"||t=="done"}function VD(t,e){let n=t.style.display;return t.style.display=e??"none",n}function jD(t,e,n,r,i){let o=[];n.forEach(u=>o.push(VD(u)));let s=[];r.forEach((u,c)=>{let l=new Map;u.forEach(d=>{let m=e.computeStyle(c,d,i);l.set(d,m),(!m||m.length==0)&&(c[Xt]=mx,s.push(c))}),t.set(c,l)});let a=0;return n.forEach(u=>VD(u,o[a++])),s}function BD(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let r=1,i=new Set(e),o=new Map;function s(a){if(!a)return r;let u=o.get(a);if(u)return u;let c=a.parentNode;return n.has(c)?u=c:i.has(c)?u=r:u=s(c),o.set(a,u),u}return e.forEach(a=>{let u=s(a);u!==r&&n.get(u).push(a)}),n}function Bt(t,e){var n;(n=t.classList)==null||n.add(e)}function Zi(t,e){var n;(n=t.classList)==null||n.remove(e)}function Dx(t,e,n){sr(n).onDone(()=>t.processLeaveNode(e))}function bx(t){let e=[];return t0(t,e),e}function t0(t,e){for(let n=0;ni.add(o)):e.set(t,r),n.delete(t),!0}var Zu=class{constructor(e,n,r){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new oh(e.body,n,r),this._timelineEngine=new rh(e.body,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,n,r,i,o){let s=e+"-"+i,a=this._triggerCache[s];if(!a){let u=[],c=[],l=KD(this._driver,o,u,c);if(u.length)throw bA(i,u);c.length&&void 0,a=ax(i,l,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if(r.charAt(0)=="@"){let[o,s]=TD(r),a=i;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,o){if(r.charAt(0)=="@"){let[s,a]=TD(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(e,n,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Ex(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=zf(e[0]),e.length>1&&(r=zf(e[e.length-1]))):e instanceof Map&&(n=zf(e)),n||r?new sh(t,n,r):null}var Qi=class Qi{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=Qi.initialStylesByElement.get(e);i||Qi.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&yn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(yn(this._element,this._initialStyles),this._endStyles&&(yn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Qi.initialStylesByElement.delete(this._element),this._startStyles&&(Kr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Kr(this._element,this._endStyles),this._endStyles=null),yn(this._element,this._initialStyles),this._state=3)}};Qi.initialStylesByElement=new WeakMap;var sh=Qi;function zf(t){let e=null;return t.forEach((n,r)=>{wx(r)&&(e=e||new Map,e.set(r,n))}),e}function wx(t){return t==="display"||t==="position"}var Qu=class{constructor(e,n,r,i){this.element=e,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){return e.animate(this._convertKeyframesToObject(n),r)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&e.set(i,this._finished?r:fh(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},UD=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return GD(e,n)}getParentElement(e){return lh(e)}query(e,n,r){return WD(e,n,r)}computeStyle(e,n,r){return fh(e,n)}animate(e,n,r,i,o,s=[]){let a=i==0?"both":"forwards",u={duration:r,delay:i,fill:a};o&&(u.easing=o);let c=new Map,l=s.filter(h=>h instanceof Qu);$A(r,i)&&l.forEach(h=>{h.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=BA(n).map(h=>new Map(h));d=zA(e,d,c);let m=Ex(e,d);return new Qu(e,d,u,m)}};var Uu="@",n0="@.disabled",Ku=class{constructor(e,n,r,i){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){var n,r;(r=(n=this.delegate).destroyNode)==null||r.call(n,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(e=this._onDestroy)==null||e.call(this)}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){n.charAt(0)==Uu&&n==n0?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r){return this.delegate.listen(e,n,r)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},ah=class extends Ku{constructor(e,n,r,i,o){super(n,r,i,o),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==Uu?n.charAt(1)=="."&&n==n0?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r){if(n.charAt(0)==Uu){let i=Cx(e),o=n.slice(1),s="";return o.charAt(0)!=Uu&&([o,s]=Ix(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let u=a._data||-1;this.factory.scheduleListenerCallback(u,r,a)})}return this.delegate.listen(e,n,r)}};function Cx(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function Ix(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var $D=class{constructor(e,n,r){this.delegate=e,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(e,n){var c;let r="",i=this.delegate.createRenderer(e,n);if(!e||!((c=n==null?void 0:n.data)!=null&&c.animation)){let l=this._rendererCache,d=l.get(i);if(!d){let m=()=>l.delete(i);d=new Ku(r,i,this.engine,m),l.set(i,d)}return d}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,e,l.name,l)};return n.data.animation.forEach(a),new ah(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){if(e>=0&&en(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 Mx=ne(()=>{let t={onRemovalComplete:()=>{}},e=new zt(null),n=f(Zu,{optional:!0})||t,{onRemovalComplete:r=t.onRemovalComplete}=n;return n.onRemovalComplete=(i,o)=>{e.next(i),r.call(n,i,o)},e.pipe(He(i=>ct(0).pipe(N(()=>null),Re(i))),nn())});function r0(t,e=null){return Ru(t).activeElement!==t&&!t.matches(":disabled")&&!(e!=null&&e.contains(t))}function Tx(t){return Qe(ge(t,"focusin").pipe(N(({target:e})=>e)),ge(t,"focusout").pipe(Ne(({target:e,relatedTarget:n})=>!!n&&r0(e)),N(({relatedTarget:e})=>e)))}var i0=ne(()=>{let t=f(Mx),e=f(Kt),n=f(qe),r=ge(e,"focusout",{capture:!0}),i=ge(e,"focusin",{capture:!0}),o=ge(e,"blur"),s=ge(e,"mousedown"),a=ge(e,"mouseup");return Qe(r.pipe(lt(s),Dr({delay:()=>a}),Fc(t),Ne(([u,c])=>r0(Pu(u),c)),N(([{relatedTarget:u}])=>u)),o.pipe(N(()=>n.activeElement),Ne(u=>!!(u!=null&&u.matches("iframe")))),i.pipe(He(u=>{let c=Pu(u),l=Ru(c);return l===n?Ce(c):Tx(l).pipe(Re(c))})),s.pipe(He(u=>{let c=Pu(u);return!n.activeElement||n.activeElement===n.body?Ce(c):r.pipe(tn(1),N(()=>c),lt(ct(0)))}))).pipe(Oe(),nn())}),K$=ne(()=>{var t;return((t=f(qe).querySelector("base"))==null?void 0:t.href)??""}),Sx=/(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/,Ax=/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-/,xx=ne(()=>Sx.test(f(Of).toLowerCase())||Ax.test(f(Of).slice(0,4).toLowerCase())),o0=ne(()=>_D(f(Tu))),Nx=ne(()=>f(xx)&&!f(o0)),s0=ne(()=>{var t;return!!((t=f(Kt))!=null&&t.webkitConvertPointFromNodeToPage)}),X$=ne(()=>f(o0)?"ios":f(Nx)?"android":"web"),J$=ne(()=>{let t=f(Kt).matchMedia("(pointer: coarse)");return _f(ut(t,"change").pipe(N(()=>t.matches)),{initialValue:t.matches})}),Ox=ne(()=>!!f(Kt).Cypress),Fx=ne(Gi),ez=ne(()=>f(Ox)||f(Fx)),Px=new b("");function tz(t){return{provide:Px,useValue:t}}var nz=ne(()=>sf(f(jr))?new Range:{}),a0=new b("[TUI_WINDOW_SIZE]",{factory:()=>{let t=f(Kt);return ge(t,"resize").pipe(Re(null),N(()=>{var i,o;let e=Math.max(t.document.documentElement.clientWidth||0,t.innerWidth||0,((i=t.visualViewport)==null?void 0:i.width)||0),n=Math.max(t.document.documentElement.clientHeight||0,t.innerHeight||0,((o=t.visualViewport)==null?void 0:o.height)||0),r={width:e,height:n,top:0,left:0,right:e,bottom:n,x:0,y:0};return K(M({},r),{toJSON:()=>JSON.stringify(r)})}),$n({bufferSize:1,refCount:!0}))}});function Rx({currentTarget:t,relatedTarget:e}){return!kf(e)||!kf(t)||!t.contains(e)}var vn=(()=>{let e=class e extends I{constructor(){super(r=>this.stream$.subscribe(r)),this.el=Tt(),this.zone=f(te),this.stream$=Qe(ge(this.el,"mouseenter").pipe(N(Cf)),ge(this.el,"mouseleave").pipe(N(Gi)),ge(this.el,"mouseout").pipe(Ne(Rx),N(Gi))).pipe(Oe(),mn(this.zone))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();var hz=(()=>{let e=class e{constructor(){this.tuiHoveredChange=f(vn)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},standalone:!0,features:[X([vn])]});let t=e;return t})();var B="{{duration}}ms ease-in-out",J={params:{duration:300}},tt=300,u0=ye("tuiParentAnimation",[G(":leave",[Fe(":scope > *",[ku()],{optional:!0})])]),gz=ye("tuiParentStop",[G(":enter",[])]),yz=ye("tuiHost",[G(":enter",[y({overflow:"clip"}),Fe(":scope > *",[ku()],{optional:!0})]),G(":leave",[Fe(":scope > *",[ku()],{optional:!0})])]),vz=ye("tuiHeightCollapse",[G(":enter",[y({height:0}),j(B,y({height:"*"}))],J),G(":leave",[y({height:"*"}),j(B,y({height:0}))],J)]),Dz=ye("tuiHeightCollapseList",[G("* => *",[Fe(":enter",[y({height:0}),Ye(tt,[j(B,y({height:"*"}))])],{optional:!0}),Fe(":leave",[y({height:"*"}),Ye(tt,[j(B,y({height:0}))])],{optional:!0})],J)]),bz=ye("tuiWidthCollapse",[G(":enter",[y({width:0}),j(B,y({width:"*"}))],J),G(":leave",[y({width:"*"}),j(B,y({width:0}))],J)]),_z=ye("tuiWidthCollapseList",[G("* => *",[Fe(":enter",[y({width:0}),Ye(tt,[j(B,y({width:"*"}))])],{optional:!0}),Fe(":leave",[y({width:"*"}),Ye(tt,[j(B,y({width:0}))])],{optional:!0})],J)]),c0=ye("tuiFadeIn",[G(":enter",[y({opacity:0}),j(B,y({opacity:1}))],J),G(":leave",[y({opacity:1}),j(B,y({opacity:0}))],J)]),Ez=ye("tuiFadeInList",[G("* => *",[Fe(":enter",[y({opacity:0}),Ye(tt,[j(B,y({opacity:1}))])],{optional:!0}),Fe(":leave",[y({opacity:1}),Ye(tt,[j(B,y({opacity:0}))])],{optional:!0})],J)]),wz=ye("tuiFadeInTop",[G(":enter",[y({transform:"translateY(-10px)",opacity:0}),j(B,y({transform:"translateY(0)",opacity:1}))],J),G(":leave",[y({transform:"translateY(0)",opacity:1}),j(B,y({transform:"translateY(-10px)",opacity:0}))],J)]),Cz=ye("tuiFadeInBottom",[G(":enter",[y({transform:"translateY(10px)",opacity:0}),j(B,y({transform:"translateY(0)",opacity:1}))],J),G(":leave",[y({transform:"translateY(0)",opacity:1}),j(B,y({transform:"translateY(10px)",opacity:0}))],J)]),Iz=ye("tuiDropdownAnimation",[G(":enter",[y({transform:"translateY(-10px)",opacity:0}),j(B,y({transform:"translateY(0)",opacity:1}))],J),G(":leave",[y({transform:"translateY(0)",opacity:1}),j(B,y({transform:"translateY(-10px)",opacity:0}))],J)]),Mz=ye("tuiScaleIn",[G(":enter",[y({transform:"scale(0)"}),j(B,y({transform:"scale(1)"}))],J),G(":leave",[y({transform:"scale(1)"}),j(B,y({transform:"scale(0)"}))],J)]),Tz=ye("tuiPop",[G(":enter",[y({transform:"scale(0)"}),j(B,y({transform:"scale(1.1)"})),j(B,y({transform:"scale(1)"}))],J),G(":leave",[y({transform:"scale(1)"}),j(B,y({transform:"scale(1.1)"})),j(B,y({transform:"scale(0)"}))],J)]),Sz=ye("tuiScaleInList",[G("* => *",[Fe(":enter",[y({transform:"scale(0)"}),Ye(tt,[j(B,y({transform:"scale(1)"}))])],{optional:!0}),Fe(":leave",[y({transform:"scale(1)"}),Ye(tt,[j(B,y({transform:"scale(0)"}))])],{optional:!0})],J)]),Az=ye("tuiSlideIn",[G("* => left",[y({transform:"translateX(-100%)"}),j(B,y({transform:"translateX(0)"}))],J),G("left => *",[y({transform:"translateX(0)"}),j(B,y({transform:"translateX(-100%)"}))],J),G("* => right",[y({transform:"translateX(100%)"}),j(B,y({transform:"translateX(0)"}))],J),G("right => *",[y({transform:"translateX(0)"}),j(B,y({transform:"translateX(100%)"}))],J)]),xz=ye("tuiSlideInLeft",[G(":enter",[y({transform:"translateX(-100%)"}),j(B,y({transform:"translateX(0)"}))],J),G(":leave",[y({transform:"translateX(0)"}),j(B,y({transform:"translateX(-100%)"}))],J)]),Nz=ye("tuiSlideInLeftList",[G("* => *",[Fe(":enter",[y({transform:"translateX(-100%)"}),Ye(tt,[j(B,y({transform:"translateX(0)"}))])],{optional:!0}),Fe(":leave",[y({transform:"translateX(0)"}),Ye(tt,[j(B,y({transform:"translateX(-100%)"}))])],{optional:!0})],J)]),Oz=ye("tuiSlideInRight",[G(":enter",[y({transform:"translateX(100%)"}),j(B,y({transform:"translateX(0)"}))],J),G(":leave",[y({transform:"translateX(0)"}),j(B,y({transform:"translateX(100%)"}))],J)]),Fz=ye("tuiSlideInRightList",[G("* => *",[Fe(":enter",[y({transform:"translateX(100%)"}),Ye(tt,[j(B,y({transform:"translateX(0)"}))])],{optional:!0}),Fe(":leave",[y({transform:"translateX(0)"}),Ye(tt,[j(B,y({transform:"translateX(100%)"}))])],{optional:!0})],J)]),Pz=ye("tuiSlideInTop",[G(":enter",[y({transform:"translate3d(0,{{start}},0)",pointerEvents:"none"}),j(B,y({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),G(":leave",[y({transform:"translate3d(0,{{end}},0)"}),j(B,y({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),Rz=ye("tuiSlideInTopList",[G("* => *",[Fe(":enter",[y({transform:"translateY(100%)"}),Ye(tt,[j(B,y({transform:"translateY(0)"}))])],{optional:!0}),Fe(":leave",[y({transform:"translateY(0)"}),Ye(tt,[j(B,y({transform:"translateY(100%)"}))])],{optional:!0})],J)]),kz=ye("tuiSlideInBottom",[G(":enter",[y({transform:"translateY(-100%)"}),j(B,y({transform:"translateY(0)"}))],J),G(":leave",[y({transform:"translateY(0)"}),j(B,y({transform:"translateY(-100%)"}))],J)]),Lz=ye("tuiSlideInBottomList",[G("* => *",[Fe(":enter",[y({transform:"translateY(-100%)"}),Ye(tt,[j(B,y({transform:"translateY(0)"}))])],{optional:!0}),Fe(":leave",[y({transform:"translateY(0)"}),Ye(tt,[j(B,y({transform:"translateY(-100%)"}))])],{optional:!0})],J)]);var Xu=class{},ar=class extends Xu{},ur=class extends Xu{};function l0(t,e,n){return{provide:t,deps:[[new Sn,new un,t],n],useFactory:mh(e)}}function mh(t){return(e,n)=>{var r;return((r=e==null?void 0:e.find)==null?void 0:r.call(e,i=>i!==n&&i.type===t))||n}}function d0(t,e){return l0(ar,t,e)}function f0(t,e){return l0(ur,t,e)}function zz(t){return hn(ar,t,!0)}function ec(t){return hn(ur,t,!0)}var Ju=class{};function h0(t){return hn(Ju,t,!0)}var Xr=class extends I{};function tc(t){return hn(Xr,t,!0)}var p0=(()=>{let e=class e{constructor(){this.destroyRef=f(Ge),this.drivers=f(Xr),this.vehicles=f(Ju)}ngOnInit(){let r=this.vehicles.find(({type:i})=>i===this.type);Qe(...this.drivers.filter(({type:i})=>i===this.type)).pipe(Oe(),Ct(this.destroyRef)).subscribe(i=>{r==null||r.toggle(i)})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e});let t=e;return t})();var n3=(()=>{let e=class e extends I{constructor(){super(r=>this.stream$.subscribe(r)),this.media=f(yD),this.sorted=Object.values(this.media).sort((r,i)=>r-i),this.invert=Object.keys(this.media).reduce((r,i)=>K(M({},r),{[this.media[i]]:i}),{}),this.stream$=f(a0).pipe(N(({width:r})=>this.sorted.find(i=>i>r)),N(r=>this.invert[r||this.sorted[this.sorted.length-1]]),Oe(),mn(f(te)),$n({bufferSize:1,refCount:!0}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var gh=(()=>{let e=class e extends I{constructor(){let r=f(dD),i=f(te);super(o=>r.pipe(Re(null),N(()=>this.accessor.getPosition(this.el.getBoundingClientRect())),Yr(i),fi(()=>this.accessor.getPosition(Gr))).subscribe(o)),this.el=Tt(),this.accessor=f(ar)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),m0=(()=>{let e=class e{constructor(){this.isWebkit=f(s0),this.win=f(Kt)}correct(r){var i,o;return this.isWebkit?[r[0]+(((i=this.win.visualViewport)==null?void 0:i.offsetTop)??0),r[1]+(((o=this.win.visualViewport)==null?void 0:o.offsetLeft)??0)]:r}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var kx=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];function s3(t=""){return t.length===1||kx.includes(t)}function yh(t,e="tui-hints"){var n;return!!((n=ED(t))!=null&&n.some(r=>!r.closest(e)))}function y0(t,e){return(n,r)=>{let i=n||M({},r||e);return Object.keys(t).forEach(o=>{i[o]=t[o]}),i}}var g0={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function a3(t,e="s"){return g0[t]>g0[e]}var Lx=300;function v0(t){return{value:"",params:{duration:Vx(t)}}}function Vx(t){return t&&Lx/t}var Dh=new b("POLYMORPHEUS_CONTEXT"),Jr=class{constructor(e,n){le(this,"component");le(this,"i");this.component=e,this.i=n}createInjector(e,n){return Et.create({parent:this.i||e,providers:[{provide:Dh,useValue:n}]})}},nc=class{constructor(e){le(this,"$implicit");this.$implicit=e}get polymorpheusOutlet(){return this.$implicit}};var jx=(()=>{let e=class e{constructor(r=f(Ie,{self:!0}),i=f(gt)){le(this,"template");le(this,"cdr");le(this,"polymorpheus","");this.template=r,this.cdr=i}static ngTemplateContextGuard(r,i){return!0}check(){this.cdr.markForCheck()}};le(e,"\u0275fac",function(i){return new(i||e)(V(Ie),V(gt))}),le(e,"\u0275dir",E({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"],standalone:!0}));let t=e;return t})(),bh=(()=>{let e=class e{constructor(){le(this,"vcr",f(et));le(this,"i",f(xi));le(this,"t",f(Ie));le(this,"c");le(this,"content","");le(this,"context")}static ngTemplateContextGuard(r,i){return!0}ngOnChanges({content:r}){var s;let i=this.getContext();if((s=this.c)==null||s.injector.get(gt).markForCheck(),!r)return;this.vcr.clear();let o=i&&new Proxy(i,{get:(a,u)=>{var c;return(c=this.getContext())==null?void 0:c[u]}});D0(this.content)?this.process(this.content,o):(i instanceof nc&&i.$implicit)!=null&&this.vcr.createEmbeddedView(this.template,o,{injector:this.i})}ngDoCheck(){vh(this.content)&&this.content.check()}get template(){return vh(this.content)?this.content.template:this.content instanceof Ie?this.content:this.t}getContext(){return Bx(this.content)||D0(this.content)?this.context:new nc(this.context&&typeof this.content=="function"?this.content(this.context):this.content)}process(r,i){let o=r.createInjector(this.i,i);this.c=this.vcr.createComponent(r.component,{injector:o})}};le(e,"\u0275fac",function(i){return new(i||e)}),le(e,"\u0275dir",E({type:e,selectors:[["","polymorpheusOutlet",""]],inputs:{content:[0,"polymorpheusOutlet","content"],context:[0,"polymorpheusOutletContext","context"]},standalone:!0,features:[Zt]}));let t=e;return t})();function vh(t){return t instanceof jx}function D0(t){return t instanceof Jr}function Bx(t){return vh(t)||t instanceof Ie}var _h=(()=>{let e=class e{constructor(){var r;this.control=f(kn,{optional:!0,self:!0}),this.active$=f(i0),this.zone=f(te),this.el=Tt(),this.tuiActiveZoneParent=null,this.subActiveZones=[],this.directParentActiveZone=f(e,{skipSelf:!0,optional:!0}),this.tuiActiveZoneChange=this.active$.pipe(N(i=>!!i&&this.contains(i)),Re(!1),Oe(),uo(1),En(i=>{var o;!i&&typeof((o=this.control)==null?void 0:o.valueAccessor.onTouched)=="function"&&this.control.valueAccessor.onTouched()}),mn(this.zone)),(r=this.directParentActiveZone)==null||r.addSubActiveZone(this)}set tuiActiveZoneParentSetter(r){this.setZone(r)}ngOnDestroy(){var r,i;(r=this.directParentActiveZone)==null||r.removeSubActiveZone(this),(i=this.tuiActiveZoneParent)==null||i.removeSubActiveZone(this)}contains(r){return this.el.contains(r)||this.subActiveZones.some((i,o,s)=>s.indexOf(i)===o&&i.contains(r))}setZone(r){var i;(i=this.tuiActiveZoneParent)==null||i.removeSubActiveZone(this),r==null||r.addSubActiveZone(this),this.tuiActiveZoneParent=r}addSubActiveZone(r){this.subActiveZones=[...this.subActiveZones,r]}removeSubActiveZone(r){this.subActiveZones=Xv(this.subActiveZones,this.subActiveZones.indexOf(r))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],hostBindings:function(i,o){i&1&&pt("mousedown.silent",function(){return 0},!1,za)},inputs:{tuiActiveZoneParentSetter:[0,"tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"],standalone:!0});let t=e;return _n([pn],t.prototype,"setZone",null),t})();var Hx=["*"];function Ux(t,e){if(t&1&&ot(0,"span",1),t&2){let n=e.polymorpheusOutlet;U("innerHTML",n,Wg)}}var $x=t=>({$implicit:t});function zx(t,e){t&1&&kd(0)}function Gx(t,e){if(t&1&&(ue(0,"div",1),ae(1,zx,1,0,"ng-container",2),ie()),t&2){let n=e.$implicit;U("@tuiParentAnimation",void 0)("tuiActiveZoneParent",n.activeZone||null),R(),U("polymorpheusOutlet",n.component)("polymorpheusOutletContext",$y(4,$x,n))}}var Wx=ne(()=>Qx),E0=(()=>{let e=class e extends zt{constructor(){super([])}add(r){this.next(this.value.concat(r))}remove(r){this.value.includes(r)&&this.next(this.value.filter(i=>i!==r))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qx=(()=>{let e=class e extends p0{constructor(){super(...arguments),this.type="hint"}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Nn(e)))(o||e)}})(),e.\u0275dir=E({type:e,standalone:!0,features:[ke]});let t=e;return t})(),b0=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"],w0={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"@tui.circle-help"},ei=me(w0),C0=t=>({provide:ei,deps:[[new un,Eh],[new un,new Sn,ei]],useFactory:y0(t,w0)}),Eh=(()=>{let e=class e{constructor(){this.options=f(ei,{skipSelf:!0}),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,this.change$=new Pe}ngOnChanges(){this.change$.next()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiHintContent",""]],inputs:{content:[0,"tuiHintContent","content"],direction:[0,"tuiHintDirection","direction"],appearance:[0,"tuiHintAppearance","appearance"],showDelay:[0,"tuiHintShowDelay","showDelay"],hideDelay:[0,"tuiHintHideDelay","hideDelay"]},standalone:!0,features:[X([hn(ei,e)]),Zt]});let t=e;return t})(),ns=(()=>{let e=class e extends Xr{constructor(){super(r=>this.stream$.subscribe(r)),this.hovered$=f(vn),this.options=f(ei),this.visible=!1,this.toggle$=new Pe,this.stream$=Qe(this.toggle$.pipe(He(r=>Ce(r).pipe(Bs(r?0:this.tuiHintHideDelay))),lt(this.hovered$),Dr()),this.hovered$.pipe(He(r=>Ce(r).pipe(Bs(r?this.tuiHintShowDelay:this.tuiHintHideDelay))),lt(this.toggle$),Dr())).pipe(Ne(()=>this.enabled),N(r=>r&&(this.el.hasAttribute("tuiHintPointer")||!yh(this.el))),En(r=>{this.visible=r})),this.parent=f(e,{optional:!0,skipSelf:!0}),this.tuiHintShowDelay=this.options.showDelay,this.tuiHintHideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0,this.el=Tt()}toggle(r=!this.visible){var i;this.toggle$.next(r),(i=this.parent)==null||i.toggle(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,inputs:{tuiHintShowDelay:"tuiHintShowDelay",tuiHintHideDelay:"tuiHintHideDelay"},exportAs:["tuiHintHover"],standalone:!0,features:[X([tc(e),vn]),ke]});let t=e;return t})(),cr=8,rc=22,Se=0,Ve=1,I0=(()=>{let e=class e extends ar{constructor(){super(...arguments),this.viewport=f(Pf),this.accessor=mh("hint")(f(ur),f(rs)),this.points=b0.reduce((r,i)=>K(M({},r),{[i]:[0,0]}),{}),this.direction=f(ei).direction,this.type="hint"}getPosition({width:r,height:i}){let o=this.accessor.getClientRect()??Gr,s=o.left+o.width/2,a=o.top+o.height/2;if(this.points["top-left"][Se]=o.top-i-cr,this.points["top-left"][Ve]=s-r+rc,this.points.top[Se]=this.points["top-left"][Se],this.points.top[Ve]=s-r/2,this.points["top-right"][Se]=this.points["top-left"][Se],this.points["top-right"][Ve]=s-rc,this.points["bottom-left"][Se]=o.bottom+cr,this.points["bottom-left"][Ve]=this.points["top-left"][Ve],this.points.bottom[Se]=this.points["bottom-left"][Se],this.points.bottom[Ve]=this.points.top[Ve],this.points["bottom-right"][Se]=this.points["bottom-left"][Se],this.points["bottom-right"][Ve]=this.points["top-right"][Ve],this.points["left-top"][Se]=a-i+rc,this.points["left-top"][Ve]=o.left-r-cr,this.points.left[Se]=a-i/2,this.points.left[Ve]=this.points["left-top"][Ve],this.points["left-bottom"][Se]=a-rc,this.points["left-bottom"][Ve]=this.points["left-top"][Ve],this.points["right-top"][Se]=this.points["left-top"][Se],this.points["right-top"][Ve]=o.right+cr,this.points.right[Se]=this.points.left[Se],this.points.right[Ve]=this.points["right-top"][Ve],this.points["right-bottom"][Se]=this.points["left-bottom"][Se],this.points["right-bottom"][Ve]=this.points["right-top"][Ve],this.checkPosition(this.points[this.direction],r,i))return this.points[this.direction];let u=b0.find(c=>this.checkPosition(this.points[c],r,i));return this.points[u||this.fallback]}get fallback(){return this.points.top[Se]>this.viewport.getClientRect().bottom-this.points.bottom[Se]?"top":"bottom"}checkPosition([r,i],o,s){let a=this.viewport.getClientRect();return r>cr/4&&i>cr/4&&r+s{let r;return function(o){return(r||(r=Nn(e)))(o||e)}})(),e.\u0275dir=E({type:e,inputs:{direction:[0,"tuiHintDirection","direction"]},standalone:!0,features:[ke]});let t=e;return t})(),rs=(()=>{let e=class e{constructor(){this.service=f(E0),this.appearance=f(ei).appearance,this.component=f(Jr),this.el=Tt(),this.activeZone=f(_h,{optional:!0}),this.type="hint"}set tuiHint(r){this.content=r,r||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(r){r&&this.content?this.service.add(this):this.service.remove(this)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{context:[0,"tuiHintContext","context"],appearance:[0,"tuiHintAppearance","appearance"],tuiHint:"tuiHint"},standalone:!0,features:[X([ec(e),h0(e),{provide:Jr,deps:[Wx,xi],useClass:Jr}]),kt([qx,{directive:ns,inputs:["tuiHintHideDelay","tuiHintHideDelay","tuiHintShowDelay","tuiHintShowDelay"]},{directive:I0,inputs:["tuiHintDirection","tuiHintDirection"]}])]});let t=e;return t})(),Yx=(()=>{let e=class e extends ns{constructor(){super(...arguments),this.currentRect=Gr}getClientRect(){return this.currentRect}onMove({clientX:r,clientY:i}){this.currentRect=wD(r,i)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Nn(e)))(o||e)}})(),e.\u0275dir=E({type:e,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(i,o){i&1&&pt("mousemove.silent",function(a){return o.onMove(a)})},standalone:!0,features:[X([ec(e),tc(e)]),ke]});let t=e;return t})(),_0=4,Zx=[gh,vn,d0("hint",I0),f0("hint",rs)],Qx=(()=>{let e=class e{constructor(){var r;this.polymorpheus=f(Dh),this.el=Tt(),this.hover=f(ns),this.vvs=f(m0),this.viewport=f(Pf),this.appearance=this.polymorpheus.$implicit.appearance||((r=f(rs).el.closest("[tuiTheme]"))==null?void 0:r.getAttribute("tuiTheme")),this.options=v0(f(gD)),this.pointer=f(Yx,{optional:!0}),this.accessor=f(ur),f(gh).pipe(Us(()=>this.hover.el.isConnected),N(i=>this.vvs.correct(i)),Ct()).subscribe({next:([i,o])=>this.update(i,o),complete:()=>this.hover.toggle(!1)}),f(vn).pipe(Ct()).subscribe(i=>this.hover.toggle(i))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(r){(!r.closest("tui-hint")&&!this.hover.el.contains(r)||yh(this.hover.el))&&this.hover.toggle(!1)}apply(r,i,o,s){this.el.style.top=r,this.el.style.left=i,this.el.style.setProperty("--top",o),this.el.style.setProperty("--left",s)}update(r,i){let{height:o,width:s}=this.el.getBoundingClientRect(),a=this.accessor.getClientRect(),u=this.viewport.getClientRect();if(a===Gr||!o||!s)return;let c=It(i,_0,u.width-s-_0),[l,d]=this.vvs.correct([a.top+a.height/2-r,a.left+a.width/2-c]);this.apply(qo(Math.round(r)),qo(Math.round(c)),qo(Math.round(It(l,1,o-1))),qo(Math.round(It(d,1,s-1))))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["tui-hint"]],hostVars:5,hostBindings:function(i,o){i&1&&pt("click",function(a){return o.onClick(a.target)},!1,za),i&2&&(Ld("@tuiFadeIn",o.options),fe("data-appearance",o.appearance)("tuiTheme",o.appearance),We("_untouchable",o.pointer))},standalone:!0,features:[X(Zx),se],ngContentSelectors:Hx,decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(i,o){i&1&&(Ri(),ki(0),ae(1,Ux,1,1,"span",0)),i&2&&(R(),U("polymorpheusOutlet",o.content)("polymorpheusOutletContext",o.context))},dependencies:[bh],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-background-accent-1);border-radius:var(--tui-radius-l);color:var(--tui-text-primary-on-accent-1);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word;line-height:1.25rem}[_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-status-negative)}[data-appearance=dark][_nghost-%COMP%]{background:var(--tui-background-accent-opposite-hover);color:var(--tui-background-base);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:[c0]},changeDetection:0});let t=e;return _n([pn],t.prototype,"apply",null),t})(),M0=(()=>{let e=class e extends Xr{constructor(){super(r=>this.stream$.subscribe(r)),this.doc=f(qe),this.el=Tt(),this.id$=new zt(""),this.stream$=this.id$.pipe(Oe(),hD(()=>ut(this.doc,"keydown",{capture:!0}),zr),He(()=>this.focused?Ce(!1):Qe(ge(this.doc,"keyup"),ge(this.element,"blur")).pipe(N(()=>this.focused))),Sc(r=>r?ct(1e3):Ce(null)),Re(!1),Oe(),uo(1),mn(f(te))),this.type="hint"}set tuiHintDescribe(r){this.id$.next(r||"")}get element(){return this.doc.getElementById(this.id$.value||"")||this.el}get focused(){return Vf(this.element)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},standalone:!0,features:[X([tc(e)]),ke]});let t=e;return _n([pn],t.prototype,"element",null),t})(),T0=(()=>{let e=class e extends ur{constructor(){super(...arguments),this.type="hint"}getClientRect(){var r;return((r=this.tuiHintHost)==null?void 0:r.getBoundingClientRect())||Gr}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=Nn(e)))(o||e)}})(),e.\u0275dir=E({type:e,selectors:[["","tuiHint","","tuiHintHost",""]],inputs:{tuiHintHost:"tuiHintHost"},standalone:!0,features:[X([ec(e)]),ke]});let t=e;return t})();var J3=(()=>{let e=class e{constructor(){this.hints$=f(E0),this.destroyRef=f(Ge),this.cdr=f(gt),this.hints=[]}ngOnInit(){this.hints$.pipe(Ct(this.destroyRef)).subscribe(r=>{this.hints=r,this.cdr.detectChanges()})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["tui-hints"]],hostAttrs:["aria-live","polite"],standalone:!0,features:[se],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(i,o){i&1&&ae(0,Gx,2,6,"div",0),i&2&&U("ngForOf",o.hints)},dependencies:[$r,_h,bh],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;height:0}"],data:{animation:[u0]}});let t=e;return t})();var Xx=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-title"],standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`[tuiTitle]{position:relative;display:flex;flex-direction:column;text-align:left;gap:.25rem;margin:0;font:var(--tui-font-text-ui-m)}[tuiTitle][data-size=s]{gap:.125rem;font:var(--tui-font-text-s)}[tuiTitle][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-xs)}[tuiTitle][data-size=m]{gap:.125rem;font:var(--tui-font-heading-5)}[tuiTitle][data-size=m] [tuiSubtitle]{font:var(--tui-font-text-m)}[tuiTitle][data-size=l]{gap:.5rem;font:var(--tui-font-heading-3)}[tuiTitle][data-size=l] [tuiSubtitle]{font:var(--tui-font-text-m)}[tuiSubtitle]{font:var(--tui-font-text-ui-s)} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),nG=(()=>{let e=class e{constructor(){this.nothing=Le(Xx),this.size=""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiTitle",""]],hostAttrs:["tuiTitle",""],hostVars:1,hostBindings:function(i,o){i&2&&fe("data-size",o.size||null)},inputs:{size:[0,"tuiTitle","size"]},standalone:!0});let t=e;return t})();var Jx=typeof MutationObserver<"u"?MutationObserver:class{observe(){}disconnect(){}takeRecords(){return[]}},wh=new b("[WA_MUTATION_OBSERVER_INIT]"),eN=wh;var Ch=(()=>{let e=class e extends I{constructor(){let r=f(Me).nativeElement,i=f(eN);super(o=>{let s=new Jx(a=>{o.next(a)});return s.observe(r,i),()=>{s.disconnect()}})}};le(e,"\u0275fac",function(i){return new(i||e)}),le(e,"\u0275prov",L({token:e,factory:e.\u0275fac}));let t=e;return t})();var tN=typeof ResizeObserver<"u"?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},nN="content-box",Ih=nN,rN=new b("[WA_RESIZE_OPTION_BOX]",{providedIn:"root",factory:()=>Ih}),S0=rN,is=(()=>{let e=class e extends I{constructor(){let r=f(Me).nativeElement,i=f(S0);super(o=>{let s=new tN(a=>o.next(a));return s.observe(r,{box:i}),()=>{s.disconnect()}})}};le(e,"\u0275fac",function(i){return new(i||e)}),le(e,"\u0275prov",L({token:e,factory:e.\u0275fac}));let t=e;return t})(),vG=(()=>{let e=class e{constructor(){le(this,"waResizeObserver",f(is));le(this,"box",Ih)}};le(e,"\u0275fac",function(i){return new(i||e)}),le(e,"\u0275dir",E({type:e,selectors:[["","waResizeObserver",""]],inputs:{waResizeBox:[0,"box","waResizeBox"]},outputs:{waResizeObserver:"waResizeObserver"},standalone:!0,features:[X([is,{provide:S0,useFactory:()=>f(Me).nativeElement.getAttribute("waResizeBox")||Ih}])]}));let t=e;return t})();var DG=new b("[WA_RESIZE_OBSERVER_SUPPORT]",{providedIn:"root",factory:()=>!!f(st).ResizeObserver});var Mh=1,iN=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-fade-styles"],standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:-webkit-mask-position;transition-property:mask-position;transition-property:mask-position,-webkit-mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%));mask-size:calc(51% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));-webkit-mask-size:100% calc(51% + var(--fade-size) + var(--fade-offset));mask-size:100% calc(51% + var(--fade-size) + var(--fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom;mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),LG=(()=>{let e=class e{constructor(){this.lineHeight=null,this.size="1.5em",this.offset="0em",this.orientation="horizontal";let r=Tt();Le(iN),Qe(f(is),f(Ch),ut(r,"scroll")).pipe(Yr(f(te)),Ct()).subscribe(()=>{r.classList.toggle("_start",!!r.scrollLeft||!!r.scrollTop),r.classList.toggle("_end",this.isEnd(r))})}isEnd(r){return this.orientation==="vertical"?Math.round(r.scrollTop)r.clientHeight+4*Mh}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiFade",""]],hostVars:9,hostBindings:function(i,o){i&2&&(fe("data-orientation",o.orientation),Te("line-height",o.lineHeight)("--line-height",o.lineHeight)("--fade-size",o.size)("--fade-offset",o.offset))},inputs:{lineHeight:[0,"tuiFadeHeight","lineHeight"],size:[0,"tuiFadeSize","size"],offset:[0,"tuiFadeOffset","offset"],orientation:[0,"tuiFade","orientation"]},standalone:!0,features:[X([is,Ch,{provide:wh,useValue:{characterData:!0,subtree:!0}}])]});let t=e;return t})();var oN=["*"];function sN(t,e){if(t&1&&ot(0,"img",5),t&2){let n=q();U("src",n.value,vd)}}function aN(t,e){if(t&1&&ot(0,"tui-icon",6),t&2){let n=q();U("icon",n.value.toString())}}function uN(t,e){if(t&1&&(Lt(0),wt(1),Vt()),t&2){let n=q();R(),Hd(n.value)}}function cN(t,e){t&1&&(Lt(0),ki(1),Vt())}var A0={appearance:"",round:!0,size:"l"},Th=me(A0);function ic(t){return ir(Th,t,A0)}var KG=(()=>{let e=class e{constructor(){this.options=f(Th),this.size=this.options.size,this.round=this.options.round}get safeSrc(){var r;return((r=this.src)==null?void 0:r.toString())??""}get value(){return this.src||""}get svg(){return Ef(this.value)&&this.value.endsWith(".svg")}get type(){return this.value&&!Ef(this.value)?"img":this.value.startsWith("@tui.")?"icon":this.value.length>0&&this.value.length<3?"text":this.value.length?"img":"content"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["tui-avatar"],["button","tuiAvatar",""],["a","tuiAvatar",""]],hostVars:6,hostBindings:function(i,o){i&2&&(fe("data-size",o.size)("data-type",o.type),We("_round",o.round)("_svg",o.svg))},inputs:{size:"size",round:"round",src:"src"},standalone:!0,features:[X([$i(Th)]),kt([zi]),se],ngContentSelectors:oN,decls:5,vars:4,consts:[[3,"ngSwitch"],["alt","","loading","lazy",3,"src",4,"ngSwitchCase"],[3,"icon",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["alt","","loading","lazy",3,"src"],[3,"icon"]],template:function(i,o){i&1&&(Ri(),Lt(0,0),ae(1,sN,1,1,"img",1)(2,aN,1,1,"tui-icon",2)(3,uN,2,1,"ng-container",3)(4,cN,2,0,"ng-container",4),Vt()),i&2&&(U("ngSwitch",o.type),R(),U("ngSwitchCase","img"),R(),U("ngSwitchCase","icon"),R(),U("ngSwitchCase","text"))},dependencies:[su,fv,hv,bD],styles:['[_nghost-%COMP%]{--t-size: 3.5rem;--t-radius: .75rem;position:relative;display:inline-flex;flex-shrink:0;width:var(--t-size);height:var(--t-size);align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:var(--t-radius);border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-secondary);vertical-align:middle;box-sizing:border-box;padding:.25rem;opacity:.999}[data-size=xs][_nghost-%COMP%]{--t-size: var(--tui-height-xs);--t-radius: .5rem;font:var(--tui-font-text-xs);font-weight:700}[data-size=xs][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-m);font-size:.5625rem}[data-size=s][_nghost-%COMP%]{--t-size: var(--tui-height-s);--t-radius: .5rem;font:var(--tui-font-text-s);font-weight:700}[data-size=s][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-xs);font-weight:700}[data-size=m][_nghost-%COMP%]{--t-size: calc(var(--tui-height-m) - .25rem);--t-radius: .75rem;font:var(--tui-font-text-l);font-weight:700}[data-size=m][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-m);font-weight:700}[data-size=l][_nghost-%COMP%]{--t-size: var(--tui-height-l);--t-radius: .75rem;font:var(--tui-font-heading-5)}[data-size=l][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-l);font-weight:700}[data-size=xl][_nghost-%COMP%]{--t-size: 5rem;--t-radius: .75rem;font:var(--tui-font-heading-3)}[data-size=xl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-4)}[data-size=xxl][_nghost-%COMP%]{--t-size: 6rem;--t-radius: 1rem;font:var(--tui-font-heading-3)}[data-size=xxl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-3)}[data-size=xxxl][_nghost-%COMP%]{--t-size: 8rem;--t-radius: 1.25rem;font:var(--tui-font-heading-2)}[data-size=xxxl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-3)}[data-type=img][_nghost-%COMP%]:not(._svg){background:transparent}[data-type=icon][_nghost-%COMP%]:before{content:""}._round[_nghost-%COMP%]{--t-radius: calc(var(--t-size) / 2)}._svg[_nghost-%COMP%] img[_ngcontent-%COMP%]{padding:20%}[_nghost-%COMP%] tui-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60%;height:60%}[_nghost-%COMP%] img, [_nghost-%COMP%] picture, [_nghost-%COMP%] video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;box-sizing:border-box}'],changeDetection:0});let t=e;return t})();var x0={appearance:"",size:"l"},Sh=me(x0);function N0(t){return ir(Sh,t,x0)}var lN=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-badge"],standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`tui-badge,[tuiBadge]{--t-gap: 0rem;--t-icon-size: 1rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-width:100%;gap:calc(var(--t-gap) - 2 * var(--t-margin));border-radius:6rem;background:#959595;color:var(--tui-background-base);padding:var(--t-padding);height:var(--t-size);min-width:var(--t-size);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font:var(--tui-font-text-s)}tui-badge>img,[tuiBadge]>img,tui-badge>tui-svg,[tuiBadge]>tui-svg,tui-badge>tui-icon,[tuiBadge]>tui-icon,tui-badge>tui-avatar,[tuiBadge]>tui-avatar,tui-badge>tui-badge,[tuiBadge]>tui-badge,tui-badge>[tuiBadge],[tuiBadge]>[tuiBadge],tui-badge>[tuiRadio],[tuiBadge]>[tuiRadio],tui-badge>[tuiSwitch],[tuiBadge]>[tuiSwitch],tui-badge>[tuiCheckbox],[tuiBadge]>[tuiCheckbox],tui-badge._icon-start:before,[tuiBadge]._icon-start:before,tui-badge._icon-end:after,[tuiBadge]._icon-end:after{margin:var(--t-margin)}tui-badge[tuiStatus]:before,[tuiBadge][tuiStatus]:before{width:.375rem;height:.375rem}tui-badge>tui-icon,[tuiBadge]>tui-icon,tui-badge[tuiIcons]:before,[tuiBadge][tuiIcons]:before,tui-badge[tuiIcons]:after,[tuiBadge][tuiIcons]:after{font-size:var(--t-icon-size)!important}tui-badge[data-appearance=error],[tuiBadge][data-appearance=error]{--t-status: var(--tui-status-negative)}tui-badge[data-appearance=success],[tuiBadge][data-appearance=success]{--t-status: var(--tui-status-positive)}tui-badge[data-appearance=warning],[tuiBadge][data-appearance=warning]{--t-status: var(--tui-status-warning)}tui-badge[data-appearance=info],[tuiBadge][data-appearance=info]{--t-status: var(--tui-status-info)}tui-badge[data-appearance=neutral],[tuiBadge][data-appearance=neutral]{--t-status: var(--tui-status-neutral)}tui-badge[tuiStatus][data-appearance=error]:before,[tuiBadge][tuiStatus][data-appearance=error]:before,tui-badge[tuiStatus][data-appearance=success]:before,[tuiBadge][tuiStatus][data-appearance=success]:before,tui-badge[tuiStatus][data-appearance=warning]:before,[tuiBadge][tuiStatus][data-appearance=warning]:before,tui-badge[tuiStatus][data-appearance=info]:before,[tuiBadge][tuiStatus][data-appearance=info]:before,tui-badge[tuiStatus][data-appearance=neutral]:before,[tuiBadge][tuiStatus][data-appearance=neutral]:before{content:""}tui-badge[data-size=s],[tuiBadge][data-size=s]{--t-padding: 0 .3125rem;--t-size: 1rem;--t-icon-size: .625rem;--t-margin: -.125rem}tui-badge[data-size=s][tuiStatus]:before,[tuiBadge][data-size=s][tuiStatus]:before{width:.25rem;height:.25rem;margin-inline-end:-.125rem}tui-badge[data-size=m],[tuiBadge][data-size=m]{--t-padding: 0 .375rem;--t-size: 1.25rem;--t-icon-size: .75rem;--t-margin: -.125rem}tui-badge[data-size=l],[tuiBadge][data-size=l]{--t-padding: 0 .5rem;--t-size: var(--tui-height-xs);--t-margin: -.25rem}tui-badge[data-size=l][tuiStatus]:before,[tuiBadge][data-size=l][tuiStatus]:before{margin-inline-end:-.25rem}tui-badge[data-size=xl],[tuiBadge][data-size=xl]{--t-margin: -.25rem;--t-padding: 0 .75rem;--t-size: var(--tui-height-s);font:var(--tui-font-text-m)}tui-badge[data-size=xl][tuiStatus]:before,[tuiBadge][data-size=xl][tuiStatus]:before{width:.5rem;height:.5rem;margin-inline-end:-.125rem}tui-badge[tuiAppearance][data-appearance=error],[tuiBadge][tuiAppearance][data-appearance=error],tui-badge[tuiAppearance][data-appearance=success],[tuiBadge][tuiAppearance][data-appearance=success],tui-badge[tuiAppearance][data-appearance=warning],[tuiBadge][tuiAppearance][data-appearance=warning],tui-badge[tuiAppearance][data-appearance=info],[tuiBadge][tuiAppearance][data-appearance=info],tui-badge[tuiAppearance][data-appearance=neutral],[tuiBadge][tuiAppearance][data-appearance=neutral]{color:var(--tui-text-primary)}img[tuiBadge]{padding:0;width:var(--t-size)}tui-icon[tuiBadge]{--t-margin: 0 !important;-webkit-mask:none;mask:none;height:var(--t-size);width:var(--t-size)}tui-icon[tuiBadge][data-size=s]:after{-webkit-mask-size:.625rem;mask-size:.625rem}tui-icon[tuiBadge][data-size=m]:after{-webkit-mask-size:.75rem;mask-size:.75rem}tui-icon[tuiBadge][data-size=l]:after,tui-icon[tuiBadge][data-size=xl]:after{-webkit-mask-size:1rem;mask-size:1rem} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),u5=(()=>{let e=class e{constructor(){this.nothing=Le(lN),this.size=f(Sh).size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["tui-badge"],["","tuiBadge",""]],hostVars:1,hostBindings:function(i,o){i&2&&fe("data-size",o.size)},inputs:{size:"size"},standalone:!0,features:[X([$i(Sh)]),kt([zi,Ou])]});let t=e;return t})();var dN=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-card"],standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`[tuiCardMedium],[tuiCardLarge]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;position:relative;display:flex;align-items:flex-start;flex-shrink:0;text-decoration:none;overscroll-behavior:contain}[tuiCardMedium][tuiTitle],[tuiCardLarge][tuiTitle],[tuiCardMedium] [tuiTitle]:not([tuiCell] *),[tuiCardLarge] [tuiTitle]:not([tuiCell] *){font-weight:700}[tuiCardMedium] [tuiTitle],[tuiCardLarge] [tuiTitle],[tuiCardMedium] [tuiSubtitle],[tuiCardLarge] [tuiSubtitle]{max-width:100%}[tuiCardMedium]>*,[tuiCardLarge]>*{scrollbar-width:none;-ms-overflow-style:none}[tuiCardMedium]>*::-webkit-scrollbar,[tuiCardLarge]>*::-webkit-scrollbar,[tuiCardMedium]>*::-webkit-scrollbar-thumb,[tuiCardLarge]>*::-webkit-scrollbar-thumb{display:none}[tuiCardMedium]{width:8.75rem;height:8.75rem;flex-direction:column;justify-content:space-between;padding:.75rem;border-radius:var(--tui-radius-l);box-sizing:border-box}[tuiCardMedium][tuiTitle]{padding:.625rem .75rem}[tuiCardMedium] [tuiTitle]{margin:-.125rem 0}[tuiCardMedium] [tuiSubtitle]{color:var(--tui-text-primary)}[tuiCardLarge][data-space]{--t-gap: .75rem;--t-radius: var(--tui-radius-l);--t-comp: -.25rem;--t-padding: .75rem;--t-dim: calc(var(--t-padding) + var(--t-comp));font:var(--tui-font-text-m);padding:var(--t-padding);border-radius:var(--t-radius);box-sizing:border-box}[tuiCardLarge][data-space][data-space=normal]{--t-radius: 1.5rem;--t-padding: 1.5rem;--t-gap: 1.5rem}[tuiCardLarge][data-space][data-space=compact]{--t-radius: 1rem;--t-padding: 1.25rem;--t-gap: 1.25rem}[tuiCardLarge][data-space]:not([tuiCell],[tuiHeader]){flex-direction:column;gap:var(--t-gap);align-items:stretch}[tuiCardLarge][data-space]:not([tuiCell],[tuiHeader])>:last-child:not([tuiCell]){margin-top:auto}[tuiCardLarge][data-space][tuiHeader]{padding:var(--t-dim) var(--t-dim) var(--t-dim) var(--t-padding)}[tuiCardLarge][data-space][tuiHeader] [tuiLink]:last-child{margin-right:calc(-1 * var(--t-comp))}[tuiCardLarge][data-space]>[tuiHeader]{margin:var(--t-comp) var(--t-comp) calc(1.5 * var(--t-comp)) 0}[tuiCardLarge][data-space]>[tuiHeader] [tuiLink]:last-child{margin-right:calc(-1 * var(--t-comp))}[tuiCardLarge][data-space] [tuiCell]{width:-webkit-fill-available;width:-moz-available;width:stretch;padding:.5rem;margin:-.5rem -.5rem -.75rem;border-radius:var(--tui-radius-l)}[tuiCardLarge][data-space]>[tuiLink]:last-child{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin-bottom:var(--t-comp)} -`],encapsulation:2,changeDetection:0});let t=e;return t})();var d5=(()=>{let e=class e{constructor(){this.nothing=Le(dN),this.space="normal"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiCardLarge",""]],hostAttrs:["tuiCardLarge",""],hostVars:1,hostBindings:function(i,o){i&2&&fe("data-space",o.space||"normal")},inputs:{space:[0,"tuiCardLarge","space"]},standalone:!0});let t=e;return t})();var fN=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-cell"],standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`[tuiCell]{--tui-height: calc(var(--tui-height-s) - .5rem);--t-padding: .125rem 1rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;box-sizing:content-box;isolation:isolate;color:var(--tui-text-primary);padding:var(--t-padding);min-height:var(--t-height)}[tuiCell]:disabled{pointer-events:none}[tuiCell] [tuiAccessories]{position:relative;display:flex;max-height:var(--t-height);align-items:center;align-self:stretch}[tuiCell] [tuiCellActions]{position:absolute;right:0;z-index:1;padding-right:inherit}[tuiCell] [tuiCellActions]~*{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}[tuiCell] [tuiCellActions] button,[tuiCell] [tuiCellActions] a{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;opacity:0}[tuiCell] [tuiCellActions] button:focus-visible,[tuiCell] [tuiCellActions] a:focus-visible{opacity:1}[tuiCell] [tuiSubtitle]{display:flex;align-items:center;gap:.25rem;color:var(--tui-text-secondary)}[tuiCell] [tuiTitle]{flex-shrink:7;margin-inline-end:auto;align-items:normal;text-align:left}[tuiCell] [tuiTitle]~[tuiTitle]{flex-shrink:3;margin-inline-end:0;text-align:right;align-items:flex-end}[tuiCell] [tuiTitle]~[tuiTitle][tuiFade]{align-items:flex-start}[tuiCell] tui-badge-notification[data-size=xs]{position:absolute;top:50%;transform:translateY(-50%);left:-.625rem}[tuiCell][data-size=s]{--t-height: calc(var(--tui-height-s) - .5rem);--t-padding: .125rem 1rem}[tuiCell][data-size=s] [tuiTitle]{max-height:100%;font:var(--tui-font-text-ui-s);gap:0}[tuiCell][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiCell][data-size=s]>*:not(:first-child),[tuiCell][data-size=s]>[tuiAccessories]>*:not(:first-child){margin-inline-start:.5rem}[tuiCell][data-size=s]>tui-avatar,[tuiCell][data-size=s]>tui-avatar-stack tui-avatar,[tuiCell][data-size=s]>[tuiAccessories] tui-avatar,[tuiCell][data-size=s]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 1.5rem;font:var(--tui-font-text-m);font-size:.5625rem}[tuiCell][data-size=m]{--t-height: calc(var(--tui-height-m) - .75rem);--t-padding: .375rem 1rem}[tuiCell][data-size=m] [tuiTitle]{font:var(--tui-font-text-ui-s);gap:.125rem}[tuiCell][data-size=m] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiCell][data-size=m]>*:not(:first-child),[tuiCell][data-size=m]>[tuiAccessories]>*:not(:first-child){margin-inline-start:.75rem}[tuiCell][data-size=m]>tui-avatar,[tuiCell][data-size=m]>tui-avatar-stack tui-avatar,[tuiCell][data-size=m]>[tuiAccessories] tui-avatar,[tuiCell][data-size=m]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 2rem}[tuiCell][data-size=l]{--t-height: calc(var(--tui-height-l) - 1rem);--t-padding: .5rem 1rem}[tuiCell][data-size=l]>*:not(:first-child),[tuiCell][data-size=l]>[tuiAccessories]>*:not(:first-child){margin-inline-start:1rem}[tuiCell][data-size=l]>tui-avatar,[tuiCell][data-size=l]>tui-avatar-stack tui-avatar,[tuiCell][data-size=l]>[tuiAccessories] tui-avatar,[tuiCell][data-size=l]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 2.5rem;font:var(--tui-font-text-m);font-weight:700}[tuiCell]:hover [tuiCellActions]~*{opacity:0}[tuiCell]:hover [tuiCellActions] button,[tuiCell]:hover [tuiCellActions] a{opacity:1}[tuiOption] [tuiCell],tui-primitive-textfield [tuiCell]{padding:0}@media (hover: hover) and (pointer: fine){a[tuiCell]:not([tuiSurface]):hover,button[tuiCell]:not([tuiSurface]):hover{background:var(--tui-background-neutral-1);cursor:pointer}} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),g5=(()=>{let e=class e{constructor(){this.nothing=Le(fN),this.size=""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiCell","",5,"ng-template"]],hostAttrs:["tuiCell",""],hostVars:1,hostBindings:function(i,o){i&2&&fe("data-size",o.size||"l")},inputs:{size:[0,"tuiCell","size"]},standalone:!0,features:[X([ic({size:"s"}),Fu({size:"s"})])]});let t=e;return t})();var hN=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-header"],standalone:!0,features:[se],decls:0,vars:0,template:function(i,o){},styles:[`[tuiHeader]{position:relative;display:flex;align-items:flex-start;box-sizing:content-box;color:var(--tui-text-primary);text-align:left}[tuiHeader] [tuiTitle]{flex-grow:2}[tuiHeader] [tuiAccessories]{display:flex;align-items:center;gap:.75rem}[tuiHeader] [tuiAccessories]:before{content:"\\200b";visibility:hidden}[tuiHeader] [tuiSubtitle]{font:var(--tui-font-text-m);color:var(--tui-text-secondary)}[tuiHeader] [tuiCaption]{font:var(--tui-font-text-s);color:var(--tui-text-secondary);font-weight:500;text-transform:uppercase}[tuiHeader][data-size=xxl] [tuiTitle],[tuiHeader][data-size=xxl] [tuiAccessories]{font:var(--tui-font-heading-1)}[tuiHeader][data-size=xl] [tuiTitle],[tuiHeader][data-size=xl] [tuiAccessories]{font:var(--tui-font-heading-2)}[tuiHeader][data-size=l] [tuiTitle],[tuiHeader][data-size=l] [tuiAccessories]{font:var(--tui-font-heading-3)}[tuiHeader][data-size=m] [tuiTitle],[tuiHeader][data-size=m] [tuiAccessories]{font:var(--tui-font-heading-4)}[tuiHeader][data-size=s] [tuiTitle],[tuiHeader][data-size=s] [tuiAccessories]{font:var(--tui-font-heading-5)}[tuiHeader][data-size=xs] [tuiTitle],[tuiHeader][data-size=xs] [tuiAccessories]{font:var(--tui-font-heading-6)}[tuiHeader][data-size=xxs] [tuiTitle],[tuiHeader][data-size=xxs] [tuiAccessories]{font:var(--tui-font-text-xl)}[tuiHeader][data-size=xxl] [tuiSubtitle],[tuiHeader][data-size=xl] [tuiSubtitle],[tuiHeader][data-size=l] [tuiSubtitle]{font:var(--tui-font-text-l)}tui-root._mobile [tuiHeader] [tuiAccessories]{gap:1rem}tui-root._mobile [tuiHeader][data-size=xxs] [tuiTitle],tui-root._mobile [tuiHeader][data-size=xxs] [tuiAccessories]{font:var(--tui-font-heading-6)} -`],encapsulation:2,changeDetection:0});let t=e;return t})(),E5=(()=>{let e=class e{constructor(){this.nothing=Le(hN),this.size="s"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiHeader",""]],hostAttrs:["tuiHeader",""],hostVars:1,hostBindings:function(i,o){i&2&&fe("data-size",o.size||"s")},inputs:{size:[0,"tuiHeader","size"]},standalone:!0,features:[X([ic({size:"s"}),Fu({size:"s"}),N0({size:"m"})])]});let t=e;return t})();var pN=65536,Ah=class{constructor(e){this.$implicit=e}},O0=(()=>{let e=class e{constructor(){this.viewContainer=f(et),this.templateRef=f(Ie)}set tuiRepeatTimesOf(r){let i=Math.floor(It(r,0,pN)),{length:o}=this.viewContainer;r"dashed";var FN=()=>"solid";var O5=(()=>{let e=class e{constructor(){this.axisX="solid",this.axisXLabels=[],this.axisY="solid",this.axisYInset=!1,this.axisYLabels=[],this.axisYName="",this.axisYSecondaryInset=!1,this.axisYSecondaryLabels=[],this.axisYSecondaryName="",this.horizontalLines=0,this.horizontalLinesHandler=FN,this.verticalLines=0,this.verticalLinesHandler=ON}get hasXLabels(){return!!this.axisXLabels.length}get hasYLabels(){return!!this.axisYLabels.length&&!this.axisYInset||!!this.axisYName}get hasYSecondaryLabels(){return!!this.axisYSecondaryLabels.length&&!this.axisYSecondaryInset||!!this.axisYSecondaryName}fallback(r){return r||Wr}get centeredXLabels(){return this.axisY==="none"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["tui-axes"]],hostVars:2,hostBindings:function(i,o){i&2&&We("_centered",o.centeredXLabels)},inputs:{axisX:"axisX",axisXLabels:"axisXLabels",axisY:"axisY",axisYInset:"axisYInset",axisYLabels:"axisYLabels",axisYName:"axisYName",axisYSecondaryInset:"axisYSecondaryInset",axisYSecondaryLabels:"axisYSecondaryLabels",axisYSecondaryName:"axisYSecondaryName",horizontalLines:"horizontalLines",horizontalLinesHandler:"horizontalLinesHandler",verticalLines:"verticalLines",verticalLinesHandler:"verticalLinesHandler"},standalone:!0,features:[se],ngContentSelectors:mN,decls:13,vars:11,consts:[["class","t-side",3,"t-side_padding",4,"ngIf"],[1,"t-wrapper"],[1,"t-grid"],[1,"t-vertical"],["automation-id","tui-axex__vertical-line","class","t-line t-line_vertical",3,"borderRightStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-horizontal"],["automation-id","tui-axex__horizontal-line","class","t-line",3,"borderTopStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["class","t-labels-y t-labels-y_inset",4,"ngIf"],["class","t-labels-y t-labels-y_inset t-labels-y_inset_secondary",4,"ngIf"],[1,"t-content"],["class","t-labels-x",4,"ngIf"],[1,"t-side"],["automation-id","tui-axex__axis-y-name","class","t-name t-name_primary",4,"ngIf"],["class","t-labels-y t-labels-y_primary",4,"ngIf"],["automation-id","tui-axex__axis-y-name",1,"t-name","t-name_primary"],[1,"t-labels-y","t-labels-y_primary"],["automation-id","tui-axex__axis-y-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-label",1,"t-label-y"],["automation-id","tui-axex__vertical-line",1,"t-line","t-line_vertical"],["automation-id","tui-axex__horizontal-line",1,"t-line"],[1,"t-labels-y","t-labels-y_inset"],[1,"t-labels-y","t-labels-y_inset","t-labels-y_inset_secondary"],["automation-id","tui-axex__axis-y-secondary-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-secondary-label",1,"t-label-y"],[1,"t-labels-x"],["automation-id","tui-axex__axis-x-label","class","t-label-x",3,"t-label-x_transparent",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-x-label",1,"t-label-x"],["class","t-labels-y t-labels-y_secondary",4,"ngIf"],["automation-id","tui-axex__axis-y-secondary-name","class","t-name",4,"ngIf"],[1,"t-labels-y","t-labels-y_secondary"],["automation-id","tui-axex__axis-y-secondary-name",1,"t-name"]],template:function(i,o){i&1&&(Ri(),ae(0,DN,3,4,"div",0),ue(1,"div",1)(2,"div",2)(3,"div",3),ae(4,bN,1,2,"div",4),ie(),ue(5,"div",5),ae(6,_N,1,2,"div",6),ie(),ae(7,wN,2,1,"div",7)(8,IN,2,1,"div",8),ue(9,"div",9),ki(10),ie()(),ae(11,TN,2,1,"div",10),ie(),ae(12,NN,3,4,"div",0)),i&2&&(U("ngIf",o.hasYLabels),R(2),Te("border-bottom-style",o.axisX)("border-left-style",o.axisY),R(2),U("tuiRepeatTimesOf",o.verticalLines),R(2),U("tuiRepeatTimesOf",o.horizontalLines),R(),U("ngIf",o.axisYInset),R(),U("ngIf",o.axisYSecondaryInset),R(3),U("ngIf",o.hasXLabels),R(),U("ngIf",o.hasYSecondaryLabels))},dependencies:[Po,$r,O0],styles:['[_nghost-%COMP%]{display:flex}.t-wrapper[_ngcontent-%COMP%]{display:flex;flex:1;height:100%;flex-direction:column}.t-grid[_ngcontent-%COMP%]{position:relative;display:flex;flex:1;justify-content:space-around;align-items:flex-end;border-width:1px;border-color:var(--tui-border-normal);isolation:isolate}.t-horizontal[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column}.t-vertical[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}._centered[_nghost-%COMP%] .t-vertical[_ngcontent-%COMP%]:after{content:"";display:block;flex:1 0 1px}.t-line[_ngcontent-%COMP%]{flex:2 0 1px;box-sizing:border-box;border-width:1px;border-color:var(--tui-border-normal)}._centered[_nghost-%COMP%] .t-line_vertical[_ngcontent-%COMP%]:first-child{flex:1 0 1px;pointer-events:none}.t-side[_ngcontent-%COMP%]{display:flex;align-items:stretch}.t-side_padding[_ngcontent-%COMP%]{padding-bottom:2rem}.t-name[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);writing-mode:tb;text-align:center;padding-left:.75rem;color:var(--tui-text-secondary)}.t-name_primary[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-labels-y[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-xs);flex-direction:column-reverse;justify-content:space-between;color:var(--tui-text-secondary)}.t-labels-y_primary[_ngcontent-%COMP%]{text-align:right;padding-right:.75rem}.t-labels-y_secondary[_ngcontent-%COMP%]{padding-left:.75rem}.t-labels-y_transparent[_ngcontent-%COMP%]{border-color:transparent}.t-labels-y_inset[_ngcontent-%COMP%]{position:absolute;top:.5625rem;left:.25rem;bottom:-.75rem;pointer-events:none}.t-labels-y_inset_secondary[_ngcontent-%COMP%]{left:auto;right:.25rem;text-align:right}.t-labels-x[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-xs);border-right:1px solid transparent;color:var(--tui-text-secondary)}.t-label-x[_ngcontent-%COMP%]{height:.4375rem;border-left:1px solid var(--tui-border-normal);flex:1;margin-bottom:1.5625rem}.t-label-x[_ngcontent-%COMP%]:before{content:"";display:block;height:.5625rem}.t-label-x_transparent[_ngcontent-%COMP%]{border-color:transparent}._centered[_nghost-%COMP%] .t-label-x[_ngcontent-%COMP%]{height:2rem;text-align:center;border:none;margin:0}[new][_nghost-%COMP%]:not(._centered) .t-label-x[_ngcontent-%COMP%]:last-child:not(:first-child){flex:.5;text-align:right;border-left:none}[new][_nghost-%COMP%]:not(._centered) .t-label-x[_ngcontent-%COMP%]:nth-last-child(2){flex:.5}.t-label-y[_ngcontent-%COMP%]:first-child{margin-bottom:-.375rem}.t-label-y[_ngcontent-%COMP%]:last-child{margin-top:-.375rem}.t-content[_ngcontent-%COMP%]{position:absolute;top:0;left:-1px;right:0;bottom:-1px;display:flex;align-items:flex-end}'],changeDetection:0});let t=e;return t})();function PN(t,e){let n=e[0]-t[0],r=e[1]-t[1];return Math.atan2(r,n)}function RN(t,e){let n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n**2+r**2)}function F0(t,e,n,r=!1,i=.2){let o=e||t,s=n||t,a=PN(o,s)+(r?Math.PI:0),u=RN(o,s)*i,c=t[0]+Math.cos(a)*u,l=t[1]+Math.sin(a)*u;return[c,l]}function kN(t,e,n){let[r,i]=F0(t[e-1],t[e-2],t[e],!1,n),[o,s]=F0(t[e],t[e-1],t[e+1],!0,n);return`C ${r},${i} ${o},${s} ${t[e][0]},${t[e][1]}`}function LN(t){return`L ${t}`}var VN=500;function P0(t,e,n){return n?kN(t,e,n/VN):LN([t[e][0],t[e][1]])}var xh=class{constructor(e){this.internalDirectiveInstance=e}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},R0=(()=>{let e=class e{constructor(){f(et).createEmbeddedView(f(Ie),new xh(this))}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"},standalone:!0});let t=e;return t})();var jN="tui_",k0=(()=>{let e=class e{generate(){return`${jN}${e.autoId++}${Date.now()}`}};e.autoId=0,e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var BN=(t,e)=>({$implicit:t,index:e});function HN(t,e){if(t&1&&ot(0,"div",10),t&2){let n=e.$implicit,r=q(3);Te("bottom",r.getBottom(n[1]),"%")("left",r.getLeft(n[0]),"%")}}function UN(t,e){if(t&1&&(Lt(0),ae(1,HN,1,4,"div",9),Vt()),t&2){let n=q(2);R(),U("ngForOf",n.value)}}function $N(t,e){if(t&1){let n=Ly();ue(0,"div",14),Ud(1,"async"),pt("mouseenter",function(){ig(n);let i=q().index,o=q(3);return og(o.onMouseEnter(i))}),ot(2,"div",15)(3,"div",16,0),ie()}if(t&2){let n=By(4),r=q(),i=r.$implicit,o=r.index,s=q(2).tuiLet,a=q();Te("left",a.getLeft(a.getX(o)),"%")("width",a.getWidth(o),"%"),We("t-column_hint_hovered",$d(1,20,a.drivers.get(o)))("t-column_hovered",s===o),U("tuiHint",(a.hintDirective==null?null:a.hintDirective.hint)||a.hintContent)("tuiHintContext",zy(22,BN,a.getImplicit(i),o))("tuiHintDescribe",a.isFocusable?a.getHintId(o):null)("tuiHintHost",n),R(2),Te("left",a.getOffset(o),"%"),R(),Te("bottom",a.getBottom(i[1]),"%")("left",a.getOffset(o),"%"),U("id",a.getHintId(o))("tabIndex",a.isFocusable?0:-1)}}function zN(t,e){if(t&1&&ot(0,"div",17),t&2){let n=q().$implicit,r=q(3);Te("bottom",r.getBottom(n[1]),"%")}}function GN(t,e){if(t&1&&(Lt(0),ae(1,$N,5,25,"div",12)(2,zN,1,2,"div",13),Vt()),t&2){let n=q(3);R(),U("ngIf",n.value.length>1||n.dots),R(),U("ngIf",n.isFocusable)}}function WN(t,e){if(t&1&&(Lt(0),ae(1,GN,3,2,"ng-container",11),Vt()),t&2){let n=q(2);R(),U("ngForOf",n.value)}}function qN(t,e){if(t&1&&(ue(0,"div",20),wt(1),ie()),t&2){let n=q().ngIf,r=q(2);Te("left",r.getLeft(n[0]),"%"),R(),mt(" ",r.xStringify(n[0])," ")}}function YN(t,e){if(t&1&&(ue(0,"div",21),wt(1),ie()),t&2){let n=q().ngIf,r=q(2);Te("bottom",r.getBottom(n[1]),"%"),R(),mt(" ",r.yStringify(n[1])," ")}}function ZN(t,e){if(t&1&&(Lt(0),ae(1,qN,2,3,"div",18)(2,YN,2,3,"div",19),Vt()),t&2){let n=q(2);R(),U("ngIf",n.xStringify),R(),U("ngIf",n.yStringify)}}function QN(t,e){if(t&1&&(Lt(0),yg(),ue(1,"svg",2)(2,"defs")(3,"linearGradient",3),ot(4,"stop",4)(5,"stop",5),ie()(),ot(6,"path",6)(7,"path",7),ie(),ae(8,UN,2,1,"ng-container",8)(9,WN,2,1,"ng-container",8)(10,ZN,3,2,"ng-container",8),Vt()),t&2){let n=e.tuiLet,r=q();R(),fe("viewBox",r.viewBox),R(2),fe("id",r.fillId),R(3),fe("d",r.fillD)("fill",r.fill),R(),fe("d",r.d),R(),U("ngIf",r.dots),R(),U("ngIf",r.hasHints),R(),U("ngIf",r.getHovered(n))}}var KN={dots:!1,filled:!1,smoothingFactor:0},XN=me(KN);var JN=(()=>{let e=class e{constructor(){this.charts=_u,this.chartsRef=_u,this.renderer=f(er),this.destroyRef=f(Ge),this.zone=f(te),this.hovered$=f(vn)}ngAfterViewInit(){oo([eO(this.charts),this.hovered$]).pipe(Ne(r=>!r.some(Boolean)),Yr(this.zone),Ct(this.destroyRef)).subscribe(()=>{this.charts.forEach(r=>r.onHovered(NaN))})}getContext(r,i){return this.computeContext(...this.charts.map(({value:o})=>o))[r]}raise(r,i){let o=this.charts.map(a=>a.value[r]),s=[...o].sort((a,u)=>a[1]-u[1]);this.charts.forEach(a=>a.onHovered(r)),this.chartsRef.forEach(({nativeElement:a},u)=>this.renderer.setStyle(a,"z-index",s.indexOf(o[u])))}computeContext(...r){return(r[0]||[]).map((i,o)=>r.map(s=>s[o]))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=E({type:e,selectors:[["","tuiLineChartHint",""]],contentQueries:function(i,o,s){if(i&1&&(jd(s,L0,4),jd(s,L0,4,Me)),i&2){let a;Ja(a=eu())&&(o.charts=a),Ja(a=eu())&&(o.chartsRef=a)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[X([vn])]});let t=e;return _n([pn],t.prototype,"computeContext",null),t})();function eO(t){return oo(t.map(({drivers:e})=>pD(e).pipe(N(n=>n.map(r=>r.pipe(Re(!1))))))).pipe(N(e=>e.reduce((n,r)=>n.concat(r),[])),He(e=>oo(e)),N(e=>e.some(Boolean)),Oe())}var L0=(()=>{let e=class e{constructor(){this.zone=f(te),this.options=f(XN),this.hover$=new Pe,this.autoIdString=f(k0).generate(),this.hintDirective=f(JN,{optional:!0}),this.hintOptions=f(Eh,{optional:!0}),this.drivers=_u,this.x=0,this.y=0,this.width=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.filled=this.options.filled,this.dots=this.options.dots,this.value=[]}set valueSetter(r){this.value=r.filter(i=>!i.some(Number.isNaN))}onHovered(r){this.hover$.next(r)}get hovered$(){return this.hover$.pipe(Oe(),mn(this.zone))}get hintContent(){var r;return((r=this.hintOptions)==null?void 0:r.content)||""}get fillId(){return`tui-line-chart-${this.autoIdString}`}get fill(){return this.filled?`url(#${this.fillId})`:"none"}get viewBox(){return`${this.x} ${this.y} ${this.width} ${this.height}`}get d(){return this.getD(this.value,this.smoothingFactor)}get fillD(){return this.value.length?`${this.d}V ${this.y} H ${this.value[0][0]} V ${this.value[0][1]}`:this.d}get isFocusable(){return!this.hintDirective&&this.hasHints}get hasHints(){var r;return!!this.xStringify||!!this.yStringify||!!((r=this.hintDirective)!=null&&r.hint)||!!this.hintContent}onMouseLeave(){this.hintDirective||this.onHovered(NaN)}getX(r){return this.isSinglePoint?this.value[0][0]/2:r?(this.value[r-1][0]+this.value[r][0])/2:2*this.value[0][0]-this.getX(1)}getWidth(r){return 100*this.computeWidth(r)/this.width}getHintId(r){return`${this.autoIdString}_${r}`}getImplicit(r){var i;return((i=this.hintDirective)==null?void 0:i.getContext(this.value.indexOf(r),this))||r}getHovered(r){return zr(r)&&Number.isInteger(r)?this.value[r]:null}getBottom(r){return 100*(r-this.y)/this.height}getLeft(r){return 100*(r-this.x)/this.width}getOffset(r){return 100*(this.value[r][0]-this.getX(r))/this.computeWidth(r)}onMouseEnter(r){this.hintDirective?this.hintDirective.raise(r,this):this.onHovered(r)}get isSinglePoint(){return this.value.length===1}getD(r,i){return r.reduce((o,s,a)=>a?`${o} ${P0(r,a,i)}`:`M ${s}`,"")}computeWidth(r){return r===this.value.length-1?2*(this.value[r][0]-this.getX(r)):this.getX(r+1)-this.getX(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oe({type:e,selectors:[["tui-line-chart"]],viewQuery:function(i,o){if(i&1&&jy(ns,5),i&2){let s;Ja(s=eu())&&(o.drivers=s)}},hostBindings:function(i,o){i&1&&pt("mouseleave",function(){return o.onMouseLeave()})},inputs:{x:"x",y:"y",width:"width",height:"height",smoothingFactor:"smoothingFactor",xStringify:"xStringify",yStringify:"yStringify",filled:"filled",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[X([],[C0({direction:"top",hideDelay:0})]),se],decls:2,vars:3,consts:[["hintHost",""],[4,"tuiLet"],["focusable","false","height","100%","preserveAspectRatio","none","width","100%","xmlns","http://www.w3.org/2000/svg",1,"t-svg"],["x1","0","x2","0","y1","1","y2","0"],["offset","0%","stop-color","currentColor","stop-opacity","0.5"],["offset","100%","stop-color","currentColor","stop-opacity","0"],["stroke","none"],["fill","none","stroke","currentColor","stroke-width","2","vector-effect","non-scaling-stroke"],[4,"ngIf"],["class","t-dot",3,"bottom","left",4,"ngFor","ngForOf"],[1,"t-dot"],[4,"ngFor","ngForOf"],["class","t-column",3,"t-column_hint_hovered","t-column_hovered","left","width","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter",4,"ngIf"],["class","t-line t-line_horizontal",3,"bottom",4,"ngIf"],[1,"t-column",3,"mouseenter","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-line","t-line_vertical"],[1,"t-host",3,"id","tabIndex"],[1,"t-line","t-line_horizontal"],["class","t-hint t-hint_x",3,"left",4,"ngIf"],["class","t-hint t-hint_y",3,"bottom",4,"ngIf"],[1,"t-hint","t-hint_x"],[1,"t-hint","t-hint_y"]],template:function(i,o){i&1&&(ae(0,QN,11,8,"ng-container",1),Ud(1,"async")),i&2&&U("tuiLet",$d(1,1,o.hovered$))},dependencies:[R0,mv,Po,rs,M0,T0,$r],styles:['[_nghost-%COMP%]{display:flex;width:100%;height:100%;pointer-events:none}.t-svg[_ngcontent-%COMP%]{transform:scaleY(-1)}.t-column[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;pointer-events:auto}.t-dot[_ngcontent-%COMP%]{position:absolute;width:.375rem;height:.375rem;border-radius:100%;background:currentColor;margin:-.1875rem;box-shadow:0 0 0 2px #fff}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;width:.5rem;height:.5rem;border-radius:100%;opacity:0;background:#fff;margin:-.25rem;box-shadow:0 0 0 2px currentColor,0 .0625rem .1875rem .125rem #0000001a;outline:none;pointer-events:none}.t-host[_ngcontent-%COMP%]:focus, .t-column_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%], .t-column[_ngcontent-%COMP%]:hover .t-host[_ngcontent-%COMP%], .t-column_hint_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%]{opacity:1}.t-line[_ngcontent-%COMP%]{position:absolute;opacity:0;background:var(--tui-border-normal)}.t-line_vertical[_ngcontent-%COMP%]{top:0;bottom:0;left:50%;width:1px}.t-line_horizontal[_ngcontent-%COMP%]{z-index:-1;width:100%;height:1px}[style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%]{opacity:1}.t-hint[_ngcontent-%COMP%]{position:absolute;box-shadow:var(--tui-shadow-small);font:var(--tui-font-text-xs);height:1.25rem;line-height:1.25rem;margin-bottom:-.625rem;padding:0 .375rem;white-space:nowrap;color:var(--tui-text-primary);background:var(--tui-background-base);transform:translate3d(-50%,0,0)}.t-hint_x[_ngcontent-%COMP%]{bottom:0}.t-hint_y[_ngcontent-%COMP%]{left:0}'],changeDetection:0});let t=e;return _n([pn],t.prototype,"hovered$",null),_n([pn],t.prototype,"getD",null),t})();export{Ee as a,Be as b,to as c,I as d,bc as e,_c as f,Pe as g,zt as h,J0 as i,eb as j,Nt as k,_n as l,nt as m,Ce as n,ub as o,cb as p,yr as q,N as r,oo as s,Gt as t,so as u,vr as v,vb as w,ut as x,ct as y,Qe as z,Mc as A,Ne as B,Ib as C,ao as D,Tc as E,Mb as F,Un as G,tn as H,Ac as I,Bs as J,Oe as K,fi as L,Mp as M,Nc as N,Ab as O,xb as P,Nb as Q,$n as R,Re as S,He as T,lt as U,Us as V,En as W,Ob as X,_ as Y,Tn as Z,L as _,Rr as $,Zj as aa,b as ba,Q as ca,ve as da,f as ea,Qj as fa,un as ga,Kj as ha,Sn as ia,xi as ja,ho as ka,oe as la,kr as ma,E as na,Fa as oa,nd as pa,Um as qa,Pt as ra,id as sa,Zt as ta,ig as ua,og as va,yg as wa,Nn as xa,vE as ya,Et as za,Ge as Aa,Vr as Ba,Ue as Ca,te as Da,Nr as Ea,Xj as Fa,Me as Ga,Jj as Ha,eB as Ia,LE as Ja,jr as Ka,tB as La,nB as Ma,vd as Na,rB as Oa,iB as Pa,za as Qa,ha as Ra,R as Sa,V as Ta,Pw as Ua,Ie as Va,ya as Wa,er as Xa,Qt as Ya,NC as Za,et as _a,fn as $a,ke as ab,kt as bb,hI as cb,Ol as db,pI as eb,ae as fb,fe as gb,U as hb,Te as ib,We as jb,uB as kb,cB as lb,lB as mb,dB as nb,ue as ob,ie as pb,ot as qb,Lt as rb,Vt as sb,kd as tb,Ly as ub,WI as vb,Ld as wb,pt as xb,q as yb,Ri as zb,ki as Ab,jd as Bb,jy as Cb,Ja as Db,eu as Eb,By as Fb,wt as Gb,Hd as Hb,mt as Ib,rM as Jb,iM as Kb,fB as Lb,oM as Mb,sM as Nb,hB as Ob,pB as Pb,X as Qb,se as Rb,$y as Sb,zy as Tb,mB as Ub,gB as Vb,yB as Wb,Ud as Xb,$d as Yb,vB as Zb,DB as _b,bB as $b,_B as ac,EB as bc,wB as cc,Li as dc,gM as ec,Zy as fc,tu as gc,CB as hc,IB as ic,gt as jc,Gd as kc,MB as lc,TB as mc,Wd as nc,Ur as oc,No as pc,SB as qc,Vi as rc,ZB as sc,ev as tc,qe as uc,QB as vc,ou as wc,VM as xc,KB as yc,jM as zc,dv as Ac,XB as Bc,JB as Cc,$r as Dc,Po as Ec,e2 as Fc,mv as Gc,t2 as Hc,n2 as Ic,rT as Jc,sf as Kc,oT as Lc,r2 as Mc,iu as Nc,pT as Oc,g2 as Pc,u0 as Qc,yz as Rc,c0 as Sc,Iz as Tc,Ct as Uc,sS as Vc,_f as Wc,Go as Xc,OT as Yc,Rv as Zc,pf as _c,kn as $c,R2 as ad,k2 as bd,XT as cd,JT as dd,tS as ed,V2 as fd,rS as gd,oS as hd,Fv as id,j2 as jd,B2 as kd,Q2 as ld,me as md,ne as nd,Ef as od,uS as pd,eD as qd,zr as rd,K2 as sd,hn as td,ir as ud,pn as vd,qo as wd,Le as xd,ar as yd,ur as zd,mh as Ad,d0 as Bd,f0 as Cd,zz as Dd,ec as Ed,h0 as Fd,tc as Gd,p0 as Hd,It as Id,Yo as Jd,gS as Kd,gH as Ld,w$ as Md,kf as Nd,Yi as Od,Pu as Pd,ED as Qd,C$ as Rd,Tt as Sd,I$ as Td,M$ as Ud,$i as Vd,hS as Wd,zi as Xd,_u as Yd,uH as Zd,cH as _d,Gr as $d,Gi as ae,lH as be,Wr as ce,oD as de,dH as ee,fH as fe,hH as ge,bH as he,_H as ie,Tf as je,Sf as ke,Iu as le,Af as me,MS as ne,jt as oe,Mt as pe,qi as qe,Nf as re,aD as se,wH as te,CH as ue,Kt as ve,dD as we,jH as xe,Tu as ye,qr as ze,aU as Ae,ge as Be,hD as Ce,uU as De,cU as Ee,kS as Fe,Yr as Ge,mn as He,VS as Ie,gD as Je,bU as Ke,HS as Le,_U as Me,EU as Ne,wU as Oe,CU as Pe,MU as Qe,SU as Re,AU as Se,Au as Te,xu as Ue,Nu as Ve,mD as We,xU as Xe,NU as Ye,FU as Ze,PU as _e,Pf as $e,GS as af,Ou as bf,Fu as cf,e$ as df,bD as ef,Dh as ff,Jr as gf,jx as hf,bh as if,p$ as jf,m$ as kf,s3 as lf,y0 as mf,a3 as nf,v0 as of,Vx as pf,_D as qf,v$ as rf,Lf as sf,N$ as tf,CD as uf,O$ as vf,Vf as wf,F$ as xf,P$ as yf,kA as zf,AD as Af,Gf as Bf,ND as Cf,Zu as Df,UD as Ef,$D as Ff,xx as Gf,o0 as Hf,X$ as If,Px as Jf,tz as Kf,k0 as Lf,vn as Mf,hz as Nf,R0 as Of,O0 as Pf,n3 as Qf,gh as Rf,m0 as Sf,_h as Tf,C0 as Uf,Eh as Vf,ns as Wf,rs as Xf,Qx as Yf,M0 as Zf,T0 as _f,J3 as $f,nG as ag,is as bg,vG as cg,wh as dg,Ch as eg,LG as fg,ic as gg,KG as hg,N0 as ig,u5 as jg,d5 as kg,g5 as lg,E5 as mg,O5 as ng,XN as og,JN as pg,eO as qg,L0 as rg}; diff --git a/chunk-MGNJSP4A.js b/chunk-MGNJSP4A.js new file mode 100644 index 000000000..359705540 --- /dev/null +++ b/chunk-MGNJSP4A.js @@ -0,0 +1,4 @@ +import{a as Xe,i as Ye}from"./chunk-DRE72XA7.js";import{A as Si,B as Ai,C as Xt,D as Yt,E as gt,F as Kt,N as qt,O as Jt,Q as Fi,V as xe,W as Pi,X as vt,c as Ke,d as qe,e as _e,f as be,g as ei,h as ii,i as ni,j as oi,k as ri,l as si,m as we,n as ai,p as Ii,q as Ci,r as mt,s as xi,t as Oi,u as Mi,v as Gt,y as Ei}from"./chunk-P7BVBIJ3.js";import{$ as lt,$a as ue,Ac as It,Ad as jt,Ae as rt,B,Ba as je,Bd as ci,Be as bi,Ca as C,Cb as Ze,Db as V,De as wi,Eb as L,Fa as Ut,Fb as Q,Fe as yi,G as Ne,Gb as G,Ge as Rt,Ha as zt,Hb as Dt,Hd as ye,He as Ht,Ia as $,Ib as he,Id as ui,Jb as tt,Jd as li,Je as Zt,K as se,Kb as et,Kc as ht,L as ut,La as dt,Lb as fe,Ld as di,Mb as it,Mc as Ge,Md as pi,Nd as p,Ob as nt,Od as Te,Qe as Ti,Te as Di,Ud as $t,W as K,Wa as ce,Wb as v,Wc as A,Wd as De,X as St,Xb as E,Xd as Ie,Y as Ue,Ya as b,Yb as Bt,Yc as Je,Yd as hi,Z as ze,Ze as Ct,_ as ae,_d as fi,af as Ce,bc as me,bd as Wt,ca as Be,cc as ge,cf as Qt,d as Lt,da as w,db as $e,eb as le,fb as W,g as ct,ga as D,gb as At,gd as ti,gf as Oe,h as He,hb as Z,hc as ve,if as Me,ja as s,jf as xt,k as kt,l as Y,la as wt,lb as x,ma as We,mb as H,n as re,na as Ve,nb as _,oa as yt,ob as de,pb as S,pc as pt,pd as F,qa as I,qd as l,r as T,re as mi,sa as u,se as gi,te as vi,ub as O,uc as ot,ud as Vt,ue as Pt,vb as M,vc as Qe,wb as Tt,wd as k,x as Le,xb as q,xd as Ft,y as ke,ya as Nt,yb as J,yd as ft,ye as d,z,zb as pe,zd as j,ze as _i}from"./chunk-ZFID6WDR.js";function Ee(n){return!!n&&(Qi(n)||Ee(n.parentElement))}function Qi(n){var t;return((t=n.ownerDocument.defaultView)==null?void 0:t.getComputedStyle(n).getPropertyValue("position"))==="fixed"}function Gi(n,t){if(n&1&&(O(0,"div",3),Tt(1,"div",4),M()),n&2){let c=L().ngIf,e=L();S("t-bar_has-horizontal",c[1]),_("@tuiFadeIn",e.options)}}function Xi(n,t){if(n&1&&(O(0,"div",5),Tt(1,"div",6),M()),n&2){let c=L().ngIf,e=L();S("t-bar_has-vertical",c[0]),_("@tuiFadeIn",e.options)}}function Yi(n,t){if(n&1&&(q(0),x(1,Gi,2,3,"div",1)(2,Xi,2,3,"div",2),J()),n&2){let c=t.ngIf;b(),_("ngIf",c[0]),b(),_("ngIf",c[1])}}var Ki=["*"];function qi(n,t){n&1&&Tt(0,"tui-scroll-controls",2)}var Ri=(()=>{let t=class t extends Lt{constructor(){super(e=>this.scroll$.subscribe(e)),this.el=p(),this.element=s(Ct).nativeElement,this.scroll$=z(rt(this.el.parentElement,"mousedown").pipe(T(e=>this.getScrolled(e,.5,.5))),rt(this.el,"mousedown").pipe(Rt(s($)),St(e=>{let{ownerDocument:i}=this.el,o=this.el.getBoundingClientRect(),r=Ji(e,o),a=tn(e,o);return rt(i,"mousemove").pipe(T(h=>this.getScrolled(h,r,a)),Ue(rt(i,"mouseup")))})))}getScrolled({clientY:e,clientX:i},o,r){let{offsetHeight:a,offsetWidth:h}=this.el,{top:R,left:g,width:y,height:f}=this.el.parentElement.getBoundingClientRect(),m=this.element.scrollHeight-f,P=this.element.scrollWidth-y,N=(e-R-a*o)/(f-a),U=(i-g-h*r)/(y-h);return[m*N,P*U]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})();function Ji({clientY:n},{top:t,height:c}){return(n-t)/c}function tn({clientX:n},{left:t,width:c}){return(n-t)/c}var te=24,en=(()=>{let t=class t{constructor(){this.el=s(Ct).nativeElement,this.style=p().style,this.scrollSub=s(Ri).pipe(A()).subscribe(([e,i])=>{this.el.style.scrollBehavior="auto",this.el.scrollTo({top:e,left:i}),this.el.style.scrollBehavior=""}),this.styleSub=z(s(Pt).pipe(lt(100)),wi(this.el)).pipe(Rt(s($)),A()).subscribe(()=>{this.tuiScrollbar==="vertical"?(this.style.top=`${this.thumb*100}%`,this.style.height=`${this.view*100}%`):(this.style.left=`${this.thumb*100}%`,this.style.width=`${this.view*100}%`)}),this.tuiScrollbar="vertical"}get scrolled(){let{scrollTop:e,scrollHeight:i,clientHeight:o,scrollLeft:r,scrollWidth:a,clientWidth:h}=this.el;return this.tuiScrollbar==="vertical"?e/(i-o):r/(a-h)}get compensation(){let{clientHeight:e,scrollHeight:i,clientWidth:o,scrollWidth:r}=this.el;return e*e/i>te&&this.tuiScrollbar==="vertical"||o*o/r>te&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?te/e:te/o}get thumb(){let e=this.compensation||this.view;return this.scrolled*(1-e)}get view(){let{clientHeight:e,scrollHeight:i,clientWidth:o,scrollWidth:r}=this.el;return this.tuiScrollbar==="vertical"?Math.ceil(e/i*100)/100:Math.ceil(o/r*100)/100}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},standalone:!0,features:[v([Ri])]});let n=t;return n})(),nn=(()=>{let t=class t{constructor(){this.scrollRef=s(Ct).nativeElement,this.options=Gt(s(Zt)),this.refresh$=s(Pt).pipe(lt(300),T(()=>this.scrollbars),K([!1,!1]),ut((e,i)=>e[0]===i[0]&&e[1]===i[1]),Ht(s($)))}get scrollbars(){let{clientHeight:e,scrollHeight:i,clientWidth:o,scrollWidth:r}=this.scrollRef;return[Math.ceil(e/i*100)<100,Math.ceil(o/r*100)<100]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=I({type:t,selectors:[["tui-scroll-controls"]],standalone:!0,features:[E],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(i,o){i&1&&(x(0,Yi,3,2,"ng-container",0),me(1,"async")),i&2&&_("ngIf",ge(1,1,o.refresh$))},dependencies:[ht,Ge,en],styles:["[_nghost-%COMP%]{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;margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;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}"],data:{animation:[Ke]},changeDetection:0});let n=t;return n})(),on="tui-scroll-into-view",rn="tui-scrollable",Hi=(()=>{let t=class t{constructor(){this.el=p(),this.isIOS=s(Jt),this.browserScrollRef=new dt(this.el),this.hidden=!1}get delegated(){return this.browserScrollRef.nativeElement!==this.el}onScrollable(e){this.browserScrollRef.nativeElement=e}scrollIntoView(e){var m;if(this.delegated)return;let{nativeElement:i}=this.browserScrollRef,{offsetTop:o,offsetLeft:r}=pi(i,e),{clientHeight:a,clientWidth:h}=i,{offsetHeight:R,offsetWidth:g}=e,y=o+R/2-a/2,f=r+g/2-h/2;(m=i.scrollTo)==null||m.call(i,f,y)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=I({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(i,o){i&1&&V("tui-scrollable.stop",function(a){return o.onScrollable(a.detail)})("tui-scroll-into-view.stop",function(a){return o.scrollIntoView(a.detail)}),i&2&&S("_native-hidden",!o.isIOS||o.hidden)},inputs:{hidden:"hidden"},standalone:!0,features:[v([{provide:Ct,useFactory:()=>s(t).browserScrollRef}]),E],ngContentSelectors:Ki,decls:3,vars:3,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(i,o){i&1&&(Q(),x(0,qi,1,0,"tui-scroll-controls",0),O(1,"div",1),G(2),M()),i&2&&(_("ngIf",!o.hidden&&!o.isIOS),b(),S("t-content_delegated",o.delegated))},dependencies:[nn,ht],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;overflow:auto}._native-hidden[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none}._native-hidden[_nghost-%COMP%]::-webkit-scrollbar, ._native-hidden[_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}.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-primary)}"],changeDetection:0});let n=t;return n})(),Io=(()=>{let t=class t{constructor(){this.el=p(),this.destroyRef=s(Ut)}set tuiScrollIntoView(e){e&&ke(0).pipe(A(this.destroyRef)).subscribe(()=>{this.el.dispatchEvent(new CustomEvent(on,{bubbles:!0,detail:this.el}))})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},standalone:!0});let n=t;return n})();var Co=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiScrollRef",""]],standalone:!0,features:[v([k(Ct,dt)])]});let n=t;return n})(),xo=(()=>{let t=class t{constructor(){this.el=p()}ngOnInit(){this.el.dispatchEvent(new CustomEvent(rn,{bubbles:!0,detail:this.el}))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiScrollable",""]],standalone:!0});let n=t;return n})();var X=class{supports(t){return t.includes(this.modifier)}unwrap(t){return t.split(".").filter(c=>!this.modifier.includes(c)).join(".")}},sn=new D("[GLOBAL_HANDLER]: Global event target handler",{factory:()=>{let n=s(It);return t=>t==="body"?n.body:n.defaultView[t]||n.createElement("div")}}),an=(()=>{let t=class t extends X{constructor(){super(...arguments),this.handler=s(sn),this.modifier=">"}addEventListener(e,i,o){return this.manager.addEventListener(this.handler(i.split(">")[0]),i.split(">")[1],o)}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})(),cn=(()=>{let t=class t extends X{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(e){return e.includes(".")&&!this.unwrap(e).includes(".")}addEventListener(e,i,o){return e.addEventListener(this.unwrap(i),o,{once:i.includes(".once"),passive:i.includes(".passive"),capture:i.includes(".capture")}),()=>e.removeEventListener(this.unwrap(i),o,i.includes(".capture"))}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})(),un=(()=>{let t=class t extends X{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(e,i,o){return this.manager.addEventListener(e,this.unwrap(i),r=>{r.preventDefault(),o(r)})}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})(),ln=(()=>{let t=class t extends X{constructor(){super(...arguments),this.modifier="resize"}supports(e){return e==="resize"}addEventListener(e,i,o){if(typeof ResizeObserver>"u"||!(e instanceof Element))return()=>{};let r=new ResizeObserver(a=>this.manager.getZone().run(()=>o(a)));return r.observe(e),()=>r.disconnect()}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})(),dn=(()=>{let t=class t extends X{constructor(){super(...arguments),this.modifier=".self"}addEventListener(e,i,o){return this.manager.addEventListener(e,this.unwrap(i),r=>{r.target===r.currentTarget&&o(r)})}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})(),Se=(()=>{let t=class t extends X{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(e,i,o){return t.ngZone=this.manager.getZone(),t.ngZone.runOutsideAngular(()=>this.manager.addEventListener(e,this.unwrap(i),o))}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})(),pn=(()=>{let t=class t extends X{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(e,i,o){return this.manager.addEventListener(e,this.unwrap(i),r=>{r.stopPropagation(),o(r)})}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})(),hn=[Se,an,cn,un,ln,dn,pn],Fo=hn.map(n=>({provide:Xe,multi:!0,useClass:n}));function Li(n){return(t,c,e)=>{let{value:i}=e;e.value=function(...o){n.apply(this,o)&&(Se.ngZone?Se.ngZone.run(()=>i.apply(this,o)):i.apply(this,o))}}}var fn=["viewContainer"],Ae=class{},mn=(()=>{let t=class t{constructor(){this.refresh$=new ct,this.pseudoInvalid=W(null),this.internal=W(s(Fi,{self:!0,optional:!0})),this.control=s(Wt,{self:!0}),this.destroyRef=s(Ut),this.cdr=s(pt),this.transformer=s(Ae,{optional:!0}),this.value=ot(()=>this.internal()),this.readOnly=W(!1),this.touched=W(!1),this.status=W(void 0),this.disabled=ot(()=>this.status()==="DISABLED"),this.interactive=ot(()=>!this.disabled()&&!this.readOnly()),this.invalid=ot(()=>this.pseudoInvalid()!==null?!!this.pseudoInvalid()&&this.interactive():this.interactive()&&this.touched()&&this.status()==="INVALID"),this.mode=ot(()=>this.readOnly()?"readonly":this.invalid()?"invalid":"valid"),this.onTouched=De,this.onChange=De,this.control.valueAccessor=this,this.refresh$.pipe(se(0),K(null),T(()=>this.control.control),B(Vt),ut(),St(e=>z(e.valueChanges,e.statusChanges)),A(this.destroyRef)).subscribe(()=>{this.update()})}set readOnlySetter(e){this.readOnly.set(e)}set invalidSetter(e){this.pseudoInvalid.set(e)}registerOnChange(e){this.refresh$.next(),this.onChange=i=>{i!==this.internal()&&(e(this.toControlValue(i)),this.internal.set(i),this.update())}}registerOnTouched(e){this.onTouched=()=>{e(),this.update()}}setDisabledState(){this.update()}writeValue(e){let i=this.control instanceof ti?this.control.model:e;this.internal.set(this.fromControlValue(i)),this.update()}fromControlValue(e){return this.transformer?this.transformer.fromControlValue(e):e}toControlValue(e){return this.transformer?this.transformer.toControlValue(e):e}update(){var e,i;this.status.set((e=this.control.control)==null?void 0:e.status),this.touched.set(!!((i=this.control.control)!=null&&i.touched)),this.cdr.markForCheck()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,inputs:{readOnlySetter:[0,"readOnly","readOnlySetter"],invalidSetter:[0,"invalid","invalidSetter"]}});let n=t;return Y([ft],n.prototype,"fromControlValue",null),Y([ft],n.prototype,"toControlValue",null),n})();function Zo(n){return k(mn,n)}var ki=(()=>{let t=class t{constructor(){this.injector=s(yt),this.nothing=s(ee).attach(this)}addComponentChild(e){let i=e.createInjector(this.injector),o=this.vcr.createComponent(e.component,{injector:i});return o.changeDetectorRef.detectChanges(),o}addTemplateChild(e,i){return this.vcr.createEmbeddedView(e,i)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,viewQuery:function(i,o){if(i&1&&he(fn,5,le),i&2){let r;tt(r=et())&&(o.vcr=r.first)}}});let n=t;return n})(),ee=(()=>{let t=class t{attach(e){this.host=e}add(e){return this.safeHost.addComponentChild(e)}remove({hostView:e}){e.destroyed||e.destroy()}addTemplate(e,i){return this.safeHost.addTemplateChild(e,i)}removeTemplate(e){e.destroyed||e.destroy()}get safeHost(){if(!this.host)throw new Fe;return this.host}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})();function Ni(n){return k(ee,n)}var Fe=class extends Error{constructor(){super("")}};var Ui=(()=>{let t=class t extends Lt{constructor(){super(e=>this.obscured$.subscribe(e)),this.el=p(),this.obscured$=s(Pt).pipe(lt(100),T(()=>di(this.el)),K(null),ut(),Ht(s($)))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})(),ie=(()=>{let t=class t{constructor(){this.activeZone=s(vt,{optional:!0}),this.enabled$=new ct,this.obscured$=s(Ui,{self:!0}).pipe(T(e=>!!(e!=null&&e.every(i=>{var o;return!((o=this.activeZone)!=null&&o.contains(i))})))),this.tuiObscured=this.enabled$.pipe(bi(()=>this.obscured$))}set tuiObscuredEnabled(e){this.enabled$.next(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},standalone:!0,features:[v([Ui])]});let n=t;return n})();var vn=n=>({$implicit:n});function _n(n,t){if(n&1&&(O(0,"div",2),it(1),M()),n&2){let c=t.polymorpheusOutlet;b(),nt(" ",c," ")}}var bn=["tuiDropdownHost"],wn=["*"],Ot=(()=>{let t=class t extends ct{constructor(){super(...arguments),this.type="dropdown"}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac});let n=t;return n})(),yn=(()=>{let t=class t extends ai{constructor(){super(...arguments),this.type="dropdown"}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275dir=u({type:t,selectors:[["","tuiDropdownDriver",""]],standalone:!0,features:[At]});let n=t;return n})(),oe=l(()=>In),Tn=new D(""),zi=(()=>{let t=class t extends ee{};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Bi={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},_t=F(Bi),Wi=n=>({provide:_t,deps:[[new wt,Dn],[new wt,new Ve,_t]],useFactory:Oi(n,Bi)}),Dn=(()=>{let t=class t{constructor(){this.options=s(_t,{skipSelf:!0}),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}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:[0,"tuiDropdownAlign","align"],appearance:[0,"tuiDropdownAppearance","appearance"],direction:[0,"tuiDropdownDirection","direction"],limitWidth:[0,"tuiDropdownLimitWidth","limitWidth"],minHeight:[0,"tuiDropdownMinHeight","minHeight"],maxHeight:[0,"tuiDropdownMaxHeight","maxHeight"],offset:[0,"tuiDropdownOffset","offset"]},standalone:!0,features:[v([k(_t,t)])]});let n=t;return n})(),ne=(()=>{let t=class t extends _e{constructor(){super(...arguments),this.options=s(_t),this.viewport=s(Ce),this.type="dropdown",this.accessor=ei("dropdown")(s(be),s(at,{optional:!0}))}getPosition({width:e,height:i}){var Re;!e&&!i&&(this.previous=void 0);let o=((Re=this.accessor)==null?void 0:Re.getClientRect())??Ie,r=this.viewport.getClientRect(),{minHeight:a,align:h,direction:R,offset:g,limitWidth:y}=this.options,f={top:r.top-g,bottom:r.bottom+g,right:r.right-g,left:r.left+g},m=this.previous||R||"bottom",P={top:o.top-2*g-f.top,bottom:f.bottom-o.bottom-2*g},N=y==="fixed"?o.width:e,U=Math.max(o.right-N,g),Mt=o.left+eP.bottom?"top":"bottom";return P[m]>a&&R||P[m]>i?[bt[m],bt[h]]:(this.previous=Et,[bt[Et],bt[h]])}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275dir=u({type:t,selectors:[["","tuiDropdownPosition",""]],standalone:!0,features:[At]});let n=t;return n})(),at=(()=>{let t=class t{constructor(){this.refresh$=new ct,this.service=s(zi),this.cdr=s(pt),this.sub=this.refresh$.pipe(lt(0),A()).subscribe(()=>{var e,i;(e=this.ref())==null||e.changeDetectorRef.detectChanges(),(i=this.ref())==null||i.changeDetectorRef.markForCheck()}),this.el=p(),this.type="dropdown",this.component=new Ii(s(oe),s(yt)),this.ref=W(null)}set tuiDropdown(e){this.content=e instanceof ue?new Ci(e,this.cdr):e}get position(){return Ee(this.el)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(e){let i=this.ref();e&&this.content&&!i?this.ref.set(this.service.add(this.component)):!e&&i&&(this.ref.set(null),this.service.remove(i))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiDropdown","",5,"ng-container",5,"ng-template"]],inputs:{tuiDropdown:"tuiDropdown"},exportAs:["tuiDropdown"],standalone:!0,features:[v([ri(t),si(t)]),Z([yn,ne]),Nt]});let n=t;return Y([ft],n.prototype,"position",null),n})(),In=(()=>{let t=class t{constructor(){var e;this.el=p(),this.accessor=s(be),this.win=s(vi),this.vvs=s(Pi),this.animation=Gt(s(Zt)),this.options=s(_t),this.directive=s(at),this.context=s(Tn,{optional:!0}),this.theme=(e=this.directive.el.closest("[tuiTheme]"))==null?void 0:e.getAttribute("tuiTheme"),this.sub=s(xe).pipe(ze(()=>this.directive.el.isConnected),T(i=>this.directive.position==="fixed"?this.vvs.correct(i):i),T(([i,o])=>this.getStyles(i,o)),A()).subscribe({next:i=>Object.assign(this.el.style,i),complete:()=>this.close()}),this.close=()=>this.directive.toggle(!1)}getStyles(e,i){var Et;let{right:o}=this.el.getBoundingClientRect(),{maxHeight:r,minHeight:a,offset:h,limitWidth:R}=this.options,{innerHeight:g}=this.win,y=(Et=this.el.offsetParent)==null?void 0:Et.getBoundingClientRect(),{position:f}=this.directive,m=this.accessor.getClientRect(),P=f==="fixed"?0:-((y==null?void 0:y.left)||0),N=f==="fixed"?0:-((y==null?void 0:y.top)||0);e+=N,i+=P;let U=o<=m.left||i>=m.right,bt=im.left&&e{let t=class t{constructor(){this.directive=s(at),this.el=p(),this.obscured=s(ie),this.dropdown=ot(()=>{var e;return(e=this.directive.ref())==null?void 0:e.location.nativeElement}),this.sub=z(this.obscured.tuiObscured.pipe(B(Boolean)),s(vt).tuiActiveZoneChange.pipe(B(e=>!e)),Le(this.el,"focusin").pipe(T(li),B(e=>!this.host.contains(e)||!this.directive.ref()))).pipe(yi(s(pt)),A()).subscribe(()=>this.toggle(!1)),this.tuiDropdownEnabled=!0,this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new zt,this.driver=s(Ot)}ngOnChanges(){this.drive()}toggle(e){this.focused&&!e&&this.host.focus({preventScroll:!0}),this.update(e)}onClick(e){!this.editable&&this.host.contains(e)&&this.update(!this.tuiDropdownOpen)}onArrow(e,i){!ye(e.target)||!this.host.contains(e.target)||!this.tuiDropdownEnabled||(e.preventDefault(),this.focusDropdown(i))}onEsc(e){e.preventDefault(),this.toggle(!1)}onKeydown({key:e,target:i,defaultPrevented:o}){o||!xi(e)||!this.editable||!this.focused||!ui(i)||Te(i)&&i!==this.host||(this.update(!0),this.host.focus({preventScroll:!0}))}get host(){var o,r;let e=((o=this.dropdownHost)==null?void 0:o.nativeElement)||this.el,i=Ai(e)?e:Xt({initial:e,root:this.el});return((r=this.dropdownHost)==null?void 0:r.nativeElement)||i||this.el}get editable(){return Te(this.host)}get focused(){return gt(this.host)||gt(this.dropdown())}update(e){e&&!this.tuiDropdownEnabled||(this.tuiDropdownOpen=e,this.tuiDropdownOpenChange.emit(e),this.drive())}drive(e=this.tuiDropdownOpen&&this.tuiDropdownEnabled){this.obscured.tuiObscuredEnabled=!!e,this.driver.next(!!e)}focusDropdown(e){let i=this.dropdown();if(!i){this.update(!0);return}let o=this.el.ownerDocument,r=i.appendChild(o.createElement("div")),h=Xt({initial:e?r:i,previous:e,root:i});r.remove(),h==null||h.focus()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiDropdown","","tuiDropdownOpen",""],["","tuiDropdown","","tuiDropdownOpenChange",""]],contentQueries:function(i,o,r){if(i&1&&Dt(r,bn,5,dt),i&2){let a;tt(a=et())&&(o.dropdownHost=a.first)}},hostBindings:function(i,o){i&1&&V("click",function(a){return o.onClick(a.target)})("keydown.arrowDown",function(a){return o.onArrow(a,!1)})("keydown.arrowUp",function(a){return o.onArrow(a,!0)})("keydown.silent.capture",function(a){return o.onEsc(a)},!1,ce)("keydown.silent",function(a){return o.onKeydown(a)},!1,ce)},inputs:{tuiDropdownEnabled:"tuiDropdownEnabled",tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0,features:[v([Ot,we(Ot)]),Z([ie,{directive:vt,inputs:["tuiActiveZoneParent","tuiActiveZoneParent"],outputs:["tuiActiveZoneChange","tuiActiveZoneChange"]}]),Nt]});let n=t;return Y([Li(xn)],n.prototype,"onEsc",null),n})();var qr=(()=>{let t=class t{constructor(){this.driver=s(Ot),this.tuiDropdownManual=!1}ngOnChanges(){this.driver.next(!!this.tuiDropdownManual)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},standalone:!0,features:[v([Ot,we(Ot)]),Nt]});let n=t;return n})(),Jr=(()=>{let t=class t{constructor(){this.tuiDropdownOpenChange=new He(!1)}set tuiDropdownOpen(e){this.tuiDropdownOpenChange.next(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiDropdownOpen","",3,"tuiDropdown",""],["","tuiDropdownOpenChange","",3,"tuiDropdown",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0});let n=t;return n})();var ts=(()=>{let t=class t extends _e{constructor(){super(...arguments),this.options=s(_t),this.viewport=s(Ce),this.vertical=s(ne),this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(e){var Mt;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(e);let{height:i,width:o}=e,r=((Mt=this.vertical.accessor)==null?void 0:Mt.getClientRect())??Ie,a=this.viewport.getClientRect(),{direction:h,minHeight:R,offset:g}=this.options,y=this.options.align==="center"?"left":this.options.align,f={top:r.bottom-a.top,left:r.left-g-a.left,right:a.right-r.right-g,bottom:a.bottom-r.top},m={top:r.bottom-i+this.tuiDropdownSidedOffset+1,left:r.left-o-g,right:r.right+g,bottom:r.top-this.tuiDropdownSidedOffset-1},P=f.top>f.bottom?"top":"bottom",N=f.left>f.right?m.left:m.right,U=f[y]>o?m[y]:N;return f[this.previous]>R&&h||this.previous===P?[m[this.previous],U]:(this.previous=P,[m[P],U])}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275dir=u({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},standalone:!0,features:[v([ne,oi(t)]),At]});let n=t;return n})();var es=(()=>{let t=class t extends ki{};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=C(t)))(o||t)}})(),t.\u0275cmp=I({type:t,selectors:[["tui-dropdowns"]],standalone:!0,features:[v([Ni(zi)]),At,E],ngContentSelectors:wn,decls:3,vars:0,consts:[["viewContainer",""]],template:function(i,o){i&1&&(Q(),G(0),pe(1,null,0))},styles:["[_nghost-%COMP%]{display:block;height:100%;isolation:isolate}"],changeDetection:0});let n=t;return n})();var Mn=["tuiOption",""],Vi=["*"],En=n=>({$implicit:n});function Sn(n,t){if(n&1&&(q(0),it(1),J()),n&2){let c=t.polymorpheusOutlet;b(),nt(" ",c," ")}}function An(n,t){n&1&&G(0)}function Fn(n,t){if(n&1&&(q(0),it(1),J()),n&2){let c=t.polymorpheusOutlet;b(),nt(" ",c," ")}}function Pn(n,t){if(n&1&&(O(0,"div",1),x(1,Fn,2,1,"ng-container",2),M()),n&2){let c=L();b(),_("polymorpheusOutlet",c.emptyContent||c.fallback())}}var Rn=new D("[TUI_OPTION_CONTENT]");var Hn=new D("[TUI_DATA_LIST_ACCESSOR]");function Ln(n){return k(Hn,n)}var ji=new D("[TUI_DATA_LIST_HOST]");var kn=(()=>{let t=class t{constructor(){var e;this.isMobile=s(qt),this.el=p(),this.dataList=s(Be(()=>Un),{optional:!0}),this.host=s(ji,{optional:!0}),this.content=s(Rn,{optional:!0}),this.dropdown=(e=s(at,{self:!0,optional:!0}))==null?void 0:e.ref,this.disabled=!1}ngOnDestroy(){var e;(e=this.dataList)==null||e.handleFocusLossIfNecessary(this.el)}onClick(){var e;(e=this.host)!=null&&e.handleOption&&this.value!==void 0&&this.host.handleOption(this.value)}onMouseMove(){!this.isMobile&&!Yt(this.el)&&this.dataList&&this.el.focus({preventScroll:!0})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=I({type:t,selectors:[["button","tuiOption",""],["a","tuiOption",""],["label","tuiOption",""]],hostAttrs:["type","button","role","option"],hostVars:3,hostBindings:function(i,o){i&1&&V("click",function(){return o.onClick()})("mousemove.silent",function(){return o.onMouseMove()}),i&2&&(H("disabled",o.disabled||null),S("_with-dropdown",o.dropdown==null?null:o.dropdown()))},inputs:{disabled:"disabled",value:"value"},standalone:!0,features:[Z([Qt]),E],attrs:Mn,ngContentSelectors:Vi,decls:3,vars:4,consts:[["t",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(i,o){if(i&1&&(Q(),x(0,Sn,2,1,"ng-container",1)(1,An,1,0,"ng-template",null,0,ve)),i&2){let r=fe(2);_("polymorpheusOutlet",o.content||r)("polymorpheusOutletContext",Bt(2,En,r))}},dependencies:[mt],encapsulation:2,changeDetection:0});let n=t;return n})();function Nn(){var c;let n=["s","m","l"],t=(c=s(ji,{optional:!0}))==null?void 0:c.size;return t&&n.includes(t)?t:"l"}var Un=(()=>{let t=class t{constructor(){this.options=$t,this.el=p(),this.fallback=Je(s(Ti)),this.empty=!0,this.size=Nn()}onKeyDownArrow(e,i){let{elements:o}=this;Kt(o.indexOf(e),o,i)}handleFocusLossIfNecessary(e=this.el){var i;gt(e)&&((i=this.origin)==null||i.focus({preventScroll:!0}))}ngAfterContentChecked(){this.empty=!this.el.querySelector("[tuiOption]")}getOptions(e=!1){return this.options.filter(({disabled:i})=>e||!i).map(({value:i})=>i).filter(Vt)}onFocusIn(e,i){!i.contains(e)&&!this.origin&&(this.origin=e)}noop(){}get elements(){return Array.from(this.el.querySelectorAll("a[tuiOption],button[tuiOption],input"))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=I({type:t,selectors:[["tui-data-list"]],contentQueries:function(i,o,r){if(i&1&&Dt(r,kn,5),i&2){let a;tt(a=et())&&(o.options=a)}},hostAttrs:["role","listbox"],hostVars:1,hostBindings:function(i,o){i&1&&V("keydown.arrowDown.prevent",function(a){return o.onKeyDownArrow(a.target,1)})("keydown.arrowUp.prevent",function(a){return o.onKeyDownArrow(a.target,-1)})("wheel.silent.passive",function(){return o.handleFocusLossIfNecessary()})("mouseleave",function(a){return o.handleFocusLossIfNecessary(a.target)})("keydown.tab",function(){return o.handleFocusLossIfNecessary()})("keydown.shift.tab",function(){return o.handleFocusLossIfNecessary()})("focusin",function(a){return o.onFocusIn(a.relatedTarget,a.currentTarget)})("mousedown.prevent",function(){return o.noop()}),i&2&&H("data-size",o.size)},inputs:{emptyContent:"emptyContent",size:"size"},standalone:!0,features:[v([Ln(t)]),E],ngContentSelectors:Vi,decls:2,vars:1,consts:[["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(i,o){i&1&&(Q(),G(0),x(1,Pn,2,1,"div",0)),i&2&&(b(),_("ngIf",o.empty))},dependencies:[ht,mt],styles:[`tui-data-list{--tui-data-list-padding: .25rem;--tui-data-list-margin: .0625rem;display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:calc(var(--tui-data-list-padding) - var(--tui-data-list-margin)) var(--tui-data-list-padding);color:var(--tui-text-tertiary)}tui-data-list:focus-within .t-trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list[data-size=s]{--tui-data-list-margin: 0rem}tui-data-list[data-size=s]>.t-empty,tui-data-list[data-size=s] [tuiOption]{font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}tui-data-list[data-size=s]>.t-empty:before,tui-data-list[data-size=s] [tuiOption]:before{font-size:1rem}tui-data-list[data-size=m]>.t-empty,tui-data-list[data-size=m] [tuiOption]{font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}tui-data-list[data-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list[data-size=l]>.t-empty,tui-data-list[data-size=l] [tuiOption]{font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}tui-data-list>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0}tui-data-list [tuiOption]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;justify-content:space-between;text-align:left;color:var(--tui-text-primary);border-radius:var(--tui-radius-s);outline:none;cursor:pointer;background-clip:padding-box}tui-data-list [tuiOption]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}tui-data-list [tuiOption]:focus-within,tui-data-list [tuiOption]._with-dropdown{background-color:var(--tui-background-neutral-1)}tui-data-list [tuiOption]:before{margin-inline-end:.5rem}tui-data-list [tuiOption]:after{font-size:1rem;margin:0 -.75rem 0 auto;border-left:.5rem solid;border-right:.5rem solid}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-secondary);flex-direction:column;line-height:1rem}tui-data-list[data-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-size=l] tui-opt-group:after{left:.625rem;right:.625rem}tui-opt-group:empty:before,tui-opt-group:empty:after{display:none}tui-opt-group:before{content:attr(data-label);padding:var(--tui-data-list-padding) .5rem var(--tui-data-list-padding);margin:var(--tui-data-list-margin) 0;white-space:normal;word-break:break-word}tui-opt-group:after{position:absolute;left:.5rem;right:.5rem;top:var(--tui-data-list-padding);height:1px;background:var(--tui-border-normal)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:calc(.75rem + var(--tui-data-list-padding))}tui-opt-group:not(:empty)~tui-opt-group[data-label=""]:before,tui-opt-group:not(:empty)~tui-opt-group:not([data-label]):before{padding:var(--tui-data-list-padding) 0}tui-opt-group:not(:empty)~tui-opt-group:after{content:""}tui-opt-group[data-label=""]:before,tui-opt-group:not([data-label]):before{padding:0;margin:0} +`],encapsulation:2,changeDetection:0});let n=t;return n})();var Ts=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(i,o){i&2&&H("data-label",o.label)},inputs:{label:"label"},standalone:!0});let n=t;return n})();var zn=F("@tui.chevron-down"),Bn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=I({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-chevron"],standalone:!0,features:[E],decls:0,vars:0,template:function(i,o){},styles:[`[tuiChevron][tuiIcons]:after,tui-icon[tuiChevron]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-block;cursor:pointer}[tuiChevron][tuiIcons]._chevron-rotated:after,tui-icon[tuiChevron]._chevron-rotated:after{transform:rotate(180deg)} +`],encapsulation:2,changeDetection:0});let n=t;return n})(),Rs=(()=>{let t=class t{constructor(){this.el=p(),this.dropdown=s(at,{optional:!0}),this.nothing=jt(Bn),this.toggle=Qe(()=>{var e;return this.el.classList.toggle("_chevron-rotated",this.chevron()||this.chevron()===""&&!!((e=this.dropdown)!=null&&e.ref()))}),this.chevron=W("")}set tuiChevron(e){this.chevron.set(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["","tuiChevron",""]],hostAttrs:["tuiChevron",""],inputs:{tuiChevron:"tuiChevron"},standalone:!0,features:[v([k(Di,zn)])]});let n=t;return n})();var Wn=new D("[TUI_CALENDAR_DATE_STREAM]");function Zs(n){return{provide:Wn,deps:[[new wt,new We,Wt],[new wt,n]],useFactory:Vn}}function Vn(n,t){return n?_i(n).pipe(T(c=>t?t==null?void 0:t.fromControlValue(c):c)):re(null)}var Qs=new D("[TUI_DATE_VALUE_TRANSFORMER]"),Gs=new D("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),Xs=new D("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),Ys=l(d("confirm")),Ks=l(d("cancel")),qs=l(d("done")),Js=l(d("more")),ta=l(d("hide")),ea=l(d("showAll")),ia=l(d("otherDate")),na=l(d("mobileCalendarTexts")),oa=l(d("range")),ra=l(d("countTexts")),sa=l(d("time")),aa=l(d("dateTexts")),ca=l(d("digitalInformationUnits")),ua=l(d("copyTexts")),la=l(d("passwordTexts")),da=l(d("shortCalendarMonths")),pa=l(d("fileTexts")),ha=l(d("pagination")),fa=l(d("inputFileTexts")),ma=l(d("multiSelectTexts")),ga=l(d("countries")),va=l(d("previewTexts")),_a=l(d("zoomTexts")),jn={icon:()=>"@tui.calendar",min:mi,max:gi,nativePicker:!1},ba=F(jn);var $n={stringify:String,identityMatcher:fi,disabledItemHandler:hi},wa=F($n);var Zn=new D("[TUI_MOBILE_CALENDAR]"),ya={provide:oe,useFactory:()=>s(qt)&&s(Zn,{optional:!0})||s(oe,{skipSelf:!0})},Qn={rotate:"@tui.rotate-ccw-square",prev:"@tui.arrow-left",next:"@tui.arrow-right",zoomIn:"@tui.plus",zoomOut:"@tui.minus",zoomReset:"@tui.minimize"},Ta=F(Qn);var Da=F({});var Gn="tui-tab-activate",Xn=(()=>{let t=class t{constructor(){var e,i;this.el=p(),this.rla=s(Ye,{optional:!0}),this.observer=this.rla&&((e=s(xt,{optional:!0}))==null?void 0:e.pipe(B(()=>{var o;return!!((o=this.rla)!=null&&o.isActive)}))),this.sub=z(this.observer||kt,((i=this.rla)==null?void 0:i.isActiveChange.pipe(B(Boolean)))||kt,this.el.matches("button")?rt(this.el,"click"):kt).pipe(A()).subscribe(()=>this.el.dispatchEvent(new CustomEvent(Gn,{bubbles:!0})))}ngOnDestroy(){Yt(this.el)&&this.el.blur()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],standalone:!0,features:[Z([Qt])]});let n=t;return n})(),Zi={underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0,size:"l"},Pe=F(Zi);function oc(n){return Ft(Pe,n,Zi)}var Yn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=I({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-tabs"],standalone:!0,features:[E],decls:0,vars:0,template:function(i,o){},styles:[`[tuiTab]{transition-property:color,box-shadow,opacity,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;flex-shrink:0;box-sizing:border-box;justify-content:space-between;line-height:1.5rem;align-items:center;white-space:nowrap;cursor:pointer;outline:none;color:inherit;margin-left:24px}tui-tabs[data-size=m]+[tuiTab],tui-tabs[data-size=m] [tuiTab],[tuiTabs][data-size=m] [tuiTab]{margin-left:16px;font:var(--tui-font-text-s)}[tuiTab]:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}[tuiTab]._active{color:var(--tui-text-primary);box-shadow:none}[tuiTab]:focus-visible{outline:2px solid var(--tui-border-focus);outline-offset:-2px}tui-tabs._underline [tuiTab]:hover:not(._active),[tuiTabs]._underline [tuiTab]:hover:not(._active){box-shadow:inset 0 -2px var(--tui-border-normal)}tui-tabs>[tuiTab]:first-child,[tuiTabs]>[tuiTab]:first-child,tui-tabs>:not(.t-overflown)>[tuiTab]:first-child{margin-left:0}tui-tabs>[tuiTab]~:not(.t-overflown)>[tuiTab]:first-child{margin-left:var(--tui-tab-margin, 1.5rem)}[tuiTab]._icon-start:before{font-size:1rem;margin-inline-end:.5rem}[tuiTab]._icon-end:after{font-size:1rem;margin-inline-start:.5rem}[tuiTab]:empty:after,[tuiTab]:empty:before{margin:.5rem}@media (hover: hover){[tuiTab]:hover{color:var(--tui-text-primary)}}[tuiTabs],tui-tabs{scrollbar-width:none;-ms-overflow-style:none;position:relative;display:flex;font:var(--tui-font-text-m);color:var(--tui-text-secondary);box-shadow:inset 0 -1px var(--tui-border-normal);overflow:auto;isolation:isolate}[tuiTabs]::-webkit-scrollbar,tui-tabs::-webkit-scrollbar,[tuiTabs]::-webkit-scrollbar-thumb,tui-tabs::-webkit-scrollbar-thumb{display:none}[tuiTabs][data-size=l]:not([data-vertical]),tui-tabs[data-size=l]:not([data-vertical]){height:var(--tui-height-l)}[tuiTabs][data-size=m]:not([data-vertical]),tui-tabs[data-size=m]:not([data-vertical]){height:var(--tui-height-m)}[tuiTabs]:before,tui-tabs:before{transition-property:width,left;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;left:var(--t-left);bottom:0;height:2px;width:var(--t-width);background:var(--t-color);animation:tuiPresent 1ms}[tuiTabs]._underline:before,tui-tabs._underline:before{content:""}tui-tabs[data-vertical],[tuiTabs][data-vertical]{flex-direction:column;box-shadow:inset -1px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab],[tuiTabs][data-vertical] [tuiTab]{min-height:2.75rem;height:auto;white-space:normal;margin:0;text-align:left;padding:.25rem 1.25rem .25rem 0}tui-tabs[data-vertical] [tuiTab]:after,[tuiTabs][data-vertical] [tuiTab]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;right:0;width:2px;background:var(--tui-background-accent-1);transform:scaleX(0);transform-origin:right}tui-tabs[data-vertical] [tuiTab]:hover,[tuiTabs][data-vertical] [tuiTab]:hover{box-shadow:inset -2px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab]._active:after,[tuiTabs][data-vertical] [tuiTab]._active:after{transform:none}tui-tabs[data-vertical][data-size=m] [tuiTab],[tuiTabs][data-vertical][data-size=m] [tuiTab]{min-height:2.25rem;font:var(--tui-font-text-s)}tui-tabs[data-vertical][data-vertical=right],[tuiTabs][data-vertical][data-vertical=right]{box-shadow:inset 1px 0 var(--tui-border-normal)}tui-tabs[data-vertical][data-vertical=right] [tuiTab],[tuiTabs][data-vertical][data-vertical=right] [tuiTab]{text-align:right;padding:.25rem 0 .25rem 1.25rem}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:after,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:after{right:auto;left:0;transform-origin:left}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:hover,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:hover{box-shadow:inset 2px 0 var(--tui-border-normal)} +`],encapsulation:2,changeDetection:0});let n=t;return n})(),$i=(()=>{let t=class t{constructor(){this.el=p(),this.injector=s(yt),this.nothing=jt(Yn),this.size=s(Pe).size,this.activeItemIndex=0,this.activeItemIndexChange=new zt}get tabs(){return Array.from(this.el.querySelectorAll("[tuiTab]"))}get activeElement(){return this.tabs[this.activeItemIndex]||null}moveFocus(e,i){let{tabs:o}=this;Kt(o.indexOf(e),o,i)}ngAfterViewChecked(){$e(()=>{this.markTabAsActive()},{injector:this.injector})}onActivate(e,i){let o=this.tabs.findIndex(r=>r===i);e.stopPropagation(),o!==this.activeItemIndex&&(this.activeItemIndexChange.emit(o),this.activeItemIndex=o)}markTabAsActive(){let{tabs:e,activeElement:i}=this;e.forEach(o=>{let r=o===i;o.classList.toggle("_active",r),o.setAttribute("tabIndex",r?"0":"-1")})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,hostVars:1,hostBindings:function(i,o){i&1&&V("tui-tab-activate",function(a){return o.onActivate(a,a.target)}),i&2&&H("data-size",o.size)},inputs:{size:"size",activeItemIndex:"activeItemIndex"},outputs:{activeItemIndexChange:"activeItemIndexChange"},standalone:!0});let n=t;return n})(),rc=(()=>{let t=class t{constructor(){this.el=p(),this.options=s(Pe),this.tabs=s($i),this.children=$t,this.sub=s(xt).pipe(Rt(s($)),A()).subscribe(()=>this.refresh()),this.underline=this.options.underline}ngAfterViewChecked(){this.scrollTo(this.tabs.activeItemIndex),this.refresh()}onKeyDownArrow(e,i){this.tabs.moveFocus(e,i)}refresh(){let{activeElement:e}=this.tabs;if(e&&!e.isConnected)return;let{offsetLeft:i=0,offsetWidth:o=0}=e||{};this.el.style.setProperty("--t-left",j(i)),this.el.style.setProperty("--t-width",j(o))}scrollTo(e){let i=this.tabs.tabs[e];if(!i)return;let{offsetLeft:o,offsetWidth:r}=i;othis.el.scrollLeft+this.el.offsetWidth&&(this.el.scrollLeft=o+r-this.el.offsetWidth)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=u({type:t,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(i,o,r){if(i&1&&Dt(r,Xn,4),i&2){let a;tt(a=et())&&(o.children=a)}},hostVars:4,hostBindings:function(i,o){i&1&&V("keydown.arrowRight.prevent",function(a){return o.onKeyDownArrow(a.target,1)})("keydown.arrowLeft.prevent",function(a){return o.onKeyDownArrow(a.target,-1)})("animationend",function(){return o.refresh()}),i&2&&(de("--t-color",o.underline===!0?"var(--tui-background-accent-1)":o.underline),S("_underline",o.underline))},inputs:{underline:"underline"},standalone:!0,features:[v([xt,{provide:Me,useValue:{childList:!0,characterData:!0,subtree:!0}}]),Z([{directive:$i,inputs:["activeItemIndex","activeItemIndex","size","size"],outputs:["activeItemIndexChange","activeItemIndexChange"]}])]});let n=t;return Y([ft],n.prototype,"scrollTo",null),n})();var Kn=new D("[TUI_TABS_REFRESH]"),sc=[Oe,xt,Wi({align:"right"}),{provide:Me,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:Kn,deps:[Oe,xt,It,dt,pt],useFactory:(n,t,{body:c},{nativeElement:e},i)=>z(n,t.pipe(ae(()=>i.detectChanges()))).pipe(B(()=>c.contains(e)),Ne(0),K(null),A())}];var qn=["*"];function Jn(n,t){if(n&1&&(q(0),it(1),J()),n&2){let c=t.polymorpheusOutlet;b(),nt(" ",c," ")}}function to(n,t){if(n&1&&(O(0,"div",6),x(1,Jn,2,1,"ng-container",7),M()),n&2){let c=L(2);S("t-text_horizontal",c.isHorizontal),b(),_("polymorpheusOutlet",c.textContent)}}function eo(n,t){if(n&1&&(O(0,"div",2),je(),O(1,"svg",3),Tt(2,"circle",4),M(),x(3,to,2,3,"div",5),M()),n&2){let c=L();S("t-loader_horizontal",c.isHorizontal)("t-loader_inherit-color",c.inheritColor),b(3),_("ngIf",c.hasText)}}var io={size:"m",inheritColor:!1,overlay:!1},no=F(io);var Tc=(()=>{let t=class t{constructor(){this.doc=s(It),this.el=p(),this.isIOS=s(Jt),this.options=s(no),this.loading=!0,this.isApple=Ei(this.el)||this.isIOS,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay}set showLoader(e){e&&this.focused&&Si(this.doc),this.loading=e}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!Mi(this.size)}get focused(){return gt(this.el)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=I({type:t,selectors:[["tui-loader"]],hostVars:3,hostBindings:function(i,o){i&2&&(H("data-size",o.size),S("_loading",o.loading))},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},standalone:!0,features:[E],ngContentSelectors:qn,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","height","100%","width","100%",1,"t-icon"],["cx","50%","cy","50%",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(i,o){i&1&&(Q(),O(0,"fieldset",0),G(1),M(),x(2,eo,4,5,"div",1)),i&2&&(S("t-content_has-overlay",o.hasOverlay)("t-content_loading",o.loading),_("disabled",o.loading&&!o.isApple),H("inert",o.loading||null),b(2),_("ngIf",o.loading))},dependencies:[ht,mt],styles:["[_nghost-%COMP%]{position:relative;display:flex;min-width:1.5rem;--tui-thickness: calc(var(--t-diameter) / 12)}._loading[_nghost-%COMP%]{overflow:hidden}[data-size=xs][_nghost-%COMP%]{--t-diameter: .75em}[data-size=s][_nghost-%COMP%]{--t-diameter: 1em}[data-size=m][_nghost-%COMP%]{--t-diameter: 1.5em}[data-size=l][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 5em}.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%;min-height:var(--t-diameter);flex-shrink:0;align-self:center;color:var(--tui-text-primary);stroke:var(--tui-background-accent-1);animation:tuiFadeIn var(--tui-duration);font-size:1rem}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:var(--tui-font-text-s);margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}@keyframes _ngcontent-%COMP%_tuiLoaderRotate{0%{transform:rotate(-90deg)}50%{transform:rotate(-90deg) rotate(1turn)}to{transform:rotate(-90deg) rotate(3turn)}}.t-icon[_ngcontent-%COMP%]{display:block;width:var(--t-diameter);height:var(--t-diameter);margin:.25rem calc(var(--t-diameter) / -2);border-radius:100%;overflow:hidden;animation:_ngcontent-%COMP%_tuiLoaderRotate 4s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}@keyframes _ngcontent-%COMP%_tuiLoaderDashOffset{0%{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}50%{stroke-dashoffset:calc(.05 * calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness))))}to{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}}.t-circle[_ngcontent-%COMP%]{r:calc(var(--t-diameter) / 2 - var(--tui-thickness));stroke-dasharray:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)));fill:none;stroke:inherit;stroke-width:max(var(--tui-thickness),1.5px);animation:_ngcontent-%COMP%_tuiLoaderDashOffset 4s linear infinite}"],changeDetection:0});let n=t;return n})();export{nn as a,Hi as b,Io as c,Co as d,xo as e,Ae as f,mn as g,Zo as h,Fo as i,_t as j,Wi as k,at as l,In as m,Kr as n,qr as o,Jr as p,ts as q,es as r,Ln as s,ji as t,kn as u,Nn as v,Un as w,Ts as x,Tc as y,Rs as z,Wn as A,Zs as B,Qs as C,Gs as D,ia as E,aa as F,ba as G,wa as H,Zn as I,ya as J,Xn as K,oc as L,rc as M}; diff --git a/chunk-N27FRY2N.js b/chunk-N27FRY2N.js deleted file mode 100644 index 307a4f47b..000000000 --- a/chunk-N27FRY2N.js +++ /dev/null @@ -1,15 +0,0 @@ -import{$ as Mt,$a as ae,$b as no,$c as le,$d as ca,$e as ma,A as mc,Aa as fe,Ab as Z,Ac as Wc,Ad as ou,Ae as vo,B as xt,Ba as xc,Bb as $t,Bc as Gc,Bd as su,Be as Ee,C as Zr,Ca as rt,Cb as Dt,Cd as au,Ce as Iu,D as ji,Da as ht,Db as it,Dc as Pt,Dd as lu,De as Du,E as $i,Ea as js,Eb as nt,Ec as ot,Ed as cu,Ee as Su,F as fc,Fb as j,Fc as so,Fd as uu,Fe as de,G as Hs,Ga as Et,Gb as M,Gc as at,Gd as sa,Ge as $e,Gf as Ge,H as li,Ha as Mc,Hb as Pe,Hd as du,He as rr,Hf as un,I as gc,Ia as $s,Ib as V,Ic as J,Id as en,J as Ke,Ja as Oc,Jb as Jn,Jc as Yc,Jd as pu,Je as _o,Jf as Qu,K as zt,Ka as Mi,Kb as ge,Kc as Qc,Kd as hu,Ke as Co,Kf as Zu,L as qr,Lb as ne,Lc as na,Ld as ho,Le as yo,Lf as So,M as ci,Ma as Ws,Mb as ve,Mc as Zc,Me as bo,Mf as or,N as zs,Na as Gs,Nb as Zs,Nc as qc,Nd as aa,Ne as Pu,Nf as fa,O as vc,Oa as Ic,Ob as qs,Oc as Kc,Od as mu,Oe as wo,Of as Pi,P as _c,Pb as Ks,Pd as fu,Pe as To,Pf as ga,Q as Cc,Qa as qn,Qb as E,Qd as gu,Qe as Eu,R as Kr,Ra as Kn,Rb as D,Rd as vu,Re as ku,Rf as va,S as Bt,Sa as p,Sb as Nt,Sc as Xc,Sd as tt,Se as Ru,Sf as qu,T as Ft,Ta as st,Tb as io,Tc as Jc,Td as la,Te as Au,Tf as Ei,U as Xe,Ua as Dc,Ub as tr,Uc as lt,Ud as _u,Ue as Fu,Uf as Ku,V as Xr,Va as Oi,Vb as kc,Vd as mo,Ve as Lu,Vf as Ye,W as Lt,Wa as Sc,Wb as Rc,Wc as tu,Wd as bt,We as Nu,Wf as Po,X as xi,Xa as Ys,Xb as L,Xc as eu,Xd as nn,Xe as Vu,Xf as Eo,Y as jt,Yb as G,Yc as ao,Yd as Ce,Ye as sn,Yf as Xu,Z as Wi,Za as Gi,Zb as Xs,Zc as Ki,Zd as Cu,Ze as Hu,Zf as ko,_ as k,_a as Ii,_b as di,_c as iu,_d as rn,_f as Ju,a as Qr,aa as yc,ab as q,ac as pi,ad as ce,ae as Ie,ag as td,b as lc,ba as z,bb as ie,bc as gt,bd as lo,be as fo,bf as mi,bg as _a,c as cc,ca as Bs,cb as Xn,cc as ro,cd as nu,cg as ed,d as ai,da as et,db as Pc,dc as Ac,dd as Di,de as yu,df as We,dg as Ca,e as Ns,ea as u,eb as Qs,ec as Js,ed as Wt,ee as bu,ef as dt,eg as dn,f as jn,fa as bc,fb as C,fc as ta,fd as co,ff as zu,g as pt,ga as se,gb as U,gc as ea,gd as ru,ge as wu,gf as an,gg as id,h as Qt,ha as Jr,hb as h,hc as oo,hd as Xi,he as Tu,hf as xo,hg as Ro,i as uc,ia as Gn,ib as R,id as Ji,ie as go,if as wt,j as dc,ja as ui,jb as H,jc as At,jd as ue,je as ua,jf as Mo,jg as nd,k as qt,ka as Yn,kb as eo,kc as Fc,kd as hi,ke as da,kf as Bu,kg as Vt,l as ct,la as b,lb as Yi,lc as Lc,ld as uo,le as pa,lf as Uu,lg as rd,m as Kt,ma as Ot,mb as Qi,mc as Nc,md as K,me as on,mf as ju,mg as od,n as F,na as w,nb as Zi,nc as qi,nd as Y,ne as xu,nf as Oo,ng as Ao,o as $n,oa as me,ob as m,oc as Je,od as tn,oe as Mu,of as Io,og as sd,p as Bi,pa as Us,pb as f,pc as Vc,pe as Gt,pg as ad,q as pc,qa as wc,qb as T,qc as Hc,qd as po,qe as ft,qf as $u,qg as ya,r as A,ra as Qn,rb as Ct,rc as ia,rd as Jt,re as ha,rf as Wu,rg as sr,s as ze,sa as Be,sb as yt,sc as zc,sd as Ue,se as te,t as he,ta as Xt,tb as Zt,tc as Bc,td as mt,te as oe,tf as Gu,u as Wn,ua as O,ub as $,uc as St,ud as re,ue as ye,uf as Yu,v as hc,va as I,vb as Oe,vc as Uc,vd as ut,ve as Si,vf as ln,w as Vs,wa as to,wb as Ec,wc as er,wd as je,we as nr,wf as cn,x as Ti,xa as B,xb as x,xc as jc,xd as _e,xf as ti,y as Ui,ya as Tc,yb as _,yc as $c,yd as ra,ye as Ou,yf as Do,z as Ht,za as Zn,zb as _t,zc as ir,zd as oa,ze as kt}from"./chunk-HIUNHKUB.js";import{a as N,b as Ut,c as ac,e as zi}from"./chunk-HFDGAYQF.js";function ba(n){return!!n&&(Um(n)||ba(n.parentElement))}function Um(n){var e;return((e=n.ownerDocument.defaultView)==null?void 0:e.getComputedStyle(n).getPropertyValue("position"))==="fixed"}var ei=(()=>{let e=class e{transform(t,i,...r){return i(t,...r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=me({name:"tuiMapper",type:e,pure:!0,standalone:!0});let n=e;return n})();function jm(n,e){if(n&1&&(m(0,"div",3),T(1,"div",4),f()),n&2){let o=_().ngIf,t=_();H("t-bar_has-horizontal",o[1]),h("@tuiFadeIn",t.options)}}function $m(n,e){if(n&1&&(m(0,"div",5),T(1,"div",6),f()),n&2){let o=_().ngIf,t=_();H("t-bar_has-vertical",o[0]),h("@tuiFadeIn",t.options)}}function Wm(n,e){if(n&1&&(Ct(0),C(1,jm,2,3,"div",1)(2,$m,2,3,"div",2),yt()),n&2){let o=e.ngIf;p(),h("ngIf",o[0]),p(),h("ngIf",o[1])}}var Gm=["*"];function Ym(n,e){n&1&&T(0,"tui-scroll-controls",2)}var ld=(()=>{let e=class e extends ai{constructor(){super(t=>this.scroll$.subscribe(t)),this.el=tt(),this.element=u(sn).nativeElement,this.scroll$=Ht(Ee(this.el.parentElement,"mousedown").pipe(A(t=>this.getScrolled(t,.5,.5))),Ee(this.el,"mousedown").pipe($e(u(ht)),Ft(t=>{let{ownerDocument:i}=this.el,r=this.el.getBoundingClientRect(),s=Qm(t,r),a=Zm(t,r);return Ee(i,"mousemove").pipe(A(l=>this.getScrolled(l,s,a)),Xe(Ee(i,"mouseup")))})))}getScrolled({clientY:t,clientX:i},r,s){let{offsetHeight:a,offsetWidth:l}=this.el,{top:c,left:d,width:g,height:v}=this.el.parentElement.getBoundingClientRect(),y=this.element.scrollHeight-v,S=this.element.scrollWidth-g,W=(t-c-a*r)/(v-a),Q=(i-d-l*s)/(g-l);return[y*W,S*Q]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})();function Qm({clientY:n},{top:e,height:o}){return(n-e)/o}function Zm({clientX:n},{left:e,width:o}){return(n-e)/o}var Fo=24,qm=(()=>{let e=class e{constructor(){this.el=u(sn).nativeElement,this.style=tt().style,this.scrollSub=u(ld).pipe(lt()).subscribe(([t,i])=>{this.el.style.scrollBehavior="auto",this.el.scrollTo({top:t,left:i}),this.el.style.scrollBehavior=""}),this.styleSub=Ht(u(nr).pipe(xi(100)),Du(this.el)).pipe($e(u(ht)),lt()).subscribe(()=>{this.tuiScrollbar==="vertical"?(this.style.top=`${this.thumb*100}%`,this.style.height=`${this.view*100}%`):(this.style.left=`${this.thumb*100}%`,this.style.width=`${this.view*100}%`)}),this.tuiScrollbar="vertical"}get scrolled(){let{scrollTop:t,scrollHeight:i,clientHeight:r,scrollLeft:s,scrollWidth:a,clientWidth:l}=this.el;return this.tuiScrollbar==="vertical"?t/(i-r):s/(a-l)}get compensation(){let{clientHeight:t,scrollHeight:i,clientWidth:r,scrollWidth:s}=this.el;return t*t/i>Fo&&this.tuiScrollbar==="vertical"||r*r/s>Fo&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?Fo/t:Fo/r}get thumb(){let t=this.compensation||this.view;return this.scrolled*(1-t)}get view(){let{clientHeight:t,scrollHeight:i,clientWidth:r,scrollWidth:s}=this.el;return this.tuiScrollbar==="vertical"?Math.ceil(t/i*100)/100:Math.ceil(r/s*100)/100}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},standalone:!0,features:[E([ld])]});let n=e;return n})(),Km=(()=>{let e=class e{constructor(){this.scrollRef=u(sn).nativeElement,this.options=Io(u(_o)),this.refresh$=u(nr).pipe(xi(300),A(()=>this.scrollbars),Bt([!1,!1]),zt((t,i)=>t[0]===i[0]&&t[1]===i[1]),rr(u(ht)))}get scrollbars(){let{clientHeight:t,scrollHeight:i,clientWidth:r,scrollWidth:s}=this.scrollRef;return[Math.ceil(t/i*100)<100,Math.ceil(r/s*100)<100]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-scroll-controls"]],standalone:!0,features:[D],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(i,r){i&1&&(C(0,Wm,3,2,"ng-container",0),L(1,"async")),i&2&&h("ngIf",G(1,1,r.refresh$))},dependencies:[ot,at,qm],styles:["[_nghost-%COMP%]{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;margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;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}"],data:{animation:[Xc]},changeDetection:0});let n=e;return n})(),Xm="tui-scroll-into-view",Jm="tui-scrollable",pn=(()=>{let e=class e{constructor(){this.el=tt(),this.isIOS=u(un),this.browserScrollRef=new Et(this.el),this.hidden=!1}get delegated(){return this.browserScrollRef.nativeElement!==this.el}onScrollable(t){this.browserScrollRef.nativeElement=t}scrollIntoView(t){var y;if(this.delegated)return;let{nativeElement:i}=this.browserScrollRef,{offsetTop:r,offsetLeft:s}=vu(i,t),{clientHeight:a,clientWidth:l}=i,{offsetHeight:c,offsetWidth:d}=t,g=r+c/2-a/2,v=s+d/2-l/2;(y=i.scrollTo)==null||y.call(i,v,g)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(i,r){i&1&&x("tui-scrollable.stop",function(a){return r.onScrollable(a.detail)})("tui-scroll-into-view.stop",function(a){return r.scrollIntoView(a.detail)}),i&2&&H("_native-hidden",!r.isIOS||r.hidden)},inputs:{hidden:"hidden"},standalone:!0,features:[E([{provide:sn,useFactory:()=>u(e).browserScrollRef}]),D],ngContentSelectors:Gm,decls:3,vars:3,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(i,r){i&1&&(_t(),C(0,Ym,1,0,"tui-scroll-controls",0),m(1,"div",1),Z(2),f()),i&2&&(h("ngIf",!r.hidden&&!r.isIOS),p(),H("t-content_delegated",r.delegated))},dependencies:[Km,ot],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;overflow:auto}._native-hidden[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none}._native-hidden[_nghost-%COMP%]::-webkit-scrollbar, ._native-hidden[_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}.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-primary)}"],changeDetection:0});let n=e;return n})(),Lo=(()=>{let e=class e{constructor(){this.el=tt(),this.destroyRef=u(fe)}set tuiScrollIntoView(t){t&&Ui(0).pipe(lt(this.destroyRef)).subscribe(()=>{this.el.dispatchEvent(new CustomEvent(Xm,{bubbles:!0,detail:this.el}))})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},standalone:!0});let n=e;return n})();var ww=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiScrollRef",""]],standalone:!0,features:[E([mt(sn,Et)])]});let n=e;return n})(),cd=(()=>{let e=class e{constructor(){this.el=tt()}ngOnInit(){this.el.dispatchEvent(new CustomEvent(Jm,{bubbles:!0,detail:this.el}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiScrollable",""]],standalone:!0});let n=e;return n})();var ud=(()=>{let e=class e{transform(t){return Bu(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=me({name:"tuiAutoColor",type:e,pure:!0,standalone:!0});let n=e;return n})();var ef=(n,e)=>{let o=new Date(n.year,n.month,1).getDay();return o>=e?o-e:go-(e-o)},nf=({month:n,rowIndex:e,colIndex:o,firstDayOfWeek:t})=>{let i=e*go+o-ef(n,t)+1;return i>n.daysCount&&(i-=n.daysCount,n=n.append({month:1})),i<=0&&(n=n.append({month:-1}),i=n.daysCount+i),new ft(n.year,n.month,i)},rf=6,dd=(()=>{let e=class e{constructor(){this.firstDayOfWeek=u(wo),this.currentMonth=null,this.currentSheet=[]}transform(t,i=!1){var s;if((s=this.currentMonth)!=null&&s.monthSame(t))return this.currentSheet;let r=[];for(let a=0;ay.yeary.year>S.year||y.month>S.month;if(!(g(d)&&!i)){if(v(d)&&!i)break;l.push(d)}}r.push(l)}return this.currentSheet=r.filter(a=>a.length),this.currentMonth=t,this.currentSheet}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=me({name:"tuiCalendarSheet",type:e,pure:!0,standalone:!0});let n=e;return n})();var pd=(()=>{let e=class e{constructor(){this.months$=u(To)}transform({month:t}){return this.months$.pipe(A(i=>i[t]))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=me({name:"tuiMonth",type:e,pure:!0,standalone:!0});let n=e;return n})();function of(n){let e=n.length-1;return[n[e],...n.slice(0,e)]}var hd=(()=>{let e=class e{constructor(){this.firstDayOfWeekIndex=u(wo)}transform(t){return t.pipe(A(of),A(i=>[...i.slice(this.firstDayOfWeekIndex),...i.slice(0,this.firstDayOfWeekIndex)]))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=me({name:"tuiOrderWeekDays",type:e,pure:!0,standalone:!0});let n=e;return n})();var sf={appearance:"link",pseudo:!1},md=K(sf);var af=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-link"],standalone:!0,features:[D],decls:0,vars:0,template:function(i,r){},styles:[`[tuiLink]{--tui-text-tertiary: var(--tui-text-secondary);padding:0;background:transparent;border:none;cursor:pointer;font:inherit;-webkit-text-decoration:none dashed currentColor;text-decoration:none dashed currentColor;text-underline-offset:.2em;text-decoration-thickness:.7px;text-decoration-color:color-mix(in lch,currentColor,transparent)}[tuiLink]:hover{--tui-text-secondary: var(--tui-text-primary)}[tuiLink]:before{margin-inline-end:.25rem}[tuiLink]:after{margin-inline-start:.25rem}[tuiLink][tuiIcons]._icon-start:before,[tuiLink][tuiIcons]._icon-end:after{content:"\\2060";padding:calc(var(--tui-icon-size, 1rem) / 2);vertical-align:super;font-size:0;line-height:0}[tuiLink]:focus-visible:not([data-focus=false]){outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)}[tuiLink][data-focus=true]{outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)} -`],encapsulation:2,changeDetection:0});let n=e;return n})(),No=(()=>{let e=class e{constructor(){this.nothing=_e(af),this.pseudo=u(md).pseudo}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostAttrs:["tuiLink",""],hostVars:2,hostBindings:function(i,r){i&2&&R("text-decoration-line",r.pseudo?"underline":null)},inputs:{pseudo:"pseudo"},standalone:!0,features:[E([mo(md)]),ie([nn,mi])]});let n=e;return n})();var cf=["*"];function uf(n,e){if(n&1){let o=$();Ct(0),m(1,"button",1),x("click",function(){O(o);let i=_();return I(i.onLeftClick())}),M(2),f(),m(3,"span",2),Z(4),f(),m(5,"button",3),x("click",function(){O(o);let i=_();return I(i.onRightClick())}),M(6),f(),yt()}if(n&2){let o=e.ngIf,t=_();p(),H("t-hidden",t.leftComputedDisabled),h("iconStart",t.icons.decrement)("tabIndex",t.focusable?0:-1),p(),V(" ",o[0]," "),p(3),H("t-hidden",t.rightComputedDisabled),h("iconStart",t.icons.increment)("tabIndex",t.focusable?0:-1),p(),V(" ",o[1]," ")}}var fd=(()=>{let e=class e{constructor(){this.icons=u(Hu),this.spinTexts$=u(ku),this.focusable=!0,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new rt,this.rightClick=new rt}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}get leftComputedDisabled(){return this.disabled||this.leftDisabled}get rightComputedDisabled(){return this.disabled||this.rightDisabled}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-spin-button"]],hostBindings:function(i,r){i&1&&x("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return r.onLeftClick()})("keydown.arrowRight.prevent",function(){return r.onRightClick()})},inputs:{focusable:"focusable",disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},standalone:!0,features:[D],ngContentSelectors:cf,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-spin-button__left","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-spin-button__right","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"]],template:function(i,r){i&1&&(_t(),C(0,uf,7,10,"ng-container",0),L(1,"async")),i&2&&h("ngIf",G(1,1,r.spinTexts$))},dependencies:[We,ot,at],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:700}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0});let n=e;return n})();var df=(n,e,o,t,i)=>[n,e,o,t,i];function pf(n,e){if(n&1&&T(0,"div",3),n&2){let o=e.$implicit;h("textContent",o)}}function hf(n,e){if(n&1&&T(0,"div",12),n&2){let o=_().ngIf;R("background",(o==null?null:o[1])||"")}}function mf(n,e){if(n&1&&(m(0,"div",11),T(1,"div",12),C(2,hf,1,2,"div",13),f()),n&2){let o=e.ngIf;p(),R("background",o==null?null:o[0]),p(),h("ngIf",o.length>1)}}function ff(n,e){if(n&1){let o=$();m(0,"div",8),x("click",function(){O(o);let i=_().tuiLet,r=_(4);return I(r.onItemClick(i))})("tuiHoveredChange",function(i){O(o);let r=_().tuiLet,s=_(4);return I(s.onItemHovered(i&&r))}),m(1,"div",9),L(2,"tuiMapper"),M(3),C(4,mf,3,3,"div",10),L(5,"tuiMapper"),f()()}if(n&2){let o=_().tuiLet,t=_(4);H("t-cell_disabled",t.disabledItemHandler(o))("t-cell_interval",t.itemIsInterval(o))("t-cell_today",t.itemIsToday(o))("t-cell_unavailable",t.itemIsUnavailable(o)),U("data-range",t.getItemRange(o)),p(),H("t-item_unavailable",t.itemIsUnavailable(o)),U("data-type",Xs(2,14,o,t.dayTypeHandler)),p(2),V(" ",o.day," "),p(),h("ngIf",pi(5,17,kc(23,df,o,t.toMarkers,t.itemIsToday(o),!!t.getItemRange(o),t.markerHandler)))}}function gf(n,e){if(n&1&&(Ct(0),C(1,ff,6,29,"div",7),yt()),n&2){let o=e.tuiLet,t=_(4);p(),h("ngIf",!t.itemIsUnavailable(o)||t.showAdjacent)}}function vf(n,e){if(n&1&&(Ct(0),C(1,gf,2,1,"ng-container",2),yt()),n&2){let o=e.$implicit,t=_().$implicit,i=_().tuiLet;p(),h("tuiLet",i[t][o])}}function _f(n,e){if(n&1&&(m(0,"div",5),C(1,vf,2,1,"ng-container",6),f()),n&2){let o=e.$implicit,t=_().tuiLet;p(),h("tuiRepeatTimesOf",t[o].length)}}function Cf(n,e){if(n&1&&(m(0,"div"),C(1,_f,2,1,"div",4),f()),n&2){let o=e.tuiLet;p(),h("tuiRepeatTimesOf",o.length)}}function yf(n,e){if(n&1&&(Ct(0),M(1),yt()),n&2){let o=_();p(),V(" ",o.value.formattedYear," ")}}function bf(n,e){if(n&1){let o=$();m(0,"button",3),x("click",function(){O(o);let i=_();return I(i.onYearClick())}),M(1),f()}if(n&2){let o=_();p(),V(" ",o.value.formattedYear," ")}}function wf(n,e){if(n&1){let o=$();m(0,"div",4),x("click",function(){let i=O(o).tuiLet,r=_(3);return I(r.yearClick.emit(i))})("tuiHoveredChange",function(i){let r=O(o).tuiLet,s=_(3);return I(s.onItemHovered(i,r))}),m(1,"div",5),M(2),f()()}if(n&2){let o=e.tuiLet,t=_(3);H("t-cell_disabled",t.isDisabled(o))("t-cell_interval",t.itemIsInterval(o))("t-cell_today",t.itemIsToday(o)),h("tuiScrollIntoView",t.scrollItemIntoView(o)),U("data-range",t.getItemRange(o)),p(2),Pe(o)}}function Tf(n,e){if(n&1&&(Ct(0),C(1,wf,3,9,"div",3),yt()),n&2){let o=e.$implicit,t=_().$implicit,i=_();p(),h("tuiLet",i.getItem(t,o))}}function xf(n,e){n&1&&(m(0,"div",1),C(1,Tf,2,1,"ng-container",2),f()),n&2&&(p(),h("tuiRepeatTimesOf",4))}function Mf(n,e){if(n&1){let o=$();m(0,"tui-scrollbar",2)(1,"tui-calendar-year",3),x("yearClick",function(i){O(o);let r=_();return I(r.onPickerYearClick(i))}),f()()}if(n&2){let o=_();p(),h("initialItem",o.month.year)("max",o.computedMax.year)("min",o.computedMin.year)("value",o.value)}}function Of(n,e){if(n&1){let o=$();m(0,"tui-calendar-spin",4),x("valueChange",function(i){O(o);let r=_();return I(r.onPaginationValueChange(i))})("yearClick",function(){O(o);let i=_();return I(i.onPaginationYearClick())}),f(),m(1,"tui-calendar-sheet",5),L(2,"tuiMapper"),x("dayClick",function(i){O(o);let r=_();return I(r.onDayClick(i))})("hoveredItemChange",function(i){O(o);let r=_();return I(r.onHoveredItemChange(i))}),f()}if(n&2){let o=_();h("max",o.computedMaxViewedMonth)("min",o.computedMinViewedMonth)("value",o.month),p(),h("disabledItemHandler",no(2,9,o.disabledItemHandler,o.disabledItemHandlerMapper,o.computedMin,o.computedMax))("hoveredItem",o.hoveredItem)("markerHandler",o.markerHandler)("month",o.month)("showAdjacent",o.showAdjacent)("value",o.value)}}var If=(()=>{let e=class e{constructor(){this.today=ft.currentLocal(),this.unorderedWeekDays$=u(Ru),this.dayTypeHandler=u(Pu),this.month=Gt.currentLocal(),this.disabledItemHandler=Ie,this.markerHandler=null,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new rt,this.dayClick=new rt,this.toMarkers=(t,i,r,s)=>{if(i||r)return null;let a=s==null?void 0:s(t);return a!=null&&a.length?a:null}}itemIsInterval(t){let{value:i,hoveredItem:r}=this;if(!(i instanceof te))return!1;if(!i.isSingleDay)return i.from.daySameOrBefore(t)&&i.to.dayAfter(t);if(r===null)return!1;let s=te.sort(i.from,r);return s.from.daySameOrBefore(t)&&s.to.dayAfter(t)}onItemHovered(t){this.updateHoveredItem(t||null)}getItemRange(t){let{value:i,hoveredItem:r}=this;return i?i instanceof ft?i.daySame(t)?"single":null:i instanceof te?i.from.daySame(t)&&!i.isSingleDay||r!=null&&r.dayAfter(i.from)&&i.from.daySame(t)&&i.isSingleDay||r!=null&&r.daySame(t)&&r.dayBefore(i.from)&&i.isSingleDay?"start":i.to.daySame(t)&&!i.isSingleDay||r!=null&&r.dayBefore(i.from)&&i.from.daySame(t)&&i.isSingleDay||r!=null&&r.daySame(t)&&r.dayAfter(i.from)&&i.isSingleDay?"end":i.isSingleDay&&i.from.daySame(t)?"single":null:i.find(s=>s.daySame(t))?"single":null:null}get isSingleDayRange(){return this.value instanceof te&&this.value.isSingleDay}itemIsToday(t){return this.today.daySame(t)}itemIsUnavailable(t){return!this.month.monthSame(t)}onItemClick(t){this.dayClick.emit(t)}updateHoveredItem(t){Ue(this.hoveredItem,t,(i,r)=>i.daySame(r))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-calendar-sheet"]],hostVars:2,hostBindings:function(i,r){i&2&&H("_single",r.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},standalone:!0,features:[D],decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],[4,"tuiLet"],[1,"t-cell",3,"textContent"],["automation-id","tui-calendar-sheet__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__cell","class","t-cell",3,"t-cell_disabled","t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange",4,"ngIf"],["automation-id","tui-calendar-sheet__cell",1,"t-cell",3,"click","tuiHoveredChange"],["automation-id","tui-calendar-sheet__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"background",4,"ngIf"]],template:function(i,r){i&1&&(m(0,"div",0),C(1,pf,1,1,"div",1),L(2,"tuiOrderWeekDays"),L(3,"async"),f(),C(4,Cf,2,1,"div",2),L(5,"tuiCalendarSheet")),i&2&&(p(),h("ngForOf",G(3,4,G(2,2,r.unorderedWeekDays$))),p(3),h("tuiLet",Xs(5,6,r.month,!0)))},dependencies:[J,Pt,ot,at,Pi,ei,ga,fa,dd,hd],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{position:absolute;top:0;left:0;bottom:0;right:0;content:"";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:var(--tui-text-primary)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.1875rem;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:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-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_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_nghost-%COMP%]{width:15.75rem}[data-type=weekday][_ngcontent-%COMP%]{color:var(--tui-text-primary)}[data-type=weekend][_ngcontent-%COMP%]{color:var(--tui-text-negative)}.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-secondary);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});let n=e;return n})(),Df=(()=>{let e=class e{constructor(){this.value=Gt.currentLocal(),this.min=oe,this.max=ye,this.valueChange=new rt,this.yearClick=new rt}onYearClick(){this.yearClick.next(this.value)}append(t){let i=this.value.append(t);this.min.monthSameOrAfter(i)?this.updateValue(this.min):this.updateValue(this.max.monthSameOrBefore(i)?this.max:i)}updateValue(t){this.value.monthSame(t)||(this.value=t,this.valueChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-calendar-spin"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},standalone:!0,features:[D],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","tabIndex","-1","tuiLink","","type","button",3,"click"]],template:function(i,r){if(i&1){let s=$();m(0,"tui-spin-button",1),x("leftClick",function(){return O(s),I(r.append({month:-1}))})("rightClick",function(){return O(s),I(r.append({month:1}))}),M(1),L(2,"tuiMonth"),L(3,"async"),C(4,yf,2,1,"ng-container",2)(5,bf,2,1,"ng-template",null,0,gt),f()}if(i&2){let s=j(6);h("focusable",!1)("leftDisabled",r.value.monthSameOrBefore(r.min))("rightDisabled",r.value.monthSameOrAfter(r.max)),p(),V(" ",G(3,8,G(2,6,r.value))," "),p(3),h("ngIf",r.min.year===r.max.year)("ngIfElse",s)}},dependencies:[fd,No,pd,ot,at],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let n=e;return n})(),gd=100,vd=4,Sf=(()=>{let e=class e{constructor(){this.hoveredItem=null,this.currentYear=Gt.currentLocal().year,this.value=null,this.initialItem=this.currentYear,this.min=ua,this.max=da,this.disabledItemHandler=Ie,this.yearClick=new rt}isDisabled(t){return this.max&&this.maxt||this.disabledItemHandler(t)}getItemRange(t){let{value:i,hoveredItem:r}=this;return i===null?null:i instanceof Mu?i.year===t?"single":null:po(i)?i===t?"single":null:i instanceof ha?i.from.year===t&&!i.from.yearSame(i.to)||r!==null&&r>i.from.year&&i.from.year===t&&i.from.yearSame(i.to)||r!==null&&r===t&&ri.from.year&&i.from.yearSame(i.to)?"end":i.from.yearSame(i.to)&&i.from.year===t?"single":null:i.find(s=>s.year===t)?"single":null}itemIsInterval(t){let{value:i,hoveredItem:r}=this;return this.isRange(i)?i.from.yearSame(i.to)?r===null||i.from.year===r?!1:pu(t,Math.min(i.from.year,r),Math.max(i.from.year,r)):i.from.year<=t&&i.to.year>t:!1}onItemHovered(t,i){this.updateHoveredItem(t,i)}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/vd)}isRange(t){return t instanceof ha}scrollItemIntoView(t){return this.initialItem===t}getItem(t,i){return t*vd+i+this.calculatedMin}itemIsToday(t){return this.currentYear===t}get calculatedMin(){let t=this.initialItem-gd,i=this.min??ua;return i>t?i:t}get calculatedMax(){let t=this.initialItem+gd,i=this.max??da;return i .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:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-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_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_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});let n=e;return n})(),mn=(()=>{let e=class e{constructor(){this.day=null,this.view="month",this.month=Gt.currentLocal(),this.disabledItemHandler=Ie,this.min=oe,this.max=ye,this.minViewedMonth=oe,this.maxViewedMonth=ye,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=null,this.dayClick=new rt,this.monthChange=new rt,this.hoveredItemChange=new rt,this.disabledItemHandlerMapper=(t,i,r)=>s=>s.dayBefore(i)||s.dayAfter(r)||t(s)}set value(t){this.day=t,this.showAdjacent&&t instanceof ft&&(this.month=t)}set initialView(t){this.view=t}get value(){return this.day}onPaginationValueChange(t){this.updateViewedMonth(t)}onDayClick(t){this.dayClick.emit(t)}onHoveredItemChange(t){this.updateHoveredDay(t)}get computedMin(){return this.min??oe}get computedMax(){return this.max??ye}get computedMinViewedMonth(){let t=this.computedMin,i=this.minViewedMonth??oe;return i.monthSameOrAfter(t)?i:t}get computedMaxViewedMonth(){let t=this.computedMax,i=this.maxViewedMonth??ye;return i.monthSameOrBefore(t)?i:t}get isInYearView(){return this.view==="year"}onPaginationYearClick(){this.view="year"}onPickerYearClick(t){this.view="month",this.updateViewedMonth(new Gt(t,this.month.month))}updateViewedMonth(t){this.month.monthSame(t)||(this.month=t,this.monthChange.emit(t))}updateHoveredDay(t){Ue(this.hoveredItem,t,(i,r)=>i.daySame(r))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-calendar"]],inputs:{month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value",initialView:"initialView"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},standalone:!0,features:[D],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(i,r){if(i&1&&C(0,Mf,2,4,"tui-scrollbar",1)(1,Of,3,14,"ng-template",null,0,gt),i&2){let s=j(2);h("ngIf",r.isInYearView)("ngIfElse",s)}},dependencies:[ot,pn,Sf,Df,If,ei],styles:["[_nghost-%COMP%]{display:block;min-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});let n=e;return n})();var Ef=["viewContainer"],ar=class{},xa=(()=>{let e=class e{constructor(){this.refresh$=new pt,this.pseudoInvalid=ae(null),this.internal=ae(u(Qu,{self:!0,optional:!0})),this.control=u(le,{self:!0}),this.destroyRef=u(fe),this.cdr=u(At),this.transformer=u(ar,{optional:!0}),this.value=Je(()=>this.internal()),this.readOnly=ae(!1),this.touched=ae(!1),this.status=ae(void 0),this.disabled=Je(()=>this.status()==="DISABLED"),this.interactive=Je(()=>!this.disabled()&&!this.readOnly()),this.invalid=Je(()=>this.pseudoInvalid()!==null?!!this.pseudoInvalid()&&this.interactive():this.interactive()&&this.touched()&&this.status()==="INVALID"),this.mode=Je(()=>this.readOnly()?"readonly":this.invalid()?"invalid":"valid"),this.onTouched=rn,this.onChange=rn,this.control.valueAccessor=this,this.refresh$.pipe(Ke(0),Bt(null),A(()=>this.control.control),xt(Jt),zt(),Ft(t=>Ht(t.valueChanges,t.statusChanges)),lt(this.destroyRef)).subscribe(()=>{this.update()})}set readOnlySetter(t){this.readOnly.set(t)}set invalidSetter(t){this.pseudoInvalid.set(t)}registerOnChange(t){this.refresh$.next(),this.onChange=i=>{i!==this.internal()&&(t(this.toControlValue(i)),this.internal.set(i),this.update())}}registerOnTouched(t){this.onTouched=()=>{t(),this.update()}}setDisabledState(){this.update()}writeValue(t){let i=this.control instanceof Wt?this.control.model:t;this.internal.set(this.fromControlValue(i)),this.update()}fromControlValue(t){return this.transformer?this.transformer.fromControlValue(t):t}toControlValue(t){return this.transformer?this.transformer.toControlValue(t):t}update(){var t,i;this.status.set((t=this.control.control)==null?void 0:t.status),this.touched.set(!!((i=this.control.control)!=null&&i.touched)),this.cdr.markForCheck()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,inputs:{readOnlySetter:[0,"readOnly","readOnlySetter"],invalidSetter:[0,"invalid","invalidSetter"]}});let n=e;return ct([ut],n.prototype,"fromControlValue",null),ct([ut],n.prototype,"toControlValue",null),n})();function Vo(n){return mt(xa,n)}var _d=(()=>{let e=class e{constructor(){this.injector=u(ui),this.nothing=u(Ho).attach(this)}addComponentChild(t){let i=t.createInjector(this.injector),r=this.vcr.createComponent(t.component,{injector:i});return r.changeDetectorRef.detectChanges(),r}addTemplateChild(t,i){return this.vcr.createEmbeddedView(t,i)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,viewQuery:function(i,r){if(i&1&&Dt(Ef,5,Ii),i&2){let s;it(s=nt())&&(r.vcr=s.first)}}});let n=e;return n})(),Ho=(()=>{let e=class e{attach(t){this.host=t}add(t){return this.safeHost.addComponentChild(t)}remove({hostView:t}){t.destroyed||t.destroy()}addTemplate(t,i){return this.safeHost.addTemplateChild(t,i)}removeTemplate(t){t.destroyed||t.destroy()}get safeHost(){if(!this.host)throw new Ta;return this.host}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})();function Cd(n){return mt(Ho,n)}var Ta=class extends Error{constructor(){super("")}};var Ia=class extends Bc{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Da=class n extends Ia{static makeCurrent(){zc(new n)}onAndCancel(e,o,t){return e.addEventListener(o,t),()=>{e.removeEventListener(o,t)}}dispatchEvent(e,o){e.dispatchEvent(o)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,o){return o=o||this.getDefaultDocument(),o.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,o){return o==="window"?window:o==="document"?e:o==="body"?e.body:null}getBaseHref(e){let o=Af();return o==null?null:Ff(o)}resetBaseElement(){lr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wc(document.cookie,e)}},lr=null;function Af(){return lr=lr||document.querySelector("base"),lr?lr.getAttribute("href"):null}function Ff(n){return new URL(n,document.baseURI).pathname}var Lf=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),fn=new z(""),Td=(()=>{let e=class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(s=>s.supports(t)),!i)throw new jt(5101,!1);return this._eventNameToPlugin.set(t,i),i}};e.\u0275fac=function(i){return new(i||e)(et(fn),et(ht))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),cr=class{constructor(e){this._doc=e}},Ma="ng-app-id",xd=(()=>{let e=class e{constructor(t,i,r,s={}){this.doc=t,this.appId=i,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=na(s),this.resetHostNodes()}addStyles(t){for(let i of t)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(t){for(let i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){var r,s;let i=this.styleRef;(s=(r=i.get(t))==null?void 0:r.elements)==null||s.forEach(a=>a.remove()),i.delete(t)}collectServerRenderedStyles(){var i;let t=(i=this.doc.head)==null?void 0:i.querySelectorAll(`style[${Ma}="${this.appId}"]`);if(t!=null&&t.length){let r=new Map;return t.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,i){let r=this.styleRef;if(r.has(t)){let s=r.get(t);return s.usage+=i,s.usage}return r.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){let r=this.styleNodesInDOM,s=r==null?void 0:r.get(i);if((s==null?void 0:s.parentNode)===t)return r.delete(i),s.removeAttribute(Ma),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Ma,this.appId),t.appendChild(a),a}}addStyleToHost(t,i){var l;let r=this.getStyleElement(t,i),s=this.styleRef,a=(l=s.get(i))==null?void 0:l.elements;a?a.push(r):s.set(i,{elements:[r],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(et(St),et($s),et(Ws,8),et(Mi))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),Oa={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Pa=/%COMP%/g,Md="%COMP%",Nf=`_nghost-${Md}`,Vf=`_ngcontent-${Md}`,Hf=!0,zf=new z("",{providedIn:"root",factory:()=>Hf});function Bf(n){return Vf.replace(Pa,n)}function Uf(n){return Nf.replace(Pa,n)}function Od(n,e){return e.map(o=>o.replace(Pa,n))}var yd=(()=>{let e=class e{constructor(t,i,r,s,a,l,c,d=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=na(l),this.defaultRenderer=new ur(t,a,c,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Yn.ShadowDom&&(i=Ut(N({},i),{encapsulation:Yn.Emulated}));let r=this.getOrCreateRenderer(t,i);return r instanceof zo?r.applyToHost(t):r instanceof dr&&r.applyStyles(),r}getOrCreateRenderer(t,i){let r=this.rendererByCompId,s=r.get(i.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,g=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(i.encapsulation){case Yn.Emulated:s=new zo(c,d,i,this.appId,g,a,l,v);break;case Yn.ShadowDom:return new Sa(c,d,t,i,a,l,this.nonce,v);default:s=new dr(c,d,i,g,a,l,v);break}r.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(et(Td),et(xd),et($s),et(zf),et(St),et(Mi),et(ht),et(Ws))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),ur=class{constructor(e,o,t,i){this.eventManager=e,this.doc=o,this.ngZone=t,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,o){return o?this.doc.createElementNS(Oa[o]||o,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,o){(bd(e)?e.content:e).appendChild(o)}insertBefore(e,o,t){e&&(bd(e)?e.content:e).insertBefore(o,t)}removeChild(e,o){e&&e.removeChild(o)}selectRootElement(e,o){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new jt(-5104,!1);return o||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,o,t,i){if(i){o=i+":"+o;let r=Oa[i];r?e.setAttributeNS(r,o,t):e.setAttribute(o,t)}else e.setAttribute(o,t)}removeAttribute(e,o,t){if(t){let i=Oa[t];i?e.removeAttributeNS(i,o):e.removeAttribute(`${t}:${o}`)}else e.removeAttribute(o)}addClass(e,o){e.classList.add(o)}removeClass(e,o){e.classList.remove(o)}setStyle(e,o,t,i){i&(Kn.DashCase|Kn.Important)?e.style.setProperty(o,t,i&Kn.Important?"important":""):e.style[o]=t}removeStyle(e,o,t){t&Kn.DashCase?e.style.removeProperty(o):e.style[o]=""}setProperty(e,o,t){e!=null&&(e[o]=t)}setValue(e,o){e.nodeValue=o}listen(e,o,t){if(typeof e=="string"&&(e=ia().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${o}`);return this.eventManager.addEventListener(e,o,this.decoratePreventDefault(t))}decoratePreventDefault(e){return o=>{if(o==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(o)):e(o))===!1&&o.preventDefault()}}};function bd(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Sa=class extends ur{constructor(e,o,t,i,r,s,a,l){super(e,r,s,l),this.sharedStylesHost=o,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Od(i.id,i.styles);for(let d of c){let g=document.createElement("style");a&&g.setAttribute("nonce",a),g.textContent=d,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,o){return super.appendChild(this.nodeOrShadowRoot(e),o)}insertBefore(e,o,t){return super.insertBefore(this.nodeOrShadowRoot(e),o,t)}removeChild(e,o){return super.removeChild(this.nodeOrShadowRoot(e),o)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},dr=class extends ur{constructor(e,o,t,i,r,s,a,l){super(e,r,s,a),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=i,this.styles=l?Od(l,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},zo=class extends dr{constructor(e,o,t,i,r,s,a,l){let c=i+"-"+t.id;super(e,o,t,r,s,a,l,c),this.contentAttr=Bf(c),this.hostAttr=Uf(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,o){let t=super.createElement(e,o);return super.setAttribute(t,this.contentAttr,""),t}},jf=(()=>{let e=class e extends cr{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}};e.\u0275fac=function(i){return new(i||e)(et(St))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),$f=(()=>{let e=class e extends cr{constructor(t){super(t),this.delegate=u(Nc,{optional:!0})}supports(t){return this.delegate?this.delegate.supports(t):!1}addEventListener(t,i,r){return this.delegate.addEventListener(t,i,r)}removeEventListener(t,i,r){return this.delegate.removeEventListener(t,i,r)}};e.\u0275fac=function(i){return new(i||e)(et(St))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),wd=["alt","control","meta","shift"],Wf={"\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"},Gf={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Yf=(()=>{let e=class e extends cr{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,i,r){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ia().onAndCancel(t,s.domEventName,a))}static parseEventName(t){let i=t.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),wd.forEach(d=>{let g=i.indexOf(d);g>-1&&(i.splice(g,1),a+=d+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(t,i){let r=Wf[t.key]||t.key,s="";return i.indexOf("code.")>-1&&(r=t.code,s="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),wd.forEach(a=>{if(a!==r){let l=Gf[a];l(t)&&(s+=a+".")}}),s+=r,s===i)}static eventCallback(t,i,r){return s=>{e.matchEventFullKeyCode(s,t)&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(i){return new(i||e)(et(St))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})();function mx(n,e){return Lc(N({rootComponent:n},Qf(e)))}function Qf(n){return{appProviders:[...Jf,...(n==null?void 0:n.providers)??[]],platformProviders:Xf}}function Zf(){Da.makeCurrent()}function qf(){return new js}function Kf(){return Mc(document),document}var Xf=[{provide:Mi,useValue:Yc},{provide:Oc,useValue:Zf,multi:!0},{provide:St,useFactory:Kf,deps:[]}];var Jf=[{provide:wc,useValue:"root"},{provide:js,useFactory:qf,deps:[]},{provide:fn,useClass:jf,multi:!0,deps:[St,ht,Mi]},{provide:fn,useClass:Yf,multi:!0,deps:[St]},{provide:fn,useClass:$f,multi:!0},yd,xd,Td,{provide:Sc,useExisting:yd},{provide:qc,useClass:Lf,deps:[]},[]];var Id=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(i){return new(i||e)(et(St))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ii=class{supports(e){return e.includes(this.modifier)}unwrap(e){return e.split(".").filter(o=>!this.modifier.includes(o)).join(".")}},eg=new z("[GLOBAL_HANDLER]: Global event target handler",{factory:()=>{let n=u(St);return e=>e==="body"?n.body:n.defaultView[e]||n.createElement("div")}}),ig=(()=>{let e=class e extends ii{constructor(){super(...arguments),this.handler=u(eg),this.modifier=">"}addEventListener(t,i,r){return this.manager.addEventListener(this.handler(i.split(">")[0]),i.split(">")[1],r)}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),ng=(()=>{let e=class e extends ii{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(t){return t.includes(".")&&!this.unwrap(t).includes(".")}addEventListener(t,i,r){return t.addEventListener(this.unwrap(i),r,{once:i.includes(".once"),passive:i.includes(".passive"),capture:i.includes(".capture")}),()=>t.removeEventListener(this.unwrap(i),r,i.includes(".capture"))}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),rg=(()=>{let e=class e extends ii{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(t,i,r){return this.manager.addEventListener(t,this.unwrap(i),s=>{s.preventDefault(),r(s)})}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),og=(()=>{let e=class e extends ii{constructor(){super(...arguments),this.modifier="resize"}supports(t){return t==="resize"}addEventListener(t,i,r){if(typeof ResizeObserver>"u"||!(t instanceof Element))return()=>{};let s=new ResizeObserver(a=>this.manager.getZone().run(()=>r(a)));return s.observe(t),()=>s.disconnect()}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),sg=(()=>{let e=class e extends ii{constructor(){super(...arguments),this.modifier=".self"}addEventListener(t,i,r){return this.manager.addEventListener(t,this.unwrap(i),s=>{s.target===s.currentTarget&&r(s)})}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),Ea=(()=>{let e=class e extends ii{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(t,i,r){return e.ngZone=this.manager.getZone(),e.ngZone.runOutsideAngular(()=>this.manager.addEventListener(t,this.unwrap(i),r))}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),ag=(()=>{let e=class e extends ii{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(t,i,r){return this.manager.addEventListener(t,this.unwrap(i),s=>{s.stopPropagation(),r(s)})}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),lg=[Ea,ig,ng,rg,og,sg,ag],yx=lg.map(n=>({provide:fn,multi:!0,useClass:n}));function Dd(n){return(e,o,t)=>{let{value:i}=t;t.value=function(...r){n.apply(this,r)&&(Ea.ngZone?Ea.ngZone.run(()=>i.apply(this,r)):i.apply(this,r))}}}var Sd=(()=>{let e=class e extends ai{constructor(){super(t=>this.obscured$.subscribe(t)),this.el=tt(),this.obscured$=u(nr).pipe(xi(100),A(()=>gu(this.el)),Bt(null),zt(),rr(u(ht)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),Bo=(()=>{let e=class e{constructor(){this.activeZone=u(Ei,{optional:!0}),this.enabled$=new pt,this.obscured$=u(Sd,{self:!0}).pipe(A(t=>!!(t!=null&&t.every(i=>{var r;return!((r=this.activeZone)!=null&&r.contains(i))})))),this.tuiObscured=this.enabled$.pipe(Iu(()=>this.obscured$))}set tuiObscuredEnabled(t){this.enabled$.next(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},standalone:!0,features:[E([Sd])]});let n=e;return n})();var dg=n=>({$implicit:n});function pg(n,e){if(n&1&&(m(0,"div",2),M(1),f()),n&2){let o=e.polymorpheusOutlet;p(),V(" ",o," ")}}var hg=["tuiDropdownHost"],mg=["*"],gn=(()=>{let e=class e extends pt{constructor(){super(...arguments),this.type="dropdown"}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})(),fg=(()=>{let e=class e extends du{constructor(){super(...arguments),this.type="dropdown"}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiDropdownDriver",""]],standalone:!0,features:[q]});let n=e;return n})(),jo=Y(()=>Ri),gg=new z(""),Pd=(()=>{let e=class e extends Ho{};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ed={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},ki=K(Ed),$o=n=>({provide:ki,deps:[[new se,vg],[new se,new Gn,ki]],useFactory:ju(n,Ed)}),vg=(()=>{let e=class e{constructor(){this.options=u(ki,{skipSelf:!0}),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}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:[0,"tuiDropdownAlign","align"],appearance:[0,"tuiDropdownAppearance","appearance"],direction:[0,"tuiDropdownDirection","direction"],limitWidth:[0,"tuiDropdownLimitWidth","limitWidth"],minHeight:[0,"tuiDropdownMinHeight","minHeight"],maxHeight:[0,"tuiDropdownMaxHeight","maxHeight"],offset:[0,"tuiDropdownOffset","offset"]},standalone:!0,features:[E([mt(ki,e)])]});let n=e;return n})(),Uo=(()=>{let e=class e extends ra{constructor(){super(...arguments),this.options=u(ki),this.viewport=u(ma),this.type="dropdown",this.accessor=ou("dropdown")(u(oa),u(we,{optional:!0}))}getPosition({width:t,height:i}){var Me;!t&&!i&&(this.previous=void 0);let r=((Me=this.accessor)==null?void 0:Me.getClientRect())??ca,s=this.viewport.getClientRect(),{minHeight:a,align:l,direction:c,offset:d,limitWidth:g}=this.options,v={top:s.top-d,bottom:s.bottom+d,right:s.right-d,left:s.left+d},y=this.previous||c||"bottom",S={top:r.top-2*d-v.top,bottom:v.bottom-r.bottom-2*d},W=g==="fixed"?r.width:t,Q=Math.max(r.right-W,d),Tt=r.left+tS.bottom?"top":"bottom";return S[y]>a&&c||S[y]>i?[It[y],It[l]]:(this.previous=Rt,[It[Rt],It[l]])}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiDropdownPosition",""]],standalone:!0,features:[q]});let n=e;return n})(),we=(()=>{let e=class e{constructor(){this.refresh$=new pt,this.service=u(Pd),this.cdr=u(At),this.sub=this.refresh$.pipe(xi(0),lt()).subscribe(()=>{var t,i;(t=this.ref())==null||t.changeDetectorRef.detectChanges(),(i=this.ref())==null||i.changeDetectorRef.markForCheck()}),this.el=tt(),this.type="dropdown",this.component=new an(u(jo),u(ui)),this.ref=ae(null)}set tuiDropdown(t){this.content=t instanceof Oi?new xo(t,this.cdr):t}get position(){return ba(this.el)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(t){let i=this.ref();t&&this.content&&!i?this.ref.set(this.service.add(this.component)):!t&&i&&(this.ref.set(null),this.service.remove(i))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiDropdown","",5,"ng-container",5,"ng-template"]],inputs:{tuiDropdown:"tuiDropdown"},exportAs:["tuiDropdown"],standalone:!0,features:[E([cu(e),uu(e)]),ie([fg,Uo]),Xt]});let n=e;return ct([ut],n.prototype,"position",null),n})(),Ri=(()=>{let e=class e{constructor(){var t;this.el=tt(),this.accessor=u(oa),this.win=u(Si),this.vvs=u(qu),this.animation=Io(u(_o)),this.options=u(ki),this.directive=u(we),this.context=u(gg,{optional:!0}),this.theme=(t=this.directive.el.closest("[tuiTheme]"))==null?void 0:t.getAttribute("tuiTheme"),this.sub=u(va).pipe(Xr(()=>this.directive.el.isConnected),A(i=>this.directive.position==="fixed"?this.vvs.correct(i):i),A(([i,r])=>this.getStyles(i,r)),lt()).subscribe({next:i=>Object.assign(this.el.style,i),complete:()=>this.close()}),this.close=()=>this.directive.toggle(!1)}getStyles(t,i){var Rt;let{right:r}=this.el.getBoundingClientRect(),{maxHeight:s,minHeight:a,offset:l,limitWidth:c}=this.options,{innerHeight:d}=this.win,g=(Rt=this.el.offsetParent)==null?void 0:Rt.getBoundingClientRect(),{position:v}=this.directive,y=this.accessor.getClientRect(),S=v==="fixed"?0:-((g==null?void 0:g.left)||0),W=v==="fixed"?0:-((g==null?void 0:g.top)||0);t+=W,i+=S;let Q=r<=y.left||i>=y.right,It=iy.left&&t{let e=class e{constructor(){this.directive=u(we),this.el=tt(),this.obscured=u(Bo),this.dropdown=Je(()=>{var t;return(t=this.directive.ref())==null?void 0:t.location.nativeElement}),this.sub=Ht(this.obscured.tuiObscured.pipe(xt(Boolean)),u(Ei).tuiActiveZoneChange.pipe(xt(t=>!t)),Ti(this.el,"focusin").pipe(A(fu),xt(t=>!this.host.contains(t)||!this.directive.ref()))).pipe(de(u(At)),lt()).subscribe(()=>this.toggle(!1)),this.tuiDropdownEnabled=!0,this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new rt,this.driver=u(gn)}ngOnChanges(){this.drive()}toggle(t){this.focused&&!t&&this.host.focus({preventScroll:!0}),this.update(t)}onClick(t){!this.editable&&this.host.contains(t)&&this.update(!this.tuiDropdownOpen)}onArrow(t,i){!aa(t.target)||!this.host.contains(t.target)||!this.tuiDropdownEnabled||(t.preventDefault(),this.focusDropdown(i))}onEsc(t){t.preventDefault(),this.toggle(!1)}onKeydown({key:t,target:i,defaultPrevented:r}){r||!Uu(t)||!this.editable||!this.focused||!mu(i)||la(i)&&i!==this.host||(this.update(!0),this.host.focus({preventScroll:!0}))}get host(){var r,s;let t=((r=this.dropdownHost)==null?void 0:r.nativeElement)||this.el,i=Yu(t)?t:ln({initial:t,root:this.el});return((s=this.dropdownHost)==null?void 0:s.nativeElement)||i||this.el}get editable(){return la(this.host)}get focused(){return ti(this.host)||ti(this.dropdown())}update(t){t&&!this.tuiDropdownEnabled||(this.tuiDropdownOpen=t,this.tuiDropdownOpenChange.emit(t),this.drive())}drive(t=this.tuiDropdownOpen&&this.tuiDropdownEnabled){this.obscured.tuiObscuredEnabled=!!t,this.driver.next(!!t)}focusDropdown(t){let i=this.dropdown();if(!i){this.update(!0);return}let r=this.el.ownerDocument,s=i.appendChild(r.createElement("div")),l=ln({initial:t?s:i,previous:t,root:i});s.remove(),l==null||l.focus()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiDropdown","","tuiDropdownOpen",""],["","tuiDropdown","","tuiDropdownOpenChange",""]],contentQueries:function(i,r,s){if(i&1&&$t(s,hg,5,Et),i&2){let a;it(a=nt())&&(r.dropdownHost=a.first)}},hostBindings:function(i,r){i&1&&x("click",function(a){return r.onClick(a.target)})("keydown.arrowDown",function(a){return r.onArrow(a,!1)})("keydown.arrowUp",function(a){return r.onArrow(a,!0)})("keydown.silent.capture",function(a){return r.onEsc(a)},!1,qn)("keydown.silent",function(a){return r.onKeydown(a)},!1,qn)},inputs:{tuiDropdownEnabled:"tuiDropdownEnabled",tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0,features:[E([gn,sa(gn)]),ie([Bo,{directive:Ei,inputs:["tuiActiveZoneParent","tuiActiveZoneParent"],outputs:["tuiActiveZoneChange","tuiActiveZoneChange"]}]),Xt]});let n=e;return ct([Dd(Cg)],n.prototype,"onEsc",null),n})();var w1=(()=>{let e=class e{constructor(){this.driver=u(gn),this.tuiDropdownManual=!1}ngOnChanges(){this.driver.next(!!this.tuiDropdownManual)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},standalone:!0,features:[E([gn,sa(gn)]),Xt]});let n=e;return n})(),kd=(()=>{let e=class e{constructor(){this.tuiDropdownOpenChange=new Qt(!1)}set tuiDropdownOpen(t){this.tuiDropdownOpenChange.next(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiDropdownOpen","",3,"tuiDropdown",""],["","tuiDropdownOpenChange","",3,"tuiDropdown",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},standalone:!0});let n=e;return n})();var T1=(()=>{let e=class e extends ra{constructor(){super(...arguments),this.options=u(ki),this.viewport=u(ma),this.vertical=u(Uo),this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(t){var Tt;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(t);let{height:i,width:r}=t,s=((Tt=this.vertical.accessor)==null?void 0:Tt.getClientRect())??ca,a=this.viewport.getClientRect(),{direction:l,minHeight:c,offset:d}=this.options,g=this.options.align==="center"?"left":this.options.align,v={top:s.bottom-a.top,left:s.left-d-a.left,right:a.right-s.right-d,bottom:a.bottom-s.top},y={top:s.bottom-i+this.tuiDropdownSidedOffset+1,left:s.left-r-d,right:s.right+d,bottom:s.top-this.tuiDropdownSidedOffset-1},S=v.top>v.bottom?"top":"bottom",W=v.left>v.right?y.left:y.right,Q=v[g]>r?y[g]:W;return v[this.previous]>c&&l||this.previous===S?[y[this.previous],Q]:(this.previous=S,[y[S],Q])}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},standalone:!0,features:[E([Uo,lu(e)]),q]});let n=e;return n})();var x1=(()=>{let e=class e extends _d{};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275cmp=b({type:e,selectors:[["tui-dropdowns"]],standalone:!0,features:[E([Cd(Pd)]),q,D],ngContentSelectors:mg,decls:3,vars:0,consts:[["viewContainer",""]],template:function(i,r){i&1&&(_t(),Z(0),Zt(1,null,0))},styles:["[_nghost-%COMP%]{display:block;height:100%;isolation:isolate}"],changeDetection:0});let n=e;return n})();var yg=["tuiOption",""],Rd=["*"],bg=n=>({$implicit:n});function wg(n,e){if(n&1&&(Ct(0),M(1),yt()),n&2){let o=e.polymorpheusOutlet;p(),V(" ",o," ")}}function Tg(n,e){n&1&&Z(0)}function xg(n,e){if(n&1&&(Ct(0),M(1),yt()),n&2){let o=e.polymorpheusOutlet;p(),V(" ",o," ")}}function Mg(n,e){if(n&1&&(m(0,"div",1),C(1,xg,2,1,"ng-container",2),f()),n&2){let o=_();p(),h("polymorpheusOutlet",o.emptyContent||o.fallback())}}var Og=new z("[TUI_OPTION_CONTENT]");var Ig=new z("[TUI_DATA_LIST_ACCESSOR]");function Wo(n){return mt(Ig,n)}var Go=new z("[TUI_DATA_LIST_HOST]");var De=(()=>{let e=class e{constructor(){var t;this.isMobile=u(Ge),this.el=tt(),this.dataList=u(Wi(()=>Qe),{optional:!0}),this.host=u(Go,{optional:!0}),this.content=u(Og,{optional:!0}),this.dropdown=(t=u(we,{self:!0,optional:!0}))==null?void 0:t.ref,this.disabled=!1}ngOnDestroy(){var t;(t=this.dataList)==null||t.handleFocusLossIfNecessary(this.el)}onClick(){var t;(t=this.host)!=null&&t.handleOption&&this.value!==void 0&&this.host.handleOption(this.value)}onMouseMove(){!this.isMobile&&!cn(this.el)&&this.dataList&&this.el.focus({preventScroll:!0})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["button","tuiOption",""],["a","tuiOption",""],["label","tuiOption",""]],hostAttrs:["type","button","role","option"],hostVars:3,hostBindings:function(i,r){i&1&&x("click",function(){return r.onClick()})("mousemove.silent",function(){return r.onMouseMove()}),i&2&&(U("disabled",r.disabled||null),H("_with-dropdown",r.dropdown==null?null:r.dropdown()))},inputs:{disabled:"disabled",value:"value"},standalone:!0,features:[ie([mi]),D],attrs:yg,ngContentSelectors:Rd,decls:3,vars:4,consts:[["t",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(i,r){if(i&1&&(_t(),C(0,wg,2,1,"ng-container",1)(1,Tg,1,0,"ng-template",null,0,gt)),i&2){let s=j(2);h("polymorpheusOutlet",r.content||s)("polymorpheusOutletContext",Nt(2,bg,s))}},dependencies:[wt],encapsulation:2,changeDetection:0});let n=e;return n})();function Ra(){var o;let n=["s","m","l"],e=(o=u(Go,{optional:!0}))==null?void 0:o.size;return e&&n.includes(e)?e:"l"}var Qe=(()=>{let e=class e{constructor(){this.options=Ce,this.el=tt(),this.fallback=tu(u(Eu)),this.empty=!0,this.size=Ra()}onKeyDownArrow(t,i){let{elements:r}=this;Do(r.indexOf(t),r,i)}handleFocusLossIfNecessary(t=this.el){var i;ti(t)&&((i=this.origin)==null||i.focus({preventScroll:!0}))}ngAfterContentChecked(){this.empty=!this.el.querySelector("[tuiOption]")}getOptions(t=!1){return this.options.filter(({disabled:i})=>t||!i).map(({value:i})=>i).filter(Jt)}onFocusIn(t,i){!i.contains(t)&&!this.origin&&(this.origin=t)}noop(){}get elements(){return Array.from(this.el.querySelectorAll("a[tuiOption],button[tuiOption],input"))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-data-list"]],contentQueries:function(i,r,s){if(i&1&&$t(s,De,5),i&2){let a;it(a=nt())&&(r.options=a)}},hostAttrs:["role","listbox"],hostVars:1,hostBindings:function(i,r){i&1&&x("keydown.arrowDown.prevent",function(a){return r.onKeyDownArrow(a.target,1)})("keydown.arrowUp.prevent",function(a){return r.onKeyDownArrow(a.target,-1)})("wheel.silent.passive",function(){return r.handleFocusLossIfNecessary()})("mouseleave",function(a){return r.handleFocusLossIfNecessary(a.target)})("keydown.tab",function(){return r.handleFocusLossIfNecessary()})("keydown.shift.tab",function(){return r.handleFocusLossIfNecessary()})("focusin",function(a){return r.onFocusIn(a.relatedTarget,a.currentTarget)})("mousedown.prevent",function(){return r.noop()}),i&2&&U("data-size",r.size)},inputs:{emptyContent:"emptyContent",size:"size"},standalone:!0,features:[E([Wo(e)]),D],ngContentSelectors:Rd,decls:2,vars:1,consts:[["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(i,r){i&1&&(_t(),Z(0),C(1,Mg,2,1,"div",0)),i&2&&(p(),h("ngIf",r.empty))},dependencies:[ot,wt],styles:[`tui-data-list{--tui-data-list-padding: .25rem;--tui-data-list-margin: .0625rem;display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:calc(var(--tui-data-list-padding) - var(--tui-data-list-margin)) var(--tui-data-list-padding);color:var(--tui-text-tertiary)}tui-data-list:focus-within .t-trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list[data-size=s]{--tui-data-list-margin: 0rem}tui-data-list[data-size=s]>.t-empty,tui-data-list[data-size=s] [tuiOption]{font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}tui-data-list[data-size=s]>.t-empty:before,tui-data-list[data-size=s] [tuiOption]:before{font-size:1rem}tui-data-list[data-size=m]>.t-empty,tui-data-list[data-size=m] [tuiOption]{font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}tui-data-list[data-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list[data-size=l]>.t-empty,tui-data-list[data-size=l] [tuiOption]{font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}tui-data-list>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0}tui-data-list [tuiOption]{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;justify-content:space-between;text-align:left;color:var(--tui-text-primary);border-radius:var(--tui-radius-s);outline:none;cursor:pointer;background-clip:padding-box}tui-data-list [tuiOption]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}tui-data-list [tuiOption]:focus-within,tui-data-list [tuiOption]._with-dropdown{background-color:var(--tui-background-neutral-1)}tui-data-list [tuiOption]:before{margin-inline-end:.5rem}tui-data-list [tuiOption]:after{font-size:1rem;margin:0 -.75rem 0 auto;border-left:.5rem solid;border-right:.5rem solid}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-secondary);flex-direction:column;line-height:1rem}tui-data-list[data-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-size=l] tui-opt-group:after{left:.625rem;right:.625rem}tui-opt-group:empty:before,tui-opt-group:empty:after{display:none}tui-opt-group:before{content:attr(data-label);padding:var(--tui-data-list-padding) .5rem var(--tui-data-list-padding);margin:var(--tui-data-list-margin) 0;white-space:normal;word-break:break-word}tui-opt-group:after{position:absolute;left:.5rem;right:.5rem;top:var(--tui-data-list-padding);height:1px;background:var(--tui-border-normal)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:calc(.75rem + var(--tui-data-list-padding))}tui-opt-group:not(:empty)~tui-opt-group[data-label=""]:before,tui-opt-group:not(:empty)~tui-opt-group:not([data-label]):before{padding:var(--tui-data-list-padding) 0}tui-opt-group:not(:empty)~tui-opt-group:after{content:""}tui-opt-group[data-label=""]:before,tui-opt-group:not([data-label]):before{padding:0;margin:0} -`],encapsulation:2,changeDetection:0});let n=e;return n})();var Ad=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(i,r){i&2&&U("data-label",r.label)},inputs:{label:"label"},standalone:!0});let n=e;return n})();function pr(n,e=0){return Dg(n)?Number(n):e}function Dg(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Fd(n){return n instanceof Et?n.nativeElement:n}var Sg=["*"];function Pg(n,e){if(n&1&&(Ct(0),M(1),yt()),n&2){let o=e.polymorpheusOutlet;p(),V(" ",o," ")}}function Eg(n,e){if(n&1&&(m(0,"div",6),C(1,Pg,2,1,"ng-container",7),f()),n&2){let o=_(2);H("t-text_horizontal",o.isHorizontal),p(),h("polymorpheusOutlet",o.textContent)}}function kg(n,e){if(n&1&&(m(0,"div",2),to(),m(1,"svg",3),T(2,"circle",4),f(),C(3,Eg,2,3,"div",5),f()),n&2){let o=_();H("t-loader_horizontal",o.isHorizontal)("t-loader_inherit-color",o.inheritColor),p(3),h("ngIf",o.hasText)}}var Rg={size:"m",inheritColor:!1,overlay:!1},Ag=K(Rg);var Fa=(()=>{let e=class e{constructor(){this.doc=u(St),this.el=tt(),this.isIOS=u(un),this.options=u(Ag),this.loading=!0,this.isApple=Wu(this.el)||this.isIOS,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay}set showLoader(t){t&&this.focused&&Gu(this.doc),this.loading=t}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!Oo(this.size)}get focused(){return ti(this.el)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-loader"]],hostVars:3,hostBindings:function(i,r){i&2&&(U("data-size",r.size),H("_loading",r.loading))},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},standalone:!0,features:[D],ngContentSelectors:Sg,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","height","100%","width","100%",1,"t-icon"],["cx","50%","cy","50%",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(i,r){i&1&&(_t(),m(0,"fieldset",0),Z(1),f(),C(2,kg,4,5,"div",1)),i&2&&(H("t-content_has-overlay",r.hasOverlay)("t-content_loading",r.loading),h("disabled",r.loading&&!r.isApple),U("inert",r.loading||null),p(2),h("ngIf",r.loading))},dependencies:[ot,wt],styles:["[_nghost-%COMP%]{position:relative;display:flex;min-width:1.5rem;--tui-thickness: calc(var(--t-diameter) / 12)}._loading[_nghost-%COMP%]{overflow:hidden}[data-size=xs][_nghost-%COMP%]{--t-diameter: .75em}[data-size=s][_nghost-%COMP%]{--t-diameter: 1em}[data-size=m][_nghost-%COMP%]{--t-diameter: 1.5em}[data-size=l][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 5em}.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%;min-height:var(--t-diameter);flex-shrink:0;align-self:center;color:var(--tui-text-primary);stroke:var(--tui-background-accent-1);animation:tuiFadeIn var(--tui-duration);font-size:1rem}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:var(--tui-font-text-s);margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}@keyframes _ngcontent-%COMP%_tuiLoaderRotate{0%{transform:rotate(-90deg)}50%{transform:rotate(-90deg) rotate(1turn)}to{transform:rotate(-90deg) rotate(3turn)}}.t-icon[_ngcontent-%COMP%]{display:block;width:var(--t-diameter);height:var(--t-diameter);margin:.25rem calc(var(--t-diameter) / -2);border-radius:100%;overflow:hidden;animation:_ngcontent-%COMP%_tuiLoaderRotate 4s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}@keyframes _ngcontent-%COMP%_tuiLoaderDashOffset{0%{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}50%{stroke-dashoffset:calc(.05 * calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness))))}to{stroke-dashoffset:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)))}}.t-circle[_ngcontent-%COMP%]{r:calc(var(--t-diameter) / 2 - var(--tui-thickness));stroke-dasharray:calc(2 * 3.14159265 * calc(var(--t-diameter) / 2 - var(--tui-thickness)));fill:none;stroke:inherit;stroke-width:max(var(--tui-thickness),1.5px);animation:_ngcontent-%COMP%_tuiLoaderDashOffset 4s linear infinite}"],changeDetection:0});let n=e;return n})();var Fg={size:"m",collapsed:!1,rounded:!0,orientation:"horizontal"},Lg=K(Fg);var Ng=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-group-styles"],standalone:!0,features:[D],decls:0,vars:0,template:function(i,r){},styles:[`.tui-group{position:relative;display:flex;isolation:isolate;--t-radius: var(--tui-radius-m)}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group.tui-group>*:nth-child(n){border-radius:0}.tui-group_radius_large{--t-radius: var(--tui-radius-l)}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>*:not(:last-child){margin:0 -1px 0 0}.tui-group_collapsed>*._readonly,.tui-group_collapsed>*._disabled,.tui-group_collapsed>*._readonly:hover,.tui-group_collapsed>*._disabled:hover{z-index:0}.tui-group_collapsed>*._invalid{z-index:2}.tui-group_collapsed>*._invalid:hover,.tui-group_collapsed>*._invalid._hovered,.tui-group_collapsed>*._invalid._pressed{z-index:4}.tui-group_collapsed>*:hover,.tui-group_collapsed>*._hovered,.tui-group_collapsed>*._pressed{z-index:3}.tui-group_collapsed>*._hosted_dropdown_focused,.tui-group_collapsed>*._focus-visible,.tui-group_collapsed>*._focused.ng-touched,.tui-group_collapsed>*._focused.ng-untouched{z-index:5}.tui-group_collapsed>*._active,.tui-group_collapsed>*[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>*:has([tuiBlock]:checked){z-index:6}.tui-group_collapsed>*._focus-visible._focused,.tui-group_collapsed>*._focus-visible._active,.tui-group_collapsed>*._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>*:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin:0 0 -1px}.tui-group_rounded.tui-group_orientation_horizontal>*:first-child{border-top-left-radius:var(--t-radius);border-bottom-left-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_horizontal>*:last-child{border-top-right-radius:var(--t-radius);border-bottom-right-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:first-child{border-top-left-radius:var(--t-radius);border-top-right-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:last-child{border-bottom-left-radius:var(--t-radius);border-bottom-right-radius:var(--t-radius)}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group .tui-group__inherit-item{border-radius:inherit} -`],encapsulation:2,changeDetection:0});let n=e;return n})(),Yo=(()=>{let e=class e{constructor(){this.options=u(Lg),this.nothing=_e(Ng),this.orientation=this.options.orientation,this.collapsed=this.options.collapsed,this.rounded=this.options.rounded,this.size=this.options.size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["role","group",1,"tui-group"],hostVars:10,hostBindings:function(i,r){i&2&&H("tui-group_orientation_horizontal",r.orientation==="horizontal")("tui-group_orientation_vertical",r.orientation==="vertical")("tui-group_radius_large",r.size==="l")("tui-group_collapsed",r.collapsed)("tui-group_rounded",r.rounded)},inputs:{orientation:"orientation",collapsed:"collapsed",rounded:"rounded",size:"size"},standalone:!0});let n=e;return n})();var Vg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-surface-styles"],standalone:!0,features:[D],decls:0,vars:0,template:function(i,r){},styles:[`[data-surface]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;--tui-gap: .25rem;position:relative;box-sizing:border-box;background:none no-repeat;background-size:cover;overflow:hidden;isolation:isolate;-webkit-appearance:none;appearance:none;border:0;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background,border-radius,box-shadow,transform,-webkit-backdrop-filter,-webkit-mask!important;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform!important;transition-property:backdrop-filter,background,border-radius,box-shadow,mask,transform,-webkit-backdrop-filter,-webkit-mask!important}[data-surface]:focus-visible{outline-color:var(--tui-border-focus)}@supports (not (-moz-appearance: none)) and (not (-webkit-hyphens: none)){[data-surface]:before{mix-blend-mode:multiply}}button[data-surface]{cursor:pointer}[data-surface]:before,[data-surface]:after,[tuiSurfaceLayer]:before,[tuiSurfaceLayer]:after{position:absolute;top:0;left:0;width:100%;height:100%;transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";z-index:-1;border-radius:inherit;pointer-events:none;background-size:cover;background-repeat:no-repeat;transition-property:opacity,transform,-webkit-backdrop-filter;transition-property:opacity,backdrop-filter,transform;transition-property:opacity,backdrop-filter,transform,-webkit-backdrop-filter}[tuiSurfaceLayer]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;position:absolute!important;z-index:-1;object-fit:cover;border-radius:inherit;box-sizing:border-box;transition-property:box-shadow,filter,padding}input[tuiSurfaceLayer]+[tuiSurfaceLayer]{will-change:padding;background-clip:content-box;overflow:clip;overflow-clip-margin:content-box}input[tuiSurfaceLayer]:checked+[tuiSurfaceLayer]{padding:var(--tui-gap)}input[tuiSurfaceLayer]:focus-visible+[tuiSurfaceLayer]{padding:var(--tui-gap)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]+[tuiSurfaceLayer]{padding:var(--tui-gap)}}input[tuiSurfaceLayer]{color:var(--tui-background-accent-2);-webkit-appearance:none;appearance:none;margin:0;border-radius:inherit;outline:none;box-shadow:inset 0 0,inset 0 0 var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:checked{box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:focus-visible{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}input[tuiSurfaceLayer]:checked:focus-visible{filter:brightness(.7);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}@media (hover: hover) and (pointer: fine){[data-surface]:hover input[tuiSurfaceLayer]{box-shadow:inset 0 0,inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}[data-surface]:hover input[tuiSurfaceLayer]:checked{filter:brightness(.9);box-shadow:inset 0 0 0 calc(var(--tui-gap) / 2),inset 0 0 0 calc(var(--tui-gap) / 2) var(--tui-background-neutral-1)}}[tuiSurface][data-surface=elevated]{box-shadow:var(--tui-shadow-small);background-color:var(--tui-background-elevation-1)}button[tuiSurface][data-surface=elevated]:active,a[tuiSurface][data-surface=elevated]:active{box-shadow:var(--tui-shadow-small);transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[tuiSurface][data-surface=elevated]:hover,a[tuiSurface][data-surface=elevated]:hover{box-shadow:var(--tui-shadow-small-hover);transform:translate3d(0,-.25rem,0);background:var(--tui-background-elevation-1)}}[tuiSurface][data-surface=flat]{background-color:var(--tui-background-neutral-1)}button[tuiSurface][data-surface=flat]:active,a[tuiSurface][data-surface=flat]:active{transform:scale(.95)}@media (hover: hover) and (pointer: fine){button[tuiSurface][data-surface=flat]:hover,a[tuiSurface][data-surface=flat]:hover{transform:scale(1.15)}} -`],encapsulation:2,changeDetection:0});let n=e;return n})(),Ld=(()=>{let e=class e{constructor(){this.nothing=_e(Vg),this.tuiSurface=""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiSurface",""]],hostAttrs:["tuiSurface",""],hostVars:1,hostBindings:function(i,r){i&2&&U("data-surface",r.tuiSurface)},inputs:{tuiSurface:"tuiSurface"},standalone:!0});let n=e;return n})();var Qo=(()=>{let e=class e{constructor(){this.destroyRef=u(fe),this.zone=u(ht),this.host=tt(),this.tuiNativeValidator="Invalid"}validate(t){return this.control=t,Ui(0).pipe($e(this.zone),Su(this.destroyRef)).subscribe(()=>this.handleValidation()),null}handleValidation(){var t,i,r,s;(s=(r=this.el).setCustomValidity)==null||s.call(r,(t=this.control)!=null&&t.touched&&((i=this.control)!=null&&i.invalid)?this.tuiNativeValidator:"")}get el(){return this.host.querySelector("input,textarea,select")||this.host}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiNativeValidator",""]],hostBindings:function(i,r){i&1&&x("blur",function(){return r.handleValidation()})},inputs:{tuiNativeValidator:"tuiNativeValidator"},standalone:!0,features:[E([mt(iu,e,!0)])]});let n=e;return n})();var La={appearance:"textfield",size:"l",cleaner:!0},Vd=K({appearance:ae(La.appearance),size:ae(La.size),cleaner:ae(La.cleaner)});var Hg=K("@tui.chevron-down"),zg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-chevron"],standalone:!0,features:[D],decls:0,vars:0,template:function(i,r){},styles:[`[tuiChevron][tuiIcons]:after,tui-icon[tuiChevron]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-block;cursor:pointer}[tuiChevron][tuiIcons]._chevron-rotated:after,tui-icon[tuiChevron]._chevron-rotated:after{transform:rotate(180deg)} -`],encapsulation:2,changeDetection:0});let n=e;return n})(),GM=(()=>{let e=class e{constructor(){this.el=tt(),this.dropdown=u(we,{optional:!0}),this.nothing=_e(zg),this.toggle=Vc(()=>{var t;return this.el.classList.toggle("_chevron-rotated",this.chevron()||this.chevron()===""&&!!((t=this.dropdown)!=null&&t.ref()))}),this.chevron=ae("")}set tuiChevron(t){this.chevron.set(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiChevron",""]],hostAttrs:["tuiChevron",""],inputs:{tuiChevron:"tuiChevron"},standalone:!0,features:[E([mt(Au,Hg)])]});let n=e;return n})();var X="primary",Ir=Symbol("RouteTitle"),Ba=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let o=this.params[e];return Array.isArray(o)?o[0]:o}return null}getAll(e){if(this.has(e)){let o=this.params[e];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}};function wn(n){return new Ba(n)}function Bg(n,e,o){let t=o.path.split("/");if(t.length>n.length||o.pathMatch==="full"&&(e.hasChildren()||t.lengtht[r]===i)}else return n===e}function Kd(n){return n.length>0?n[n.length-1]:null}function vi(n){return Bi(n)?n:Ac(n)?Kt(Promise.resolve(n)):F(n)}var jg={exact:Jd,subset:tp},Xd={exact:$g,subset:Wg,ignored:()=>!0};function Hd(n,e,o){return jg[o.paths](n.root,e.root,o.matrixParams)&&Xd[o.queryParams](n.queryParams,e.queryParams)&&!(o.fragment==="exact"&&n.fragment!==e.fragment)}function $g(n,e){return Ze(n,e)}function Jd(n,e,o){if(!Fi(n.segments,e.segments)||!Ko(n.segments,e.segments,o)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Jd(n.children[t],e.children[t],o))return!1;return!0}function Wg(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(o=>qd(n[o],e[o]))}function tp(n,e,o){return ep(n,e,e.segments,o)}function ep(n,e,o,t){if(n.segments.length>o.length){let i=n.segments.slice(0,o.length);return!(!Fi(i,o)||e.hasChildren()||!Ko(i,o,t))}else if(n.segments.length===o.length){if(!Fi(n.segments,o)||!Ko(n.segments,o,t))return!1;for(let i in e.children)if(!n.children[i]||!tp(n.children[i],e.children[i],t))return!1;return!0}else{let i=o.slice(0,n.segments.length),r=o.slice(n.segments.length);return!Fi(n.segments,i)||!Ko(n.segments,i,t)||!n.children[X]?!1:ep(n.children[X],e,r,t)}}function Ko(n,e,o){return e.every((t,i)=>Xd[o](n[i].parameters,t.parameters))}var oi=class{constructor(e=new vt([],{}),o={},t=null){this.root=e,this.queryParams=o,this.fragment=t}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return Qg.serialize(this)}},vt=class{constructor(e,o){this.segments=e,this.children=o,this.parent=null,Object.values(o).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xo(this)}},Ai=class{constructor(e,o){this.path=e,this.parameters=o}get parameterMap(){return this._parameterMap??(this._parameterMap=wn(this.parameters)),this._parameterMap}toString(){return np(this)}};function Gg(n,e){return Fi(n,e)&&n.every((o,t)=>Ze(o.parameters,e[t].parameters))}function Fi(n,e){return n.length!==e.length?!1:n.every((o,t)=>o.path===e[t].path)}function Yg(n,e){let o=[];return Object.entries(n.children).forEach(([t,i])=>{t===X&&(o=o.concat(e(i,t)))}),Object.entries(n.children).forEach(([t,i])=>{t!==X&&(o=o.concat(e(i,t)))}),o}var Dr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:()=>new Tn,providedIn:"root"});let n=e;return n})(),Tn=class{parse(e){let o=new $a(e);return new oi(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(e){let o=`/${hr(e.root,!0)}`,t=Kg(e.queryParams),i=typeof e.fragment=="string"?`#${Zg(e.fragment)}`:"";return`${o}${t}${i}`}},Qg=new Tn;function Xo(n){return n.segments.map(e=>np(e)).join("/")}function hr(n,e){if(!n.hasChildren())return Xo(n);if(e){let o=n.children[X]?hr(n.children[X],!1):"",t=[];return Object.entries(n.children).forEach(([i,r])=>{i!==X&&t.push(`${i}:${hr(r,!1)}`)}),t.length>0?`${o}(${t.join("//")})`:o}else{let o=Yg(n,(t,i)=>i===X?[hr(n.children[X],!1)]:[`${i}:${hr(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[X]!=null?`${Xo(n)}/${o[0]}`:`${Xo(n)}/(${o.join("//")})`}}function ip(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zo(n){return ip(n).replace(/%3B/gi,";")}function Zg(n){return encodeURI(n)}function ja(n){return ip(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jo(n){return decodeURIComponent(n)}function zd(n){return Jo(n.replace(/\+/g,"%20"))}function np(n){return`${ja(n.path)}${qg(n.parameters)}`}function qg(n){return Object.entries(n).map(([e,o])=>`;${ja(e)}=${ja(o)}`).join("")}function Kg(n){let e=Object.entries(n).map(([o,t])=>Array.isArray(t)?t.map(i=>`${Zo(o)}=${Zo(i)}`).join("&"):`${Zo(o)}=${Zo(t)}`).filter(o=>o);return e.length?`?${e.join("&")}`:""}var Xg=/^[^\/()?;#]+/;function Na(n){let e=n.match(Xg);return e?e[0]:""}var Jg=/^[^\/()?;=#]+/;function tv(n){let e=n.match(Jg);return e?e[0]:""}var ev=/^[^=?&#]+/;function iv(n){let e=n.match(ev);return e?e[0]:""}var nv=/^[^&#]+/;function rv(n){let e=n.match(nv);return e?e[0]:""}var $a=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new vt([],{}):new vt([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(o).length>0)&&(t[X]=new vt(e,o)),t}parseSegment(){let e=Na(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new jt(4009,!1);return this.capture(e),new Ai(Jo(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let o=tv(this.remaining);if(!o)return;this.capture(o);let t="";if(this.consumeOptional("=")){let i=Na(this.remaining);i&&(t=i,this.capture(t))}e[Jo(o)]=Jo(t)}parseQueryParam(e){let o=iv(this.remaining);if(!o)return;this.capture(o);let t="";if(this.consumeOptional("=")){let s=rv(this.remaining);s&&(t=s,this.capture(t))}let i=zd(o),r=zd(t);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(r)}else e[i]=r}parseParens(e){let o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Na(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new jt(4010,!1);let r;t.indexOf(":")>-1?(r=t.slice(0,t.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=X);let s=this.parseChildren();o[r]=Object.keys(s).length===1?s[X]:new vt([],s),this.consumeOptional("//")}return o}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new jt(4011,!1)}};function rp(n){return n.segments.length>0?new vt([],{[X]:n}):n}function op(n){let e={};for(let[t,i]of Object.entries(n.children)){let r=op(i);if(t===X&&r.segments.length===0&&r.hasChildren())for(let[s,a]of Object.entries(r.children))e[s]=a;else(r.segments.length>0||r.hasChildren())&&(e[t]=r)}let o=new vt(n.segments,e);return ov(o)}function ov(n){if(n.numberOfChildren===1&&n.children[X]){let e=n.children[X];return new vt(n.segments.concat(e.segments),e.children)}return n}function Li(n){return n instanceof oi}function sv(n,e,o=null,t=null){let i=sp(n);return ap(i,e,o,t)}function sp(n){let e;function o(r){let s={};for(let l of r.children){let c=o(l);s[l.outlet]=c}let a=new vt(r.url,s);return r===n&&(e=a),a}let t=o(n.root),i=rp(t);return e??i}function ap(n,e,o,t){let i=n;for(;i.parent;)i=i.parent;if(e.length===0)return Va(i,i,i,o,t);let r=av(e);if(r.toRoot())return Va(i,i,new vt([],{}),o,t);let s=lv(r,i,n),a=s.processChildren?gr(s.segmentGroup,s.index,r.commands):cp(s.segmentGroup,s.index,r.commands);return Va(i,s.segmentGroup,a,o,t)}function ts(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Cr(n){return typeof n=="object"&&n!=null&&n.outlets}function Va(n,e,o,t,i){let r={};t&&Object.entries(t).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;n===e?s=o:s=lp(n,e,o);let a=rp(op(s));return new oi(a,r,i)}function lp(n,e,o){let t={};return Object.entries(n.children).forEach(([i,r])=>{r===e?t[i]=o:t[i]=lp(r,e,o)}),new vt(n.segments,t)}var es=class{constructor(e,o,t){if(this.isAbsolute=e,this.numberOfDoubleDots=o,this.commands=t,e&&t.length>0&&ts(t[0]))throw new jt(4003,!1);let i=t.find(Cr);if(i&&i!==Kd(t))throw new jt(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function av(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new es(!0,0,n);let e=0,o=!1,t=n.reduce((i,r,s)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let a={};return Object.entries(r.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(r.segmentPath)return[...i,r.segmentPath]}return typeof r!="string"?[...i,r]:s===0?(r.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?o=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,r]},[]);return new es(o,e,t)}var Cn=class{constructor(e,o,t){this.segmentGroup=e,this.processChildren=o,this.index=t}};function lv(n,e,o){if(n.isAbsolute)return new Cn(e,!0,0);if(!o)return new Cn(e,!1,NaN);if(o.parent===null)return new Cn(o,!0,0);let t=ts(n.commands[0])?0:1,i=o.segments.length-1+t;return cv(o,i,n.numberOfDoubleDots)}function cv(n,e,o){let t=n,i=e,r=o;for(;r>i;){if(r-=i,t=t.parent,!t)throw new jt(4005,!1);i=t.segments.length}return new Cn(t,!1,i-r)}function uv(n){return Cr(n[0])?n[0].outlets:{[X]:n}}function cp(n,e,o){if(n??(n=new vt([],{})),n.segments.length===0&&n.hasChildren())return gr(n,e,o);let t=dv(n,e,o),i=o.slice(t.commandIndex);if(t.match&&t.pathIndexr!==X)&&n.children[X]&&n.numberOfChildren===1&&n.children[X].segments.length===0){let r=gr(n.children[X],e,o);return new vt(n.segments,r.children)}return Object.entries(t).forEach(([r,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[r]=cp(n.children[r],e,s))}),Object.entries(n.children).forEach(([r,s])=>{t[r]===void 0&&(i[r]=s)}),new vt(n.segments,i)}}function dv(n,e,o){let t=0,i=e,r={match:!1,pathIndex:0,commandIndex:0};for(;i=o.length)return r;let s=n.segments[i],a=o[t];if(Cr(a))break;let l=`${a}`,c=t0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Ud(l,c,s))return r;t+=2}else{if(!Ud(l,{},s))return r;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function Wa(n,e,o){let t=n.segments.slice(0,e),i=0;for(;i{typeof t=="string"&&(t=[t]),t!==null&&(e[o]=Wa(new vt([],{}),0,t))}),e}function Bd(n){let e={};return Object.entries(n).forEach(([o,t])=>e[o]=`${t}`),e}function Ud(n,e,o){return n==o.path&&Ze(e,o.parameters)}var vr="imperative",Yt=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(Yt||{}),Se=class{constructor(e,o){this.id=e,this.url=o}},xn=class extends Se{constructor(e,o,t="imperative",i=null){super(e,o),this.type=Yt.NavigationStart,this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Re=class extends Se{constructor(e,o,t){super(e,o),this.urlAfterRedirects=t,this.type=Yt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},xe=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(xe||{}),is=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(is||{}),ri=class extends Se{constructor(e,o,t,i){super(e,o),this.reason=t,this.code=i,this.type=Yt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fi=class extends Se{constructor(e,o,t,i){super(e,o),this.reason=t,this.code=i,this.type=Yt.NavigationSkipped}},yr=class extends Se{constructor(e,o,t,i){super(e,o),this.error=t,this.target=i,this.type=Yt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ns=class extends Se{constructor(e,o,t,i){super(e,o),this.urlAfterRedirects=t,this.state=i,this.type=Yt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ga=class extends Se{constructor(e,o,t,i){super(e,o),this.urlAfterRedirects=t,this.state=i,this.type=Yt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ya=class extends Se{constructor(e,o,t,i,r){super(e,o),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=r,this.type=Yt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Qa=class extends Se{constructor(e,o,t,i){super(e,o),this.urlAfterRedirects=t,this.state=i,this.type=Yt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Za=class extends Se{constructor(e,o,t,i){super(e,o),this.urlAfterRedirects=t,this.state=i,this.type=Yt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qa=class{constructor(e){this.route=e,this.type=Yt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ka=class{constructor(e){this.route=e,this.type=Yt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Xa=class{constructor(e){this.snapshot=e,this.type=Yt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ja=class{constructor(e){this.snapshot=e,this.type=Yt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tl=class{constructor(e){this.snapshot=e,this.type=Yt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},el=class{constructor(e){this.snapshot=e,this.type=Yt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rs=class{constructor(e,o,t){this.routerEvent=e,this.position=o,this.anchor=t,this.type=Yt.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},br=class{},Mn=class{constructor(e,o){this.url=e,this.navigationBehaviorOptions=o}};function hv(n,e){return n.providers&&!n._injector&&(n._injector=Qs(n.providers,e,`Route: ${n.path}`)),n._injector??e}function ke(n){return n.outlet||X}function mv(n,e){let o=n.filter(t=>ke(t)===e);return o.push(...n.filter(t=>ke(t)!==e)),o}function Sr(n){var e;if(!n)return null;if((e=n.routeConfig)!=null&&e._injector)return n.routeConfig._injector;for(let o=n.parent;o;o=o.parent){let t=o.routeConfig;if(t!=null&&t._loadedInjector)return t._loadedInjector;if(t!=null&&t._injector)return t._injector}return null}var il=class{get injector(){var e;return Sr((e=this.route)==null?void 0:e.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new Pr(this.rootInjector),this.attachRef=null}},Pr=(()=>{let e=class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,i){let r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){let i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new il(this.rootInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(i){return new(i||e)(et(Qn))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),os=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let o=this.pathFromRoot(e);return o.length>1?o[o.length-2]:null}children(e){let o=nl(e,this._root);return o?o.children.map(t=>t.value):[]}firstChild(e){let o=nl(e,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(e){let o=rl(e,this._root);return o.length<2?[]:o[o.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return rl(e,this._root).map(o=>o.value)}};function nl(n,e){if(n===e.value)return e;for(let o of e.children){let t=nl(n,o);if(t)return t}return null}function rl(n,e){if(n===e.value)return[e];for(let o of e.children){let t=rl(n,o);if(t.length)return t.unshift(e),t}return[]}var Te=class{constructor(e,o){this.value=e,this.children=o}toString(){return`TreeNode(${this.value})`}};function _n(n){let e={};return n&&n.children.forEach(o=>e[o.value.outlet]=o),e}var ss=class extends os{constructor(e,o){super(e),this.snapshot=o,hl(this,e)}toString(){return this.snapshot.toString()}};function up(n){let e=fv(n),o=new Qt([new Ai("",{})]),t=new Qt({}),i=new Qt({}),r=new Qt({}),s=new Qt(""),a=new gi(o,t,r,s,i,X,n,e.root);return a.snapshot=e.root,new ss(new Te(a,[]),e)}function fv(n){let e={},o={},t={},i="",r=new yn([],e,t,i,o,X,n,null,{});return new ls("",new Te(r,[]))}var gi=class{constructor(e,o,t,i,r,s,a,l){var c;this.urlSubject=e,this.paramsSubject=o,this.queryParamsSubject=t,this.fragmentSubject=i,this.dataSubject=r,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=((c=this.dataSubject)==null?void 0:c.pipe(A(d=>d[Ir])))??F(void 0),this.url=e,this.params=o,this.queryParams=t,this.fragment=i,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??(this._paramMap=this.params.pipe(A(e=>wn(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=this.queryParams.pipe(A(e=>wn(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function as(n,e,o="emptyOnly"){var r;let t,{routeConfig:i}=n;return e!==null&&(o==="always"||(i==null?void 0:i.path)===""||!e.component&&!((r=e.routeConfig)!=null&&r.loadComponent))?t={params:N(N({},e.params),n.params),data:N(N({},e.data),n.data),resolve:N(N(N(N({},n.data),e.data),i==null?void 0:i.data),n._resolvedData)}:t={params:N({},n.params),data:N({},n.data),resolve:N(N({},n.data),n._resolvedData??{})},i&&pp(i)&&(t.resolve[Ir]=i.title),t}var yn=class{get title(){var e;return(e=this.data)==null?void 0:e[Ir]}constructor(e,o,t,i,r,s,a,l,c){this.url=e,this.params=o,this.queryParams=t,this.fragment=i,this.data=r,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??(this._paramMap=wn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),o=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${o}')`}},ls=class extends os{constructor(e,o){super(o),this.url=e,hl(this,o)}toString(){return dp(this._root)}};function hl(n,e){e.value._routerState=n,e.children.forEach(o=>hl(n,o))}function dp(n){let e=n.children.length>0?` { ${n.children.map(dp).join(", ")} } `:"";return`${n.value}${e}`}function Ha(n){if(n.snapshot){let e=n.snapshot,o=n._futureSnapshot;n.snapshot=o,Ze(e.queryParams,o.queryParams)||n.queryParamsSubject.next(o.queryParams),e.fragment!==o.fragment&&n.fragmentSubject.next(o.fragment),Ze(e.params,o.params)||n.paramsSubject.next(o.params),Ug(e.url,o.url)||n.urlSubject.next(o.url),Ze(e.data,o.data)||n.dataSubject.next(o.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function ol(n,e){let o=Ze(n.params,e.params)&&Gg(n.url,e.url),t=!n.parent!=!e.parent;return o&&!t&&(!n.parent||ol(n.parent,e.parent))}function pp(n){return typeof n.title=="string"||n.title===null}var gv=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=X,this.activateEvents=new rt,this.deactivateEvents=new rt,this.attachEvents=new rt,this.detachEvents=new rt,this.parentContexts=u(Pr),this.location=u(Ii),this.changeDetector=u(At),this.inputBinder=u(ps,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:i,previousValue:r}=t.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){var t;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(t=this.inputBinder)==null||t.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){var i;return((i=this.parentContexts.getContext(t))==null?void 0:i.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t!=null&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new jt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new jt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new jt(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){var r;this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),(r=this.inputBinder)==null||r.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){var d;if(this.isActivated)throw new jt(4013,!1);this._activatedRoute=t;let r=this.location,a=t.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new sl(t,l,r.injector);this.activated=r.createComponent(a,{index:r.length,injector:c,environmentInjector:i}),this.changeDetector.markForCheck(),(d=this.inputBinder)==null||d.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Xt]});let n=e;return n})(),sl=class n{__ngOutletInjector(e){return new n(this.route,this.childContexts,e)}constructor(e,o,t){this.route=e,this.childContexts=o,this.parent=t}get(e,o){return e===gi?this.route:e===Pr?this.childContexts:this.parent.get(e,o)}},ps=new z(""),jd=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){var i;(i=this.outletDataSubscriptions.get(t))==null||i.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:i}=t,r=ze([i.queryParams,i.params,i.data]).pipe(Ft(([s,a,l],c)=>(l=N(N(N({},s),a),l),c===0?F(l):Promise.resolve(l)))).subscribe(s=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(t);return}let a=Hc(i.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:l}of a.inputs)t.activatedComponentRef.setInput(l,s[l])});this.outletDataSubscriptions.set(t,r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})();function vv(n,e,o){let t=wr(n,e._root,o?o._root:void 0);return new ss(t,e)}function wr(n,e,o){if(o&&n.shouldReuseRoute(e.value,o.value.snapshot)){let t=o.value;t._futureSnapshot=e.value;let i=_v(n,e,o);return new Te(t,i)}else{if(n.shouldAttach(e.value)){let r=n.retrieve(e.value);if(r!==null){let s=r.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>wr(n,a)),s}}let t=Cv(e.value),i=e.children.map(r=>wr(n,r));return new Te(t,i)}}function _v(n,e,o){return e.children.map(t=>{for(let i of o.children)if(n.shouldReuseRoute(t.value,i.value.snapshot))return wr(n,t,i);return wr(n,t)})}function Cv(n){return new gi(new Qt(n.url),new Qt(n.params),new Qt(n.queryParams),new Qt(n.fragment),new Qt(n.data),n.outlet,n.component,n)}var Tr=class{constructor(e,o){this.redirectTo=e,this.navigationBehaviorOptions=o}},hp="ngNavigationCancelingError";function cs(n,e){let{redirectTo:o,navigationBehaviorOptions:t}=Li(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=mp(!1,xe.Redirect);return i.url=o,i.navigationBehaviorOptions=t,i}function mp(n,e){let o=new Error(`NavigationCancelingError: ${n||""}`);return o[hp]=!0,o.cancellationCode=e,o}function yv(n){return fp(n)&&Li(n.url)}function fp(n){return!!n&&n[hp]}var bv=(n,e,o,t)=>A(i=>(new al(e,i.targetRouterState,i.currentRouterState,o,t).activate(n),i)),al=class{constructor(e,o,t,i,r){this.routeReuseStrategy=e,this.futureState=o,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=r}activate(e){let o=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,t,e),Ha(this.futureState.root),this.activateChildRoutes(o,t,e)}deactivateChildRoutes(e,o,t){let i=_n(o);e.children.forEach(r=>{let s=r.value.outlet;this.deactivateRoutes(r,i[s],t),delete i[s]}),Object.values(i).forEach(r=>{this.deactivateRouteAndItsChildren(r,t)})}deactivateRoutes(e,o,t){let i=e.value,r=o?o.value:null;if(i===r)if(i.component){let s=t.getContext(i.outlet);s&&this.deactivateChildRoutes(e,o,s.children)}else this.deactivateChildRoutes(e,o,t);else r&&this.deactivateRouteAndItsChildren(o,t)}deactivateRouteAndItsChildren(e,o){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,o):this.deactivateRouteAndOutlet(e,o)}detachAndStoreRouteSubtree(e,o){let t=o.getContext(e.value.outlet),i=t&&e.value.component?t.children:o,r=_n(e);for(let s of Object.values(r))this.deactivateRouteAndItsChildren(s,i);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,o){let t=o.getContext(e.value.outlet),i=t&&e.value.component?t.children:o,r=_n(e);for(let s of Object.values(r))this.deactivateRouteAndItsChildren(s,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,o,t){let i=_n(o);e.children.forEach(r=>{this.activateRoutes(r,i[r.value.outlet],t),this.forwardEvent(new el(r.value.snapshot))}),e.children.length&&this.forwardEvent(new Ja(e.value.snapshot))}activateRoutes(e,o,t){let i=e.value,r=o?o.value:null;if(Ha(i),i===r)if(i.component){let s=t.getOrCreateContext(i.outlet);this.activateChildRoutes(e,o,s.children)}else this.activateChildRoutes(e,o,t);else if(i.component){let s=t.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),Ha(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,t)}},us=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},bn=class{constructor(e,o){this.component=e,this.route=o}};function wv(n,e,o){let t=n._root,i=e?e._root:null;return mr(t,i,o,[t.value])}function Tv(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function In(n,e){let o=Symbol(),t=e.get(n,o);return t===o?typeof n=="function"&&!yc(n)?n:e.get(n):t}function mr(n,e,o,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=_n(e);return n.children.forEach(s=>{xv(s,r[s.value.outlet],o,t.concat([s.value]),i),delete r[s.value.outlet]}),Object.entries(r).forEach(([s,a])=>_r(a,o.getContext(s),i)),i}function xv(n,e,o,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,s=e?e.value:null,a=o?o.getContext(n.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){let l=Mv(s,r,r.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new us(t)):(r.data=s.data,r._resolvedData=s._resolvedData),r.component?mr(n,e,a?a.children:null,t,i):mr(n,e,o,t,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new bn(a.outlet.component,s))}else s&&_r(e,a,i),i.canActivateChecks.push(new us(t)),r.component?mr(n,null,a?a.children:null,t,i):mr(n,null,o,t,i);return i}function Mv(n,e,o){if(typeof o=="function")return o(n,e);switch(o){case"pathParamsChange":return!Fi(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Fi(n.url,e.url)||!Ze(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ol(n,e)||!Ze(n.queryParams,e.queryParams);case"paramsChange":default:return!ol(n,e)}}function _r(n,e,o){let t=_n(n),i=n.value;Object.entries(t).forEach(([r,s])=>{i.component?e?_r(s,e.children.getContext(r),o):_r(s,null,o):_r(s,e,o)}),i.component?e&&e.outlet&&e.outlet.isActivated?o.canDeactivateChecks.push(new bn(e.outlet.component,i)):o.canDeactivateChecks.push(new bn(null,i)):o.canDeactivateChecks.push(new bn(null,i))}function Er(n){return typeof n=="function"}function Ov(n){return typeof n=="boolean"}function Iv(n){return n&&Er(n.canLoad)}function Dv(n){return n&&Er(n.canActivate)}function Sv(n){return n&&Er(n.canActivateChild)}function Pv(n){return n&&Er(n.canDeactivate)}function Ev(n){return n&&Er(n.canMatch)}function gp(n){return n instanceof pc||(n==null?void 0:n.name)==="EmptyError"}var qo=Symbol("INITIAL_VALUE");function On(){return Ft(n=>ze(n.map(e=>e.pipe(li(1),Bt(qo)))).pipe(A(e=>{for(let o of e)if(o!==!0){if(o===qo)return qo;if(o===!1||kv(o))return o}return!0}),xt(e=>e!==qo),li(1)))}function kv(n){return Li(n)||n instanceof Tr}function Rv(n,e){return he(o=>{let{targetSnapshot:t,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:s}}=o;return s.length===0&&r.length===0?F(Ut(N({},o),{guardsResult:!0})):Av(s,t,i,n).pipe(he(a=>a&&Ov(a)?Fv(t,r,n,e):F(a)),A(a=>Ut(N({},o),{guardsResult:a})))})}function Av(n,e,o,t){return Kt(n).pipe(he(i=>zv(i.component,i.route,o,e,t)),ci(i=>i!==!0,!0))}function Fv(n,e,o,t){return Kt(e).pipe($i(i=>hc(Nv(i.route.parent,t),Lv(i.route,t),Hv(n,i.path,o),Vv(n,i.route,o))),ci(i=>i!==!0,!0))}function Lv(n,e){return n!==null&&e&&e(new tl(n)),F(!0)}function Nv(n,e){return n!==null&&e&&e(new Xa(n)),F(!0)}function Vv(n,e,o){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return F(!0);let i=t.map(r=>Vs(()=>{let s=Sr(e)??o,a=In(r,s),l=Dv(a)?a.canActivate(e,n):Be(s,()=>a(e,n));return vi(l).pipe(ci())}));return F(i).pipe(On())}function Hv(n,e,o){let t=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(s=>Tv(s)).filter(s=>s!==null).map(s=>Vs(()=>{let a=s.guards.map(l=>{let c=Sr(s.node)??o,d=In(l,c),g=Sv(d)?d.canActivateChild(t,n):Be(c,()=>d(t,n));return vi(g).pipe(ci())});return F(a).pipe(On())}));return F(r).pipe(On())}function zv(n,e,o,t,i){let r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||r.length===0)return F(!0);let s=r.map(a=>{let l=Sr(e)??i,c=In(a,l),d=Pv(c)?c.canDeactivate(n,e,o,t):Be(l,()=>c(n,e,o,t));return vi(d).pipe(ci())});return F(s).pipe(On())}function Bv(n,e,o,t){let i=e.canLoad;if(i===void 0||i.length===0)return F(!0);let r=i.map(s=>{let a=In(s,n),l=Iv(a)?a.canLoad(e,o):Be(n,()=>a(e,o));return vi(l)});return F(r).pipe(On(),vp(t))}function vp(n){return cc(Lt(e=>{if(typeof e!="boolean")throw cs(n,e)}),A(e=>e===!0))}function Uv(n,e,o,t){let i=e.canMatch;if(!i||i.length===0)return F(!0);let r=i.map(s=>{let a=In(s,n),l=Ev(a)?a.canMatch(e,o):Be(n,()=>a(e,o));return vi(l)});return F(r).pipe(On(),vp(t))}var xr=class{constructor(e){this.segmentGroup=e||null}},Mr=class extends Error{constructor(e){super(),this.urlTree=e}};function vn(n){return $n(new xr(n))}function jv(n){return $n(new jt(4e3,!1))}function $v(n){return $n(mp(!1,xe.GuardRejected))}var ll=class{constructor(e,o){this.urlSerializer=e,this.urlTree=o}lineralizeSegments(e,o){let t=[],i=o.root;for(;;){if(t=t.concat(i.segments),i.numberOfChildren===0)return F(t);if(i.numberOfChildren>1||!i.children[X])return jv(`${e.redirectTo}`);i=i.children[X]}}applyRedirectCommands(e,o,t,i,r){if(typeof o!="string"){let a=o,{queryParams:l,fragment:c,routeConfig:d,url:g,outlet:v,params:y,data:S,title:W}=i,Q=Be(r,()=>a({params:y,data:S,queryParams:l,fragment:c,routeConfig:d,url:g,outlet:v,title:W}));if(Q instanceof oi)throw new Mr(Q);o=Q}let s=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),e,t);if(o[0]==="/")throw new Mr(s);return s}applyRedirectCreateUrlTree(e,o,t,i){let r=this.createSegmentGroup(e,o.root,t,i);return new oi(r,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(e,o){let t={};return Object.entries(e).forEach(([i,r])=>{if(typeof r=="string"&&r[0]===":"){let a=r.substring(1);t[i]=o[a]}else t[i]=r}),t}createSegmentGroup(e,o,t,i){let r=this.createSegments(e,o.segments,t,i),s={};return Object.entries(o.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,t,i)}),new vt(r,s)}createSegments(e,o,t,i){return o.map(r=>r.path[0]===":"?this.findPosParam(e,r,i):this.findOrReturn(r,t))}findPosParam(e,o,t){let i=t[o.path.substring(1)];if(!i)throw new jt(4001,!1);return i}findOrReturn(e,o){let t=0;for(let i of o){if(i.path===e.path)return o.splice(t),i;t++}return e}},cl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Wv(n,e,o,t,i){let r=ml(n,e,o);return r.matched?(t=hv(e,t),Uv(t,e,o,i).pipe(A(s=>s===!0?r:N({},cl)))):F(r)}function ml(n,e,o){if(e.path==="**")return Gv(o);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||o.length>0)?N({},cl):{matched:!0,consumedSegments:[],remainingSegments:o,parameters:{},positionalParamSegments:{}};let i=(e.matcher||Bg)(o,n,e);if(!i)return N({},cl);let r={};Object.entries(i.posParams??{}).forEach(([a,l])=>{r[a]=l.path});let s=i.consumed.length>0?N(N({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,remainingSegments:o.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Gv(n){return{matched:!0,parameters:n.length>0?Kd(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function $d(n,e,o,t){return o.length>0&&Zv(n,o,t)?{segmentGroup:new vt(e,Qv(t,new vt(o,n.children))),slicedSegments:[]}:o.length===0&&qv(n,o,t)?{segmentGroup:new vt(n.segments,Yv(n,o,t,n.children)),slicedSegments:o}:{segmentGroup:new vt(n.segments,n.children),slicedSegments:o}}function Yv(n,e,o,t){let i={};for(let r of o)if(hs(n,e,r)&&!t[ke(r)]){let s=new vt([],{});i[ke(r)]=s}return N(N({},t),i)}function Qv(n,e){let o={};o[X]=e;for(let t of n)if(t.path===""&&ke(t)!==X){let i=new vt([],{});o[ke(t)]=i}return o}function Zv(n,e,o){return o.some(t=>hs(n,e,t)&&ke(t)!==X)}function qv(n,e,o){return o.some(t=>hs(n,e,t))}function hs(n,e,o){return(n.hasChildren()||e.length>0)&&o.pathMatch==="full"?!1:o.path===""}function Kv(n,e,o,t){return ke(n)!==t&&(t===X||!hs(e,o,n))?!1:ml(e,n,o).matched}function Xv(n,e,o){return e.length===0&&!n.children[o]}var ul=class{};function Jv(n,e,o,t,i,r,s="emptyOnly"){return new dl(n,e,o,t,i,s,r).recognize()}var t0=31,dl=class{constructor(e,o,t,i,r,s,a){this.injector=e,this.configLoader=o,this.rootComponentType=t,this.config=i,this.urlTree=r,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ll(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new jt(4002,`'${e.segmentGroup}'`)}recognize(){let e=$d(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(A(({children:o,rootSnapshot:t})=>{let i=new Te(t,o),r=new ls("",i),s=sv(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(s),{state:r,tree:s}}))}match(e){let o=new yn([],Object.freeze({}),Object.freeze(N({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),X,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,X,o).pipe(A(t=>({children:t,rootSnapshot:o})),ji(t=>{if(t instanceof Mr)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof xr?this.noMatchError(t):t}))}processSegmentGroup(e,o,t,i,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,o,t,r):this.processSegment(e,o,t,t.segments,i,!0,r).pipe(A(s=>s instanceof Te?[s]:[]))}processChildren(e,o,t,i){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return Kt(r).pipe($i(s=>{let a=t.children[s],l=mv(o,s);return this.processSegmentGroup(e,l,a,s,i)}),Cc((s,a)=>(s.push(...a),s)),Hs(null),vc(),he(s=>{if(s===null)return vn(t);let a=_p(s);return e0(a),F(a)}))}processSegment(e,o,t,i,r,s,a){return Kt(o).pipe($i(l=>this.processSegmentAgainstRoute(l._injector??e,o,l,t,i,r,s,a).pipe(ji(c=>{if(c instanceof xr)return F(null);throw c}))),ci(l=>!!l),ji(l=>{if(gp(l))return Xv(t,i,r)?F(new ul):vn(t);throw l}))}processSegmentAgainstRoute(e,o,t,i,r,s,a,l){return Kv(t,i,r,s)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,t,r,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,o,t,r,s,l):vn(i):vn(i)}expandSegmentAgainstRouteUsingRedirect(e,o,t,i,r,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:g,remainingSegments:v}=ml(o,i,r);if(!l)return vn(o);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>t0&&(this.allowRedirects=!1));let y=new yn(r,c,Object.freeze(N({},this.urlTree.queryParams)),this.urlTree.fragment,Wd(i),ke(i),i.component??i._loadedComponent??null,i,Gd(i)),S=as(y,a,this.paramsInheritanceStrategy);y.params=Object.freeze(S.params),y.data=Object.freeze(S.data);let W=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,g,y,e);return this.applyRedirects.lineralizeSegments(i,W).pipe(he(Q=>this.processSegment(e,t,o,Q.concat(v),s,!1,a)))}matchSegmentAgainstRoute(e,o,t,i,r,s){let a=Wv(o,t,i,e,this.urlSerializer);return t.path==="**"&&(o.children={}),a.pipe(Ft(l=>l.matched?(e=t._injector??e,this.getChildConfig(e,t,i).pipe(Ft(({routes:c})=>{let d=t._loadedInjector??e,{parameters:g,consumedSegments:v,remainingSegments:y}=l,S=new yn(v,g,Object.freeze(N({},this.urlTree.queryParams)),this.urlTree.fragment,Wd(t),ke(t),t.component??t._loadedComponent??null,t,Gd(t)),W=as(S,s,this.paramsInheritanceStrategy);S.params=Object.freeze(W.params),S.data=Object.freeze(W.data);let{segmentGroup:Q,slicedSegments:Tt}=$d(o,v,y,c);if(Tt.length===0&&Q.hasChildren())return this.processChildren(d,c,Q,S).pipe(A(Rt=>new Te(S,Rt)));if(c.length===0&&Tt.length===0)return F(new Te(S,[]));let It=ke(t)===r;return this.processSegment(d,c,Q,Tt,It?X:r,!0,S).pipe(A(Rt=>new Te(S,Rt instanceof Te?[Rt]:[])))}))):vn(o)))}getChildConfig(e,o,t){return o.children?F({routes:o.children,injector:e}):o.loadChildren?o._loadedRoutes!==void 0?F({routes:o._loadedRoutes,injector:o._loadedInjector}):Bv(e,o,t,this.urlSerializer).pipe(he(i=>i?this.configLoader.loadChildren(e,o).pipe(Lt(r=>{o._loadedRoutes=r.routes,o._loadedInjector=r.injector})):$v(o))):F({routes:[],injector:e})}};function e0(n){n.sort((e,o)=>e.value.outlet===X?-1:o.value.outlet===X?1:e.value.outlet.localeCompare(o.value.outlet))}function i0(n){let e=n.value.routeConfig;return e&&e.path===""}function _p(n){let e=[],o=new Set;for(let t of n){if(!i0(t)){e.push(t);continue}let i=e.find(r=>t.value.routeConfig===r.value.routeConfig);i!==void 0?(i.children.push(...t.children),o.add(i)):e.push(t)}for(let t of o){let i=_p(t.children);e.push(new Te(t.value,i))}return e.filter(t=>!o.has(t))}function Wd(n){return n.data||{}}function Gd(n){return n.resolve||{}}function n0(n,e,o,t,i,r){return he(s=>Jv(n,e,o,t,s.extractedUrl,i,r).pipe(A(({state:a,tree:l})=>Ut(N({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function r0(n,e){return he(o=>{let{targetSnapshot:t,guards:{canActivateChecks:i}}=o;if(!i.length)return F(o);let r=new Set(i.map(l=>l.route)),s=new Set;for(let l of r)if(!s.has(l))for(let c of Cp(l))s.add(c);let a=0;return Kt(s).pipe($i(l=>r.has(l)?o0(l,t,n,e):(l.data=as(l,l.parent,n).resolve,F(void 0))),Lt(()=>a++),zs(1),he(l=>a===s.size?F(o):qt))})}function Cp(n){let e=n.children.map(o=>Cp(o)).flat();return[n,...e]}function o0(n,e,o,t){let i=n.routeConfig,r=n._resolve;return(i==null?void 0:i.title)!==void 0&&!pp(i)&&(r[Ir]=i.title),s0(r,n,e,t).pipe(A(s=>(n._resolvedData=s,n.data=as(n,n.parent,o).resolve,null)))}function s0(n,e,o,t){let i=Ua(n);if(i.length===0)return F({});let r={};return Kt(i).pipe(he(s=>a0(n[s],e,o,t).pipe(ci(),Lt(a=>{if(a instanceof Tr)throw cs(new Tn,a);r[s]=a}))),zs(1),gc(r),ji(s=>gp(s)?qt:$n(s)))}function a0(n,e,o,t){let i=Sr(e)??t,r=In(n,i),s=r.resolve?r.resolve(e,o):Be(i,()=>r(e,o));return vi(s)}function za(n){return Ft(e=>{let o=n(e);return o?Kt(o).pipe(A(()=>e)):F(e)})}var yp=(()=>{let e=class e{buildTitle(t){let i,r=t.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(s=>s.outlet===X);return i}getResolvedTitleForRoute(t){return t.data[Ir]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:()=>u(l0),providedIn:"root"});let n=e;return n})(),l0=(()=>{let e=class e extends yp{constructor(t){super(),this.title=t}updateTitle(t){let i=this.buildTitle(t);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(et(Id))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),kr=new z("",{providedIn:"root",factory:()=>({})}),c0=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["ng-component"]],standalone:!0,features:[D],decls:1,vars:0,template:function(i,r){i&1&&T(0,"router-outlet")},dependencies:[gv],encapsulation:2});let n=e;return n})();function fl(n){let e=n.children&&n.children.map(fl),o=e?Ut(N({},n),{children:e}):N({},n);return!o.component&&!o.loadComponent&&(e||o.loadChildren)&&o.outlet&&o.outlet!==X&&(o.component=c0),o}var Or=new z(""),gl=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=u(oo)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return F(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let i=vi(t.loadComponent()).pipe(A(bp),Lt(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),qr(()=>{this.componentLoaders.delete(t)})),r=new jn(i,()=>new pt).pipe(Ns());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return F({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=u0(i,this.compiler,t,this.onLoadEndListener).pipe(qr(()=>{this.childrenLoaders.delete(i)})),a=new jn(s,()=>new pt).pipe(Ns());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function u0(n,e,o,t){return vi(n.loadChildren()).pipe(A(bp),he(i=>i instanceof Pc||Array.isArray(i)?F(i):Kt(e.compileModuleAsync(i))),A(i=>{t&&t(n);let r,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(r=i.create(o).injector,s=r.get(Or,[],{optional:!0,self:!0}).flat()),{routes:s.map(fl),injector:r}}))}function d0(n){return n&&typeof n=="object"&&"default"in n}function bp(n){return d0(n)?n.default:n}var vl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:()=>u(p0),providedIn:"root"});let n=e;return n})(),p0=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),wp=new z(""),Tp=new z("");function h0(n,e,o){let t=n.get(Tp),i=n.get(St);return n.get(ht).runOutsideAngular(()=>{if(!i.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(c=>setTimeout(c));let r,s=new Promise(c=>{r=c}),a=i.startViewTransition(()=>(r(),m0(n))),{onViewTransitionCreated:l}=t;return l&&Be(n,()=>l({transition:a,from:e,to:o})),s})}function m0(n){return new Promise(e=>{Gi({read:()=>setTimeout(e)},{injector:n})})}var f0=new z(""),_l=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new pt,this.transitionAbortSubject=new pt,this.configLoader=u(gl),this.environmentInjector=u(Qn),this.urlSerializer=u(Dr),this.rootContexts=u(Pr),this.location=u(ir),this.inputBindingEnabled=u(ps,{optional:!0})!==null,this.titleStrategy=u(yp),this.options=u(kr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=u(vl),this.createViewTransition=u(wp,{optional:!0}),this.navigationErrorHandler=u(f0,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>F(void 0),this.rootComponentType=null;let t=r=>this.events.next(new qa(r)),i=r=>this.events.next(new Ka(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=t}complete(){var t;(t=this.transitions)==null||t.complete()}handleNavigationRequest(t){var r;let i=++this.navigationId;(r=this.transitions)==null||r.next(Ut(N(N({},this.transitions.value),t),{id:i}))}setupNavigations(t,i,r){return this.transitions=new Qt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:vr,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(xt(s=>s.id!==0),A(s=>Ut(N({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ft(s=>{let a=!1,l=!1;return F(s).pipe(Ft(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",xe.SupersededByNewNavigation),qt;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?Ut(N({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),g=c.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!d&&g!=="reload"){let v="";return this.events.next(new fi(c.id,this.urlSerializer.serialize(c.rawUrl),v,is.IgnoredSameUrlNavigation)),c.resolve(!1),qt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return F(c).pipe(Ft(v=>{var S,W;let y=(S=this.transitions)==null?void 0:S.getValue();return this.events.next(new xn(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),y!==((W=this.transitions)==null?void 0:W.getValue())?qt:Promise.resolve(v)}),n0(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),Lt(v=>{s.targetSnapshot=v.targetSnapshot,s.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=Ut(N({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let y=new ns(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(y)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:v,extractedUrl:y,source:S,restoredState:W,extras:Q}=c,Tt=new xn(v,this.urlSerializer.serialize(y),S,W);this.events.next(Tt);let It=up(this.rootComponentType).snapshot;return this.currentTransition=s=Ut(N({},c),{targetSnapshot:It,urlAfterRedirects:y,extras:Ut(N({},Q),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,F(s)}else{let v="";return this.events.next(new fi(c.id,this.urlSerializer.serialize(c.extractedUrl),v,is.IgnoredByUrlHandlingStrategy)),c.resolve(!1),qt}}),Lt(c=>{let d=new Ga(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),A(c=>(this.currentTransition=s=Ut(N({},c),{guards:wv(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),Rv(this.environmentInjector,c=>this.events.next(c)),Lt(c=>{if(s.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw cs(this.urlSerializer,c.guardsResult);let d=new Ya(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(d)}),xt(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",xe.GuardRejected),!1)),za(c=>{if(c.guards.canActivateChecks.length)return F(c).pipe(Lt(d=>{let g=new Qa(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(g)}),Ft(d=>{let g=!1;return F(d).pipe(r0(this.paramsInheritanceStrategy,this.environmentInjector),Lt({next:()=>g=!0,complete:()=>{g||this.cancelNavigationTransition(d,"",xe.NoDataFromResolver)}}))}),Lt(d=>{let g=new Za(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(g)}))}),za(c=>{let d=g=>{var y;let v=[];(y=g.routeConfig)!=null&&y.loadComponent&&!g.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(g.routeConfig).pipe(Lt(S=>{g.component=S}),A(()=>{})));for(let S of g.children)v.push(...d(S));return v};return ze(d(c.targetSnapshot.root)).pipe(Hs(null),li(1))}),za(()=>this.afterPreactivation()),Ft(()=>{var v;let{currentSnapshot:c,targetSnapshot:d}=s,g=(v=this.createViewTransition)==null?void 0:v.call(this,this.environmentInjector,c.root,d.root);return g?Kt(g).pipe(A(()=>s)):F(s)}),A(c=>{let d=vv(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=Ut(N({},c),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,s}),Lt(()=>{this.events.next(new br)}),bv(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),li(1),Lt({next:c=>{var d;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Re(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),(d=this.titleStrategy)==null||d.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Xe(this.transitionAbortSubject.pipe(Lt(c=>{throw c}))),qr(()=>{var c;!a&&!l&&this.cancelNavigationTransition(s,"",xe.SupersededByNewNavigation),((c=this.currentTransition)==null?void 0:c.id)===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ji(c=>{if(l=!0,fp(c))this.events.next(new ri(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),yv(c)?this.events.next(new Mn(c.url,c.navigationBehaviorOptions)):s.resolve(!1);else{let d=new yr(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0);try{let g=Be(this.environmentInjector,()=>{var v;return(v=this.navigationErrorHandler)==null?void 0:v.call(this,d)});if(g instanceof Tr){let{message:v,cancellationCode:y}=cs(this.urlSerializer,g);this.events.next(new ri(s.id,this.urlSerializer.serialize(s.extractedUrl),v,y)),this.events.next(new Mn(g.redirectTo,g.navigationBehaviorOptions))}else{this.events.next(d);let v=t.errorHandler(c);s.resolve(!!v)}}catch(g){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(g)}}return qt}))}))}cancelNavigationTransition(t,i,r){let s=new ri(t.id,this.urlSerializer.serialize(t.extractedUrl),i,r);this.events.next(s),t.resolve(!1)}isUpdatingInternalState(){var t,i;return((t=this.currentTransition)==null?void 0:t.extractedUrl.toString())!==((i=this.currentTransition)==null?void 0:i.currentUrlTree.toString())}isUpdatedBrowserUrl(){var r,s,a;let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=((r=this.currentNavigation)==null?void 0:r.targetBrowserUrl)??((s=this.currentNavigation)==null?void 0:s.extractedUrl);return t.toString()!==(i==null?void 0:i.toString())&&!((a=this.currentNavigation)!=null&&a.extras.skipLocationChange)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function g0(n){return n!==vr}var v0=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:()=>u(_0),providedIn:"root"});let n=e;return n})(),pl=class{shouldDetach(e){return!1}store(e,o){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,o){return e.routeConfig===o.routeConfig}},_0=(()=>{let e=class e extends pl{};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),xp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:()=>u(C0),providedIn:"root"});let n=e;return n})(),C0=(()=>{let e=class e extends xp{constructor(){super(...arguments),this.location=u(ir),this.urlSerializer=u(Dr),this.options=u(kr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=u(vl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new oi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=up(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var t;return this.canceledNavigationResolution!=="computed"?this.currentPageId:((t=this.restoredState())==null?void 0:t.\u0275routerPageId)??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{i.type==="popstate"&&t(i.url,i.state)})}handleRouterEvent(t,i){if(t instanceof xn)this.stateMemento=this.createStateMemento();else if(t instanceof fi)this.rawUrlTree=i.initialUrl;else if(t instanceof ns){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else t instanceof br?(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(i.targetBrowserUrl??this.rawUrlTree,i)):t instanceof ri&&(t.code===xe.GuardRejected||t.code===xe.NoDataFromResolver)?this.restoreHistory(i):t instanceof yr?this.restoreHistory(i,!0):t instanceof Re&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,i){let r=t instanceof oi?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let s=this.browserPageId,a=N(N({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(r,"",a)}else{let s=N(N({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",s)}}restoreHistory(t,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,s=this.currentPageId-r;s!==0?this.location.historyGo(s):this.currentUrlTree===t.finalUrl&&s===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),fr=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(fr||{});function Mp(n,e){n.events.pipe(xt(o=>o instanceof Re||o instanceof ri||o instanceof yr||o instanceof fi),A(o=>o instanceof Re||o instanceof fi?fr.COMPLETE:(o instanceof ri?o.code===xe.Redirect||o.code===xe.SupersededByNewNavigation:!1)?fr.REDIRECTING:fr.FAILED),xt(o=>o!==fr.REDIRECTING),li(1)).subscribe(()=>{e()})}function y0(n){throw n}var b0={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},w0={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},qe=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var t;this.disposed=!1,this.console=u(ro),this.stateManager=u(xp),this.options=u(kr,{optional:!0})||{},this.pendingTasks=u(xc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=u(_l),this.urlSerializer=u(Dr),this.location=u(ir),this.urlHandlingStrategy=u(vl),this._events=new pt,this.errorHandler=this.options.errorHandler||y0,this.navigated=!1,this.routeReuseStrategy=u(v0),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=((t=u(Or,{optional:!0}))==null?void 0:t.flat())??[],this.componentInputBindingEnabled=!!u(ps,{optional:!0}),this.eventsSubscription=new Qr,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(r!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof ri&&i.code!==xe.Redirect&&i.code!==xe.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Re)this.navigated=!0;else if(i instanceof Mn){let a=i.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),c=N({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||g0(r.source)},a);this.scheduleNavigation(l,vr,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}x0(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),vr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",i)},0)}))}navigateToSyncWithBrowser(t,i,r){let s={replaceUrl:!0},a=r!=null&&r.navigationId?r:null;if(r){let c=N({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(t);this.scheduleNavigation(l,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(fl),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(t,i={}){let{relativeTo:r,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=i,d=c?this.currentUrlTree.fragment:a,g=null;switch(l){case"merge":g=N(N({},this.currentUrlTree.queryParams),s);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=s||null}g!==null&&(g=this.removeEmptyProps(g));let v;try{let y=r?r.snapshot:this.routerState.snapshot.root;v=sp(y)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),v=this.currentUrlTree.root}return ap(v,t,g,d??null)}navigateByUrl(t,i={skipLocationChange:!1}){let r=Li(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,vr,null,i)}navigate(t,i={skipLocationChange:!1}){return T0(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,i){let r;if(i===!0?r=N({},b0):i===!1?r=N({},w0):r=i,Li(t))return Hd(this.currentUrlTree,t,r);let s=this.parseUrl(t);return Hd(this.currentUrlTree,s,r)}removeEmptyProps(t){return Object.entries(t).reduce((i,[r,s])=>(s!=null&&(i[r]=s),i),{})}scheduleNavigation(t,i,r,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((v,y)=>{l=v,c=y});let g=this.pendingTasks.add();return Mp(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:s,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(v=>Promise.reject(v))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function T0(n){for(let e=0;e{let e=class e{constructor(t,i,r,s,a,l){var d;this.router=t,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.onChanges=new pt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=(d=a.nativeElement.tagName)==null?void 0:d.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=t.events.subscribe(g=>{g instanceof Re&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Li(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,i,r,s,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(t!==0||i||r||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,c),!this.isAnchorElement}ngOnDestroy(){var t;(t=this.subscription)==null||t.unsubscribe()}updateHref(){var r;let t=this.urlTree;this.href=t!==null&&this.locationStrategy?(r=this.locationStrategy)==null?void 0:r.prepareExternalUrl(this.router.serializeUrl(t)):null;let i=this.href===null?null:Ic(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(t,i){let r=this.renderer,s=this.el.nativeElement;i!==null?r.setAttribute(s,t,i):r.removeAttribute(s,t)}get urlTree(){return this.routerLinkInput===null?null:Li(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(st(qe),st(gi),Tc("tabindex"),st(Ys),st(Et),st(er))},e.\u0275dir=w({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&x("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&U("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",qi],skipLocationChange:[2,"skipLocationChange","skipLocationChange",qi],replaceUrl:[2,"replaceUrl","replaceUrl",qi],routerLink:"routerLink"},standalone:!0,features:[Xn,Xt]});let n=e;return n})(),Op=(()=>{let e=class e{get isActive(){return this._isActive}constructor(t,i,r,s,a){this.router=t,this.element=i,this.renderer=r,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new rt,this.routerEventsSubscription=t.events.subscribe(l=>{l instanceof Re&&this.update()})}ngAfterContentInit(){F(this.links.changes,F(null)).pipe(Wn()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var i;(i=this.linkInputChangesSubscription)==null||i.unsubscribe();let t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Kt(t).pipe(Wn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){let i=Array.isArray(t)?t:t.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),(t=this.linkInputChangesSubscription)==null||t.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(i=>{t?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let i=M0(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let s=r.urlTree;return s?t.isActive(s,i):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}};e.\u0275fac=function(i){return new(i||e)(st(qe),st(Et),st(Ys),st(At),st(Yd,8))},e.\u0275dir=w({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,s){if(i&1&&$t(s,Yd,5),i&2){let a;it(a=nt())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Xt]});let n=e;return n})();function M0(n){return!!n.paths}var ds=class{};var O0=(()=>{let e=class e{constructor(t,i,r,s,a){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(xt(t=>t instanceof Re),$i(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){let r=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Qs(s.providers,t,`Route: ${s.path}`));let a=s._injector??t,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&r.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&r.push(this.processRoutes(l,s.children??s._loadedRoutes))}return Kt(r).pipe(Wn())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(t,i):r=F(null);let s=r.pipe(he(a=>a===null?F(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return Kt([s,a]).pipe(Wn())}else return s})}};e.\u0275fac=function(i){return new(i||e)(et(qe),et(oo),et(Qn),et(ds),et(gl))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ip=new z(""),I0=(()=>{let e=class e{constructor(t,i,r,s,a={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||(a.scrollPositionRestoration="disabled"),a.anchorScrolling||(a.anchorScrolling="disabled")}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof xn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Re?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof fi&&t.code===is.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof rs&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new rs(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){var t,i;(t=this.routerEventsSubscription)==null||t.unsubscribe(),(i=this.scrollEventsSubscription)==null||i.unsubscribe()}};e.\u0275fac=function(i){Dc()},e.\u0275prov=k({token:e,factory:e.\u0275fac});let n=e;return n})();function dO(n,...e){return Us([{provide:Or,multi:!0,useValue:n},[],{provide:gi,useFactory:Dp,deps:[qe]},{provide:ta,multi:!0,useFactory:Sp},e.map(o=>o.\u0275providers)])}function Dp(n){return n.routerState.root}function Rr(n,e){return{\u0275kind:n,\u0275providers:e}}function Sp(){let n=u(Zn);return e=>{var r,s;let o=n.get(ea);if(e!==o.components[0])return;let t=n.get(qe),i=n.get(Pp);n.get(Cl)===1&&t.initialNavigation(),(r=n.get(Ep,null,Bs.Optional))==null||r.setUpPreloading(),(s=n.get(Ip,null,Bs.Optional))==null||s.init(),t.resetRootComponentType(o.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Pp=new z("",{factory:()=>new pt}),Cl=new z("",{providedIn:"root",factory:()=>1});function D0(){return Rr(2,[{provide:Cl,useValue:0},{provide:Js,multi:!0,deps:[Zn],useFactory:e=>{let o=e.get(Uc,Promise.resolve());return()=>o.then(()=>new Promise(t=>{let i=e.get(qe),r=e.get(Pp);Mp(i,()=>{t(!0)}),e.get(_l).afterPreactivation=()=>(t(!0),r.closed?F(void 0):r),i.initialNavigation()}))}}])}function S0(){return Rr(3,[{provide:Js,multi:!0,useFactory:()=>{let e=u(qe);return()=>{e.setUpLocationChangeListener()}}},{provide:Cl,useValue:2}])}var Ep=new z("");function P0(n){return Rr(0,[{provide:Ep,useExisting:O0},{provide:ds,useExisting:n}])}function E0(){return Rr(8,[jd,{provide:ps,useExisting:jd}])}function k0(n){let e=[{provide:wp,useValue:h0},{provide:Tp,useValue:N({skipNextTransition:!!(n!=null&&n.skipInitialTransition)},n)}];return Rr(9,e)}var Qd=new z("ROUTER_FORROOT_GUARD"),R0=[ir,{provide:Dr,useClass:Tn},qe,Pr,{provide:gi,useFactory:Dp,deps:[qe]},gl,[]],pO=(()=>{let e=class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[R0,[],{provide:Or,multi:!0,useValue:t},{provide:Qd,useFactory:N0,deps:[[qe,new se,new Gn]]},{provide:kr,useValue:i||{}},i!=null&&i.useHash?F0():L0(),A0(),i!=null&&i.preloadingStrategy?P0(i.preloadingStrategy).\u0275providers:[],i!=null&&i.initialNavigation?V0(i):[],i!=null&&i.bindToComponentInputs?E0().\u0275providers:[],i!=null&&i.enableViewTransitions?k0().\u0275providers:[],H0()]}}static forChild(t){return{ngModule:e,providers:[{provide:Or,multi:!0,useValue:t}]}}};e.\u0275fac=function(i){return new(i||e)(et(Qd,8))},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({});let n=e;return n})();function A0(){return{provide:Ip,useFactory:()=>{let n=u(Zc),e=u(ht),o=u(kr),t=u(_l),i=u(Dr);return o.scrollOffset&&n.setOffset(o.scrollOffset),new I0(i,t,n,e,o)}}}function F0(){return{provide:er,useClass:$c}}function L0(){return{provide:er,useClass:jc}}function N0(n){return"guarded"}function V0(n){return[n.initialNavigation==="disabled"?S0().\u0275providers:[],n.initialNavigation==="enabledBlocking"?D0().\u0275providers:[]]}var Zd=new z("");function H0(){return[{provide:Zd,useFactory:Sp},{provide:ta,multi:!0,useExisting:Zd}]}function kp(n){let{anchorOffset:e=0,focusOffset:o=0}=n.ownerDocument.getSelection()||{},t=Math.min(e,o),i=Math.max(e,o);return[t,i]}function z0(n,[e,o]){var t,i;let r=n.ownerDocument,s=r.createRange();s.setStart(n.firstChild||n,Math.min(e,((t=n.textContent)===null||t===void 0?void 0:t.length)||0)),s.setEnd(n.lastChild||n,Math.min(o,((i=n.textContent)===null||i===void 0?void 0:i.length)||0));let a=r.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}var yl=class{constructor(e){this.element=e,this.maxLength=1/0}get value(){return this.element.innerText.replace(/\n\n$/,` -`)}set value(e){this.element.innerHTML=e.replace(/\n$/,` - -`)}get selectionStart(){return kp(this.element)[0]}get selectionEnd(){return kp(this.element)[1]}setSelectionRange(e,o){z0(this.element,[e||0,o||0])}select(){this.setSelectionRange(0,this.value.length)}};function B0(n){let e=new yl(n);return new Proxy(n,{get(o,t){if(t in e)return e[t];let i=o[t];return typeof i=="function"?i.bind(o):i},set(o,t,i,r){return Reflect.set(t in e?e:o,t,i,r)}})}var Lp=n=>n.isContentEditable?B0(n):n.querySelector("input,textarea")||n,Fe={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},bl=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let e=this.past.pop();e&&this.now&&(this.future.push(this.now),this.updateElement(e,"historyUndo"))}redo(){let e=this.future.pop();e&&this.now&&(this.past.push(this.now),this.updateElement(e,"historyRedo"))}updateHistory(e){if(!this.now){this.now=e;return}let o=this.now.value!==e.value,t=this.now.selection.some((i,r)=>i!==e.selection[r]);!o&&!t||(o&&(this.past.push(this.now),this.future=[]),this.now=e)}updateElement(e,o){this.now=e,this.updateElementState(e,{inputType:o,data:null})}};function U0(n,...e){return e.every(({value:o})=>o===n.value)}function j0(n,...e){return e.every(({value:o,selection:t})=>o===n.value&&t[0]===n.selection[0]&&t[1]===n.selection[1])}function $0({value:n,selection:e},o,t){let[i,r]=e,s=typeof t=="function"?t({value:n,selection:e}):t;return{value:n,selection:s==="replace"?[i,i+o.length]:[i,r]}}function vs(n){return typeof n=="string"}function Rp(n,e,o,t){let i="";for(let r=e.length;r{let i=e[t];return vs(i)?o===i:o.match(i)}):e.test(n)}function W0(n,e,o){let t=null,i=null,r=Array.from(n.value).reduce((a,l,c)=>{let d=Rp(e,a,l,o),g=a+d,v=e[g.length];return vs(v)?g+v:l.match(v)?(t===null&&c>=n.selection[0]&&(t=g.length),i===null&&c>=n.selection[1]&&(i=g.length),g+l):g},""),s=Rp(e,r,"",o);return{value:Np(r+s,e)?r+s:r,selection:[t??r.length,i??r.length]}}function G0({value:n,selection:e},o){let[t,i]=e,r=t,s=i;return{value:Array.from(n).reduce((l,c,d)=>{let g=l+c;return t===d&&(r=l.length),i===d&&(s=l.length),g.match(o)?g:l},""),selection:[r,s]}}function ms(n,e,o=null){if(Np(n.value,e))return n;let{value:t,selection:i}=Array.isArray(e)?W0(n,e,o):G0(n,e);return{selection:i,value:Array.isArray(e)?t.slice(0,e.length):t}}function Ap(n,e){if(!Array.isArray(e))return n;let[o,t]=n.selection,i=[],r=Array.from(n.value).reduce((s,a,l)=>{let c=e[l];return l===o&&i.push(s.length),l===t&&i.push(s.length),vs(c)&&c===a?s:s+a},"");return i.length<2&&i.push(...new Array(2-i.length).fill(r.length)),{value:r,selection:[i[0],i[1]]}}var Lr=class{constructor(e,o){this.initialElementState=e,this.maskOptions=o,this.value="",this.selection=[0,0];let{value:t,selection:i}=ms(this.initialElementState,this.getMaskExpression(this.initialElementState));this.value=t,this.selection=i}addCharacters([e,o],t){let{value:i}=this,r=this.getMaskExpression({value:i.slice(0,e)+t+i.slice(o),selection:[e+t.length,e+t.length]}),s={value:i,selection:[e,o]},a=Ap(s,r),[l,c]=$0(a,t,this.maskOptions.overwriteMode).selection,d=a.value.slice(0,l)+t,g=d.length,v=ms({value:d+a.value.slice(c),selection:[g,g]},r,s);if(i.slice(0,l)===ms({value:d,selection:[g,g]},r,s).value||j0(this,v))throw new Error("Invalid mask value");this.value=v.value,this.selection=v.selection}deleteCharacters([e,o]){if(e===o||!o)return;let{value:t}=this,i=this.getMaskExpression({value:t.slice(0,e)+t.slice(o),selection:[e,e]}),r={value:t,selection:[e,o]},s=Ap(r,i),[a,l]=s.selection,c=s.value.slice(0,a)+s.value.slice(l),d=ms({value:c,selection:[a,a]},i,r);this.value=d.value,this.selection=d.selection}getMaskExpression(e){let{mask:o}=this.maskOptions;return typeof o=="function"?o(e):o}},wl=class{constructor(e){this.element=e,this.listeners=[]}listen(e,o,t){let i=o;this.element.addEventListener(e,i,t),this.listeners.push(()=>this.element.removeEventListener(e,i))}destroy(){this.listeners.forEach(e=>e())}},Ae={CTRL:1,ALT:2,SHIFT:4,META:8},Ar={Y:89,Z:90};function Fr(n,e,o){return n.ctrlKey===!!(e&Ae.CTRL)&&n.altKey===!!(e&Ae.ALT)&&n.shiftKey===!!(e&Ae.SHIFT)&&n.metaKey===!!(e&Ae.META)&&n.keyCode===o}function Y0(n){return Fr(n,Ae.CTRL,Ar.Y)||Fr(n,Ae.CTRL|Ae.SHIFT,Ar.Z)||Fr(n,Ae.META|Ae.SHIFT,Ar.Z)}function Q0(n){return Fr(n,Ae.CTRL,Ar.Z)||Fr(n,Ae.META,Ar.Z)}function _s(n,e){var o;let t=n.value;if(typeof e=="string")n.value=e;else{let[i,r]=e.selection;n.value=e.value,n.matches(":focus")&&((o=n.setSelectionRange)===null||o===void 0||o.call(n,i,r))}n.value!==t&&n.dispatchEvent(new Event("input",{bubbles:!0}))}function Z0({value:n,selection:e},o){let[t,i]=e;if(t!==i)return[t,i];let r=o?n.slice(t).indexOf(` -`)+1||n.length:n.slice(0,i).lastIndexOf(` -`)+1;return[o?t:r,o?r:i]}function q0({value:n,selection:e},o){let[t,i]=e;return t!==i?[t,i]:(o?[t,i+1]:[t-1,i]).map(s=>Math.min(Math.max(s,0),n.length))}var K0=/\s+$/g,X0=/^\s+/g,Fp=/\s/;function J0({value:n,selection:e},o){let[t,i]=e;if(t!==i)return[t,i];if(o){let l=n.slice(t),[c]=l.match(X0)||[""],d=l.trimStart().search(Fp);return[t,d!==-1?t+c.length+d:n.length]}let r=n.slice(0,i),[s]=r.match(K0)||[""],a=r.trimEnd().split("").reverse().findIndex(l=>l.match(Fp));return[a!==-1?i-s.length-a:0,i]}function fs(n=[]){return(e,...o)=>n.reduce((t,i)=>Object.assign(Object.assign({},t),i(t,...o)),e)}function Dn(n,e){let o=Object.assign(Object.assign({},Fe),e),t=fs(o.preprocessors),i=fs(o.postprocessors),r=typeof n=="string"?{value:n,selection:[0,0]}:n,{elementState:s}=t({elementState:r,data:""},"validation"),a=new Lr(s,o),{value:l,selection:c}=i(a,r);return typeof n=="string"?l:{value:l,selection:c}}var gs=class extends bl{constructor(e,o){super(),this.element=e,this.maskitoOptions=o,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new wl(this.element),this.options=Object.assign(Object.assign({},Fe),this.maskitoOptions),this.preprocessor=fs(this.options.preprocessors),this.postprocessor=fs(this.options.postprocessors),this.teardowns=this.options.plugins.map(t=>t(this.element,this.options)),this.updateHistory(this.elementState),this.eventListener.listen("keydown",t=>{if(Y0(t))return t.preventDefault(),this.redo();if(Q0(t))return t.preventDefault(),this.undo()}),this.eventListener.listen("beforeinput",t=>{var i;let r=t.inputType.includes("Forward");switch(this.updateHistory(this.elementState),t.inputType){case"historyUndo":return t.preventDefault(),this.undo();case"historyRedo":return t.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:t,isForward:r,selection:q0(this.elementState,r)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:t,isForward:r,selection:J0(this.elementState,r),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:t,isForward:r,selection:Z0(this.elementState,r),force:!0});case"insertCompositionText":return;case"insertReplacementText":return;case"insertLineBreak":case"insertParagraph":return this.handleEnter(t);case"insertFromPaste":case"insertText":case"insertFromDrop":default:return this.handleInsert(t,t.data||((i=t.dataTransfer)===null||i===void 0?void 0:i.getData("text/plain"))||"")}}),this.eventListener.listen("input",({inputType:t})=>{t!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}get elementState(){let{value:e,selectionStart:o,selectionEnd:t}=this.element;return{value:e,selection:[o||0,t||0]}}get maxLength(){let{maxLength:e}=this.element;return e===-1?1/0:e}destroy(){this.eventListener.destroy(),this.teardowns.forEach(e=>e==null?void 0:e())}updateElementState({value:e,selection:o},t={inputType:"insertText",data:null}){let i=this.elementState.value;this.updateValue(e),this.updateSelectionRange(o),i!==e&&this.dispatchInputEvent(t)}updateSelectionRange([e,o]){var t;let{element:i}=this;i.matches(":focus")&&(i.selectionStart!==e||i.selectionEnd!==o)&&((t=i.setSelectionRange)===null||t===void 0||t.call(i,e,o))}updateValue(e){this.element.value=e}ensureValueFitsMask(){this.updateElementState(Dn(this.elementState,this.options))}dispatchInputEvent(e={inputType:"insertText",data:null}){globalThis.InputEvent&&this.element.dispatchEvent(new InputEvent("input",Object.assign(Object.assign({},e),{bubbles:!0,cancelable:!1})))}handleDelete({event:e,selection:o,isForward:t,force:i=!1}){let r={value:this.elementState.value,selection:o},[s,a]=r.selection,{elementState:l}=this.preprocessor({elementState:r,data:""},t?"deleteForward":"deleteBackward"),c=new Lr(l,this.options),[d,g]=l.selection;c.deleteCharacters([d,g]);let v=this.postprocessor(c,r);if(!(r.value.slice(0,s)+r.value.slice(a)===v.value&&!i&&!this.element.isContentEditable)){if(e.preventDefault(),U0(r,l,c,v))return this.updateSelectionRange(t?[g,g]:[d,d]);this.updateElementState(v,{inputType:e.inputType,data:null}),this.updateHistory(v)}}handleInsert(e,o){let t=this.elementState,{elementState:i,data:r=o}=this.preprocessor({data:o,elementState:t},"insert"),s=new Lr(i,this.options);try{s.addCharacters(i.selection,r)}catch{return e.preventDefault()}let[a,l]=i.selection,c=t.value.slice(0,a)+o+t.value.slice(l),d=this.postprocessor(s,t);if(d.value.length>this.maxLength)return e.preventDefault();(c!==d.value||this.element.isContentEditable)&&(e.preventDefault(),this.updateElementState(d,{data:o,inputType:e.inputType}),this.updateHistory(d))}handleEnter(e){(this.isTextArea||this.element.isContentEditable)&&this.handleInsert(e,` -`)}};var Tl=new z("[TUI_CALENDAR_DATE_STREAM]");function Cs(n){return{provide:Tl,deps:[[new se,new Jr,le],[new se,n]],useFactory:t_}}function t_(n,e){return n?vo(n).pipe(A(o=>e?e==null?void 0:e.fromControlValue(o):o)):F(null)}var xl=new z("[TUI_DATE_VALUE_TRANSFORMER]"),Ml=new z("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),OO=new z("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),IO=Y(kt("confirm")),DO=Y(kt("cancel")),SO=Y(kt("done")),PO=Y(kt("more")),EO=Y(kt("hide")),kO=Y(kt("showAll")),Vp=Y(kt("otherDate")),RO=Y(kt("mobileCalendarTexts")),AO=Y(kt("range")),FO=Y(kt("countTexts")),LO=Y(kt("time")),ys=Y(kt("dateTexts")),NO=Y(kt("digitalInformationUnits")),VO=Y(kt("copyTexts")),HO=Y(kt("passwordTexts")),zO=Y(kt("shortCalendarMonths")),BO=Y(kt("fileTexts")),UO=Y(kt("pagination")),jO=Y(kt("inputFileTexts")),$O=Y(kt("multiSelectTexts")),WO=Y(kt("countries")),GO=Y(kt("previewTexts")),YO=Y(kt("zoomTexts")),e_={icon:()=>"@tui.calendar",min:oe,max:ye,nativePicker:!1},bs=K(e_);var i_={stringify:String,identityMatcher:fo,disabledItemHandler:Ie},Hp=K(i_);var Nr=new z("[TUI_MOBILE_CALENDAR]"),ws={provide:jo,useFactory:()=>u(Ge)&&u(Nr,{optional:!0})||u(jo,{skipSelf:!0})},n_={rotate:"@tui.rotate-ccw-square",prev:"@tui.arrow-left",next:"@tui.arrow-right",zoomIn:"@tui.plus",zoomOut:"@tui.minus",zoomReset:"@tui.minimize"},QO=K(n_);var ZO=K({});var r_="tui-tab-activate",Ol=(()=>{let e=class e{constructor(){var t,i;this.el=tt(),this.rla=u(Op,{optional:!0}),this.observer=this.rla&&((t=u(dn,{optional:!0}))==null?void 0:t.pipe(xt(()=>{var r;return!!((r=this.rla)!=null&&r.isActive)}))),this.sub=Ht(this.observer||qt,((i=this.rla)==null?void 0:i.isActiveChange.pipe(xt(Boolean)))||qt,this.el.matches("button")?Ee(this.el,"click"):qt).pipe(lt()).subscribe(()=>this.el.dispatchEvent(new CustomEvent(r_,{bubbles:!0})))}ngOnDestroy(){cn(this.el)&&this.el.blur()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],standalone:!0,features:[ie([mi])]});let n=e;return n})(),o_={underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0,size:"l"},Bp=K(o_);var s_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-tabs"],standalone:!0,features:[D],decls:0,vars:0,template:function(i,r){},styles:[`[tuiTab]{transition-property:color,box-shadow,opacity,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;flex-shrink:0;box-sizing:border-box;justify-content:space-between;line-height:1.5rem;align-items:center;white-space:nowrap;cursor:pointer;outline:none;color:inherit;margin-left:24px}tui-tabs[data-size=m]+[tuiTab],tui-tabs[data-size=m] [tuiTab],[tuiTabs][data-size=m] [tuiTab]{margin-left:16px;font:var(--tui-font-text-s)}[tuiTab]:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}[tuiTab]._active{color:var(--tui-text-primary);box-shadow:none}[tuiTab]:focus-visible{outline:2px solid var(--tui-border-focus);outline-offset:-2px}tui-tabs._underline [tuiTab]:hover:not(._active),[tuiTabs]._underline [tuiTab]:hover:not(._active){box-shadow:inset 0 -2px var(--tui-border-normal)}tui-tabs>[tuiTab]:first-child,[tuiTabs]>[tuiTab]:first-child,tui-tabs>:not(.t-overflown)>[tuiTab]:first-child{margin-left:0}tui-tabs>[tuiTab]~:not(.t-overflown)>[tuiTab]:first-child{margin-left:var(--tui-tab-margin, 1.5rem)}[tuiTab]._icon-start:before{font-size:1rem;margin-inline-end:.5rem}[tuiTab]._icon-end:after{font-size:1rem;margin-inline-start:.5rem}[tuiTab]:empty:after,[tuiTab]:empty:before{margin:.5rem}@media (hover: hover){[tuiTab]:hover{color:var(--tui-text-primary)}}[tuiTabs],tui-tabs{scrollbar-width:none;-ms-overflow-style:none;position:relative;display:flex;font:var(--tui-font-text-m);color:var(--tui-text-secondary);box-shadow:inset 0 -1px var(--tui-border-normal);overflow:auto;isolation:isolate}[tuiTabs]::-webkit-scrollbar,tui-tabs::-webkit-scrollbar,[tuiTabs]::-webkit-scrollbar-thumb,tui-tabs::-webkit-scrollbar-thumb{display:none}[tuiTabs][data-size=l]:not([data-vertical]),tui-tabs[data-size=l]:not([data-vertical]){height:var(--tui-height-l)}[tuiTabs][data-size=m]:not([data-vertical]),tui-tabs[data-size=m]:not([data-vertical]){height:var(--tui-height-m)}[tuiTabs]:before,tui-tabs:before{transition-property:width,left;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;left:var(--t-left);bottom:0;height:2px;width:var(--t-width);background:var(--t-color);animation:tuiPresent 1ms}[tuiTabs]._underline:before,tui-tabs._underline:before{content:""}tui-tabs[data-vertical],[tuiTabs][data-vertical]{flex-direction:column;box-shadow:inset -1px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab],[tuiTabs][data-vertical] [tuiTab]{min-height:2.75rem;height:auto;white-space:normal;margin:0;text-align:left;padding:.25rem 1.25rem .25rem 0}tui-tabs[data-vertical] [tuiTab]:after,[tuiTabs][data-vertical] [tuiTab]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;right:0;width:2px;background:var(--tui-background-accent-1);transform:scaleX(0);transform-origin:right}tui-tabs[data-vertical] [tuiTab]:hover,[tuiTabs][data-vertical] [tuiTab]:hover{box-shadow:inset -2px 0 var(--tui-border-normal)}tui-tabs[data-vertical] [tuiTab]._active:after,[tuiTabs][data-vertical] [tuiTab]._active:after{transform:none}tui-tabs[data-vertical][data-size=m] [tuiTab],[tuiTabs][data-vertical][data-size=m] [tuiTab]{min-height:2.25rem;font:var(--tui-font-text-s)}tui-tabs[data-vertical][data-vertical=right],[tuiTabs][data-vertical][data-vertical=right]{box-shadow:inset 1px 0 var(--tui-border-normal)}tui-tabs[data-vertical][data-vertical=right] [tuiTab],[tuiTabs][data-vertical][data-vertical=right] [tuiTab]{text-align:right;padding:.25rem 0 .25rem 1.25rem}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:after,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:after{right:auto;left:0;transform-origin:left}tui-tabs[data-vertical][data-vertical=right] [tuiTab]:hover,[tuiTabs][data-vertical][data-vertical=right] [tuiTab]:hover{box-shadow:inset 2px 0 var(--tui-border-normal)} -`],encapsulation:2,changeDetection:0});let n=e;return n})(),zp=(()=>{let e=class e{constructor(){this.el=tt(),this.injector=u(ui),this.nothing=_e(s_),this.size=u(Bp).size,this.activeItemIndex=0,this.activeItemIndexChange=new rt}get tabs(){return Array.from(this.el.querySelectorAll("[tuiTab]"))}get activeElement(){return this.tabs[this.activeItemIndex]||null}moveFocus(t,i){let{tabs:r}=this;Do(r.indexOf(t),r,i)}ngAfterViewChecked(){Gi(()=>{this.markTabAsActive()},{injector:this.injector})}onActivate(t,i){let r=this.tabs.findIndex(s=>s===i);t.stopPropagation(),r!==this.activeItemIndex&&(this.activeItemIndexChange.emit(r),this.activeItemIndex=r)}markTabAsActive(){let{tabs:t,activeElement:i}=this;t.forEach(r=>{let s=r===i;r.classList.toggle("_active",s),r.setAttribute("tabIndex",s?"0":"-1")})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,hostVars:1,hostBindings:function(i,r){i&1&&x("tui-tab-activate",function(a){return r.onActivate(a,a.target)}),i&2&&U("data-size",r.size)},inputs:{size:"size",activeItemIndex:"activeItemIndex"},outputs:{activeItemIndexChange:"activeItemIndexChange"},standalone:!0});let n=e;return n})(),Up=(()=>{let e=class e{constructor(){this.el=tt(),this.options=u(Bp),this.tabs=u(zp),this.children=Ce,this.sub=u(dn).pipe($e(u(ht)),lt()).subscribe(()=>this.refresh()),this.underline=this.options.underline}ngAfterViewChecked(){this.scrollTo(this.tabs.activeItemIndex),this.refresh()}onKeyDownArrow(t,i){this.tabs.moveFocus(t,i)}refresh(){let{activeElement:t}=this.tabs;if(t&&!t.isConnected)return;let{offsetLeft:i=0,offsetWidth:r=0}=t||{};this.el.style.setProperty("--t-left",je(i)),this.el.style.setProperty("--t-width",je(r))}scrollTo(t){let i=this.tabs.tabs[t];if(!i)return;let{offsetLeft:r,offsetWidth:s}=i;rthis.el.scrollLeft+this.el.offsetWidth&&(this.el.scrollLeft=r+s-this.el.offsetWidth)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(i,r,s){if(i&1&&$t(s,Ol,4),i&2){let a;it(a=nt())&&(r.children=a)}},hostVars:4,hostBindings:function(i,r){i&1&&x("keydown.arrowRight.prevent",function(a){return r.onKeyDownArrow(a.target,1)})("keydown.arrowLeft.prevent",function(a){return r.onKeyDownArrow(a.target,-1)})("animationend",function(){return r.refresh()}),i&2&&(R("--t-color",r.underline===!0?"var(--tui-background-accent-1)":r.underline),H("_underline",r.underline))},inputs:{underline:"underline"},standalone:!0,features:[E([dn,{provide:Ca,useValue:{childList:!0,characterData:!0,subtree:!0}}]),ie([{directive:zp,inputs:["activeItemIndex","activeItemIndex","size","size"],outputs:["activeItemIndexChange","activeItemIndexChange"]}])]});let n=e;return ct([ut],n.prototype,"scrollTo",null),n})();var a_=new z("[TUI_TABS_REFRESH]"),TI=[_a,dn,$o({align:"right"}),{provide:Ca,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:a_,deps:[_a,dn,St,Et,At],useFactory:(n,e,{body:o},{nativeElement:t},i)=>Ht(n,e.pipe(Lt(()=>i.detectChanges()))).pipe(xt(()=>o.contains(t)),fc(0),Bt(null),lt())}];var Il=(()=>{let e=class e{constructor(){return this.nativeElement=tt(),new Et(this.nativeElement)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiElement",""]],exportAs:["elementRef"],standalone:!0});let n=e;return n})();var jp=(()=>{let e=class e{constructor(){this.el=tt(),this.playbackRate=1,this.volume=1,this.currentTimeChange=new rt,this.pausedChange=new rt,this.volumeChange=new rt}set playbackRateSetter(t){this.updatePlaybackRate(t)}set currentTime(t){Math.abs(t-this.currentTime)>.05&&(this.el.currentTime=t)}set paused(t){var i,r,s,a;t?(r=(i=this.el).pause)==null||r.call(i):((a=(s=this.el).play)==null||a.call(s),this.updatePlaybackRate(this.playbackRate))}get currentTime(){return this.el.currentTime??0}get paused(){return!!this.el.paused}onPausedChange(t){this.pausedChange.emit(t),this.updatePlaybackRate(this.playbackRate)}onVolumeChange(){this.volume=this.el.volume,this.volumeChange.emit(this.volume)}onCurrentTimeChange(){this.currentTimeChange.emit(this.currentTime)}updatePlaybackRate(t){this.playbackRate=t,this.el.playbackRate=this.playbackRate}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["video","tuiMedia",""],["audio","tuiMedia",""]],hostVars:1,hostBindings:function(i,r){i&1&&x("durationchange",function(){return 0})("ended",function(){return r.onPausedChange(!0)})("pause",function(){return r.onPausedChange(!0)})("play",function(){return r.onPausedChange(!1)})("volumechange",function(){return r.onVolumeChange()})("timeupdate",function(){return r.onCurrentTimeChange()})("seeking",function(){return r.onCurrentTimeChange()})("seeked",function(){return r.onCurrentTimeChange()}),i&2&&Oe("volume",r.volume)},inputs:{volume:"volume",playbackRateSetter:[0,"playbackRate","playbackRateSetter"],currentTime:"currentTime",paused:"paused"},outputs:{currentTimeChange:"currentTimeChange",pausedChange:"pausedChange",volumeChange:"volumeChange"},exportAs:["tuiMedia"],standalone:!0});let n=e;return n})();var $p=(()=>{let e=class e{transform(t,i,...r){return t.filter(s=>i(s,...r))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=me({name:"tuiFilter",type:e,pure:!0,standalone:!0});let n=e;return n})();var l_=["*",[["tui-badge-notification","tuiSlot","top"]],[["","tuiSlot","top"]],[["tui-badge-notification","tuiSlot","bottom"]],[["","tuiSlot","bottom"]]],c_=["*","tui-badge-notification[tuiSlot='top']","[tuiSlot='top']","tui-badge-notification[tuiSlot='bottom']","[tuiSlot='bottom']"],Wp=(()=>{let e=class e{constructor(){this.tuiSlot="top"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiSlot",""]],inputs:{tuiSlot:"tuiSlot"},standalone:!0});let n=e;return n})(),Gp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-badged-content"]],standalone:!0,features:[D],ngContentSelectors:c_,decls:11,vars:4,consts:[["badgeTop",""],["badgeBottom",""],[1,"t-badge","t-badge_top",3,"waResizeObserver"],[1,"t-border"],[1,"t-badge","t-badge_bottom",3,"waResizeObserver"]],template:function(i,r){if(i&1){let s=$();_t(l_),Z(0),m(1,"div",2,0),x("waResizeObserver",function(){return O(s),I(0)}),Z(3,1),m(4,"div",3),Z(5,2),f()(),m(6,"div",4,1),x("waResizeObserver",function(){return O(s),I(0)}),Z(8,3),m(9,"div",3),Z(10,4),f()()}if(i&2){let s=j(2),a=j(7);p(),R("--t-badge-height",s.offsetHeight,"px"),p(5),R("--t-badge-height",a.offsetHeight,"px")}},dependencies:[ed],styles:["[_nghost-%COMP%]{--tui-radius: var(--tui-radius-l);--t-badge-height: 0;--t-corner-offset: calc((var(--tui-radius) * 1.4142 - var(--tui-radius)) * 1 / 1.4142);position:relative;display:inline-block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-max-content;width:max-content;color:var(--tui-background-base)}.t-badge[_ngcontent-%COMP%]{--t-offset: calc(var(--t-badge-height) * -.5 + var(--t-corner-offset));position:absolute;display:flex}.t-badge_top[_ngcontent-%COMP%]{top:var(--t-offset);right:var(--t-offset)}.t-badge_bottom[_ngcontent-%COMP%]{bottom:var(--t-offset);right:var(--t-offset)}.t-border[_ngcontent-%COMP%]:not(:empty){display:flex;border-radius:6rem;box-shadow:0 0 0 1px currentColor;background:currentColor}"],changeDetection:0});let n=e;return n})();var u_={appearance:"whiteblock",size:"l"},Yp=K(u_);var d_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-block"],standalone:!0,features:[D],decls:0,vars:0,template:function(i,r){},styles:[`[tuiBlock]{position:relative;display:inline-flex;gap:1rem;color:var(--tui-text-primary);border-radius:var(--t-radius);min-height:var(--t-height);margin:0;box-sizing:border-box;cursor:pointer;overflow:hidden}[tuiBlock][data-size=s]{gap:.5rem;font:var(--tui-font-text-ui-s);padding:.5rem;--t-height: var(--tui-height-s);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiBlock][data-size=s] [tuiTooltip]{margin:0 .125rem}[tuiBlock][data-size=m]{gap:.625rem;font:var(--tui-font-text-ui-m);padding:var(--tui-padding-m);--t-height: var(--tui-height-m);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=m] input:not([tuiBlock]){margin:.125rem}[tuiBlock][data-size=m] [tuiTooltip]{margin:.125rem}[tuiBlock][data-size=l]{gap:.75rem;font:var(--tui-font-text-m);padding:var(--tui-padding-l);--t-height: var(--tui-height-l);--t-radius: var(--tui-radius-l)}[tuiBlock][data-size=l] [tuiTooltip]{margin:.25rem}[tuiBlock]._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}[tuiBlock]._disabled :focus{visibility:hidden}[tuiBlock][data-appearance=""]{justify-content:center}[tuiBlock] input[tuiBlock]{position:absolute;top:0;left:0;width:100%;height:100%;min-height:0;pointer-events:none;border-radius:inherit}[tuiBlock] tui-avatar{margin:-.25rem}[tuiBlock] [tuiTitle]{flex:1;gap:0;font:inherit;color:var(--tui-text-primary)}[tuiBlock] [tuiSubtitle]{color:var(--tui-text-secondary)}[tuiBlock] [tuiTooltip]{vertical-align:bottom;font-size:1rem;border:none} -`],encapsulation:2,changeDetection:0});let n=e;return n})(),Ts=(()=>{let e=class e{constructor(){this.nothing=_e(d_),this.size=u(Yp).size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["label","tuiBlock",""],["input","tuiBlock",""]],contentQueries:function(i,r,s){if(i&1&&$t(s,le,5),i&2){let a;it(a=nt())&&(r.control=a.first)}},hostAttrs:["tuiBlock",""],hostVars:3,hostBindings:function(i,r){i&2&&(U("data-size",r.size||"l"),H("_disabled",!!(r.control!=null&&r.control.disabled)))},inputs:{size:[0,"tuiBlock","size"]},standalone:!0,features:[E([mo(Yp),id({size:"s"})]),ie([Qo,nn,mi])]});let n=e;return n})();var Qp=(n,e,o,t)=>[n,e,o,t,!1],Zp=(n,e,o,t)=>[n,e,o,t,!0],p_=(n,e,o,t,i,r)=>[n,e,o,t,i,r];function h_(n,e){if(n&1){let o=$();m(0,"tui-calendar",3),L(1,"tuiMapper"),L(2,"tuiMapper"),L(3,"tuiMapper"),L(4,"tuiMapper"),ve("hoveredItemChange",function(i){O(o);let r=_();return ne(r.hoveredItem,i)||(r.hoveredItem=i),I(i)}),x("dayClick",function(i){O(o);let r=_();return I(r.onDayClick(i))})("monthChange",function(i){O(o);let r=_();return I(r.onMonthChange(i.append({month:-1})))})("mousedown.prevent.silent",function(){return O(o),I(0)}),f()}if(n&2){let o=_();h("disabledItemHandler",o.calculatedDisabledItemHandler)("markerHandler",o.markerHandler)("max",pi(1,9,tr(29,Qp,o.max,o.capsMapper,o.value,o.maxLength)))("min",pi(2,15,tr(34,Zp,o.min,o.capsMapper,o.value,o.maxLength)))("minViewedMonth",di(3,21,o.defaultViewedMonth,o.monthOffset,1))("month",di(4,25,o.defaultViewedMonth,o.monthOffset,1))("showAdjacent",!1)("value",o.value),ge("hoveredItem",o.hoveredItem)}}function m_(n,e){if(n&1&&T(0,"tui-icon",8),n&2){let o=_(3);R("font-size",1,"rem"),h("icon",o.icons.check)}}function f_(n,e){if(n&1){let o=$();m(0,"button",6),x("click",function(){let i=O(o).$implicit,r=_(2);return I(r.onItemSelect(i))})("mousedown.prevent.silent",function(){return O(o),I(0)}),M(1),C(2,m_,1,3,"tui-icon",7),f()}if(n&2){let o=e.$implicit,t=_(2);U("aria-checked",t.isItemActive(o)),p(),V(" ",o," "),p(),h("ngIf",t.isItemActive(o))}}function g_(n,e){if(n&1&&(m(0,"tui-data-list",4),C(1,f_,3,3,"button",5),L(2,"async"),L(3,"tuiMapper"),f()),n&2){let o=_();R("flex",1),p(),h("ngForOf",pi(3,5,Rc(12,p_,o.items,o.mapper,o.min,o.max,o.minLength,G(2,3,o.otherDateText$))))}}var v_=(n,e,o,t)=>{if(!(e!=null&&e.isSingleDay)||!o)return t?n||oe:n||ye;let i=Object.fromEntries(Object.entries(o).map(([s,a])=>[s,-a])),r=e.from.append(t?i:o).append({day:t?1:-1});return t?r.dayBefore(n||oe)?n||oe:r:n&&r.dayAfter(n)?n:r},Vr=(()=>{let e=class e{constructor(){var t;this.otherDateText$=u(Vp),this.icons=u(Co),this.cdr=u(At),this.previousValue=null,this.hoveredItem=null,this.capsMapper=v_,this.defaultViewedMonth=Gt.currentLocal(),this.disabledItemHandler=Ie,this.markerHandler=null,this.items=[],this.min=oe,this.max=ye,this.minLength=null,this.maxLength=null,this.value=null,this.valueChange=new rt,this.selectedActivePeriod=null,this.monthOffset=(i,r)=>i.append({month:r}),this.mapper=(i,r,s,a,l)=>[...i.filter(c=>(a===null||c.range.from.append(a).daySameOrBefore(c.range.to))&&(r===null||c.range.to.daySameOrAfter(r))&&(s===null||c.range.from.daySameOrBefore(s))),l||""],(t=u(Tl,{optional:!0}))==null||t.pipe(de(this.cdr),lt()).subscribe(i=>{this.value=i})}ngOnChanges(){var t;this.defaultViewedMonth=((t=this.value)==null?void 0:t.from)||this.defaultViewedMonth}get calculatedDisabledItemHandler(){return this.calculateDisabledItemHandler(this.disabledItemHandler,this.value,this.minLength)}onEsc(t){var i;t.key!=="Escape"||!((i=this.value)!=null&&i.isSingleDay)||(t.stopPropagation(),this.value=this.previousValue)}isItemActive(t){let{activePeriod:i}=this;return tn(t)&&i===null||i===t}onItemSelect(t){tn(t)?this.activePeriod!==null&&(this.selectedActivePeriod=null,this.updateValue(null)):(this.selectedActivePeriod=t,this.updateValue(t.range.dayLimit(this.min,this.max)))}onMonthChange(t){this.defaultViewedMonth=t}onDayClick(t){var i;this.previousValue=this.value,this.selectedActivePeriod=null,(i=this.value)!=null&&i.isSingleDay?this.updateValue(te.sort(this.value.from,t)):this.value=new te(t,t)}updateValue(t){this.value=t,this.valueChange.emit(t)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(t=>Ue(this.value,t.range,(i,r)=>i.from.daySame(r.from.dayLimit(this.min,this.max))&&i.to.daySame(r.to.dayLimit(this.min,this.max))))||null)}calculateDisabledItemHandler(t,i,r){return s=>{if(!(i!=null&&i.isSingleDay)||!r)return t(s);let a=Object.fromEntries(Object.entries(r).map(([g,v])=>[g,-v])),l=i.from.append(a).append({day:1}),c=i.from.append(r).append({day:-1});return l.dayBefore(s)&&c.dayAfter(s)||t(s)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-calendar-range"]],hostBindings:function(i,r){i&1&&x("keydown.capture",function(a){return r.onEsc(a)},!1,qn)},inputs:{defaultViewedMonth:"defaultViewedMonth",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength",value:"value"},outputs:{valueChange:"valueChange"},standalone:!0,features:[Xt,D],decls:7,vars:37,consts:[["presets",""],["automation-id","tui-calendar-range__calendar",1,"t-calendar",3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","maxViewedMonth","min","month","showAdjacent","value","hoveredItem"],[3,"disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem","hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent",4,"ngIf","ngIfElse"],[3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem"],["automation-id","tui-calendar-range__menu","role","menu"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent",4,"ngFor","ngForOf"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent"],["automation-id","tui-calendar-range__checkmark",3,"icon","font-size",4,"ngIf"],["automation-id","tui-calendar-range__checkmark",3,"icon"]],template:function(i,r){if(i&1){let s=$();m(0,"tui-calendar",1),L(1,"tuiMapper"),L(2,"tuiMapper"),L(3,"tuiMapper"),ve("hoveredItemChange",function(l){return O(s),ne(r.hoveredItem,l)||(r.hoveredItem=l),I(l)}),x("dayClick",function(l){return O(s),I(r.onDayClick(l))})("monthChange",function(l){return O(s),I(r.onMonthChange(l))})("mousedown.prevent.silent",function(){return O(s),I(0)}),f(),C(4,h_,5,39,"tui-calendar",2)(5,g_,4,19,"ng-template",null,0,gt)}if(i&2){let s=j(6);h("disabledItemHandler",r.calculatedDisabledItemHandler)("markerHandler",r.markerHandler)("max",pi(1,11,tr(27,Qp,r.max,r.capsMapper,r.value,r.maxLength)))("maxViewedMonth",r.items.length?null:di(2,17,r.defaultViewedMonth,r.monthOffset,-1))("min",pi(3,21,tr(32,Zp,r.min,r.capsMapper,r.value,r.maxLength)))("month",r.defaultViewedMonth)("showAdjacent",!!r.items.length)("value",r.value),ge("hoveredItem",r.hoveredItem),p(4),h("ngIf",!r.items.length)("ngIfElse",s)}},dependencies:[at,ot,Pt,ei,mn,Qe,De,dt],styles:["[_nghost-%COMP%]{display:flex;min-width:30rem}.t-calendar[_ngcontent-%COMP%]{border-right:1px solid var(--tui-border-normal)}"],changeDetection:0});let n=e;return ct([ut],n.prototype,"calculateDisabledItemHandler",null),n})();var C_=["type","checkbox","tuiCheckbox",""],y_={size:"m",appearance:n=>n.checked||n.indeterminate?"primary":"whiteblock",icons:{checked:()=>"@tui.check",indeterminate:()=>"@tui.minus"}},b_=K(y_);var xs=(()=>{let e=class e{constructor(){this.appearance=u(bt),this.options=u(b_),this.resolver=Fu(),this.destroyRef=u(fe),this.el=tt(),this.size=this.options.size,this.control=u(le,{optional:!0,self:!0})}ngOnInit(){var t;(t=this.control)!=null&&t.valueChanges&&vo(this.control).pipe(lt(this.destroyRef)).subscribe(i=>{let r=this.control instanceof Wt&&i===null?this.control.model:i;this.el.indeterminate=r===null})}ngDoCheck(){this.appearance.tuiAppearance=this.options.appearance(this.el)}getIcon(t){let i=this.options.icons[t],r=tn(i)?i:i(this.size);return`url(${this.resolver(r)})`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["input","type","checkbox","tuiCheckbox",""]],hostVars:8,hostBindings:function(i,r){i&2&&(Oe("disabled",!r.control||r.control.disabled),U("data-size",r.size),R("--t-checked",r.getIcon("checked"))("--t-indeterminate",r.getIcon("indeterminate")),H("_readonly",!r.control))},inputs:{size:"size"},standalone:!0,features:[ie([nn,Qo]),D],attrs:C_,decls:0,vars:0,template:function(i,r){},styles:[`[_nghost-%COMP%]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);width:var(--t-size);height:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[_nghost-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background:currentColor;-webkit-mask:url('data:image/svg+xml,') center / 100%;mask:url('data:image/svg+xml,') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out}[_nghost-%COMP%]:disabled._readonly{opacity:1}[_nghost-%COMP%]:checked:before, [_nghost-%COMP%]:indeterminate:before{-webkit-mask-image:var(--t-checked);mask-image:var(--t-checked);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out,-webkit-mask 0s ease-in-out}[_nghost-%COMP%]:indeterminate:before{-webkit-mask-image:var(--t-indeterminate);mask-image:var(--t-indeterminate)}[data-size=s][_nghost-%COMP%]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}`],changeDetection:0});let n=e;return n})();function T_(n,e){if(n&1&&(Ct(0),M(1),yt()),n&2){let o=e.polymorpheusOutlet;p(),V(" ",o," ")}}function x_(n,e){if(n&1){let o=$();m(0,"button",5,1),x("click",function(){let i=O(o).$implicit,r=_(2);return I(r.itemClick.emit(i))}),m(2,"span",6),C(3,T_,2,1,"ng-container",7),f()()}if(n&2){let o=e.$implicit,t=j(1),i=_(2);h("disabled",i.disabledItemHandler(o))("value",o),p(3),h("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(o,t))}}function M_(n,e){if(n&1&&(m(0,"tui-data-list",3),C(1,x_,4,4,"button",4),f()),n&2){let o=_();h("emptyContent",o.emptyContent)("size",o.size),p(),h("ngForOf",o.items)}}function O_(n,e){n&1&&T(0,"tui-loader",8)}var I_=["labels",""];function D_(n,e){if(n&1&&(Ct(0),M(1),yt()),n&2){let o=e.polymorpheusOutlet;p(),V(" ",o," ")}}function S_(n,e){if(n&1){let o=$();m(0,"button",7,1),x("click",function(){let i=O(o).$implicit,r=_(3);return I(r.itemClick.emit(i))}),C(2,D_,2,1,"ng-container",8),f()}if(n&2){let o=e.$implicit,t=j(1),i=_(3);h("disabled",i.disabledItemHandler(o))("value",o),p(2),h("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(o,t))}}function P_(n,e){if(n&1&&(m(0,"tui-opt-group",5),C(1,S_,3,4,"button",6),f()),n&2){let o=e.$implicit,t=e.index,i=_(2);h("label",i.labels[t]),p(),h("ngForOf",o)}}function E_(n,e){if(n&1&&(m(0,"tui-data-list",3),C(1,P_,2,2,"tui-opt-group",4),f()),n&2){let o=_();h("emptyContent",o.emptyContent)("size",o.size),p(),h("ngForOf",o.items)}}function k_(n,e){n&1&&T(0,"tui-loader",9)}var R_="[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}",Dl=(()=>{let e=class e{constructor(){this.itemsHandlers=u(Hp),this.optionsQuery=Ce,this.items=[],this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=Ra(),this.itemClick=new rt,this.itemContent=({$implicit:t})=>this.itemsHandlers.stringify(t)}getContext(t,{nativeElement:i}){return{$implicit:t,active:cn(i)}}getOptions(t=!1){return this.optionsQuery.filter(({disabled:i})=>t||!i).map(({value:i})=>i).filter(Jt)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-data-list-wrapper",3,"labels",""]],viewQuery:function(i,r){if(i&1&&Dt(De,5),i&2){let s;it(s=nt())&&(r.optionsQuery=s)}},inputs:{items:"items",disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"},outputs:{itemClick:"itemClick"},standalone:!0,features:[E([Wo(e)]),D],decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-data-list-wrapper__loader",1,"t-loader"]],template:function(i,r){if(i&1&&C(0,M_,2,3,"tui-data-list",2)(1,O_,1,0,"ng-template",null,0,gt),i&2){let s=j(2);h("ngIf",r.items)("ngIfElse",s)}},dependencies:[Qe,De,ot,Pt,Il,Fa,wt],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0});let n=e;return n})(),qp=(()=>{let e=class e extends Dl{constructor(){super(...arguments),this.items=[],this.labels=[]}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275cmp=b({type:e,selectors:[["tui-data-list-wrapper","labels",""]],inputs:{items:"items",labels:"labels"},standalone:!0,features:[E([Wo(e)]),q,D],attrs:I_,decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-loader"]],template:function(i,r){if(i&1&&C(0,E_,2,3,"tui-data-list",2)(1,k_,1,0,"ng-template",null,0,gt),i&2){let s=j(2);h("ngIf",r.items)("ngIfElse",s)}},dependencies:[Qe,De,Ad,ot,Pt,Il,wt,Fa],styles:[R_],changeDetection:0});let n=e;return n})();var Sn=(()=>{let e=class e{constructor(){this.elementRef=u(Et).nativeElement,this.ngZone=u(ht),this.maskedElement=null,this.options=null,this.elementPredicate=Lp;let t=u(Ki,{self:!0,optional:!0});if(t){let i=t.writeValue.bind(t);t.writeValue=r=>{i(this.options?Dn(String(r??""),this.options):r)}}}ngOnChanges(){return zi(this,null,function*(){var s;let{elementPredicate:t,options:i}=this;if((s=this.maskedElement)==null||s.destroy(),!i)return;let r=yield t(this.elementRef);this.elementPredicate===t&&this.ngZone.runOutsideAngular(()=>{this.maskedElement=new gs(r,i)})})}ngOnDestroy(){var t;(t=this.maskedElement)==null||t.destroy()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","maskito",""]],inputs:{options:[0,"maskito","options"],elementPredicate:[0,"maskitoElement","elementPredicate"]},standalone:!0,features:[Xt]});let n=e;return n})();function _i(n,e,o){let t=Math.min(Number(o),Math.max(Number(e),Number(n)));return n instanceof Date?new Date(t):t}function ih(n){return n.replaceAll(/\W/g,"").length}function Kp(n,{day:e,month:o,year:t}={}){let i=new Date(n);return e&&i.setDate(i.getDate()+e),o&&i.setMonth(i.getMonth()+o),t&&i.setFullYear(i.getFullYear()+t),i}var nh=n=>{var e,o,t;return{day:((e=n.match(/d/g))===null||e===void 0?void 0:e.length)||0,month:((o=n.match(/m/g))===null||o===void 0?void 0:o.length)||0,year:((t=n.match(/y/g))===null||t===void 0?void 0:t.length)||0}};function rh(n){return{day:String(n.getDate()).padStart(2,"0"),month:String(n.getMonth()+1).padStart(2,"0"),year:String(n.getFullYear()).padStart(4,"0"),hours:String(n.getHours()).padStart(2,"0"),minutes:String(n.getMinutes()).padStart(2,"0"),seconds:String(n.getSeconds()).padStart(2,"0"),milliseconds:String(n.getMilliseconds()).padStart(3,"0")}}function F_(n,e){let o=ih(e),[t=""]=n.match(new RegExp(`(\\D*\\d){${o}}`))||[];return t}function Rl(n,e){return n.length!o.match(/^0+$/))}function zr(n,e,o){let t=ih(e);return n.replace(o,"").match(new RegExp(`(\\D*\\d[^\\d\\s]*){1,${t}}`,"g"))||[]}function Br(n,e){let o=e.replaceAll(/[^dmy]/g,""),t=n.replaceAll(/\D+/g,""),i={day:t.slice(o.indexOf("d"),o.lastIndexOf("d")+1),month:t.slice(o.indexOf("m"),o.lastIndexOf("m")+1),year:t.slice(o.indexOf("y"),o.lastIndexOf("y")+1)};return Object.fromEntries(Object.entries(i).filter(([r,s])=>!!s).sort(([r],[s])=>e.toLowerCase().indexOf(r[0])>e.toLowerCase().indexOf(s[0])?1:-1))}function Al(n,e){var o,t,i,r,s,a,l;let c=((o=n.year)===null||o===void 0?void 0:o.length)===2?`20${n.year}`:n.year,d=new Date(Number(c??"0"),Number((t=n.month)!==null&&t!==void 0?t:"1")-1,Number((i=n.day)!==null&&i!==void 0?i:"1"),Number((r=e==null?void 0:e.hours)!==null&&r!==void 0?r:"0"),Number((s=e==null?void 0:e.minutes)!==null&&s!==void 0?s:"0"),Number((a=e==null?void 0:e.seconds)!==null&&a!==void 0?a:"0"),Number((l=e==null?void 0:e.milliseconds)!==null&&l!==void 0?l:"0"));return d.setFullYear(Number(c??"0")),d}var oh=", ";function Pn({day:n,month:e,year:o,hours:t,minutes:i,seconds:r,milliseconds:s},{dateMode:a,dateTimeSeparator:l=oh,timeMode:c}){var d;let g=((d=a.match(/y/g))===null||d===void 0?void 0:d.length)===2?o==null?void 0:o.slice(-2):o;return(a+(c?l+c:"")).replaceAll(/d+/g,n??"").replaceAll(/m+/g,e??"").replaceAll(/y+/g,g??"").replaceAll(/H+/g,t??"").replaceAll("MSS",s??"").replaceAll(/M+/g,i??"").replaceAll(/S+/g,r??"").replaceAll(/^\D+/g,"").replaceAll(/\D+$/g,"")}var sh={day:31,month:12,year:9999},L_=[".",",","\u0431","\u044E"],N_=new Date("0001-01-01"),ah=new Date("9999-12-31");var V_=[":","."];var El="\xA0",H_="\u200B",Os="\u2013",Fl="\u2014",Hr="-",Ms="\u2212",Ll="\u30FC";function z_({dateString:n,dateModeTemplate:e,dateSegmentsSeparator:o,offset:t,selection:[i,r]}){let s=Br(n,e),a=Object.entries(s),l={};for(let[g,v]of a){let y=Pn(l,{dateMode:e}),S=sh[g],W=y.length&&o.length,Q=t+y.length+W+nh(e)[g],Tt=Q>=i&&Q===r;if(Tt&&Number(v)>Number(S))return{validatedDateString:"",updatedSelection:[i,r]};if(Tt&&Number(v)<1)return{validatedDateString:"",updatedSelection:[i,r]};l[g]=v}let c=Pn(l,{dateMode:e}),d=c.length-n.length;return{validatedDateString:c,updatedSelection:[i+d,r+d]}}var lh=/[\\^$.*+?()[\]{}|]/g,B_=new RegExp(lh.source);function ee(n){return n&&B_.test(n)?n.replaceAll(lh,"\\$&"):n}function Le(n,{prefix:e,postfix:o}){var t,i;let r=new RegExp(`^${ee(e)}`),s=new RegExp(`${ee(o)}$`),[a=""]=(t=n.match(r))!==null&&t!==void 0?t:[],[l=""]=(i=n.match(s))!==null&&i!==void 0?i:[],c=n.replace(r,"").replace(s,"");return{extractedPrefix:a,extractedPostfix:l,cleanValue:c}}function U_(n,e){let o="";for(let t=0;tString.fromCharCode(e.charCodeAt(0)-65248))}function ch({dateModeTemplate:n,dateSegmentSeparator:e,splitFn:o,uniteFn:t}){return({value:i,selection:r})=>{var s;let[a,l]=r,{dateStrings:c,restPart:d=""}=o(i),g=[],v=0;c.forEach(S=>{let W=Br(S,n),Tt=Object.entries(W).reduce((It,[Rt,Me])=>{let{validatedSegmentValue:sc,prefixedZeroesCount:Un}=kl(Me,`${sh[Rt]}`);return v+=Un,Object.assign(Object.assign({},It),{[Rt]:sc})},{});g.push(Pn(Tt,{dateMode:n}))});let y=t(g,i)+(!((s=c[c.length-1])===null||s===void 0)&&s.endsWith(e)?e:"")+d;return v&&y.slice(l+v,l+v+e.length)===e&&(v+=e.length),{selection:[a+v,l+v],value:y}}}function j_({dateModeTemplate:n,firstDateEndSeparator:e,dateSegmentSeparator:o,pseudoFirstDateEndSeparators:t}){return({elementState:i,data:r})=>{let{value:s,selection:a}=i,l=F_(s,n),c=t.filter(g=>!e.includes(g)&&g!==o),d=new RegExp(`[${c.join("")}]`,"gi");return{elementState:{selection:a,value:l&&s.length>l.length?l+s.slice(l.length).replace(/^[\D\s]*/,e):s},data:r.replace(d,e)}}}function Nl(){return({elementState:n,data:e})=>{let{value:o,selection:t}=n;return{elementState:{selection:t,value:Xp(o)},data:Xp(e)}}}function $_(n,e){let o=nh(e);return Object.fromEntries(Object.entries(n).map(([t,i])=>{let r=o[t];return[t,i.length===r&&i.match(/^0+$/)?"1".padStart(r,"0"):i]}))}function uh({dateModeTemplate:n,min:e=N_,max:o=ah,rangeSeparator:t="",dateSegmentSeparator:i="."}){return({value:r,selection:s})=>{let a=t&&r.endsWith(t),l=zr(r,n,t),c="";for(let d of l){c+=c?t:"";let g=Br(d,n);if(!Rl(d,n)){let S=$_(g,n),W=Pn(S,{dateMode:n}),Q=d.endsWith(i)?i:"";c+=W+Q;continue}let v=Al(g),y=_i(v,e,o);c+=Pn(rh(y),{dateMode:n})}return{selection:s,value:c+(a?t:"")}}}function dh({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:o="",dateTimeSeparator:t=oh}){return({elementState:i,data:r})=>{let s=o?new RegExp(`${o}|-`):t,a=r.split(s),l=r.includes(t)?[a[0]]:a;if(l.every(c=>c.trim().split(/\D/).filter(Boolean).length===n.split(e).length)){let c=l.map(d=>W_(d,n,e)).join(o);return{elementState:i,data:`${c}${r.includes(t)&&t+a[1]||""}`}}return{elementState:i,data:r}}}function W_(n,e,o){let t=n.split(/\D/).filter(Boolean),i=e.split(o);return t.map((s,a)=>a===i.length-1?s:s.padStart(i[a].length,"0")).join(o)}function G_(n){let e=new RegExp(`${ee(n)}$`);return n?({value:o,selection:t},i)=>{if(!o&&!i.value.endsWith(n))return{value:o,selection:t};if(!o.endsWith(n)&&!i.value.endsWith(n))return{selection:t,value:o+n};let r=i.value.replace(e,""),s=i.selection[1]>=r.length,a=U_(r,o);return{selection:t,value:Array.from(n).reverse().reduce((l,c,d)=>{let g=l.length-1-d,v=a[g]===c&&s;return l[g]!==c||v?l.slice(0,g+1)+c+l.slice(g+1):l},o)}}:En}function Y_(n){return n?({value:e,selection:o},t)=>{if(e.startsWith(n)||!e&&!t.value.startsWith(n))return{value:e,selection:o};let[i,r]=o,s=Array.from(n).reduce((l,c,d)=>l[d]===c?l:l.slice(0,d)+c+l.slice(d),e),a=s.length-e.length;return{selection:[i+a,r+a],value:s}}:En}function ph({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:o=""}){return({elementState:t,data:i})=>{let{value:r,selection:s}=t;if(i===e)return{elementState:t,data:s[0]===r.length?i:""};let a=i.replaceAll(new RegExp(`[^\\d${ee(e)}${o}]`,"g"),"");if(!a)return{elementState:t,data:""};let[l,c]=s,d=c+i.length,g=r.slice(0,l)+a+r.slice(d),v=zr(g,n,o),y="",S=!!o&&g.includes(o);for(let Q of v){let{validatedDateString:Tt,updatedSelection:It}=z_({dateString:Q,dateModeTemplate:n,dateSegmentsSeparator:e,offset:y.length,selection:[l,d]});if(Q&&!Tt)return{elementState:t,data:""};d=It[1],y+=S&&!y?Tt+o:Tt}let W=y.slice(l,d);return{elementState:{selection:s,value:y.slice(0,l)+W.split(e).map(Q=>"0".repeat(Q.length)).join(e)+y.slice(d)},data:W}}}function Vl(n,e,o){return(t,i)=>{let r=()=>e(t,i);return t.addEventListener(n,r,o),()=>t.removeEventListener(n,r,o)}}function hh(n){return e=>{let o=e.ownerDocument,t=0,i=()=>t++,r=()=>{t=Math.max(--t,0)},s=()=>{if(!e.matches(":focus"))return;if(t)return o.addEventListener("mouseup",s,{once:!0,passive:!0});let a=e.selectionStart||0,l=e.selectionEnd||0,[c,d]=n(e.value,[a,l]);(c>a||d{o.removeEventListener("selectionchange",s),o.removeEventListener("mousedown",i),o.removeEventListener("mouseup",r)}}}function mh(){return({elementState:n},e)=>{let{value:o,selection:t}=n;if(!o||Q_(o,t))return{elementState:n};let[i,r]=t,s=o.slice(i,r).replaceAll(/\d/g,"0"),a=o.slice(0,i)+s+o.slice(r);return e==="validation"||e==="insert"&&i===r?{elementState:{selection:t,value:a}}:{elementState:{selection:e==="deleteBackward"||e==="insert"?[i,i]:[r,r],value:a}}}}function Q_(n,[e,o]){return o===n.length}function fh({mode:n,separator:e=".",max:o,min:t}){let i=n.split("/").join(e);return Object.assign(Object.assign({},Fe),{mask:Array.from(i).map(r=>e.includes(r)?r:/\d/),overwriteMode:"replace",preprocessors:[Nl(),mh(),dh({dateModeTemplate:i,dateSegmentsSeparator:e}),ph({dateModeTemplate:i,dateSegmentsSeparator:e})],postprocessors:[ch({dateModeTemplate:i,dateSegmentSeparator:e,splitFn:r=>({dateStrings:[r]}),uniteFn:([r])=>r}),uh({min:t,max:o,dateModeTemplate:i,dateSegmentSeparator:e})]})}var Z_=[Hr,Os,Fl,Ms,Ll];function q_({dateModeTemplate:n,rangeSeparator:e,minLength:o,maxLength:t,max:i=ah}){return Pl(o)&&Pl(t)?En:({value:r,selection:s})=>{let a=zr(r,n,e);if(a.length!==2||a.some(S=>!Rl(S,n)))return{value:r,selection:s};let[l,c]=a.map(S=>Al(Br(S,n))),d=Kp(l,Object.assign(Object.assign({},o),{day:(o==null?void 0:o.day)&&o.day-1})),g=Pl(t)?i:Kp(l,Object.assign(Object.assign({},t),{day:(t==null?void 0:t.day)&&t.day-1})),v=_i(c,d,i),y=v>g?g:v;return{selection:s,value:a[0]+e+Pn(rh(y),{dateMode:n})}}}function K_({dateModeTemplate:n,rangeSeparator:e}){return({value:o,selection:t})=>{let i=zr(o,n,e),r=i.length===2&&i.every(v=>Rl(v,n)),[s,a]=t,l=s>=o.length,c=s===0&&a>=o.length;if(!(l||c)||!r)return{value:o,selection:t};let[d,g]=i.map(v=>Al(Br(v,n)));return{selection:t,value:d>g?i.reverse().join(e):o}}}function gh({mode:n,min:e,max:o,minLength:t,maxLength:i,dateSeparator:r=".",rangeSeparator:s=`${El}${Os}${El}`}){let a=n.split("/").join(r),l=Array.from(a).map(c=>r.includes(c)?c:/\d/);return Object.assign(Object.assign({},Fe),{mask:[...l,...Array.from(s),...l],overwriteMode:"replace",preprocessors:[Nl(),j_({dateModeTemplate:a,dateSegmentSeparator:r,firstDateEndSeparator:s,pseudoFirstDateEndSeparators:Z_}),mh(),dh({dateModeTemplate:a,rangeSeparator:s,dateSegmentsSeparator:r}),ph({dateModeTemplate:a,rangeSeparator:s,dateSegmentsSeparator:r})],postprocessors:[ch({dateModeTemplate:a,dateSegmentSeparator:r,splitFn:c=>({dateStrings:zr(c,a,s)}),uniteFn:(c,d)=>c.reduce((g,v,y)=>g+v+(!y&&d.includes(s)?s:""),"")}),uh({min:e,max:o,dateModeTemplate:a,rangeSeparator:s,dateSegmentSeparator:r}),q_({dateModeTemplate:a,minLength:t,maxLength:i,max:o,rangeSeparator:s}),K_({dateModeTemplate:a,rangeSeparator:s})]})}var eS=new RegExp(`[${V_.map(ee).join("")}]$`);function X_({prefix:n,postfix:e}){return({elementState:o,data:t})=>{let{cleanValue:i}=Le(t,{prefix:n,postfix:e});return{elementState:o,data:i}}}function vh({decimalSeparator:n,isNegativeAllowed:e,precision:o,thousandSeparator:t,prefix:i,postfix:r,decimalPseudoSeparators:s=[],pseudoMinuses:a=[],minusSign:l}){let c=Jp(i),d="\\d",g=e?`[${l}${a.map(W=>`\\${W}`).join("")}]?`:"",v=t?`[${d}${ee(t).replaceAll(/\s/g,"\\s")}]*`:`[${d}]*`,y=o>0?`([${ee(n)}${s.map(ee).join("")}]${d}{0,${Number.isFinite(o)?o:""}})?`:"",S=Jp(r);return new RegExp(`^${c}${g}${v}${y}${S}$`)}function Jp(n){return n?`${n.split("").map(e=>`${ee(e)}?`).join("")}`:""}function Ni(n,e="."){let o=!!n.match(new RegExp(`^\\D*[${Ms}\\${Hr}${Os}${Fl}${Ll}]`)),t=ee(e),i=n.replaceAll(new RegExp(`${t}(?!\\d)`,"g"),"").replaceAll(new RegExp(`[^\\d${t}]`,"g"),"").replace(e,".");return i?Number((o?Hr:"")+i):NaN}function J_(n){let e=String(n),[o,t]=e.split("e-"),i=e;if(t){let[,r]=o.split("."),s=Number(t)+((r==null?void 0:r.length)||0);i=n.toFixed(s)}return i}function _h(n,{decimalSeparator:e,thousandSeparator:o}){let[t="",i=""]=n.split(e),[,r="",s=""]=t.match(new RegExp(`([^\\d${ee(o)}]+)?(.*)`))||[];return{minus:r,integerPart:s,decimalPart:i}}function tC({decimalSeparator:n,thousandSeparator:e,decimalPseudoSeparators:o=L_}){return o.filter(t=>t!==e&&t!==n)}function eC({decimalSeparator:n,precision:e,decimalZeroPadding:o,prefix:t,postfix:i}){return e<=0||!o?En:({value:r,selection:s})=>{let{cleanValue:a,extractedPrefix:l,extractedPostfix:c}=Le(r,{prefix:t,postfix:i});if(Number.isNaN(Ni(a,n)))return{value:r,selection:s};let[d,g=""]=a.split(n);return{value:l+d+n+g.padEnd(e,"0")+c,selection:s}}}function iC({prefix:n,postfix:e,decimalSeparator:o,thousandSeparator:t}){return({value:i,selection:r})=>{let[s]=r,{cleanValue:a,extractedPrefix:l,extractedPostfix:c}=Le(i,{prefix:n,postfix:e}),{minus:d,integerPart:g,decimalPart:v}=_h(a,{decimalSeparator:o,thousandSeparator:t}),y=!g&&!v&&a.includes(o);return!g&&!Number(v)&&s===(d+l).length||y?{selection:r,value:l+d+c}:{value:i,selection:r}}}function nC({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:o,prefix:t,postfix:i,minusSign:r}){let s=!0,a=vh({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:o,prefix:"",postfix:"",thousandSeparator:"",precision:1/0,isNegativeAllowed:!0,minusSign:r});return({elementState:l,data:c})=>{if(!s)return{elementState:l,data:c};s=!1;let{value:d,selection:g}=l,[v,y]=g,{extractedPrefix:S,cleanValue:W,extractedPostfix:Q}=Le(d,{prefix:t,postfix:i}),Tt=Dn({selection:[Math.max(v-S.length,0),_i(y-S.length,0,W.length)],value:W},{mask:a}),[It,Rt]=Tt.selection;return{elementState:{selection:[It+S.length,Rt+S.length],value:S+Tt.value+Q},data:c}}}function rC({decimalSeparator:n,thousandSeparator:e,prefix:o,postfix:t}){let i=s=>{let a=ee(e);return s.replace(new RegExp(`^(\\D+)?[0${a}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${a}]+(?=[1-9])`),"$1")},r=(s,a)=>{let l=s.slice(0,a),c=s.slice(a).startsWith("0");return l.length-i(l).length+(c?1:0)};return({value:s,selection:a})=>{let[l,c]=a,{cleanValue:d,extractedPrefix:g,extractedPostfix:v}=Le(s,{prefix:o,postfix:t}),y=d.includes(n),[S,W=""]=d.split(n),Q=i(S);if(S===Q)return{value:s,selection:a};let Tt=l-r(s,l),It=c-r(s,c);return{value:g+Q+(y?n:"")+W+v,selection:[Math.max(Tt,0),Math.max(It,0)]}}}function oC({min:n,max:e,decimalSeparator:o,minusSign:t}){return({value:i,selection:r})=>{let s=Ni(i,o),a=s>0?Math.min(s,e):Math.max(s,n);if(s&&a!==s){let l=`${a}`.replace(".",o).replace(Hr,t);return{value:l,selection:[l.length,l.length]}}return{value:i,selection:r}}}function sC({decimalSeparator:n,thousandSeparator:e,decimalZeroPadding:o}){return({elementState:t,data:i},r)=>{let{value:s,selection:a}=t,[l,c]=a,d=s.slice(l,c),g=o?[n,e]:[e],v=o&&l>s.indexOf(n)&&!!d.match(/^0+$/gi);return r!=="deleteBackward"&&r!=="deleteForward"||!g.includes(d)&&!v?{elementState:t,data:i}:{elementState:{value:s,selection:r==="deleteForward"?[c,c]:[l,l]},data:i}}}function aC({decimalSeparator:n,precision:e,prefix:o,postfix:t}){let i=new RegExp(`^\\D*${ee(n)}`);return({elementState:r,data:s})=>{let{value:a,selection:l}=r,{cleanValue:c,extractedPrefix:d}=Le(a,{prefix:o,postfix:t}),[g,v]=l,y=_i(g-d.length,0,c.length),S=_i(v-d.length,0,c.length);if(e<=0||c.slice(0,y).includes(n)||c.slice(S).includes(n)||!s.match(i))return{elementState:r,data:s};let W=c.slice(0,y).match(/\d+/);return{elementState:r,data:W?s:`0${s}`}}}function th({validCharacter:n,pseudoCharacters:e,prefix:o,postfix:t}){let i=new RegExp(`[${e.join("")}]`,"gi");return({elementState:r,data:s})=>{let{value:a,selection:l}=r,{cleanValue:c,extractedPostfix:d,extractedPrefix:g}=Le(a,{prefix:o,postfix:t});return{elementState:{selection:l,value:g+c.replace(i,n)+d},data:s.replace(i,n)}}}function lC({decimalSeparator:n,prefix:e,postfix:o}){return({elementState:t,data:i})=>{let{value:r,selection:s}=t,[a,l]=s,{cleanValue:c}=Le(r,{prefix:e,postfix:o});return{elementState:t,data:!c.includes(n)||r.slice(a,l+1).includes(n)?i:i.replaceAll(new RegExp(ee(n),"gi"),"")}}}function cC({thousandSeparator:n,decimalSeparator:e,prefix:o,postfix:t}){if(!n)return En;let i=(...r)=>r.every(s=>/\s/.test(s));return({value:r,selection:s})=>{let{cleanValue:a,extractedPostfix:l,extractedPrefix:c}=Le(r,{prefix:o,postfix:t}),{minus:d,integerPart:g,decimalPart:v}=_h(a,{decimalSeparator:e,thousandSeparator:n}),[y,S]=s,[W,Q]=s,Tt=Array.from(g).reduceRight((It,Rt,Me)=>{let Un=!(!Me&&Rt===n)&&It.length&&(It.length+1)%4===0;return Un&&(Rt===n||i(Rt,n))?n+It:Rt===n&&!Un?(Me&&Me<=y&&W--,Me&&Me<=S&&Q--,It):Un?(Me<=y&&W++,Me<=S&&Q++,Rt+n+It):Rt+It},"");return{value:c+d+Tt+(a.includes(e)?e:"")+v+l,selection:[W,Q]}}}function uC({precision:n,decimalSeparator:e,prefix:o,postfix:t}){if(n>0)return En;let i=new RegExp(`${ee(e)}.*$`,"g");return({elementState:r,data:s})=>{let{value:a,selection:l}=r,{cleanValue:c,extractedPrefix:d,extractedPostfix:g}=Le(a,{prefix:o,postfix:t}),[v,y]=l,S=d+c.replace(i,"")+g;return{elementState:{selection:[Math.min(v,S.length),Math.min(y,S.length)],value:S},data:s.replace(i,"")}}}var eh=[0,0];function dC({decimalSeparator:n,thousandSeparator:e,prefix:o,postfix:t}){let i=rC({decimalSeparator:n,thousandSeparator:e,prefix:o,postfix:t});return Vl("blur",r=>{let s=i({value:r.value,selection:eh},{value:"",selection:eh}).value;_s(r,s)},{capture:!0})}function pC({min:n,max:e,decimalSeparator:o}){return Vl("blur",(t,i)=>{let r=Ni(t.value,o),s=_i(r,n,e);!Number.isNaN(r)&&r!==s&&_s(t,Dn(J_(s),i))},{capture:!0})}function hC({decimalSeparator:n,prefix:e,postfix:o}){return Vl("blur",t=>{let{cleanValue:i,extractedPostfix:r,extractedPrefix:s}=Le(t.value,{prefix:e,postfix:o}),a=s+i.replace(new RegExp(`^(\\D+)?${ee(n)}`),`$10${n}`)+r;_s(t,a)},{capture:!0})}function Ch({max:n=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:o=0,thousandSeparator:t=El,decimalSeparator:i=".",decimalPseudoSeparators:r,decimalZeroPadding:s=!1,prefix:a="",postfix:l="",minusSign:c=Ms}={}){let d=[Hr,Os,Fl,Ll,Ms].filter(y=>y!==t&&y!==i&&y!==c),g=tC({decimalSeparator:i,thousandSeparator:t,decimalPseudoSeparators:r}),v=a.endsWith(i)&&o>0?`${a}${H_}`:a;return Object.assign(Object.assign({},Fe),{mask:vh({decimalSeparator:i,precision:o,thousandSeparator:t,prefix:v,postfix:l,isNegativeAllowed:e<0,minusSign:c}),preprocessors:[Nl(),nC({decimalSeparator:i,decimalPseudoSeparators:g,pseudoMinuses:d,prefix:v,postfix:l,minusSign:c}),X_({prefix:v,postfix:l}),th({validCharacter:c,pseudoCharacters:d,prefix:v,postfix:l}),th({validCharacter:i,pseudoCharacters:g,prefix:v,postfix:l}),aC({decimalSeparator:i,precision:o,prefix:v,postfix:l}),sC({decimalSeparator:i,decimalZeroPadding:s,thousandSeparator:t}),uC({precision:o,decimalSeparator:i,prefix:v,postfix:l}),lC({decimalSeparator:i,prefix:v,postfix:l})],postprocessors:[oC({decimalSeparator:i,min:e,max:n,minusSign:c}),Y_(v),G_(l),cC({decimalSeparator:i,thousandSeparator:t,prefix:v,postfix:l}),eC({decimalSeparator:i,decimalZeroPadding:s,precision:o,prefix:v,postfix:l}),iC({prefix:v,postfix:l,decimalSeparator:i,thousandSeparator:t})],plugins:[dC({decimalSeparator:i,thousandSeparator:t,prefix:v,postfix:l}),hC({decimalSeparator:i,prefix:v,postfix:l}),pC({min:e,max:n,decimalSeparator:i})],overwriteMode:s?({value:y,selection:[S]})=>S<=y.indexOf(i)?"shift":"replace":"shift"})}var mC=["type","range","tuiSlider",""];var fC=7;function yh(n,e){let o=n.findIndex((r,s)=>s&&e(r)),t=n[o-1]||n[0],i=n[o]||n[n.length-1];return[t,i]}function gC(n,e){let[[o,t],[i,r]]=yh(e,([l,c])=>n<=l),s=(n-o)/(i-o),a=(r-t)*s+t;return hu(a,fC)}function vC(n,e){let[[o,t],[i,r]]=yh(e,([a,l])=>n<=l),s=(n-t)/(r-t)||0;return(i-o)*s+o}var _C={size:"m",trackColor:"var(--tui-background-neutral-2)"},CC=K(_C);var Hl=(()=>{let e=class e{constructor(){var t;this.injector=u(ui),this.control=u(le,{self:!0,optional:!0}),this.options=u(CC),this.size=this.options.size,this.segments=1,this.el=tt(),this.control instanceof Wt&&((t=this.control.valueChanges)==null||t.pipe(de(u(At)),li(1)).subscribe())}get valueRatio(){return(this.value-this.min)/(this.max-this.min)||0}get min(){return Number(this.el.min)}get max(){return Number(this.el.max||100)}get value(){return!this.hasKeySteps&&this.control instanceof Wt?this.control.viewModel:Number(this.el.value)||0}set value(t){this.el.value=`${t}`}get segmentWidth(){return 100/Math.max(1,this.segments)}get hasKeySteps(){return!!this.injector.get(yC,null)}get step(){return Number(this.el.step)||1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["input","type","range","tuiSlider",""]],hostVars:7,hostBindings:function(i,r){i&1&&x("input",function(){return 0}),i&2&&(U("data-size",r.size),R("--tui-slider-track-color",r.options.trackColor)("--tui-slider-fill-ratio",r.valueRatio)("--tui-slider-segment-width",r.segmentWidth,"%"))},inputs:{size:"size",segments:"segments"},standalone:!0,features:[D],attrs:mC,decls:0,vars:0,template:function(i,r){},styles:['[_nghost-%COMP%]{position:relative;display:block;width:100%;color:var(--tui-background-accent-1);cursor:pointer;-webkit-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}[data-size=s][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=s][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[data-size=m][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=m][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[_nghost-%COMP%]::-webkit-slider-container{border-radius:inherit}[data-size=m][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),auto}[data-size=s][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}[data-size=m][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}[data-size=s][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=m][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[_nghost-%COMP%]::-moz-range-progress{border-radius:inherit}[_nghost-%COMP%]::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}'],changeDetection:0});let n=e;return ct([ut],n.prototype,"hasKeySteps",null),n})(),yC=(()=>{let e=class e extends xa{constructor(){super(...arguments),this.slider=u(Wi(()=>Hl))}writeValue(t){if(t===null)return;let i=en(t,this.min,this.max);this.slider.value=this.transformToNativeValue(i)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.onChange(gC(this.slider.valueRatio*100,this.keySteps))}transformToNativeValue(t){let{min:i,max:r}=this.slider;return vC(t,this.keySteps)*(r-i)/100+i}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(i,r){i&1&&x("blur",function(){return r.onTouched()})("input",function(){return r.updateControlValue()})("change",function(){return r.updateControlValue()}),i&2&&(Oe("disabled",r.disabled()),U("aria-valuenow",r.value())("aria-valuemin",r.min)("aria-valuemax",r.max))},inputs:{keySteps:"keySteps"},standalone:!0,features:[E([Zu(0)]),q]});let n=e;return n})();var bC=["tuiProgressLabel",""],wC=[[["progress"]],[["tui-progress-circle"]],"*"],TC=["progress","tui-progress-circle","*"],xC={color:null,size:"m"},MC=K(xC);var bh=(()=>{let e=class e{constructor(){this.options=u(MC),this.animationDelay$=F(!0).pipe(Ke(0)),this.value=0,this.max=1,this.color=this.options.color,this.size=this.options.size}get progressRatio(){let t=this.value/this.max;return Number.isFinite(t)?t:0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-progress-circle"]],hostVars:5,hostBindings:function(i,r){i&2&&(U("data-size",r.size),R("--tui-progress-color",r.color)("--progress-ratio",r.progressRatio))},inputs:{value:"value",max:"max",color:"color",size:"size"},standalone:!0,features:[D],decls:5,vars:6,consts:[[1,"t-hidden-progress",3,"max","value"],["aria-hidden","true","height","100%","width","100%",1,"t-svg"],["cx","50%","cy","50%",1,"t-track"],["cx","50%","cy","50%",1,"t-progress"]],template:function(i,r){i&1&&(T(0,"progress",0),to(),m(1,"svg",1),T(2,"circle",2)(3,"circle",3),L(4,"async"),f()),i&2&&(h("max",r.max)("value",r.value),p(3),H("t-progress_filled",G(4,4,r.animationDelay$)))},dependencies:[at],styles:["[_nghost-%COMP%]{--t-track-stroke: var(--tui-thickness, .375em);--t-progress-stroke: var(--tui-thickness, .375em);position:relative;display:block;color:var(--tui-background-accent-1);transform:rotate(-90deg);transform-origin:center;font-size:1rem;width:var(--t-diameter);height:var(--t-diameter)}[data-size=xxs][_nghost-%COMP%]{--t-diameter: 2em}[data-size=xs][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=s][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=m][_nghost-%COMP%]{--t-diameter: 4em}[data-size=l][_nghost-%COMP%]{--t-diameter: 5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 6em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 8em}.t-track[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-background-neutral-1);stroke-width:var(--t-track-stroke);r:calc((var(--t-diameter) - var(--t-track-stroke)) / 2)}.t-progress[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-progress-color, currentColor);stroke-linecap:round;stroke-width:var(--t-progress-stroke);stroke-dasharray:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));stroke-dashoffset:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));r:calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)}.t-progress_filled[_ngcontent-%COMP%]{transition:stroke-dashoffset var(--tui-duration) linear;stroke-dashoffset:calc(calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)) - var(--progress-ratio) * calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)))}.t-hidden-progress[_ngcontent-%COMP%]{position:absolute;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0}.t-svg[_ngcontent-%COMP%]{overflow:unset}"],changeDetection:0});let n=e;return n})(),wh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["label","tuiProgressLabel",""]],standalone:!0,features:[D],attrs:bC,ngContentSelectors:TC,decls:4,vars:0,consts:[[1,"t-label"]],template:function(i,r){i&1&&(_t(wC),Z(0),Z(1,1),m(2,"span",0),Z(3,2),f())},styles:["[_nghost-%COMP%]{position:relative;display:inline-block;color:var(--tui-text-primary)}.t-label[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;font:var(--tui-font-text-s);flex-direction:column;justify-content:center;align-items:center}"],changeDetection:0});let n=e;return n})();var Is={DMY:"dd/mm/yyyy",MDY:"mm/dd/yyyy",YMD:"yyyy/mm/dd"};var zl=1.5,OC=2.5;function Th(n,e=!1,o=!1,t=!1,i="m"){let r=i==="s"?0:.25,s=0;return n&&(s+=zl+r),e&&(s+=zl+r),o&&(s+=zl+r),t&&(s+=OC+r),s}var LS=`?v=${wu}`;var IC=/^((?!chrome|android).)*safari/i;function xh(n){return $u(n)||IC.test(n.userAgent.toLowerCase())}var NS=$o({limitWidth:"fixed",align:"right"});var WS=K({AD:"+376###-###",AE:"+971-##-###-####",AF:"+93##-###-####",AG:"+1(268) ###-####",AI:"+1(264) ###-####",AL:"+355(###) ###-###",AM:"+374##-###-###",AO:"+244(###) ###-###",AR:"+54(###) ####-####",AT:"+43(###) ###-####",AU:"+61#-####-####",AW:"+297###-####",AZ:"+994##-###-##-##",BA:"+387 ###-####-##",BB:"+1(246) ###-####",BD:"+880##-###-###",BE:"+32(###) ###-###",BF:"+226##-##-####",BG:"+359(###) ###-###",BH:"+973####-####",BI:"+257##-##-####",BJ:"+229##-##-####",BL:"+590 ## ## ## ## ##",BM:"+1(441) ###-####",BN:"+673###-####",BO:"+591#-###-####",BQ:"+599-###-####",BR:"+55(##) ####-####",BS:"+1(242) ###-####",BT:"+975#-###-###",BW:"+267##-###-###",BY:"+375(##) ###-##-##",BZ:"+501###-####",CA:"+1(###) ###-####",CD:"+243(###) ###-###",CF:"+236-##-##-####",CG:"+242##-###-####",CH:"+41##-###-####",CI:"+225##-##-###-###",CL:"+56#-####-####",CM:"+237#####-####",CN:"+86(###) ####-####",CO:"+57(###) ###-####",CR:"+506####-####",CU:"+53#-###-####",CV:"+238(###) ##-##",CW:"+5999-###-####",CY:"+357##-###-###",CZ:"+420(###) ###-###",DE:"+49(###) ###-###-##",DJ:"+253##-##-##-##",DK:"+45##-##-##-##",DM:"+1(767) ###-####",DO:"+1(###) ###-####",DZ:"+213##-###-####",EC:"+593##-###-####",EE:"+372####-####",EG:"+20(###) ###-####",ER:"+291#-###-###",ES:"+34(###) ###-###",ET:"+251##-###-####",FI:"+358(###) ###-##-##",FJ:"+679##-#####",FK:"+500#####",FM:"+691###-####",FR:"+33 ## ## ## ## ##",GA:"+241##-##-##-##",GB:"+44##-####-####",GD:"+1(473) ###-####",GE:"+995(###) ###-###",GF:"+594 ## ## ## ## ##",GH:"+233(###) ###-###",GI:"+350###-#####",GL:"+299##-##-##",GM:"+220(###) ##-##",GN:"+224##-###-###",GP:"+590 ## ## ## ## ##",GQ:"+240##-###-####",GR:"+30(###) ###-####",GT:"+502#-###-####",GW:"+245#-######",GY:"+592###-####",HK:"+852####-####",HN:"+504####-####",HR:"+385##-###-####",HT:"+509##-##-####",HU:"+36(###) ###-###",ID:"+62(###) ###-##-###",IE:"+353(###) ###-###",IL:"+972##-###-####",IN:"+91(####) ###-###",IQ:"+964(###) ###-####",IR:"+98(###) ###-####",IS:"+354###-####",IT:"+39(###) ####-###",JM:"+1(876) ###-####",JO:"+962#-####-####",JP:"+81-##-####-####",KE:"+254###-######",KG:"+996(###) ###-###",KH:"+855##-###-###",KM:"+269##-#####",KN:"+1(869) ###-####",KP:"+850####-#############",KR:"+82##-###-####",KW:"+965####-####",KY:"+1(345) ###-####",KZ:"+7(###) ###-##-##",LA:"+856##-##-###-###",LB:"+961##-###-###",LC:"+1(758) ###-####",LI:"+423(###) ###-####",LK:"+94##-###-####",LR:"+231##-###-###",LS:"+266#-###-####",LT:"+370(###) ##-###",LU:"+352(###) ###-###",LV:"+371##-###-###",LY:"+218##-###-####",MA:"+212##-####-###",MC:"+377###-###-###",MD:"+373####-####",ME:"+382##-###-###",MF:"+590 ## ## ## ## ##",MG:"+261##-##-#####",MK:"+389##-###-###",ML:"+223##-##-####",MM:"+95##-###-###",MN:"+976##-##-####",MO:"+853####-####",MQ:"+596 ## ## ## ## ##",MR:"+222##-##-####",MS:"+1(664) ###-####",MT:"+356####-####",MU:"+230####-####",MV:"+960###-####",MW:"+265#-####-####",MX:"+52(###) ###-####",MY:"+60(###) ###-###",MZ:"+258##-###-###",NA:"+264##-###-####",NC:"+687 ### ###",NE:"+227##-##-####",NG:"+234(###) ###-####",NI:"+505####-####",NL:"+31##-###-####",NO:"+47(###) ##-###",NP:"+977##-###-###",NZ:"+64(###) ###-####",OM:"+968##-###-###",PA:"+507###-####",PE:"+51(###) ###-###",PF:"+689 ## ## ## ##",PG:"+675(###) ##-###",PH:"+63(###) ###-####",PK:"+92(###) ###-####",PL:"+48(###) ###-###",PT:"+351##-###-####",PW:"+680###-####",PY:"+595(###) ###-###",QA:"+974####-####",RE:"+262 ## ## ## ## ##",RO:"+40##-###-####",RS:"+381##-###-####",RU:"+7### ###-##-##",RW:"+250(###) ###-###",SA:"+966#-####-####",SB:"+677###-####",SC:"+248#-###-###",SD:"+249##-###-####",SE:"+46##-###-####",SG:"+65####-####",SH:"+290####",SI:"+386##-###-###",SK:"+421(###) ###-###",SL:"+232##-######",SM:"+378####-######",SN:"+221##-###-####",SO:"+252##-###-###",SR:"+597###-####",ST:"+239##-#####",SV:"+503##-##-####",SX:"+1(721) ###-####",SY:"+963##-####-###",SZ:"+268##-##-####",TC:"+1(649) ###-####",TD:"+235##-##-##-##",TG:"+228##-###-###",TH:"+66##-###-####",TJ:"+992##-###-####",TL:"+670###-#####",TM:"+993#-###-####",TN:"+216##-###-###",TO:"+676#####",TR:"+90(###) ###-####",TT:"+1(868) ###-####",TW:"+886#-####-####",TZ:"+255##-###-####",UA:"+380(##) ###-##-##",UG:"+256(###) ###-###",US:"+1(###) ###-####",UY:"+598#-###-##-##",UZ:"+998##-###-####",VC:"+1(784) ###-####",VE:"+58(###) ###-####",VG:"+1(284)###-####",VN:"+84(###) ####-###",VU:"+678##-#####",WS:"+685##-####",XK:"+383##-###-###",YE:"+967###-###-###",YT:"+262 ## ## ## ## ##",ZA:"+27##-###-####",ZM:"+260##-###-####",ZW:"+263#-######",VA:"+39 #### ###-####",WF:"+681 ## ##-##",VI:"+1(340) ###-####",JE:"+44(####) ######",AC:"+247###-####",TV:"+686###-####",TK:"+690###-####",TA:"+290###-####",SS:"+211### ###-###",SJ:"+47 ## ##-##-##",PS:"+970 #### ###-###",PR:"+1(###) ###-####",PM:"+508 ### ##-##-##",NU:"+683 ###-####",NR:"+674 ###-####",NF:"+672##-####",MP:"+1(670) ###-####",MH:"+692 ###-####",KI:"+686 ####-####",IO:"+246 ### ####",IM:"+44(####) ######",GU:"+1(###) ###-###",GG:"+44(###) ###-####",FO:"+298 ######",EH:"+212 #### #####",CX:"+61 # ####-####",CK:"+682 ## ###",CC:"+61 # ####-####",AX:"+358 ## ###-####",AS:"+1(###) ###-####"}),Bl=new z("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function Ci(n){return mt(Bl,n)}var Mh=new z("[TUI_FONTS_READY]",{factory:()=>{var n;return Kt(((n=u(St).fonts)==null?void 0:n.ready)||qt).pipe(Kr({bufferSize:1,refCount:!1}))}}),GS=K({}),YS=Y(()=>xh(u(Ou))),QS=Y(()=>!!u(Si).chrome),ZS=Y(()=>{var n;return typeof((n=u(Si))==null?void 0:n.mozCancelFullScreen)<"u"}),qS=Y(()=>u(Si).location.host.endsWith("stackblitz.io")),KS=new z("[TUI_MONTH_FORMATTER]");var XS=new z("[TUI_SANITIZER]"),Oh=K("textfield"),Ur=new z("[TUI_TEXTFIELD_HOST]");function si(n){return mt(Ur,n)}var JS=Y(()=>u(Si).matchMedia("(any-pointer: coarse)").matches),Ih=new z("[TUI_VALUE_ACCESSOR]");var DC="tui_interactive_",Ul=(()=>{let e=class e{constructor(){this.focusVisible=!1,this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new rt,this.focusVisibleChange=new rt,this.autoIdString=`${DC}${e.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocused(){return!this.computedDisabled&&(this.pseudoFocus??this.focused)}get computedFocusVisible(){return!this.computedDisabled&&(this.pseudoFocus??this.focusVisible)}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get id(){return this.nativeId||this.autoIdString}updateFocused(t){this.focusedChange.emit(t)}updateFocusVisible(t){this.focusVisible!==t&&(this.focusVisible=t,this.focusVisibleChange.emit(t))}};e.autoId=0,e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,hostVars:7,hostBindings:function(i,r){i&2&&(U("data-focused",r.pseudoFocus),H("_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"}});let n=e;return n})(),Vi=(()=>{let e=class e extends Ul{constructor(){super(),this.ngControl=u(le,{optional:!0}),this.refresh$=new pt,this.onTouched=rn,this.onChange=rn,this.fallbackValue=this.getFallbackValue(),this.destroyRef=u(fe),this.cdr=u(At),this.valueTransformer=u(ar,{optional:!0}),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(){return this.previousInternalValue??this.fallbackValue}set value(t){this.updateValue(t)}get safeCurrentValue(){return this.rawValue??this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:t})=>t,!1)}get valid(){return this.safeNgControlData(({valid:t})=>t,!1)}get touched(){return this.safeNgControlData(({touched:t})=>t,!1)}get disabled(){return this.safeNgControlData(({disabled:t})=>t,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:t})=>t,null)}get computedName(){var t;return((t=this.controlName)==null?void 0:t.toString())??null}get controlName(){var t,i;return((i=(t=this.ngControl)==null?void 0:t.name)==null?void 0:i.toString())??null}ngOnInit(){this.refresh$.pipe(Ke(0),Bt(null),A(()=>{var t;return(t=this.ngControl)==null?void 0:t.control}),xt(Jt),zt(),Ft(t=>Ht(t.valueChanges,t.statusChanges)),lt(this.destroyRef)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(t){this.onChange=i=>{t(this.toControlValue(i))},this.refresh$.next()}registerOnTouched(t){this.onTouched=t}setDisabledState(){this.checkControlUpdate()}writeValue(t){let i=this.ngControl instanceof Wt&&this.previousInternalValue===void 0?this.ngControl.model:t;this.refreshLocalValue(this.fromControlValue(i))}updateFocused(t){t||this.controlMarkAsTouched(),super.updateFocused(t)}updateValue(t){this.disabled||this.valueIdenticalComparator(this.value,t)||(this.previousInternalValue=t,this.controlSetValue(t))}valueIdenticalComparator(t,i){return t===i}get rawValue(){let{ngControl:t}=this;if(t===null)return;let i=t instanceof Wt&&this.previousInternalValue===void 0?t.viewModel:t.value;return this.fromControlValue(i)}safeNgControlData(t,i){return(this.ngControl&&t(this.ngControl))??i}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(t){this.onChange(t),this.checkControlUpdate()}refreshLocalValue(t){this.previousInternalValue=t,this.checkControlUpdate()}fromControlValue(t){return this.valueTransformer?this.valueTransformer.fromControlValue(t):t}toControlValue(t){return this.valueTransformer?this.valueTransformer.toControlValue(t):t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,hostVars:4,hostBindings:function(i,r){i&2&&H("_readonly",r.readOnly)("_invalid",r.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[q]});let n=e;return n})();function kn(n){return mt(Vi,n)}var yi=(()=>{let e=class e{constructor(){this.host=u(Vi,{optional:!0})}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 t;return((t=this.host.value)==null?void 0:t.toString())||""}process(t){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e});let n=e;return n})(),Ne=(()=>{let e=class e{constructor(){this.change$=new pt}ngOnChanges(){this.change$.next()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,features:[Xt]});let n=e;return n})();var Rn=(()=>{let e=class e extends Vi{getFallbackValue(){return null}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,features:[q]});let n=e;return n})();var Ds=(()=>{let e=class e{constructor(){var t;this.el=tt(),this.host=u(ni,{self:!0}),this.external=u(kd,{optional:!0}),this.host.driver.pipe(zt(),lt()).subscribe(i=>{var r;return(r=this.external)==null?void 0:r.tuiDropdownOpenChange.next(i)}),(t=this.external)==null||t.tuiDropdownOpenChange.pipe(zt(),lt()).subscribe(i=>{var r;i&&((r=ln({initial:this.el,root:this.el}))==null||r.focus()),this.host.toggle(i)})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiDropdownOpenMonitor",""]],standalone:!0});let n=e;return n})();var jl=class{constructor(e,o,t,i,r,s,a,l,c,d,g,v,y){this.change$=e,this.options=o,this.legacyAppearance=t,this.appearanceDirective=i,this.cleanerDirective=r,this.customContentDirective=s,this.iconDirective=a,this.iconLeftDirective=l,this.labelOutsideDirective=c,this.sizeDirective=d,this.prefixDirective=g,this.postfixDirective=v,this.fillerDirective=y}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 iconStart(){return this.iconLeftDirective.iconStart}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}},Dh={iconCleaner:"@tui.x",hintOnDisabled:!1},$l=K(Dh);var Sh=Y(()=>new SC),SC=(()=>{let e=class e extends Ne{constructor(){super(...arguments),this.appearance=""}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:[0,"tuiTextfieldAppearance","appearance"]},features:[E([mt(Sh,e)]),q]});let n=e;return n})(),Wl=Y(()=>new PC),PC=(()=>{let e=class e extends Ne{constructor(){super(...arguments),this.cleaner=!1}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:[0,"tuiTextfieldCleaner","cleaner"]},features:[E([mt(Wl,e)]),q]});let n=e;return n})(),Ph=Y(()=>new EC),EC=(()=>{let e=class e extends Ne{};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:[0,"tuiTextfieldCustomContent","customContent"]},features:[E([mt(Ph,e)]),q]});let n=e;return n})(),Eh=Y(()=>new jr),jr=(()=>{let e=class e extends Ne{constructor(){super(...arguments),this.filler=""}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:[0,"tuiTextfieldFiller","filler"]},features:[E([mt(Eh,e)]),q]});let n=e;return n})(),kh=Y(()=>new $r),$r=(()=>{let e=class e extends Ne{};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:[0,"tuiTextfieldIcon","icon"]},features:[E([mt(kh,e)]),q]});let n=e;return n})(),Rh=Y(()=>new kC),kC=(()=>{let e=class e extends Ne{};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconStart:[0,"tuiTextfieldIconLeft","iconStart"]},features:[E([mt(Rh,e)]),q]});let n=e;return n})(),Ah=Y(()=>new RC),RC=(()=>{let e=class e extends Ne{constructor(){super(...arguments),this.labelOutside=!1}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:[0,"tuiTextfieldLabelOutside","labelOutside"]},features:[E([mt(Ah,e)]),q]});let n=e;return n})(),Fh=Y(()=>new Gl),Gl=(()=>{let e=class e extends Ne{constructor(){super(...arguments),this.postfix=""}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:[0,"tuiTextfieldPostfix","postfix"]},features:[E([mt(Fh,e)]),q]});let n=e;return n})(),Lh=Y(()=>new Yl),Yl=(()=>{let e=class e extends Ne{constructor(){super(...arguments),this.prefix=""}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:[0,"tuiTextfieldPrefix","prefix"]},features:[E([mt(Lh,e)]),q]});let n=e;return n})(),Ve=Y(()=>new AC),AC=(()=>{let e=class e extends Ne{constructor(){super(...arguments),this.size="l"}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["","tuiTextfieldSize",""]],inputs:{size:[0,"tuiTextfieldSize","size"]},features:[E([mt(Ve,e)]),q]});let n=e;return n})(),bi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({});let n=e;return n})(),An=new z("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Wr=[{provide:An,deps:[At,$l,Oh,Sh,Wl,Ph,kh,Rh,Ah,Ve,Lh,Fh,Eh],useFactory:(n,e,o,...t)=>{let i=Ht(...t.map(({change$:r})=>r||mc)).pipe(de(n),lt());return i.subscribe(),new jl(i,e,o,...t)}}];var FC={provide:Ih,deps:[[new se,new Jr,eu]],useFactory:lc},Fn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiValueAccessor",""]],features:[E([FC])]});let n=e;return n})(),Ln=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({});let n=e;return n})();var Nh=(()=>{let e=class e{constructor(){this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?"disabled":this.readOnly?"readonly":this.active?"active":this.hover?"hover":null}get noHover(){return this.readOnly||this.hover===!1}get noActive(){return this.readOnly||this.active===!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(i,r){i&2&&(U("data-appearance",r.appearance)("data-state",r.interactiveState),H("_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"}});let n=e;return n})(),Ss=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({});let n=e;return n})();function NC(n,e){if(n&1&&T(0,"tui-icon",2),n&2){let o=e.polymorpheusOutlet;h("icon",o)}}function VC(n,e){n&1&&Zt(0)}var HC={iconSmall:"@tui.chevron-down",iconLarge:"@tui.chevron-down"},zC=K(HC);var Ql=(()=>{let e=class e{constructor(){this.control=u(Vi,{optional:!0}),this.textfieldSize=u(Ve),this.options=u(zC),this.directive=u(ni,{optional:!0})}get rotated(){var t;return((t=this.directive)==null?void 0:t.tuiDropdownOpen)||!!this.control.pseudoOpen||!1}get small(){return!Oo(this.textfieldSize.size)}get arrowIcon(){return this.small?this.options.iconSmall:this.options.iconLarge}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-arrow"]],hostVars:4,hostBindings:function(i,r){i&2&&H("_rotated",r.rotated)("_small",r.small)},standalone:!0,features:[D],decls:3,vars:4,consts:[[3,"icon",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"icon"]],template:function(i,r){i&1&&(C(0,NC,1,1,"tui-icon",0)(1,VC,1,0,"ng-container",1),L(2,"async")),i&2&&(h("polymorpheusOutlet",r.arrowIcon),p(),h("ngIf",G(2,2,r.directive==null?null:r.directive.tuiDropdownOpenChange)))},dependencies:[wt,ot,at,dt],styles:["[_nghost-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}._rotated[_nghost-%COMP%]{transform:rotate(180deg)}tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let n=e;return n})(),Vh=new an(Ql),BC={interactive:Vh,disabled:Vh},UC=K(BC);function jC(n,e){if(n&1&&T(0,"tui-icon",3),n&2){let o=e.polymorpheusOutlet;h("icon",o)}}var zh=(()=>{let e=class e extends Ye{constructor(){super(...arguments),this.isMobile=u(Ge),this.describeId=""}get computedAppearance(){return this.appearance||""}stopOnMobile(t){var i;this.isMobile&&(t.preventDefault(),t.stopPropagation()),(i=this.driver$)==null||i.toggle()}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275cmp=b({type:e,selectors:[["tui-tooltip"]],viewQuery:function(i,r){if(i&1&&Dt(Po,5),i&2){let s;it(s=nt())&&(r.driver$=s.first)}},hostVars:1,hostBindings:function(i,r){i&1&&x("mousedown",function(a){return r.stopOnMobile(a)}),i&2&&U("data-appearance",r.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[q],decls:4,vars:11,consts:[["driver","tuiHintHover"],["automation-id","tui-tooltip__icon","tuiAppearance","icon",1,"t-tooltip-icon",3,"tuiAppearanceState","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],["class","t-icon",3,"icon",4,"polymorpheusOutlet"],[1,"t-icon",3,"icon"]],template:function(i,r){if(i&1&&(m(0,"span",1,0),L(2,"async"),C(3,jC,1,1,"tui-icon",2),f()),i&2){let s=j(1);h("tuiAppearanceState",G(2,9,s)?"hover":null)("tuiHint",r.content)("tuiHintAppearance",r.computedAppearance)("tuiHintContext",r.context)("tuiHintDescribe",r.describeId)("tuiHintDirection",r.direction)("tuiHintHideDelay",r.hideDelay)("tuiHintShowDelay",r.showDelay),p(3),h("polymorpheusOutlet",r.icon)}},dependencies:[dt,wt,bt,Eo,ko,at],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-primary)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-text-negative)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%}.t-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let n=e;return n})(),Bh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[J,dt,Xu]});let n=e;return n})();var WC=["pre"],GC=["focusableElement"],YC=[[["input"]],[["select"]],[["tuiContent"]],"*"],QC=["input","select","tuiContent","*"],Zl=n=>({$implicit:n});function ZC(n,e){n&1&&Zt(0)}function qC(n,e){n&1&&Zt(0)}function KC(n,e){n&1&&(m(0,"div",17),Z(1,2),f())}function XC(n,e){if(n&1&&T(0,"tui-icon",20),n&2){let o=e.polymorpheusOutlet;h("icon",o.toString())}}function JC(n,e){if(n&1&&(m(0,"div",18),C(1,XC,1,1,"tui-icon",19),f()),n&2){let o=_();p(),h("polymorpheusOutlet",o.iconLeftContent)("polymorpheusOutletContext",Nt(2,Zl,o.size))}}function ty(n,e){if(n&1&&(m(0,"label",21),Z(1,3),f()),n&2){let o=_();H("t-placeholder_raised",o.placeholderRaised),h("for",o.computedId)}}function ey(n,e){if(n&1&&T(0,"tui-icon",24),n&2){let o=e.polymorpheusOutlet;h("icon",o)}}function iy(n,e){if(n&1&&(m(0,"div",22),C(1,ey,1,1,"tui-icon",23),f()),n&2){let o=_();p(),h("polymorpheusOutlet",o.controller.customContent)}}function ny(n,e){if(n&1&&T(0,"tui-icon",27),n&2){let o=e.polymorpheusOutlet;R("border","0.25rem solid transparent"),h("icon",o.toString())}}function ry(n,e){if(n&1){let o=$();m(0,"span",25),x("click.stop",function(){O(o);let i=_();return I(i.clear())}),C(1,ny,1,3,"tui-icon",26),f()}if(n&2){let o=_();p(),h("polymorpheusOutlet",o.iconCleaner||o.controller.options.iconCleaner)("polymorpheusOutletContext",Nt(2,Zl,o.size))}}function oy(n,e){if(n&1&&T(0,"tui-tooltip",28),n&2){let o=_();h("content",o.hintOptions==null?null:o.hintOptions.content)("describeId",o.computedId)}}function sy(n,e){if(n&1&&T(0,"tui-icon",20),n&2){let o=e.polymorpheusOutlet;h("icon",o.toString())}}function ay(n,e){if(n&1&&(m(0,"div",29),C(1,sy,1,1,"tui-icon",19),f()),n&2){let o=_();p(),h("polymorpheusOutlet",o.iconContent)("polymorpheusOutletContext",Nt(2,Zl,o.size))}}var ly=["tuiTextfieldLegacy",""],cy=(()=>{let e=class e{constructor(){this.textfield=u(Bl),this.fontsReady$=u(Mh),this.prefix$=new Qt(""),this.pre$=Ht(this.fontsReady$,this.prefix$).pipe(Ke(0),xt(()=>{var t;return!!((t=this.pre)!=null&&t.nativeElement.isConnected)}),A(()=>{var t;return((t=this.pre)==null?void 0:t.nativeElement.offsetWidth)||0}),zt())}ngDoCheck(){this.prefix$.next(this.prefix)}get isContextTable(){return this.textfield.appearance==="table"}get filler(){let{focused:t,placeholder:i,exampleText:r,value:s,textfield:a}=this;return i&&r?"":t?r||a.filler.slice(s.length):""}get value(){return this.textfield.value}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}get placeholder(){var t;return((t=this.textfield.nativeFocusableElement)==null?void 0:t.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}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-value-decoration"]],viewQuery:function(i,r){if(i&1&&Dt(WC,7,Et),i&2){let s;it(s=nt())&&(r.pre=s.first)}},hostVars:4,hostBindings:function(i,r){i&1&&x("animationstart",function(){return r.ngDoCheck()}),i&2&&H("_table",r.isContextTable)("_filler",r.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(i,r){i&1&&T(0,"span",1,0)(2,"span",2)(3,"span",3)(4,"span",4),i&2&&(h("textContent",r.prefix),p(2),h("textContent",r.value),p(),h("textContent",r.filler),p(),h("textContent",r.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-tertiary);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[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-primary)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']});let n=e;return n})(),uy={s:1.25,m:1.75,l:2.25},pe=(()=>{let e=class e extends Ul{constructor(){super(...arguments),this.legacyOptions=u($l),this.el=tt(),this.options=u(Vd),this.controller=u(An),this.hintOptions=u(Ye,{optional:!0}),this.autofilled=!1,this.editable=!0,this.iconCleaner=this.legacyOptions.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.value="",this.valueChange=new rt}get prefix(){return this.controller.prefix}get postfix(){return this.controller.postfix}get filler(){return this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;let{nativeElement:t}=this.focusableElement;return t.previousElementSibling||t}get focused(){return ti(this.el)}get appearance(){return this.options.appearance()==="table"?"table":this.controller.appearance}onModelChange(t){this.updateValue(t)}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var t;return!!((t=this.content)!=null&&t.length)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return Th(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var t;return!!((t=this.hintOptions)!=null&&t.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var r;let i=(((r=this.nativeFocusableElement)==null?void 0:r.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!i}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconStart}get showHint(){var t;return!!((t=this.hintOptions)!=null&&t.content)&&(this.legacyOptions.hintOnDisabled||!this.computedDisabled)}get name(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.id)||""}onFocused(t){this.updateFocused(t)}getIndent$(t){return Ti(t,"scroll").pipe(A(()=>-1*Math.max(t.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(t){let{nativeFocusableElement:i}=this;!i||t.target===i||(t.preventDefault(),i.focus())}onAutofilled(t){this.updateAutofilled(t)}detectRetargetFromLabel(t){_u(t)&&t.stopImmediatePropagation()}get iconPaddingLeft(){return uy[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(t){this.autofilled!==t&&(this.autofilled=t)}updateValue(t){this.value=t,this.valueChange.emit(t)}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275cmp=b({type:e,selectors:[["tui-primitive-textfield"]],contentQueries:function(i,r,s){if(i&1&&$t(s,wt,5),i&2){let a;it(a=nt())&&(r.content=a)}},viewQuery:function(i,r){if(i&1&&Dt(GC,5),i&2){let s;it(s=nt())&&(r.focusableElement=s.first)}},hostVars:15,hostBindings:function(i,r){i&1&&x("focusin",function(){return r.onFocused(!0)})("focusout",function(){return r.onFocused(!1)}),i&2&&(U("data-size",r.size),R("--border-start",r.borderStart,"rem")("--border-end",r.borderEnd,"rem"),H("_autofilled",r.autofilled)("_label-outside",r.options.appearance()==="table"||r.controller.labelOutside)("_readonly",r.readOnly)("_invalid",r.computedInvalid)("_hidden",r.inputHidden))},inputs:{editable:"editable",iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},features:[E([Ci(e),Wr]),q],ngContentSelectors:QC,decls:24,vars:37,consts:[["focusableElement",""],["decor",""],[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"click.prevent.silent","mousedown","active","appearance","disabled","focus","hover","invalid","readOnly"],["automation-id","tui-primitive-textfield__native-input",1,"t-input",3,"ngModelChange","disabled","id","ngModel","readOnly","tabIndex"],["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"],["tuiAppearance","icon",3,"icon",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiAppearance","icon",3,"icon"],["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,"icon",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"icon"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"icon","border",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"icon"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(i,r){if(i&1){let s=$();_t(YC),C(0,ZC,1,0,"ng-container",2),L(1,"async"),C(2,qC,1,0,"ng-container",2),L(3,"async"),m(4,"div",3),L(5,"async"),x("click.prevent.silent",function(l){return O(s),I(r.detectRetargetFromLabel(l))})("mousedown",function(l){return O(s),I(r.onMouseDown(l))}),Z(6),Z(7,1),m(8,"input",4,0),x("ngModelChange",function(l){return O(s),I(r.onModelChange(l))}),f(),C(10,KC,2,0,"div",5),m(11,"div",6),C(12,JC,2,4,"div",7),m(13,"div",8),C(14,ty,2,3,"label",9),m(15,"div",10),T(16,"tui-value-decoration",11,1),L(18,"async"),f()(),m(19,"div",12),C(20,iy,2,1,"div",13)(21,ry,2,4,"span",14)(22,oy,1,2,"tui-tooltip",15)(23,ay,2,4,"div",16),f()()()}if(i&2){let s=j(9),a=j(17);h("ngIf",G(1,29,r.content==null?null:r.content.changes)),p(2),h("ngIf",G(3,31,r.hintOptions==null?null:r.hintOptions.change$)),p(2),R("--text-indent",G(5,33,a.pre$),"px"),h("active",r.pseudoActive)("appearance",r.appearance)("disabled",r.disabled)("focus",r.computedFocused)("hover",r.pseudoHover)("invalid",r.computedInvalid)("readOnly",r.readOnly),p(4),h("disabled",r.computedDisabled)("id",r.id)("ngModel",r.value)("readOnly",r.readOnly||!r.editable)("tabIndex",r.computedFocusable?0:-1),U("aria-invalid",r.computedInvalid)("name",r.name),p(2),h("ngIf",r.inputHidden),p(2),h("ngIf",r.iconLeftContent),p(2),h("ngIf",r.hasPlaceholder),p(2),R("text-indent",G(18,35,r.getIndent$(s)),"px"),H("t-has-value",r.value),p(4),h("ngIf",r.hasCustomContent),p(),h("ngIf",r.hasCleaner),p(),h("ngIf",r.showHint),p(),h("ngIf",r.iconContent)}},dependencies:[ot,Ki,ce,Wt,wt,Nh,zh,dt,bt,cy,at],styles:['[_nghost-%COMP%]{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%]{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;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);color:var(--tui-text-primary);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{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}@supports (-webkit-touch-callout: none){.t-input[_ngcontent-%COMP%]:active{font-size:1rem}}.t-input[inputMode=none][_ngcontent-%COMP%]{caret-color:transparent}.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-tertiary);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}[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;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;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-secondary);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-text-negative)}._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-tertiary)}[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-primary)}.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;border:.25rem solid transparent}._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%]{margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-start:-.125rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size=s]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){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}[data-size=s][_nghost-%COMP%] tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}.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;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});let n=e;return ct([ut],n.prototype,"getIndent$",null),n})(),Vn=(()=>{let e=class e extends yi{constructor(){super(...arguments),this.host=u(pe)}get readOnly(){return this.host.readOnly||!this.host.editable}onValueChange(t){this.host.onModelChange(t)}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["tui-primitive-textfield"]],features:[E([si(e)]),q]});let n=e;return n})(),Uh=(()=>{let e=class e{constructor(){this.el=tt(),this.idService=u(So),this.controller=u(An),this.host=u(Ur),this.host.process(this.el)}get id(){return this.el.id||this.idService.generate()}get inputMode(){return this.el.inputMode||this.host.inputMode}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["input","tuiTextfieldLegacy",""],["textarea","tuiTextfieldLegacy",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(i,r){i&1&&x("input",function(a){return r.host.onValueChange(a.target.value)}),i&2&&(Oe("tabIndex",r.host.focusable?0:-1)("readOnly",r.host.readOnly)("value",r.host.value),U("id",r.id)("inputMode",r.inputMode)("aria-invalid",r.host.invalid)("disabled",r.host.disabled||null))},features:[E([Wr])],attrs:ly,decls:0,vars:0,template:function(i,r){},styles:['[_nghost-%COMP%]{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;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);color:var(--tui-text-primary);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]:-webkit-autofill:focus{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}@supports (-webkit-touch-callout: none){[_nghost-%COMP%]:active{font-size:1rem}}[inputMode=none][_nghost-%COMP%]{caret-color:transparent}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}[_nghost-%COMP%]::-webkit-caps-lock-indicator, [_nghost-%COMP%]::-webkit-contacts-auto-fill-button, [_nghost-%COMP%]::-webkit-credit-card-auto-fill-button, [_nghost-%COMP%]::-webkit-credentials-auto-fill-button, [_nghost-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}[_nghost-%COMP%]::placeholder{color:var(--tui-text-tertiary);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) [_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::placeholder{opacity:1}[data-size=s][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] 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%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_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) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}textarea[_nghost-%COMP%]{white-space:pre-wrap}textarea[_nghost-%COMP%] tui-textarea._ios[_nghost-%COMP%], tui-textarea._ios [_nghost-%COMP%], textarea[_nghost-%COMP%] tui-text-area._ios[_nghost-%COMP%], tui-text-area._ios [_nghost-%COMP%]{padding-left:.8125rem}'],changeDetection:0});let n=e;return n})(),wi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[J,ue,Ss,Bh,dt]});let n=e;return n})();var dy=["*",[["input"]],[["tuiContent"]]],py=["*","input","tuiContent"];function hy(n,e){if(n&1&&(Ct(0),M(1),yt()),n&2){let o=e.polymorpheusOutlet;p(),V(" ",o," ")}}function my(n,e){if(n&1&&(m(0,"div",6),C(1,hy,2,1,"ng-container",7),f()),n&2){_();let o=j(9);p(),h("polymorpheusOutlet",o)}}function fy(n,e){if(n&1){let o=$();m(0,"section",8)(1,"button",9),x("click.prevent",function(){O(o);let i=_();return I(i.onArrow(i.step))})("mousedown.prevent",function(){O(o);let i=_();return I(i.nativeFocusableElement==null?null:i.nativeFocusableElement.focus())}),M(2," + "),f(),m(3,"button",9),x("click.prevent",function(){O(o);let i=_();return I(i.onArrow(-i.step))})("mousedown.prevent",function(){O(o);let i=_();return I(i.nativeFocusableElement==null?null:i.nativeFocusableElement.focus())}),M(4," - "),f()()}if(n&2){let o=_(),t=j(1);p(),h("appearance",t.appearance)("disabled",!o.canIncrement)("iconStart",o.icons.up),p(2),h("appearance",t.appearance)("disabled",!o.canDecrement)("iconStart",o.icons.down)}}function gy(n,e){n&1&&Zt(0)}function vy(n,e){n&1&&Z(0,2)}var $h={icons:{up:"@tui.plus",down:"@tui.minus"},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,step:0},Wh=K($h);function Gh(n){return re(Wh,n,$h)}var _y=18,Cy=new z(""),Yh=(()=>{let e=class e extends Rn{constructor(){super(...arguments),this.isIOS=u(un),this.textfieldSize=u(Ve),this.options=u(Wh),this.unfinishedValue="",this.polymorpheusValueContent=Ce,this.valueTransformer=u(Cy,{optional:!0}),this.numberFormat=Lu,this.controller=u(An),this.numberFormat$=u(Nu).pipe(de(this.cdr),lt()).subscribe(t=>{this.numberFormat=t}),this.min=this.options.min,this.max=this.options.max,this.step=this.options.step}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get inputMode(){return this.isIOS&&this.isNegativeAllowed?"text":this.precision?"decimal":"numeric"}get calculatedMaxLength(){let i=!!this.precision&&this.nativeValue.includes(this.numberFormat.decimalSeparator)?Math.min(this.precision+1,20):0,r=this.numberFormat.thousandSeparator.repeat(5).length;return _y+i+r}get computedValue(){return this.focused?this.nativeValue:this.formattedValue}onValueChange(t){let i=Ni(t,this.numberFormat.decimalSeparator);if(this.unfinishedValue=null,Number.isNaN(i)){this.value=null;return}if(this.isNativeValueNotFinished){this.unfinishedValue=t,this.cdr.markForCheck();return}ithis.computedMax||(this.value=i)}writeValue(t){super.writeValue(t),this.nativeValue=this.formattedValue}get size(){return this.textfieldSize.size}get icons(){return this.options.icons}get computedMin(){return this.computeMin(this.min,this.max)}get computedMax(){return this.computeMax(this.min,this.max)}get isNegativeAllowed(){return this.computedMin<0}get formattedValue(){return this.value!==null?this.getFormattedValue(this.value||0):""}get canDecrement(){return this.interactive&&(this.value||0)>this.computedMin}get canIncrement(){return this.interactive&&(this.value||0)this.computedMax:t[c.length,W.length-d.length])]})}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275cmp=b({type:e,selectors:[["tui-input-number"]],contentQueries:function(i,r,s){if(i&1&&$t(s,wt,5),i&2){let a;it(a=nt())&&(r.polymorpheusValueContent=a)}},viewQuery:function(i,r){if(i&1&&Dt(pe,5),i&2){let s;it(s=nt())&&(r.textfield=s.first)}},hostVars:1,hostBindings:function(i,r){i&1&&x("keydown.arrowDown",function(){return r.onArrow(-r.step)})("keydown.arrowUp",function(){return r.onArrow(r.step)}),i&2&&U("data-size",r.size)},inputs:{min:"min",max:"max",step:"step"},features:[E([Ci(e),kn(e),Wr]),q],ngContentSelectors:py,decls:10,vars:14,consts:[["textfield",""],["valueContent",""],["tuiTextfieldPostfix","","tuiTextfieldPrefix","","tuiValueAccessor","",1,"t-textfield",3,"focusedChange","valueChange","disabled","focusable","invalid","maskito","pseudoActive","pseudoFocus","pseudoHover","readOnly","value"],["ngProjectAs","tuiContent","class","t-value-content",5,["tuiContent"],4,"ngIf"],["class","t-buttons",4,"ngIf"],[4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value-content"],[4,"polymorpheusOutlet"],[1,"t-buttons"],["size","s","tabindex","-1","tuiIconButton","","type","button",1,"t-button",3,"click.prevent","mousedown.prevent","appearance","disabled","iconStart"]],template:function(i,r){if(i&1){let s=$();_t(dy),m(0,"tui-primitive-textfield",2,0),x("focusedChange",function(l){return O(s),I(r.onFocused(l))})("valueChange",function(l){return O(s),I(r.onValueChange(l))}),Z(2),Z(3,1,["ngProjectAs","input",5,["input"]]),C(4,my,2,1,"div",3),f(),C(5,fy,5,6,"section",4)(6,gy,1,0,"ng-container",5),L(7,"async"),C(8,vy,1,0,"ng-template",null,1,gt)}i&2&&(h("disabled",r.computedDisabled)("focusable",r.focusable)("invalid",r.computedInvalid)("maskito",r.mask)("pseudoActive",r.pseudoActive)("pseudoFocus",r.computedFocused)("pseudoHover",r.pseudoHover)("readOnly",r.readOnly)("value",r.computedValue),p(4),h("ngIf",r.polymorpheusValueContent.length),p(),h("ngIf",r.step),p(),h("ngIf",G(7,12,r.polymorpheusValueContent.changes)))},dependencies:[ot,Sn,pe,Vn,Yl,Gl,wt,Fn,We,at],styles:["[_nghost-%COMP%]{display:flex;border-radius:var(--tui-radius-m);text-align:left}.t-textfield[_ngcontent-%COMP%]{flex:1;max-width:100%;border-radius:inherit;text-align:inherit}.t-textfield[_ngcontent-%COMP%]:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.t-value-content[_ngcontent-%COMP%]{width:100%}.t-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;margin-left:.125rem;border-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%]{flex-direction:row-reverse}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin:0 0 0 .125rem;border-top-right-radius:inherit;border-bottom-right-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-radius:0}[data-size=m][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-m) * .75)}[data-size=l][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-l) * .75)}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{display:flex;flex:1;height:auto;align-items:center;justify-content:center;border-radius:0}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin-bottom:.125rem;border-top-right-radius:inherit}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:inherit}"],changeDetection:0});let n=e;return ct([ut],n.prototype,"computeMin",null),ct([ut],n.prototype,"computeMax",null),ct([ut],n.prototype,"calculateMask",null),n})(),Qh=(()=>{let e=class e extends yi{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.inputMode=this.host.inputMode,this.host.nativeFocusableElement.maxLength=this.host.nativeFocusableElement.maxLength>0?this.host.nativeFocusableElement.maxLength:this.host.calculatedMaxLength)}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["tui-input-number"]],features:[E([si(e)]),q]});let n=e;return n})(),Zh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[J,wi,bi,Ln]});let n=e;return n})();function yy(n,e){if(n&1&&T(0,"tui-icon",3),n&2){let o=_();h("icon",o.icons.check)("tuiScrollIntoView",!0)}}function by(n,e){n&1&&T(0,"span",4)}var wy=(()=>{let e=class e{constructor(){this.host=u(Go),this.el=tt(),this.changeDetection$=new pt,this.abstractControl=u(Vi,{optional:!0}),this.control=u(le),this.option=u(De),this.dataList=u(Qe,{optional:!0}),this.icons=u(Co),this.context=u(zu),this.selected$=Ht(this.changeDetection$,this.control.valueChanges||qt,Ee(this.el,"animationstart")).pipe(Bt(null),A(()=>this.selected),zt())}ngOnInit(){Promise.resolve().then(()=>{var t,i;Jt(this.option.value)&&!this.option.disabled&&((i=(t=this.host).checkOption)==null||i.call(t,this.option.value))})}ngDoCheck(){this.changeDetection$.next()}get value(){var t;return((t=this.abstractControl)==null?void 0:t.value)??this.control.value}get matcher(){return this.host.identityMatcher||fo}get selected(){return Jt(this.option.value)&&Jt(this.value)&&this.matcher(this.value,this.option.value)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-select-option"]],decls:5,vars:5,consts:[["dummy",""],[3,"ngTemplateOutlet"],["automation-id","tui-select-option__checkmark","class","t-checkmark",3,"icon","tuiScrollIntoView",4,"ngIf","ngIfElse"],["automation-id","tui-select-option__checkmark",1,"t-checkmark",3,"icon","tuiScrollIntoView"],[1,"t-dummy"]],template:function(i,r){if(i&1&&(Zt(0,1),C(1,yy,1,2,"tui-icon",2),L(2,"async"),C(3,by,1,0,"ng-template",null,0,gt)),i&2){let s=j(4);h("ngTemplateOutlet",r.context.$implicit),p(),h("ngIf",G(2,3,r.selected$))("ngIfElse",s)}},dependencies:[ot,so,Lo,dt,at],styles:['@keyframes _ngcontent-%COMP%_retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;max-width:100%;animation:_ngcontent-%COMP%_retrigger 1s}.t-checkmark[_ngcontent-%COMP%]{margin-inline-start:auto;width:1.75rem;border:.25rem solid transparent;border-inline-start-width:.5rem}tui-data-list[data-size="s"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="s"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.375rem}tui-data-list[data-size="m"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="m"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.125rem}.t-dummy[_ngcontent-%COMP%]{width:1.75rem}'],changeDetection:0});let n=e;return n})(),Ty=new an(wy),qh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[J,dt]});let n=e;return n})();var xy={valueContent:""},Gk=K(xy);var Kh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[J,wi,qh,Ql,Ss,bi,Ri,Qe,De,Dl,qp]});let n=e;return n})();var Oy=["*",[["input"]]],Iy=["*","input"],Dy=n=>({$implicit:n});function Sy(n,e){if(n&1){let o=$();m(0,"tui-primitive-textfield",5),x("focusedChange",function(i){O(o);let r=_();return I(r.onFocused(i))})("valueChange",function(i){O(o);let r=_();return I(r.onValueChange(i))}),Z(1),Z(2,1,["ngProjectAs","input",5,["input"]]),f()}if(n&2){let o=e.tuiLet,t=_(),i=j(4);h("disabled",t.computedDisabled)("focusable",t.computedFocusable)("invalid",t.computedInvalid)("maskito",t.computedMask)("nativeId",t.nativeId)("pseudoFocus",t.pseudoFocus)("pseudoHover",t.pseudoHover)("readOnly",t.readOnly)("tuiTextfieldFiller",t.getComputedFiller(o||""))("tuiTextfieldIcon",t.calendarIcon&&i)("value",t.computedValue)}}function Py(n,e){if(n&1){let o=$();m(0,"tui-icon",8),x("click",function(){O(o);let i=_(2);return I(i.onIconClick())}),f()}if(n&2){let o=e.polymorpheusOutlet,t=_(2);H("t-icon_small",t.size==="s")("t-icon",!t.computedDisabled),h("icon",o.toString())}}function Ey(n,e){n&1&&T(0,"input",9)}function ky(n,e){if(n&1&&C(0,Py,1,5,"tui-icon",6)(1,Ey,1,0,"input",7),n&2){let o=_();h("polymorpheusOutlet",o.calendarIcon)("polymorpheusOutletContext",Nt(3,Dy,o.size)),p(),h("ngIf",o.nativePicker)}}function Ry(n,e){if(n&1){let o=$();m(0,"div",12),x("mousedown.prevent.silent",function(){return O(o),I(0)}),m(1,"button",13),x("click",function(){O(o);let i=_(2);return I(i.onDayClick(i.items[0].day))}),M(2),f()()}if(n&2){let o=_(2);p(2),V(" ",o.items[0]," ")}}function Ay(n,e){if(n&1){let o=$();m(0,"tui-calendar",10),x("dayClick",function(i){O(o);let r=_();return I(r.onDayClick(i))})("monthChange",function(i){O(o);let r=_();return I(r.onMonthChange(i))})("mousedown.prevent.silent",function(){return O(o),I(0)}),f(),C(1,Ry,3,1,"div",11)}if(n&2){let o=_();h("disabledItemHandler",o.disabledItemHandler)("markerHandler",o.markerHandler)("max",o.computedMax)("min",o.computedMin)("month",o.computedActiveYearMonth)("value",o.value),p(),h("ngIf",o.items.length===1)}}var ql=(()=>{let e=class e extends yi{get value(){return this.host.computedValue}get max(){return this.host.computedMax}get min(){return this.host.computedMin}get format(){return this.host.dateFormat}onValueChange(t){t||(this.host.nativeValue=""),this.host.onValueChange(t)}process(t){t.inputMode="numeric"}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["tui-input-date",3,"multiple",""]],features:[E([si(e)]),q]});let n=e;return n})(),Fy=(()=>{let e=class e{constructor(){this.host=u(Ur)}get value(){return this.host.value.length===on?ft.normalizeParse(this.host.value,this.host.format.mode).toString("YMD","-"):""}get max(){return this.host.max.toJSON()}get min(){return this.host.min.toJSON()}onChange(t){this.host.onValueChange(t?ft.normalizeParse(t,"YMD").toString(this.host.format.mode):"")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(i,r){i&1&&x("change",function(a){return r.onChange(a.target.value)})("click.stop.silent",function(){return 0})("input.stop.silent",function(){return 0})("mousedown.stop.silent",function(){return 0}),i&2&&Oe("tabIndex",-1)("value",r.value)("max",r.max)("min",r.min)},features:[E([si(ql)])]});let n=e;return n})(),Xh=(()=>{let e=class e extends Rn{constructor(){super(...arguments),this.options=u(bs),this.textfieldSize=u(Ve),this.mobileCalendar=u(Nr,{optional:!0}),this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=Ie,this.markerHandler=null,this.items=[],this.defaultActiveYearMonth=Gt.currentLocal(),this.dateFormat=yo,this.open=!1,this.dateTexts$=u(ys),this.valueTransformer=u(xl,{optional:!0}),this.isMobile=u(Ge),this.filler$=this.dateTexts$.pipe(A(t=>uo(t[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat$=u(bo).pipe(de(this.cdr),lt()).subscribe(t=>{this.dateFormat=t})}get computedMin(){return this.min??this.options.min}get computedMax(){return this.max??this.options.max}get nativeFocusableElement(){var t;return((t=this.textfield)==null?void 0:t.nativeFocusableElement)??null}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get nativeValue(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}get computedValue(){let{value:t,nativeValue:i,activeItem:r}=this;return r?String(r):t?t.toString(this.dateFormat.mode,this.dateFormat.separator):i}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!t&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=t.length!==on?null:ft.normalizeParse(t,this.dateFormat.mode)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get size(){return this.textfieldSize.size}get nativePicker(){return this.options.nativePicker&&!!this.mobileCalendar&&this.isMobile}get calendarIcon(){return this.options.icon}get computedActiveYearMonth(){var t;return this.items[0]&&((t=this.value)!=null&&t.daySame(this.items[0].day))?this.items[0].displayDay:this.month||this.value||Tu(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get computedMask(){return this.activeItem?Fe:this.computeMaskOptions(this.dateFormat.mode,this.dateFormat.separator,this.computedMin,this.computedMax)}get activeItem(){let{value:t}=this;return t&&this.items.find(i=>i.day.daySame(t))||null}onClick(){!this.isMobile&&this.interactive&&(this.open=!this.open)}getComputedFiller(t){return this.activeItem?"":t}onIconClick(){this.isMobile&&this.interactive&&(this.open=!0)}onDayClick(t){this.value=t,this.open=!1}onMonthChange(t){this.month=t}onOpenChange(t){this.open=t}onFocused(t){this.updateFocused(t)}valueIdenticalComparator(t,i){return Ue(t,i,(r,s)=>r.daySame(s))}computeMaskOptions(t,i,r,s){return fh({separator:i,mode:Is[t],min:r.toLocalNativeDate(),max:s.toLocalNativeDate()})}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275cmp=b({type:e,selectors:[["tui-input-date",3,"multiple",""]],viewQuery:function(i,r){if(i&1&&Dt(pe,5),i&2){let s;it(s=nt())&&(r.textfield=s.first)}},hostVars:1,hostBindings:function(i,r){i&1&&x("click",function(){return r.onClick()}),i&2&&U("data-size",r.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[E([Ci(e),Vo(e),kn(e),Cs(xl),ws]),q],ngContentSelectors:Iy,decls:7,vars:7,consts:[["iconContent",""],["dropdown","polymorpheus"],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange",4,"tuiLet"],[3,"polymorpheus"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"focusedChange","valueChange","disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDate","","class","t-native-input",4,"ngIf"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],["tuiDate","",1,"t-native-input"],["automation-id","tui-input-date__calendar",3,"dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","month","value"],["class","t-button",3,"mousedown.prevent.silent",4,"ngIf"],[1,"t-button",3,"mousedown.prevent.silent"],["tuiLink","","type","button",3,"click"]],template:function(i,r){if(i&1){let s=$();_t(Oy),m(0,"div",2),x("tuiDropdownOpenChange",function(l){return O(s),I(r.onOpenChange(l))}),C(1,Sy,3,11,"tui-primitive-textfield",3),L(2,"async"),C(3,ky,2,5,"ng-template",null,0,gt)(5,Ay,2,7,"ng-template",4,1,gt),f()}if(i&2){let s=j(6);h("tuiDropdown",s)("tuiDropdownEnabled",r.interactive&&!r.nativePicker)("tuiDropdownOpen",r.open&&r.interactive&&!r.nativePicker),p(),h("tuiLet",G(2,5,r.filler$)),p(4),h("polymorpheus",r.type)}},dependencies:[ot,Sn,wt,xo,mn,No,pe,Vn,Fn,Pi,$r,jr,Ds,bt,dt,we,ni,Fy,at],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-border-normal)}.t-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;text-align:center}.t-native-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0});let n=e;return ct([ut],n.prototype,"computeMaskOptions",null),n})(),Jh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[J,mn,wi,Ln,bi,dt,Ri]});let n=e;return n})();var Ly=["*",[["input"]]],Ny=["*","input"],tm=n=>({$implicit:n});function Vy(n,e){if(n&1&&(Ct(0),M(1),yt()),n&2){let o=e.polymorpheusOutlet;p(),V(" ",o," ")}}function Hy(n,e){if(n&1&&(m(0,"div",6),C(1,Vy,2,1,"ng-container",7),f()),n&2){let o=_(2);p(),h("polymorpheusOutlet",o.computedContent)("polymorpheusOutletContext",Nt(2,tm,o.value))}}function zy(n,e){if(n&1){let o=$();m(0,"tui-primitive-textfield",4),x("valueChange",function(i){O(o);let r=_();return I(r.onValueChange(i))}),Z(1),Z(2,1,["ngProjectAs","input",5,["input"]]),C(3,Hy,2,4,"div",5),f()}if(n&2){let o=e.tuiLet,t=_(),i=j(4);h("disabled",t.computedDisabled)("invalid",t.computedInvalid)("maskito",t.computedMask)("nativeId",t.nativeId)("pseudoActive",t.pseudoActive)("pseudoFocus",t.innerPseudoFocused)("pseudoHover",t.pseudoHover)("readOnly",t.readOnly)("tuiTextfieldFiller",t.getComputedRangeFiller(o||""))("tuiTextfieldIcon",t.calendarIcon&&i)("value",t.computedValue),p(3),h("ngIf",t.showValueTemplate)}}function By(n,e){if(n&1){let o=$();m(0,"tui-icon",9),x("click",function(){O(o);let i=_(2);return I(i.onIconClick())}),f()}if(n&2){let o=e.polymorpheusOutlet,t=_(2);H("t-icon_small",t.size==="s")("t-icon",!t.computedDisabled),h("icon",o.toString())}}function Uy(n,e){if(n&1&&C(0,By,1,5,"tui-icon",8),n&2){let o=_();h("polymorpheusOutlet",o.calendarIcon)("polymorpheusOutletContext",Nt(2,tm,o.size))}}function jy(n,e){if(n&1){let o=$();m(0,"tui-calendar-range",10),x("valueChange",function(i){O(o);let r=_();return I(r.onRangeChange(i))}),f()}if(n&2){let o=_();h("defaultViewedMonth",o.defaultViewedMonth)("disabledItemHandler",o.disabledItemHandler)("items",o.items)("markerHandler",o.markerHandler)("max",o.max)("maxLength",o.maxLength)("min",o.min)("minLength",o.minLength)("value",o.value)}}var em=(()=>{let e=class e extends Rn{constructor(){super(...arguments),this.isMobile=u(Ge),this.mobileCalendar=u(Nr,{optional:!0}),this.options=u(bs),this.textfieldSize=u(Ve),this.dateTexts$=u(ys),this.valueTransformer=u(Ml,{optional:!0}),this.dateFiller$=this.dateTexts$.pipe(A(t=>uo(t[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat=yo,this.dateFormat$=u(bo).pipe(de(this.cdr),lt()).subscribe(t=>{this.dateFormat=t}),this.selectedActivePeriod=null,this.disabledItemHandler=Ie,this.markerHandler=null,this.defaultViewedMonth=Gt.currentLocal(),this.items=[],this.min=this.options.min,this.max=this.options.max,this.minLength=null,this.maxLength=null,this.open=!1}get nativeFocusableElement(){var t;return((t=this.textfield)==null?void 0:t.nativeFocusableElement)??null}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get computedExampleText(){var t,i;return this.items.length&&((i=(t=this.textfield)==null?void 0:t.nativeFocusableElement)==null?void 0:i.placeholder)||""}get computedValue(){let{value:t,nativeValue:i,activePeriod:r}=this;return r?String(r):t?t.getFormattedDayRange(this.dateFormat.mode,this.dateFormat.separator):i}onClick(){!this.isMobile&&this.interactive&&this.toggle()}ngAfterViewChecked(){this.calendarRange&&(this.calendarRange.selectedActivePeriod=this.selectedActivePeriod,this.calendarRange.cdr.markForCheck())}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!t&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=t.length===xu?te.normalizeParse(t,this.dateFormat.mode):null,this.value||(this.selectedActivePeriod=null)}onRangeChange(t){var i;this.toggle(),this.focusInput(),t||(this.nativeValue=""),this.value=t,this.selectedActivePeriod=((i=this.calendarRange)==null?void 0:i.selectedActivePeriod)??null}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get size(){return this.textfieldSize.size}get computedMobile(){return this.isMobile&&!!this.mobileCalendar}get calendarIcon(){return this.options.icon}get computedMask(){return this.activePeriod?Fe:this.calculateMask(this.dateFormat.mode,this.dateFormat.separator,this.min,this.max,this.minLength,this.maxLength)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(t=>Ue(this.value,t.range,(i,r)=>i.from.daySame(r.from.dayLimit(this.min,this.max))&&i.to.daySame(r.to.dayLimit(this.min,this.max))))||null)}get showValueTemplate(){return Jt(this.value)&&!this.focused}get computedContent(){var t;return((t=this.activePeriod)==null?void 0:t.content)||this.computedValue}get innerPseudoFocused(){return this.pseudoFocus===!1?!1:this.open||this.computedFocused?!0:null}get nativeValue(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}getComputedRangeFiller(t){return this.activePeriod?"":this.getDateRangeFiller(t)}onIconClick(){this.isMobile&&this.interactive&&this.onOpenChange(!0)}onOpenChange(t){this.open=t}onActiveZone(t){this.updateFocused(t),!t&&!this.itemSelected&&(this.nativeValue.length===on||this.nativeValue.length===on+pa.length)&&(this.value=te.normalizeParse(this.nativeValue,this.dateFormat.mode))}valueIdenticalComparator(t,i){return Ue(t,i,(r,s)=>r.daySame(s))}get itemSelected(){return this.items.findIndex(t=>String(t)===this.nativeValue)!==-1}calculateMask(t,i,r,s,a,l){return gh({dateSeparator:i,mode:Is[t],min:(r||oe).toLocalNativeDate(),max:(s||ye).toLocalNativeDate(),minLength:a||{},maxLength:l||{}})}toggle(){this.open=!this.open}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}getDateRangeFiller(t){return`${t}${pa}${t}`}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275cmp=b({type:e,selectors:[["tui-input-date-range"]],viewQuery:function(i,r){if(i&1&&(Dt(pe,5),Dt(Vr,5)),i&2){let s;it(s=nt())&&(r.textfield=s.first),it(s=nt())&&(r.calendarRange=s.first)}},hostVars:1,hostBindings:function(i,r){i&1&&x("click",function(){return r.onClick()}),i&2&&U("data-size",r.size)},inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonth:"defaultViewedMonth",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength"},features:[E([Ci(e),Vo(e),kn(e),Cs(Ml),ws]),q],ngContentSelectors:Ny,decls:7,vars:6,consts:[["iconContent",""],["dropdown",""],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiActiveZoneChange","tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","valueChange",4,"tuiLet"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"valueChange","disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],[3,"valueChange","defaultViewedMonth","disabledItemHandler","items","markerHandler","max","maxLength","min","minLength","value"]],template:function(i,r){if(i&1){let s=$();_t(Ly),m(0,"div",2),x("tuiActiveZoneChange",function(l){return O(s),I(r.onActiveZone(l))})("tuiDropdownOpenChange",function(l){return O(s),I(r.onOpenChange(l))}),C(1,zy,4,12,"tui-primitive-textfield",3),L(2,"async"),C(3,Uy,1,4,"ng-template",null,0,gt)(5,jy,1,9,"ng-template",null,1,gt),f()}if(i&2){let s=j(6);h("tuiDropdown",s)("tuiDropdownEnabled",r.interactive)("tuiDropdownOpen",r.open&&r.interactive),p(),h("tuiLet",G(2,4,r.dateFiller$))}},dependencies:[ot,Sn,Pi,wt,pe,Vn,$r,jr,Vr,Fn,Ds,dt,bt,we,ni,at],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}"],changeDetection:0});let n=e;return ct([ut],n.prototype,"calculateMask",null),n})(),im=(()=>{let e=class e extends yi{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}process(t){t.inputMode="numeric"}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.placeholder=this.host.computedExampleText)}};e.\u0275fac=(()=>{let t;return function(r){return(t||(t=B(e)))(r||e)}})(),e.\u0275dir=w({type:e,selectors:[["tui-input-date-range"]],features:[E([si(e)]),q]});let n=e;return n})(),nm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Ot({type:e}),e.\u0275inj=Mt({imports:[J,wi,bi,Vr,Ln,dt,Ri]});let n=e;return n})();var $y=[{id:"1",date:"17.07.2024"}],rm=(()=>{let e=class e{constructor(){this.progress$=Ui(300,200).pipe(A(t=>t+30),Bt(30),Xr(t=>t<=100)),this.schedule=$y}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Gy(n,e){if(n&1&&(m(0,"tui-input-date",5),M(1," cleaning time "),T(2,"input",8),f()),n&2){let o=e.$implicit,t=e.$index,i=_();h("ariaValueMin",i.now)("formControl",o)("min",i.now)("readOnly",t==0)}}function Yy(n,e){if(n&1&&(m(0,"label",9)(1,"span",10),M(2),f(),T(3,"tui-progress-circle",11),L(4,"async"),f()),n&2){let o=e.ngIf,t=_();R("margin-bottom","auto"),p(2),V("",o,"%"),p(),R("color",G(4,7,t.color$)),h("max",100)("value",o)}}var sm=(()=>{let e=class e{constructor(){this.cleaningService=u(rm),this.now=ft.currentLocal(),this.forms=new Ji(this.cleaningService.schedule.map(t=>new Di(new ft(ft.parseRawDateString(t.date).year,ft.parseRawDateString(t.date).month,ft.parseRawDateString(t.date).day)))),this.color$=this.cleaningService.progress$.pipe(A(t=>t<33?"var(--tui-status-negative)":t<66?"var(--tui-status-warning)":"var(--tui-background-accent-1)"))}addNew(){this.forms.push(new Di)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-cleaning"]],standalone:!0,features:[D],decls:12,vars:5,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"timetable"],[1,"list"],[1,"input-date",3,"ariaValueMin","formControl","min","readOnly"],["tuiProgressLabel","",3,"margin-bottom",4,"ngIf"],["appearance","primary","tuiButton","",1,"add-button",3,"click"],["tuiTextfieldLegacy",""],["tuiProgressLabel",""],[1,"percent"],["size","s",3,"max","value"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"header",1)(2,"h2",2),M(3," Cleaning schedule "),f()(),m(4,"div",3)(5,"div",4),Qi(6,Gy,3,4,"tui-input-date",5,Yi),f(),C(8,Yy,5,9,"label",6),L(9,"async"),f(),m(10,"button",7),x("click",function(){return r.addNew()}),M(11," Add "),f()()),i&2&&(p(2),R("text-align","center"),p(4),Zi(r.forms.controls),p(2),h("ngIf",G(9,3,r.cleaningService.progress$)))},dependencies:[at,J,ot,ue,ce,hi,Xi,bt,We,Vt,Jh,Xh,ql,Uh,bh,wh],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center;height:100%;background-color:var(--tui-background-base)}.add-button[_ngcontent-%COMP%]{max-width:7rem}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem}.percent[_ngcontent-%COMP%]{font:var(--tui-font-text-m)}tui-progress-circle[_ngcontent-%COMP%]{transition:color 2s}.input-date[_ngcontent-%COMP%]{width:10rem}.timetable[_ngcontent-%COMP%]{display:flex;gap:.625rem}"],changeDetection:0});let n=e;return n})();var Qy=[{name:"Room temperature \u0421\xB0",value:32},{name:"Water temperature",value:0},{name:"Air humidity, %",value:10}],am=(()=>{let e=class e{constructor(){this.climateControlData=Qy}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Zy(n,e){if(n&1){let o=$();m(0,"tui-input-number",5),ve("ngModelChange",function(i){let r=O(o).$implicit;return ne(r.value,i)||(r.value=i),I(i)}),M(1),f()}if(n&2){let o=e.$implicit;ge("ngModel",o.value),p(),V(" ",o.name," ")}}var lm=(()=>{let e=class e{constructor(){this.climateControlService=u(am).climateControlData}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-climate-control"]],standalone:!0,features:[E([Vu({precision:0}),Gh({step:1})]),D],decls:6,vars:3,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"group"],[3,"ngModel","ngModelChange",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"header",1)(2,"h2",2),M(3," Climate control "),f()(),m(4,"div",3),C(5,Zy,2,2,"tui-input-number",4),f()()),i&2&&(p(2),R("text-align","center"),p(3),h("ngForOf",r.climateControlService))},dependencies:[J,Pt,ue,ce,Wt,bt,Vt,Zh,Yh,Qh],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;background-color:var(--tui-background-base);height:100%}.card[tuiCardLarge][_ngcontent-%COMP%] .group[_ngcontent-%COMP%]:last-child{display:flex;margin-top:0;flex-direction:column;gap:.625rem}"],changeDetection:0});let n=e;return n})();var Kl;try{Kl=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Kl=!1}var Gr=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Qc(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Kl)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(et(Mi))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var He=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(He||{}),Rs,Hi;function cm(){if(Hi==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Hi=!1,Hi;if("scrollBehavior"in document.documentElement.style)Hi=!0;else{let n=Element.prototype.scrollTo;n?Hi=!/\{\s*\[native code\]\s*\}/.test(n.toString()):Hi=!1}}return Hi}function Hn(){if(typeof document!="object"||!document)return He.NORMAL;if(Rs==null){let n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let o=document.createElement("div"),t=o.style;t.width="2px",t.height="1px",n.appendChild(o),document.body.appendChild(n),Rs=He.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,Rs=n.scrollLeft===0?He.NEGATED:He.INVERTED),n.remove()}return Rs}var Ky=new z("cdk-dir-doc",{providedIn:"root",factory:Xy});function Xy(){return u(St)}var Jy=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function tb(n){let e=(n==null?void 0:n.toLowerCase())||"";return e==="auto"&&typeof navigator<"u"&&(navigator!=null&&navigator.language)?Jy.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var As=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new rt,t){let i=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=tb(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(et(Ky,8))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Xl=class{};function um(n){return n&&typeof n.connect=="function"&&!(n instanceof jn)}var Fs=class extends Xl{constructor(e){super(),this._data=e}connect(){return Bi(this._data)?this._data:F(this._data)}disconnect(){}},Yr=function(n){return n[n.REPLACED=0]="REPLACED",n[n.INSERTED=1]="INSERTED",n[n.MOVED=2]="MOVED",n[n.REMOVED=3]="REMOVED",n}(Yr||{}),Jl=new z("_ViewRepeater");var Ls=class{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(e,o,t,i,r){e.forEachOperation((s,a,l)=>{let c,d;if(s.previousIndex==null){let g=()=>t(s,a,l);c=this._insertView(g,l,o,i(s)),d=c?Yr.INSERTED:Yr.REPLACED}else l==null?(this._detachAndCacheView(a,o),d=Yr.REMOVED):(c=this._moveView(a,l,o,i(s)),d=Yr.MOVED);r&&r({context:c==null?void 0:c.context,operation:d,record:s})})}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,o,t,i){let r=this._insertViewFromCache(o,t);if(r){r.context.$implicit=i;return}let s=e();return t.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(e,o){let t=o.detach(e);this._maybeCacheView(t,o)}_moveView(e,o,t,i){let r=t.get(e);return t.move(r,o),r.context.$implicit=i,r}_maybeCacheView(e,o){if(this._viewCache.length0?r/this._itemSize:0;if(o.end>i){let l=Math.ceil(t/this._itemSize),c=Math.max(0,Math.min(s,i-l));s!=c&&(s=c,r=c*this._itemSize,o.start=Math.floor(s)),o.end=Math.max(0,Math.min(i,o.start+l))}let a=r-o.start*this._itemSize;if(a0&&(o.end=Math.min(i,o.end+c),o.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(o),this._viewport.setRenderedContentOffset(this._itemSize*o.start),this._scrolledIndexChange.next(Math.floor(s))}};function rb(n){return n._scrollStrategy}var mm=(()=>{let e=class e{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new tc(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=pr(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=pr(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=pr(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[E([{provide:hm,useFactory:rb,deps:[Wi(()=>e)]}]),Xt]});let n=e;return n})(),ob=20,ec=(()=>{let e=class e{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new pt,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=ob){return this._platform.isBrowser?new ai(i=>{this._globalSubscription||this._addGlobalListener();let r=t>0?this._scrolled.pipe(Zr(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):F()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){let r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(xt(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Fd(i),s=t.getElementRef().nativeElement;do if(r==s)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return Ti(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(et(ht),et(Gr),et(St,8))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),fm=(()=>{let e=class e{constructor(t,i,r,s){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=r,this.dir=s,this._destroyed=new pt,this._elementScrolled=new ai(a=>this.ngZone.runOutsideAngular(()=>Ti(this.elementRef.nativeElement,"scroll").pipe(Xe(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=r?t.end:t.start),t.right==null&&(t.right=r?t.start:t.end),t.bottom!=null&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),r&&Hn()!=He.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),Hn()==He.INVERTED?t.left=t.right:Hn()==He.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;cm()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left))}measureScrollOffset(t){let i="left",r="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?r:i:t=="end"&&(t=a?i:r),a&&Hn()==He.INVERTED?t==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&Hn()==He.NEGATED?t==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};e.\u0275fac=function(i){return new(i||e)(st(Et),st(ec),st(ht),st(As,8))},e.\u0275dir=w({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let n=e;return n})(),sb=20,ab=(()=>{let e=class e{constructor(t,i,r){this._platform=t,this._change=new pt,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect(),a=-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,l=-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:l}}change(t=sb){return t>0?this._change.pipe(Zr(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(i){return new(i||e)(et(Gr),et(ht),et(St,8))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),dm=new z("VIRTUAL_SCROLLABLE"),lb=(()=>{let e=class e extends fm{constructor(t,i,r,s){super(t,i,r,s)}measureViewportSize(t){let i=this.elementRef.nativeElement;return t==="horizontal"?i.clientWidth:i.clientHeight}};e.\u0275fac=function(i){return new(i||e)(st(Et),st(ec),st(ht),st(As,8))},e.\u0275dir=w({type:e,features:[q]});let n=e;return n})();function cb(n,e){return n.start==e.start&&n.end==e.end}var ub=typeof requestAnimationFrame<"u"?dc:uc,ic=(()=>{let e=class e extends lb{get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}constructor(t,i,r,s,a,l,c,d){super(t,l,r,a),this.elementRef=t,this._changeDetectorRef=i,this._scrollStrategy=s,this.scrollable=d,this._platform=u(Gr),this._detachedSubject=new pt,this._renderedRangeSubject=new pt,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new ai(g=>this._scrollStrategy.scrolledIndexChange.subscribe(v=>Promise.resolve().then(()=>this.ngZone.run(()=>g.next(v))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Qr.EMPTY,this._injector=u(Zn),this._isDestroyed=!1,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Bt(null),Zr(0,ub),Xe(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(Xe(this._detachedSubject)).subscribe(i=>{let r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){cb(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,i="to-start"){t=this.appendOnly&&i==="to-start"?0:t;let r=this.dir&&this.dir.value=="rtl",s=this.orientation=="horizontal",a=s?"X":"Y",c=`translate${a}(${Number((s&&r?-1:1)*t)}px)`;this._renderedContentOffset=t,i==="to-end"&&(c+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,i="auto"){let r={behavior:i};this.orientation==="horizontal"?r.start=t:r.top=t,this.scrollable.scrollTo(r)}scrollToIndex(t,i="auto"){this._scrollStrategy.scrollToIndex(t,i)}measureScrollOffset(t){let i;return this.scrollable==this?i=r=>super.measureScrollOffset(r):i=r=>this.scrollable.measureScrollOffset(r),Math.max(0,i(t??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){var d;let i,r="left",s="right",a=((d=this.dir)==null?void 0:d.value)=="rtl";t=="start"?i=a?s:r:t=="end"?i=a?r:s:t?i=t:i=this.orientation==="horizontal"?"left":"top";let l=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-l}measureRenderedContentSize(){let t=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,Gi(()=>{this._isChangeDetectionPending=!1;let t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let i of t)i()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight=this.orientation==="horizontal"?"":`${this._totalContentSize}px`,this._totalContentWidth=this.orientation==="horizontal"?`${this._totalContentSize}px`:""}};e.\u0275fac=function(i){return new(i||e)(st(Et),st(At),st(ht),st(hm,8),st(As,8),st(ec),st(ab),st(dm,8))},e.\u0275cmp=b({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(i,r){if(i&1&&Dt(ib,7),i&2){let s;it(s=nt())&&(r._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(i,r){i&2&&H("cdk-virtual-scroll-orientation-horizontal",r.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",r.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",qi]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[E([{provide:fm,useFactory:(t,i)=>t||i,deps:[[new se,new bc(dm)],e]}]),Xn,q,D],ngContentSelectors:nb,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(i,r){i&1&&(_t(),m(0,"div",1,0),Z(2),f(),T(3,"div",2)),i&2&&(p(3),R("width",r._totalContentWidth)("height",r._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});let n=e;return n})();function pm(n,e,o){let t=o;if(!t.getBoundingClientRect)return 0;let i=t.getBoundingClientRect();return n==="horizontal"?e==="start"?i.left:i.right:e==="start"?i.top:i.bottom}var gm=(()=>{let e=class e{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,um(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new Fs(Bi(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(i,r)=>t(i+(this._renderedRange?this._renderedRange.start:0),r):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=pr(t)}constructor(t,i,r,s,a,l){this._viewContainerRef=t,this._template=i,this._differs=r,this._viewRepeater=s,this._viewport=a,this.viewChange=new pt,this._dataSourceChanges=new pt,this.dataStream=this._dataSourceChanges.pipe(Bt(null),_c(),Ft(([c,d])=>this._changeDataSource(c,d)),Kr(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new pt,this.dataStream.subscribe(c=>{this._data=c,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Xe(this._destroyed)).subscribe(c=>{this._renderedRange=c,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(t,i){if(t.start>=t.end)return 0;t.startthis._renderedRange.end;let r=t.start-this._renderedRange.start,s=t.end-t.start,a,l;for(let c=0;c-1;c--){let d=this._viewContainerRef.get(c+r);if(d&&d.rootNodes.length){l=d.rootNodes[d.rootNodes.length-1];break}}return a&&l?pm(i,"end",l)-pm(i,"start",a):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,i):i)),this._needsUpdate=!0)}_changeDataSource(t,i){return t&&t.disconnect(this),this._needsUpdate=!0,i?i.connect(this):F()}_updateContext(){let t=this._data.length,i=this._viewContainerRef.length;for(;i--;){let r=this._viewContainerRef.get(i);r.context.index=this._renderedRange.start+i,r.context.count=t,this._updateComputedContextProperties(r.context),r.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(s,a,l)=>this._getEmbeddedViewArgs(s,l),s=>s.item),t.forEachIdentityChange(s=>{let a=this._viewContainerRef.get(s.currentIndex);a.context.$implicit=s.item});let i=this._data.length,r=this._viewContainerRef.length;for(;r--;){let s=this._viewContainerRef.get(r);s.context.index=this._renderedRange.start+r,s.context.count=i,this._updateComputedContextProperties(s.context)}}_updateComputedContextProperties(t){t.first=t.index===0,t.last=t.index===t.count-1,t.even=t.index%2===0,t.odd=!t.even}_getEmbeddedViewArgs(t,i){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:i}}};e.\u0275fac=function(i){return new(i||e)(st(Ii),st(Oi),st(Fc),st(Jl),st(ic,4),st(ht))},e.\u0275dir=w({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[E([{provide:Jl,useClass:Ls}])]});let n=e;return n})();var zn=[{name:"Misha Zhem",img:"./example.png",status:"online"},{name:"Oleg B.",img:"OB",status:"online"},{name:"Andrey M.",img:"AM",status:"online"},{name:"Misha Zhem3",img:"./example.png",status:"online"},{name:"Vladimir D.",img:"VD",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Misha Zhem2",img:"./example.png",status:"online"},{name:"Misha Zhem4",img:"./example.png",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Andrey M.",img:"AM",status:"online"}],Bn=[{name:"Misha Zhem4",img:"./example.png",status:"online",last:"9:12 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1},{name:"Misha Zhem2",img:"./example.png",status:"online",last:"8:45 PM",took:!1},{name:"Misha Zhem",img:"./example.png",status:"online",last:"1:10 PM",took:!1},{name:"Misha Zhem3",img:"./example.png",status:"online",last:"11:05 AM",took:!0},{name:"Gleb H.",img:"GH",status:"online",last:"1:15 AM",took:!1},{name:"Vladimir D.",img:"VD",status:"online",last:"3:15 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1}],db={contacts:zn.concat(zn,zn,zn,zn,zn),recent:Bn.concat(Bn,Bn,Bn,Bn,Bn)},vm=(()=>{let e=class e{constructor(){this.contactsData=db}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function pb(n,e){if(n&1){let o=$();m(0,"button",3),x("click",function(){let i=O(o).$index,r=_();return I(r.activeTab=i)}),m(1,"header",4)(2,"h2",5),M(3),f()()()}if(n&2){let o=e.$implicit;p(2),R("text-align","center"),p(),V(" ",o," ")}}function hb(n,e){if(n&1&&(m(0,"div",8),T(1,"tui-avatar",9),L(2,"tuiAutoColor"),m(3,"div",5),M(4),m(5,"div",10),M(6),f()(),m(7,"button",11),M(8," Call "),f()()),n&2){let o=e.$implicit;p(),R("background",G(2,5,o.img)),h("src",o.img),p(3),V(" ",o.name," "),p(2),Pe(o.status)}}function mb(n,e){if(n&1&&(m(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),C(2,hb,9,7,"div",7),f()()),n&2){let o=_();p(2),h("cdkVirtualForOf",o.contactsService.contacts)}}function fb(n,e){if(n&1&&(m(0,"div",8)(1,"tui-badged-content"),T(2,"tui-avatar",12),L(3,"tuiAutoColor"),T(4,"tui-icon",13),f(),m(5,"div",5),M(6),m(7,"div",10),M(8),f()(),m(9,"div",10),M(10),f()()),n&2){let o=e.$implicit;p(2),R("background",G(3,8,o.img)),h("src",o.img),p(2),h("appearance",o.took?"error":"success")("icon",o.took?"@tui.arrow-down-left":"@tui.arrow-up-right"),p(2),V(" ",o.name," "),p(2),Pe(o.status),p(2),Pe(o.last)}}function gb(n,e){if(n&1&&(m(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),C(2,fb,11,10,"div",7),f()()),n&2){let o=_();p(2),h("cdkVirtualForOf",o.contactsService.recent)}}var _m=(()=>{let e=class e{constructor(){this.contactsService=u(vm).contactsData,this.tabs=["Contacts","Recent"],this.activeTab=0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-contacts"]],standalone:!0,features:[D],decls:6,vars:2,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],[3,"activeItemIndex"],["tuiTab",""],["tuiTab","",3,"click"],["tuiHeader",""],["tuiTitle",""],["itemSize","57","tuiScrollable","",1,"contacts-list","viewport","tui-zero-scrollbar"],["tuiCell","l",4,"cdkVirtualFor","cdkVirtualForOf"],["tuiCell","l"],[3,"src"],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.phone","tuiIconButton",""],[1,"avatar",3,"src"],["size","s","tuiBadge","","tuiSlot","top",3,"appearance","icon"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"tui-tabs",1),Qi(2,pb,4,3,"button",2,Yi),f(),C(4,mb,3,1,"tui-scrollbar")(5,gb,3,1,"tui-scrollbar"),f()),i&2&&(p(),h("activeItemIndex",r.activeTab),p(),Zi(r.tabs),p(2),eo(r.activeTab===0?4:5))},dependencies:[mm,gm,ic,J,bt,ud,Ro,nd,Wp,Gp,We,Vt,rd,dt,cd,pn,Ol,Up],styles:["tui-tabs[_ngcontent-%COMP%]{display:flex;justify-content:space-around}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0;border-radius:0;box-shadow:0 1px var(--tui-border-normal)}.viewport[_ngcontent-%COMP%]{height:12.5rem}tui-badged-content[_ngcontent-%COMP%] tui-avatar[_ngcontent-%COMP%]{--t-size: 2.5rem;font:var(--tui-font-text-m);font-weight:700}"],changeDetection:0});let n=e;return n})();var vb=[{name:"Open the door",img:"@tui.door-open"},{name:"Play music",img:"@tui.speaker"},{name:"Call security",img:"@tui.shield-alert"},{name:"Turn up the heat",img:"@tui.heater"},{name:"Turn on the kettle",img:"@tui.coffee"}],Cm=(()=>{let e=class e{constructor(){this.controlPanelData=vb}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function _b(n,e){if(n&1&&(m(0,"button",1)(1,"aside",2),T(2,"tui-avatar",3),f(),m(3,"h3",4),M(4),f()()),n&2){let o=e.$implicit;p(2),R("color","var(--tui-background-accent-opposite)"),h("src",o.img),p(2),V(" ",o.name," ")}}var ym=(()=>{let e=class e{constructor(){this.controlPanelService=u(Cm).controlPanelData}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-small-card"]],standalone:!0,features:[D],decls:1,vars:1,consts:[["tuiCardLarge","","tuiHeader","","tuiSurface","elevated","class","button-card",4,"ngFor","ngForOf"],["tuiCardLarge","","tuiHeader","","tuiSurface","elevated",1,"button-card"],["tuiAccessories",""],["appearance","","size","l",3,"src"],[1,"text"]],template:function(i,r){i&1&&C(0,_b,5,4,"button",0),i&2&&h("ngForOf",r.controlPanelService)},dependencies:[J,Pt,Ro,Vt,od,Ld],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-wrap:wrap;gap:.625rem;align-items:center;justify-content:space-around}@media (max-width: 50rem) and (min-width: 31.35rem){[_nghost-%COMP%]{display:grid;grid-template-columns:1fr 1fr}}.text[_ngcontent-%COMP%]{font:var(--tui-font-heading-6);margin-top:1rem;margin-bottom:1rem}[tuiHeader][_ngcontent-%COMP%] [tuiAccessories][_ngcontent-%COMP%]{gap:0}.button-card[_ngcontent-%COMP%]{display:flex;max-width:max-content;align-items:center;padding-right:1.75rem;gap:1rem}@media (max-width: 50rem){.button-card[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%}}@media (max-width: 31.25rem){.button-card[_ngcontent-%COMP%]{width:calc(100vw - 5.5rem);max-width:calc(100vw - 5.5rem);flex-shrink:0}}.button-card[_ngcontent-%COMP%]:last-child{grid-column-end:3;grid-column-start:1}"],changeDetection:0});let n=e;return n})();function Cb(n,e){if(n&1&&T(0,"div",1),n&2){let o=e.$implicit,t=e.index,i=_();R("background","var(--tui-chart-categorical-0"+t+")")("height",i.getHeight(o),"%")}}var bm=(()=>{let e=class e{constructor(){this.value=[],this.size="m"}getHeight(t){return 100*t/this.getSum(this.value)}getSum(t){return ho(...t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-bar"]],hostVars:1,hostBindings:function(i,r){i&2&&U("data-size",r.size)},inputs:{value:"value",size:"size"},standalone:!0,features:[D],decls:1,vars:1,consts:[["automation-id","tui-bar__bar",3,"background","height",4,"ngFor","ngForOf"],["automation-id","tui-bar__bar"]],template:function(i,r){i&1&&C(0,Cb,1,4,"div",0),i&2&&h("ngForOf",r.value)},dependencies:[Pt],styles:["[_nghost-%COMP%]{display:flex;min-width:.125rem;flex-direction:column-reverse;border-top-left-radius:var(--tui-radius-l);border-top-right-radius:var(--tui-radius-l);overflow:hidden}[data-size=l][_nghost-%COMP%]{width:1rem;max-width:1rem;margin:0 .1875rem}[data-size=m][_nghost-%COMP%]{width:.5rem;max-width:.5rem;margin:0 .1875rem}[data-size=s][_nghost-%COMP%]{width:.25rem;max-width:.5rem;margin:0 .125rem}"],changeDetection:0});let n=e;return ct([ut],n.prototype,"getSum",null),n})();var yb=["*"],bb=(n,e)=>({$implicit:n,index:e,flexible:!1}),wb=(n,e)=>({$implicit:n,index:e,flexible:!0});function Tb(n,e){if(n&1&&Zt(0,5),n&2){let o=e.$implicit,t=e.index;_(2);let i=j(4);h("ngTemplateOutlet",i)("ngTemplateOutletContext",io(2,bb,o,t))}}function xb(n,e){if(n&1&&(Ct(0),C(1,Tb,1,5,"ng-container",4),yt()),n&2){let o=_();p(),h("ngForOf",o.computedValue)}}function Mb(n,e){if(n&1&&(m(0,"div",7),Zt(1,5),f()),n&2){let o=e.$implicit,t=e.index;_(2);let i=j(4);p(),h("ngTemplateOutlet",i)("ngTemplateOutletContext",io(2,wb,o,t))}}function Ob(n,e){if(n&1&&C(0,Mb,2,5,"div",6),n&2){let o=_();h("ngForOf",o.computedValue)}}function Ib(n,e){if(n&1&&T(0,"tui-bar",8),n&2){let o=e.flexible,t=e.index,i=e.$implicit,r=_();R("background","var(--tui-chart-categorical-0"+t+")")("height",r.getHeight(i),"%"),H("t-bar_flexible",o)("t-bar_negative",i<0),h("size",r.computedSize)("value",r.computedSegments)}}var Db=100,Sb=[],Pb=[1],wm=(()=>{let e=class e{constructor(){this.value=[],this.size="m",this.collapsed=!1}get computedValue(){return this.collapsed?Pb:this.value}get computedSegments(){return this.collapsed?this.value:Sb}get computedSize(){return this.size||"m"}getHeight(t){return Math.abs(Db*t/this.getLargest(this.computedValue))}getLargest(t){return t.some(i=>i>0)?t.reduce((i,r)=>i>r?i:r,0):Math.abs(t.reduce((i,r)=>i({$implicit:n});function kb(n,e){if(n&1){let o=$();m(0,"div",2),L(1,"async"),x("mouseenter.once",function(){return O(o),I(0)}),m(2,"div",3),L(3,"tuiMapper"),T(4,"div",4,0)(6,"tui-bar-set",5),f()()}if(n&2){let o=e.$implicit,t=e.index,i=j(5),r=_();H("t-wrapper_hoverable",!!r.hintContent)("t-wrapper_hovered",G(1,15,r.drivers.get(t))),h("tuiHint",r.hintContent)("tuiHintContext",Nt(22,Eb,t))("tuiHintDescribe",r.getHintId(t))("tuiHintHost",i),p(2),R("height",no(3,17,o,r.percentMapper,r.collapsed,r.computedMax),"%"),p(4),h("collapsed",r.collapsed)("id",r.getHintId(t))("size",r.size)("tabIndex",r.hintContent?0:-1)("value",o)}}var Tm=(()=>{let e=class e{constructor(){this.hintOptions=u(Ye,{optional:!0}),this.autoIdString=u(So).generate(),this.drivers=Ce,this.value=[],this.max=NaN,this.size="m",this.collapsed=!1,this.percentMapper=(t,i,r)=>100*(i?ho(...t):Math.max(...t))/r}get transposed(){return this.transpose(this.value)}get computedMax(){return this.max||this.getMax(this.value,this.collapsed)}get hintContent(){var t;return((t=this.hintOptions)==null?void 0:t.content)||""}getHintId(t){return`${this.autoIdString}_${t}`}transpose(t){return t.reduce((i,r)=>r.map((s,a)=>[...i[a]||[],r[a]]),[])}getMax(t,i){return i?Math.max(...t.reduce((r,s)=>r.map((a,l)=>a+s[l]))):t.reduce((r,s)=>Math.max(...s,r),0)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-bar-chart"]],viewQuery:function(i,r){if(i&1&&Dt(Po,5),i&2){let s;it(s=nt())&&(r.drivers=s)}},inputs:{value:"value",max:"max",size:"size",collapsed:"collapsed"},standalone:!0,features:[E([],[Ku({direction:"top"})]),D],decls:1,vars:1,consts:[["hintHost",""],["class","t-wrapper",3,"t-wrapper_hoverable","t-wrapper_hovered","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter.once",4,"ngFor","ngForOf"],[1,"t-wrapper",3,"mouseenter.once","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-container"],[1,"t-host"],[1,"t-set",3,"collapsed","id","size","tabIndex","value"]],template:function(i,r){i&1&&C(0,kb,7,24,"div",1),i&2&&h("ngForOf",r.transposed)},dependencies:[Pt,Eo,ko,Ju,ei,at,wm],styles:["[_nghost-%COMP%]{display:flex;flex:1;height:100%}.t-wrapper[_ngcontent-%COMP%]{transition-property:background-color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;flex:1;align-items:flex-end;justify-content:center;height:100%}.t-wrapper_hoverable[_ngcontent-%COMP%]{cursor:pointer}.t-wrapper_hoverable[_ngcontent-%COMP%]:hover, .t-wrapper_hoverable.t-wrapper_hovered[_ngcontent-%COMP%]{background-color:#0000000d}.t-container[_ngcontent-%COMP%]{flex:1}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;right:50%}.t-set[_ngcontent-%COMP%]{border-radius:var(--tui-radius-m);pointer-events:none;outline:none}.t-set[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px var(--tui-border-focus)}"],changeDetection:0});let n=e;return ct([ut],n.prototype,"transpose",null),ct([ut],n.prototype,"getMax",null),n})();var Rb=n=>({$implicit:n});function Ab(n,e){if(n&1&&T(0,"tui-line-chart",2),n&2){let o=e.$implicit,t=e.first,i=_(),r=j(2);R("z-index",i.zIndex),h("dots",i.dots)("height",i.height)("smoothingFactor",i.smoothingFactor)("tuiHintContent",i.hintContent?r:"")("value",o)("width",t?i.firstWidth:i.getWidth(o[0][0]))("x",t?0:i.getX(o[0][0]))("xStringify",i.xStringify?i.daysStringify:null)("y",i.y)("yStringify",i.yStringify)}}function Fb(n,e){if(n&1&&(Ct(0),M(1),yt()),n&2){let o=e.polymorpheusOutlet;p(),V(" ",o," ")}}function Lb(n,e){if(n&1&&C(0,Fb,2,1,"ng-container",3),n&2){let o=e.$implicit,t=_();h("polymorpheusOutlet",t.hintContent)("polymorpheusOutletContext",Nt(2,Rb,t.getHintContext(o[0],t.value)))}}function xm(n,e){return n.find(([o])=>o.daySame(e))||[e,NaN]}var nc=(()=>{let e=class e{constructor(){this.charts=Ce,this.destroyRef=u(fe),this.zone=u(ht),this.hovered$=u(or)}ngAfterContentInit(){ze([...this.charts.map(({charts:t})=>ya(t)),this.hovered$]).pipe(xt(t=>!t.some(Boolean)),$e(this.zone),lt(this.destroyRef)).subscribe(()=>{this.charts.forEach(t=>t.onHovered(NaN))})}getContext(t){return this.getMap(...this.charts.map(({value:i})=>i)).get(String(t))||[]}raise(t){let i=this.charts.map(({value:s})=>xm(s,t)).filter(([s,a])=>!Number.isNaN(a)),r=[...i].sort((s,a)=>s[1]-a[1]);this.charts.forEach((s,a)=>{s.onHovered(t),s.zIndex=Math.max(r.indexOf(i[a]),0)})}getMap(...t){return(t[0]||[]).reduce((i,[r])=>i.set(String(r),t.map(s=>xm(s,r))),new Map)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=w({type:e,selectors:[["","tuiLineChartHint",""]],contentQueries:function(i,r,s){if(i&1&&$t(s,rc,4),i&2){let a;it(a=nt())&&(r.charts=a)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[E([or])]});let n=e;return ct([ut],n.prototype,"getMap",null),n})(),Nb=[NaN,NaN],rc=(()=>{let e=class e{constructor(){this.destroyRef=u(fe),this.zone=u(ht),this.hovered$=u(or),this.options=u(sd),this.hintDirective=u(nc,{optional:!0}),this.charts=Ce,this.y=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.dots=this.options.dots,this.zIndex=0,this.value=[],this.daysStringify=t=>this.xStringify?this.xStringify(this.getDay(t)):""}set valueSetter(t){if(!t.length){this.value=[];return}let i=t[0][0],r=[...t],s=ft.lengthBetween(i,t[t.length-1][0])+1;this.value=Array.from({length:s},(a,l)=>{let c=i.append({day:l}),d=c.daySame(r[0][0])?r.shift():null,g=d?d[1]:NaN;return[c,g]})}ngAfterViewInit(){ze([ya(this.charts),this.hovered$]).pipe(xt(t=>!t.some(Boolean)),$e(this.zone),lt(this.destroyRef)).subscribe(()=>{this.onHovered(NaN)})}onHovered(t){if(po(t)){this.charts.forEach(a=>a.onHovered(NaN));return}let i=Gt.lengthBetween(this.value[0][0],t),r=ft.lengthBetween(this.value[0][0],t)+this.value[0][0].day-1,s=this.charts.get(i);this.charts.forEach(a=>{a===s?s.onHovered(s.value.findIndex(l=>l[0]===r)):a.onHovered(NaN)})}get months(){return this.value.length?this.breakMonths(this.value):Cu}get firstWidth(){return this.months.length*this.value[0][0].daysCount}get hint(){var t;return((t=this.hintDirective)==null?void 0:t.hint)??this.hintContent}getHintContext(t,i){return i[t-i[0][0].day+1]}getX(t){let i=this.getDay(t),s=Gt.lengthBetween(this.value[0][0],i)*i.daysCount;return t-s}raise(t,{value:i}){let r=i[t][0],s=this.getDay(r);this.hintDirective?this.hintDirective.raise(s):this.onHovered(s)}getWidth(t){return this.getDay(t).daysCount*this.months.length}getContext(t,{value:i}){let r=i[t][0];return this.hintDirective?this.hintDirective.getContext(this.getDay(r)):this.getHintContext(r,this.value)}breakMonths(t){let i=t[0][0].day-1;return Array.from({length:Gt.lengthBetween(t[0][0],t[t.length-1][0])+1},(r,s)=>s+t[0][0].month+t[0][0].year*12).map(r=>t.map(([{month:s,year:a},l],c)=>s+a*12===r?[c+i,l]:null).filter(Jt)).map((r,s,a)=>s===a.length-1?r:[...r,a[s+1].find(l=>!Number.isNaN(l[1]))||Nb])}getDay(t){return this.value[t-this.value[0][0].day+1][0]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["tui-line-days-chart"]],viewQuery:function(i,r){if(i&1&&Dt(sr,5),i&2){let s;it(s=nt())&&(r.charts=s)}},hostVars:2,hostBindings:function(i,r){i&2&&R("z-index",r.zIndex)},inputs:{y:"y",height:"height",smoothingFactor:"smoothingFactor",hintContent:"hintContent",xStringify:"xStringify",yStringify:"yStringify",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[E([or,{provide:ad,useExisting:e}]),D],decls:3,vars:1,consts:[["hint",""],["class","t-chart",3,"dots","height","smoothingFactor","zIndex","tuiHintContent","value","width","x","xStringify","y","yStringify",4,"ngFor","ngForOf"],[1,"t-chart",3,"dots","height","smoothingFactor","tuiHintContent","value","width","x","xStringify","y","yStringify"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(i,r){i&1&&C(0,Ab,1,12,"tui-line-chart",1)(1,Lb,1,4,"ng-template",null,0,gt),i&2&&h("ngForOf",r.months)},dependencies:[sr,Pt,Ye,wt],styles:["[_nghost-%COMP%]{display:block}.t-chart[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let n=e;return ct([ut],n.prototype,"getHintContext",null),ct([ut],n.prototype,"breakMonths",null),n})();var Vb={value:[[1e3,8e3,4e3,3e3,4e3],[6e3,2e3,4500,7e3,5e3]],labelsX:["Jan 2021","Feb","Mar"],labelsY:["0","10 000"]},Mm=(()=>{let e=class e{constructor(){this.costData=Vb}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Om=(()=>{let e=class e{constructor(){this.costService=u(Mm).costData,this.hint=({$implicit:t})=>this.costService.value.reduce((i,r)=>`${i}$${Mo(r[t])} -`,"").trim()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-cost"]],standalone:!0,features:[D],decls:15,vars:7,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader","s"],["tuiTitle","s"],[1,"legend"],[1,"item"],[1,"name"],[1,"flex"],[1,"axes",3,"axisXLabels","axisYLabels"],[3,"max","tuiHintContent","value"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"div")(2,"header",1)(3,"h3",2),M(4," Utility costs "),f()(),m(5,"p",3)(6,"span",4)(7,"small",5),M(8,"Electricity bills"),f()(),m(9,"span",4)(10,"small",5),M(11,"Light bills"),f()()(),m(12,"div",6)(13,"tui-axes",7),T(14,"tui-bar-chart",8),f()()()()),i&2&&(p(3),R("text-align","center"),p(10),h("axisXLabels",r.costService.labelsX)("axisYLabels",r.costService.labelsY),p(),h("max",1e4)("tuiHintContent",r.hint)("value",r.costService.value))},dependencies:[J,ue,bt,Ao,Tm,Vt,Ye,Kh],styles:['.axes[_ngcontent-%COMP%]{min-height:18.75rem;width:100%;--tui-chart-categorical-00: var(--tui-background-accent-1);--tui-chart-categorical-01: var(--tui-chart-categorical-12)}.flex[_ngcontent-%COMP%]{display:flex;width:100%}.select[_ngcontent-%COMP%]{max-width:20rem}.card[_ngcontent-%COMP%]{width:100%;height:100%;background-color:var(--tui-background-base)}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:last-child{color:var(--tui-chart-categorical-12)}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}'],changeDetection:0});let n=e;return n})();var Im=(()=>{let e=class e{generateRandomData({from:t,to:i},r){return new Array(ft.lengthBetween(t,i)+1).fill(0).reduce((s,a,l)=>[...s,[t.append({day:l}),Math.max((l?s[l-1][1]:r)+Math.random()*10-5,0)]],[]).filter(([s])=>s.dayOfWeek()<5)}random(t){return[this.generateRandomData(t,100)]}onlyMondays(t){return t.filter(i=>!i.dayOfWeek()).map(String)}even(t){return t.filter((i,r)=>!(r%2))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Hb(n,e){n&1&&(m(0,"span",8)(1,"small",9),M(2,"Electricity bills"),f()())}function zb(n,e){if(n&1&&(T(0,"tui-line-days-chart",13),L(1,"tuiFilter")),n&2){let o=e.$implicit,t=_(3);h("height",200)("value",di(1,2,o,t.filter,t.range))}}function Bb(n,e){if(n&1&&(Ct(0),C(1,zb,2,6,"tui-line-days-chart",12),yt()),n&2){let o=_(2);p(),h("ngForOf",o.days)}}function Ub(n,e){if(n&1&&(T(0,"tui-line-chart",15),L(1,"tuiFilter"),L(2,"tuiMapper")),n&2){let o=e.$implicit,t=_(3);h("height",200)("value",di(2,7,di(1,3,o,t.filter,t.range),t.toNumbers,t.range))("width",t.getWidth(t.range))}}function jb(n,e){if(n&1&&C(0,Ub,3,11,"tui-line-chart",14),n&2){let o=_(2);h("ngForOf",o.days)}}function $b(n,e){if(n&1&&(m(0,"tui-axes",10),C(1,Bb,2,1,"ng-container",11)(2,jb,1,1,"ng-template",null,1,gt),f()),n&2){let o=e.ngIf,t=j(3),i=_(),r=j(10);h("axisXLabels",o)("horizontalLines",4)("tuiLineChartHint",r)("verticalLines",o.length),p(),h("ngIf",i.getWidth(i.show)>90)("ngIfElse",t)}}function Wb(n,e){if(n&1&&(m(0,"div",8)(1,"span",17),M(2),f()()),n&2){let o=e.$implicit;p(2),V("$",o[1].toFixed(0),"")}}function Gb(n,e){if(n&1&&(m(0,"div",16)(1,"strong"),M(2),f()(),m(3,"div"),C(4,Wb,3,1,"div",6),f()),n&2){let o=e.$implicit,t=_();p(2),Pe(t.getDate(o[0][0],t.range.from)),p(2),h("ngForOf",o)}}var Dm=(()=>{let e=class e{constructor(){this.electricityService=u(Im),this.months$=u(To),this.show=new te(ft.currentLocal(),ft.currentLocal().append({month:3})),this.days=this.electricityService.random(this.show),this.maxLength={month:4},this.filter=([t],{from:i,to:r})=>t.daySameOrAfter(i)&&t.daySameOrBefore(r),this.toNumbers=(t,{from:i})=>t.map(([r,s])=>[ft.lengthBetween(i,r),s])}get range(){return this.computeRange(this.show)}getWidth({from:t,to:i}){return ft.lengthBetween(t,i)}getDate(t,i){return t instanceof ft?t:i.append({day:t})}labels({from:t,to:i}){let r=ft.lengthBetween(t,i);if(r>90)return this.months$.pipe(A(c=>Array.from({length:Gt.lengthBetween(t,i)+1},(d,g)=>c[t.append({month:g}).month])));let s=Array.from({length:r},(c,d)=>t.append({day:d})),a=this.electricityService.onlyMondays(s),l=s.map(String);return r>60?F(this.electricityService.even(a)):r>14?F(a):r>7?F(this.electricityService.even(l)):F(l)}onDataChange(t){this.days=this.electricityService.random(t)}computeRange(t){let{from:i,to:r}=t,s=ft.lengthBetween(i,r),a=i.dayOfWeek(),l=r.dayOfWeek(),c=a?i.append({day:7-a}):i,d=l?r.append({day:7-l}):r,g=ft.lengthBetween(c,d);return s>90?t:s>60?new te(c,d.append({day:g%14})):s>14?new te(c,d):new te(i,r.append({day:s%2}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-electricity"]],standalone:!0,features:[D],decls:11,vars:6,consts:[["hint",""],["line",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],[1,"controls"],[3,"ngModelChange","maxLength","ngModel"],[1,"legend","tui-space_top-0"],["class","item",4,"ngFor","ngForOf"],["class","axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines",4,"ngIf"],[1,"item"],[1,"name"],[1,"axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines"],[4,"ngIf","ngIfElse"],["class","chart",3,"height","value",4,"ngFor","ngForOf"],[1,"chart",3,"height","value"],["class","chart",3,"height","value","width",4,"ngFor","ngForOf"],[1,"chart",3,"height","value","width"],[1,"tui-space_bottom-2"],[1,"value"]],template:function(i,r){if(i&1){let s=$();m(0,"div",2)(1,"div")(2,"p",3)(3,"tui-input-date-range",4),ve("ngModelChange",function(l){return O(s),ne(r.show,l)||(r.show=l),I(l)}),x("ngModelChange",function(l){return O(s),I(r.onDataChange(l))}),M(4," Data "),f()(),m(5,"p",5),C(6,Hb,3,0,"span",6),f(),C(7,$b,4,6,"tui-axes",7),L(8,"async"),f(),C(9,Gb,5,2,"ng-template",null,0,gt),f()}i&2&&(p(3),h("maxLength",r.maxLength),ge("ngModel",r.show),p(3),h("ngForOf",r.days),p(),h("ngIf",G(8,4,r.labels(r.show))))},dependencies:[at,J,Pt,ot,ue,ce,Wt,bt,Ao,Vt,$p,nm,em,im,sr,rc,nc,ei],styles:['.card[_ngcontent-%COMP%]{background-color:var(--tui-background-base)}.axes[_ngcontent-%COMP%]{height:12.5rem}.controls[_ngcontent-%COMP%]{display:flex}.controls[_ngcontent-%COMP%] tui-input-date-range[_ngcontent-%COMP%]{flex:1}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.value[_ngcontent-%COMP%]{color:var(--tui-background-base)}.chart[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);position:absolute;top:0;left:0;width:100%;height:100%}'],changeDetection:0});let n=e;return n})();var Yb=[{room:"Kitchen",state:!0},{room:"Bedroom",state:!1},{room:"Bathroom",state:!0}],Sm=(()=>{let e=class e{constructor(){this.lightingData=Yb}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Qb=n=>({checked:n}),Zb=n=>({hidden:n});function qb(n,e){if(n&1&&(m(0,"label",5)(1,"div",6),T(2,"input",7),M(3),f(),T(4,"tui-icon",8),f()),n&2){let o=e.$implicit,t=e.index,i=_();h("ngClass",Nt(8,Qb,o.value)),p(2),R("display","none"),h("formControl",o),p(),V(" ",i.lightingService[t].room," "),p(),R("color","var(--tui-chart-categorical-12)"),h("ngClass",Nt(10,Zb,!o.value))}}var Pm=(()=>{let e=class e{constructor(){this.lightingService=u(Sm).lightingData,this.lightingForm=new Ji(this.lightingService.map(t=>new Di(t.state)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-lighting"]],standalone:!0,features:[D],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",3,"ngClass",4,"ngFor","ngForOf"],["tuiBlock","",3,"ngClass"],[1,"title-room"],["tuiCheckbox","","type","checkbox",3,"formControl"],["alt","","icon","@tui.lightbulb",1,"light-svg",3,"ngClass"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"header",1)(2,"h2",2),M(3," Lighting "),f()(),m(4,"form",3),C(5,qb,5,12,"label",4),f()()),i&2&&(p(2),R("text-align","center"),p(2),h("collapsed",!0),p(),h("ngForOf",r.lightingForm.controls))},dependencies:[J,Gc,Pt,ue,co,ao,ce,lo,nu,hi,Xi,bt,Ts,Vt,xs,Yo,dt,td],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;flex-shrink:0;text-align:center;height:100%;background-color:var(--tui-background-base)}.light-svg[_ngcontent-%COMP%]{width:1.875rem;height:1.875rem;margin-left:auto}.title-room[_ngcontent-%COMP%]{display:flex;height:1.875rem;align-items:center}.checked[_ngcontent-%COMP%]{background-color:var(--tui-status-warning-pale)}.hidden[_ngcontent-%COMP%]{display:none}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let n=e;return n})();var Kb=[{name:"Against All Odds",logo:"/music/against.jpg",performer:"Tiko Tiko",src:"./music/AgainstAllOdds.mp3",length:208},{name:"Howling at the Moon",logo:"/music/howling.avif",performer:"D Fine Us",src:"./music/HowlingAtTheMoon.mp3",length:195}],Em=(()=>{let e=class e{constructor(){this.tracks=Kb}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function oc(n){return Math.floor(Math.random()*n)}var km=(()=>{let e=class e{constructor(){this.tracks=u(Em).tracks,this.activeIndex=0,this.time=0,this.volume=1,this.repeat=!1,this.shuffle=!1,this.paused=!0}nextTrack(t){this.time=0,!this.repeat&&(this.activeIndex=this.shuffle?oc(this.tracks.length):(this.activeIndex+1)%this.tracks.length,setTimeout(()=>zi(this,null,function*(){return t.play()}),1))}previousTrack(t){if(this.time=0,this.repeat)return;let i=this.activeIndex-1<0?this.tracks.length-1:this.activeIndex-1;this.activeIndex=this.shuffle?oc(this.tracks.length):i,setTimeout(()=>zi(this,null,function*(){return t.play()}),1)}getMinutes(t){return(t/60<=9?"0":"")+Math.trunc(t/60).toString()}getSeconds(t){return t=Math.trunc(t),(t%60<=9?"0":"")+(t%60).toString()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-music"]],standalone:!0,features:[D],decls:30,vars:23,consts:[["audio",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"logo",3,"src"],[1,"tui-space_top-4","tui-space_bottom-2"],[1,"tui-space_top-0","tui-space_bottom-0"],["tuiMedia","",3,"currentTimeChange","pausedChange","volumeChange","ended","src","currentTime","paused","volume"],["size","m","tuiSlider","","type","range",3,"ngModelChange","max","ngModel"],[1,"duration"],[1,"buttons"],["appearance","icon","iconStart","@tui.shuffle","tuiIconButton","",3,"click","tuiAppearanceState"],["appearance","icon","iconStart","@tui.skip-back","tuiIconButton","",3,"click"],["appearance","icon","tuiIconButton","",3,"click","iconStart"],["appearance","icon","iconStart","@tui.skip-forward","tuiIconButton","",3,"click"],["appearance","icon","iconStart","@tui.repeat","tuiIconButton","",3,"click","tuiAppearanceState"],[1,"volume"],["icon","@tui.volume-1"],["max","1","size","m","step","0.01","tuiSlider","","type","range",3,"ngModelChange","ngModel"],["icon","@tui.volume-2"]],template:function(i,r){if(i&1){let s=$();m(0,"div",1)(1,"header",2)(2,"h2",3),M(3," Music "),f()(),m(4,"div",4),T(5,"img",5),m(6,"h2",6),M(7),f(),m(8,"p",7),M(9),f()(),m(10,"audio",8,0),ve("currentTimeChange",function(l){return O(s),ne(r.time,l)||(r.time=l),I(l)})("pausedChange",function(l){return O(s),ne(r.paused,l)||(r.paused=l),I(l)})("volumeChange",function(l){return O(s),ne(r.volume,l)||(r.volume=l),I(l)}),x("ended",function(){O(s);let l=j(11);return I(r.nextTrack(l))}),f(),m(12,"div")(13,"input",9),ve("ngModelChange",function(l){return O(s),ne(r.time,l)||(r.time=l),I(l)}),f(),m(14,"div",10)(15,"p",7),M(16),f(),m(17,"p",7),M(18),f()()(),m(19,"div",11)(20,"button",12),x("click",function(){return O(s),I(r.shuffle=!r.shuffle)}),f(),m(21,"button",13),x("click",function(){O(s);let l=j(11);return I(r.previousTrack(l))}),f(),m(22,"button",14),x("click",function(){return O(s),I(r.paused=!r.paused)}),f(),m(23,"button",15),x("click",function(){O(s);let l=j(11);return I(r.nextTrack(l))}),f(),m(24,"button",16),x("click",function(){return O(s),I(r.repeat=!r.repeat)}),f()(),T(25,"hr"),m(26,"div",17),T(27,"tui-icon",18),m(28,"input",19),ve("ngModelChange",function(l){return O(s),ne(r.volume,l)||(r.volume=l),I(l)}),f(),T(29,"tui-icon",20),f()()}if(i&2){let s=j(11);p(2),R("text-align","center"),p(3),h("src",r.tracks[r.activeIndex].logo,Gs),p(2),V(" ",r.tracks[r.activeIndex].name," "),p(),R("color","var(--tui-text-primary)"),p(),V(" ",r.tracks[r.activeIndex].performer," "),p(),h("src",r.tracks[r.activeIndex].src,Gs),ge("currentTime",r.time)("paused",r.paused)("volume",r.volume),p(3),h("max",s.duration),ge("ngModel",r.time),p(3),Jn("",r.getMinutes(r.time),":",r.getSeconds(r.time),""),p(2),Jn(" ",r.getMinutes(r.tracks[r.activeIndex].length),":",r.getSeconds(r.tracks[r.activeIndex].length)," "),p(2),h("tuiAppearanceState",r.shuffle?"active":null),p(2),h("iconStart",r.paused?"@tui.circle-play":"@tui.circle-stop"),p(2),h("tuiAppearanceState",r.repeat?"active":null),p(4),R("color","var(--tui-status-info)"),ge("ngModel",r.volume)}},dependencies:[J,ue,Ki,ru,ce,Wt,hi,bt,We,Vt,dt,jp,Hl],styles:[".duration[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:var(--tui-text-primary)}.buttons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}.volume[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.logo[_ngcontent-%COMP%]{border-radius:.5rem;width:9rem;height:9rem}"],changeDetection:0});let n=e;return n})();var Xb=[{name:"Alarm system",state:!0},{name:"Close the curtains",state:!1},{name:"Video monitoring",state:!0},{name:"Enable gas sensor notification",state:!1}],Rm=(()=>{let e=class e{constructor(){this.safetyData=Xb}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Jb(n,e){if(n&1&&(m(0,"label",5),M(1),T(2,"input",6),f()),n&2){let o=e.$implicit,t=e.index,i=_();p(),V(" ",i.safetyService[t].name," "),p(),R("margin-left","auto"),h("formControl",o)}}var Am=(()=>{let e=class e{constructor(){this.safetyService=u(Rm).safetyData,this.safetyForm=new Ji(this.safetyService.map(t=>new Di(t.state)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-safety"]],standalone:!0,features:[D],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",4,"ngFor","ngForOf"],["tuiBlock",""],["tuiCheckbox","","type","checkbox",3,"formControl"]],template:function(i,r){i&1&&(m(0,"div",0)(1,"header",1)(2,"h2",2),M(3," Safety "),f()(),m(4,"form",3),C(5,Jb,3,4,"label",4),f()()),i&2&&(p(2),R("text-align","center"),p(2),h("collapsed",!0),p(),h("ngForOf",r.safetyForm.controls))},dependencies:[J,Pt,hi,co,ao,ce,lo,Xi,bt,Ts,Vt,xs,Yo],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;height:100%;background-color:var(--tui-background-base)}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let n=e;return n})();var Fm=[1003,1006,1030,1087,1135],Lm=[1009,1063,1180,1183,1186,1189,1192,1195,1198,1201,1204,1240,1243,1246,1249,1252,1276],Nm=[1066,1069,1072,1114,1117,1147,1168,1171,1204,1210,1213,1216,1219,1222,1225,1237,1255,1258,1261,1264,1273,1279,1282],Vm=["Sun","Mon","Tues","Wed","Thurs","Fri","Sat"],Hm=new z("",{factory:()=>"1df6860ee44f43d693d113704242207"});var zm=(()=>{let e=class e{constructor(){this.http=u(Kc),this.KEY=u(Hm)}getWeather(){return this.http.get("https://api.weatherapi.com/v1/forecast.json",{params:{key:this.KEY,q:"London",api:"yes",days:"3"}})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function tw(n,e){if(n&1&&(m(0,"div",15),T(1,"tui-icon",16),m(2,"div",5)(3,"p",9),M(4),f(),m(5,"p",9),M(6),f()()()),n&2){let o=e.$index;_();let t=Ks(1),i=_();p(),h("icon",i.getSmallImage(t[o].day.condition.code)),p(),R("align-items","center"),p(),R("font-weight","600"),p(),V(" ",i.getWeekDay(t[o].date)," "),p(2),Jn(" ",t[o].day.mintemp_c,"\xB0/",t[o].day.maxtemp_c,"\xB0 ")}}function ew(n,e){if(n&1&&(Zs(0)(1),m(2,"div",1)(3,"header",2)(4,"h2",3),M(5," Weather "),f()(),m(6,"div",4)(7,"div",5)(8,"h3",6),M(9),f(),m(10,"h1",7),M(11),f(),m(12,"div",8)(13,"p",9)(14,"span"),M(15),f(),M(16," \xB0/ "),m(17,"span"),M(18),f(),M(19," \xB0 "),f(),m(20,"div",10),T(21,"tui-icon",11),M(22),f(),m(23,"div",10),T(24,"tui-icon",12),M(25),f()(),m(26,"p",13),M(27),f()()(),m(28,"div",14),Qi(29,tw,7,8,"div",15,Yi),f()()),n&2){let o=_(),t=Ks(0),i=t.current;p();let r=qs(t.forecast.forecastday);p(),R("background-image",o.getImage(i.condition.code)),p(2),R("color","var(--tui-text-primary-on-accent-1)")("text-align","center"),p(5),V(" ",t.location.name," "),p(2),V("",i.temp_c,"\xB0"),p(2),R("display","flex"),p(),R("font-weight","600"),p(),Pe(i.dewpoint_c),p(2),R("font-weight","600"),p(),Pe(i.heatindex_c),p(4),V(" ",i.wind_kph,"km/h "),p(3),V(" ",i.humidity,"% "),p(2),V(" ",i.condition.text," "),p(2),Zi(r)}}var Bm=(()=>{let e=class e{constructor(){this.weatherService=u(zm),this.info$=this.weatherService.getWeather()}getWeekDay(t){let i=t.split("-"),r=new Date(parseInt(i[0],10),parseInt(i[1],10)-1,parseInt(i[2],10));return Vm[r.getDay()]}getTypeOfWeather(t){return Fm.includes(t)?"clouds":Lm.includes(t)?"rain":Nm.includes(t)?"snow":"sun"}getSmallImage(t){let i=this.getTypeOfWeather(t);return i==="snow"?"@tui.snowflake":i==="rain"?"@tui.droplet":i==="clouds"?"@tui.cloud":"@tui.sun"}getImage(t){return`url(./weather/${this.getTypeOfWeather(t)}.jpg)`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["lmb-weather"]],standalone:!0,features:[D],decls:3,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card",3,"background-image"],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"left-side"],["tuiTitle","",1,"tui-text_body-m"],[1,"tui-space_top-3","tui-space_bottom-3"],[1,"description"],[1,"tui-space_top-0","tui-space_bottom-0"],[1,"indicator"],["icon","@tui.wind"],["icon","@tui.droplets"],[1,"tui-space_top-0","tui-space_bottom-0","tui-text_body-s"],[1,"list-days"],[1,"card-small"],[1,"card-icon",3,"icon"]],template:function(i,r){if(i&1&&(Zs(0),L(1,"async"),C(2,ew,31,20,"div",0)),i&2){let s=qs(G(1,1,r.info$));p(2),eo(s?2:-1)}},dependencies:[at,J,bt,Vt,dt],styles:[".indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.1rem}.card[_ngcontent-%COMP%]{background-position:center;overflow:hidden;box-shadow:inset 0 10rem 10rem 10rem #00000086;color:var(--tui-text-primary-on-accent-1)}.info[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.left-side[_ngcontent-%COMP%]{display:flex;flex-direction:column}.description[_ngcontent-%COMP%]{display:flex;gap:.625rem}.list-days[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-wrap:wrap}.card-small[_ngcontent-%COMP%]{display:flex;align-items:center}.card-icon[_ngcontent-%COMP%]{width:2rem;height:2rem}"],changeDetection:0});let n=e;return n})();var IN=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=b({type:e,selectors:[["app-iot"]],standalone:!0,features:[D],decls:24,vars:0,consts:[[1,"tiles"],[1,"column"],[1,"row"],[1,"grow"]],template:function(i,r){i&1&&(m(0,"div",0),T(1,"lmb-small-card"),m(2,"div",1)(3,"div",2)(4,"div",3),T(5,"lmb-safety"),f(),m(6,"div",3),T(7,"lmb-electricity"),f(),m(8,"div",3),T(9,"lmb-climate-control"),f()(),m(10,"div",2)(11,"div",3),T(12,"lmb-lighting"),f(),m(13,"div",3),T(14,"lmb-cost"),f(),m(15,"div",3),T(16,"lmb-cleaning"),f()(),m(17,"div",2)(18,"div",3),T(19,"lmb-weather"),f(),m(20,"div",3),T(21,"lmb-music"),f(),m(22,"div",3),T(23,"lmb-contacts"),f()()()())},dependencies:[sm,lm,J,_m,ym,Om,Dm,Pm,km,Am,Bm],styles:[".tiles[_ngcontent-%COMP%]{gap:1rem;padding-top:1.25rem}.grow[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{position:relative;display:grid;flex:0 0 auto;grid-template-columns:4fr 6fr 4fr;gap:1rem}@media (max-width: 56.25rem){.row[_ngcontent-%COMP%]{display:flex;flex:1;flex-wrap:wrap}.grow[_ngcontent-%COMP%]{height:max-content}}@media (max-width: 35.625rem){.grow[_ngcontent-%COMP%]{width:100%}}.column[_ngcontent-%COMP%]{display:flex;gap:.625rem;padding-top:1.25rem;flex-direction:column}"],changeDetection:0});let n=e;return n})();export{yd as a,mx as b,gv as c,Yd as d,Op as e,dO as f,pO as g,ei as h,Km as i,pn as j,ww as k,cd as l,yx as m,ki as n,$o as o,we as p,ni as q,w1 as r,T1 as s,x1 as t,Go as u,De as v,Qe as w,Fa as x,GM as y,IN as z}; diff --git a/chunk-N5IFNO7J.js b/chunk-N5IFNO7J.js deleted file mode 100644 index 60ec5bd1a..000000000 --- a/chunk-N5IFNO7J.js +++ /dev/null @@ -1 +0,0 @@ -import{z as a}from"./chunk-N27FRY2N.js";import"./chunk-HIUNHKUB.js";import"./chunk-HFDGAYQF.js";export{a as IotComponent}; diff --git a/chunk-P7BVBIJ3.js b/chunk-P7BVBIJ3.js new file mode 100644 index 000000000..5f640c31c --- /dev/null +++ b/chunk-P7BVBIJ3.js @@ -0,0 +1 @@ +import{$a as Se,$d as kn,Ac as at,Ae as q,B as ve,Bd as Ct,Be as Ln,Ca as rt,Cb as Sn,Db as ot,Ea as cn,F as sn,Fa as At,Fb as En,Gb as bn,Ge as Hn,Hd as oi,He as we,I as rn,Ia as me,Id as ut,Jc as Tn,Jd as It,Je as xn,K as ei,Kd as ai,L as Z,Ld as Fn,M as on,Nd as te,Pa as un,Pd as Nn,Qc as An,R as it,Sa as hn,T as ti,U as _t,V as St,Ve as $n,W as le,Wa as Dt,Wb as ue,Wc as Ve,X as _e,Xb as ri,Xd as Oe,Y as qe,Ya as ni,Yb as wn,Yc as Dn,Yd as We,Z as an,Za as si,Zd as li,_ as Et,aa as ln,af as ui,ba as P,bd as Pn,d as Fe,da as ce,eb as fn,g as Jt,ga as nt,gb as Ne,h as Xe,hb as dn,ja as d,l as Je,la as st,lb as Pt,mb as pn,n as oe,na as bt,nb as je,nd as Cn,oa as wt,pb as mn,pc as Ee,pd as In,qa as ii,qd as K,r as F,sa as x,te as be,ub as gn,ud as Mn,ue as On,vb as yn,wb as vn,wd as ke,we as Rn,x as et,xe as ci,y as tt,ya as Tt,yd as lt,z as ae,zb as _n,zd as ct}from"./chunk-ZFID6WDR.js";import{a as J,b as Ke,c as nn,d as B}from"./chunk-HFDGAYQF.js";var fi=new nt("POLYMORPHEUS_CONTEXT"),Re=class{constructor(e,t){B(this,"component");B(this,"i");this.component=e,this.i=t}createInjector(e,t){return cn.create({parent:this.i||e,providers:[{provide:fi,useValue:t}]})}},Mt=class{constructor(e){B(this,"$implicit");this.$implicit=e}get polymorpheusOutlet(){return this.$implicit}};var Ks=(()=>{let e=class e{constructor(i=d(Se,{self:!0}),s=d(Ee)){B(this,"template");B(this,"cdr");B(this,"polymorpheus","");this.template=i,this.cdr=s}static ngTemplateContextGuard(i,s){return!0}check(){this.cdr.markForCheck()}};B(e,"\u0275fac",function(s){return new(s||e)(si(Se),si(Ee))}),B(e,"\u0275dir",x({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"],standalone:!0}));let n=e;return n})(),di=(()=>{let e=class e{constructor(){B(this,"vcr",d(fn));B(this,"i",d(wt));B(this,"t",d(Se));B(this,"c");B(this,"content","");B(this,"context")}static ngTemplateContextGuard(i,s){return!0}ngOnChanges({content:i}){var o;let s=this.getContext();if((o=this.c)==null||o.injector.get(Ee).markForCheck(),!i)return;this.vcr.clear();let r=s&&new Proxy(s,{get:(a,l)=>{var c;return(c=this.getContext())==null?void 0:c[l]}});Bn(this.content)?this.process(this.content,r):(s instanceof Mt&&s.$implicit)!=null&&this.vcr.createEmbeddedView(this.template,r,{injector:this.i})}ngDoCheck(){hi(this.content)&&this.content.check()}get template(){return hi(this.content)?this.content.template:this.content instanceof Se?this.content:this.t}getContext(){return qs(this.content)||Bn(this.content)?this.context:new Mt(this.context&&typeof this.content=="function"?this.content(this.context):this.content)}process(i,s){let r=i.createInjector(this.i,s);this.c=this.vcr.createComponent(i.component,{injector:r})}};B(e,"\u0275fac",function(s){return new(s||e)}),B(e,"\u0275dir",x({type:e,selectors:[["","polymorpheusOutlet",""]],inputs:{content:[0,"polymorpheusOutlet","content"],context:[0,"polymorpheusOutletContext","context"]},standalone:!0,features:[Tt]}));let n=e;return n})();function hi(n){return n instanceof Ks}function Bn(n){return n instanceof Re}function qs(n){return hi(n)||n instanceof Se}function js(n){return n.platform.startsWith("Mac")||n.platform==="iPhone"}var Vs=/ipad|iphone|ipod/;function zn(n){return Vs.test(n.userAgent.toLowerCase())||js(n)&&n.maxTouchPoints>1}function Zo({ownerDocument:n}){var s,r,o,a,l,c,h,f;let e=n==null?void 0:n.defaultView,t=typeof e.safari<"u"&&((r=(s=e.safari)==null?void 0:s.pushNotification)==null?void 0:r.toString())==="[object SafariRemoteNotification]",i=!!((a=(o=e.navigator)==null?void 0:o.vendor)!=null&&a.includes("Apple"))&&!((c=(l=e.navigator)==null?void 0:l.userAgent)!=null&&c.includes("CriOS"))&&!((f=(h=e.navigator)==null?void 0:h.userAgent)!=null&&f.includes("FxiOS"));return t||i}function pi({activeElement:n}){if(!(n!=null&&n.shadowRoot))return n;let e=n.shadowRoot.activeElement;for(;e!=null&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Jo(n){let e=pi(n);ut(e)&&e.blur()}function Un(n){if(n.hasAttribute("disabled")||n.getAttribute("tabIndex")==="-1")return!1;if(ut(n)&&n.isContentEditable||n.getAttribute("tabIndex")==="0")return!0;switch(n.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return n.hasAttribute("controls");case"INPUT":return n.getAttribute("type")!=="hidden";case"A":case"LINK":return n.hasAttribute("href");default:return!1}}function Ws(n){return!n.hasAttribute("disabled")&&(n.getAttribute("tabIndex")==="-1"||Un(n))}function ea({initial:n,root:e,previous:t=!1,keyboard:i=!0}){if(!e.ownerDocument)return null;let s=i?Un:Ws,r=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,kn);for(r.currentNode=n;t?r.previousNode():r.nextNode();)if(ut(r.currentNode)&&(n=r.currentNode),ut(n)&&s(n))return n;return null}function mi(n){return!!(n!=null&&n.ownerDocument)&&pi(n.ownerDocument)===n&&n.ownerDocument.hasFocus()}function ta(n){var t;let e=(n==null?void 0:n.ownerDocument)&&pi(n.ownerDocument);return!!e&&n.contains(e)&&!!((t=n.ownerDocument)!=null&&t.hasFocus())}function ia(n,e,t){for(n+=t;n>=0&&ne()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},ht=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,s=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(i=>{let s=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(s)})}getPosition(){let e=this.players.reduce((t,i)=>t===null||i.totalTime>t.totalTime?i:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},Nt="!";function qn(n){return new P(3e3,!1)}function Qs(){return new P(3100,!1)}function Zs(){return new P(3101,!1)}function Gs(n){return new P(3001,!1)}function Ys(n){return new P(3003,!1)}function Xs(n){return new P(3004,!1)}function Js(n,e){return new P(3005,!1)}function er(){return new P(3006,!1)}function tr(){return new P(3007,!1)}function ir(n,e){return new P(3008,!1)}function nr(n){return new P(3002,!1)}function sr(n,e,t,i,s){return new P(3010,!1)}function rr(){return new P(3011,!1)}function or(){return new P(3012,!1)}function ar(){return new P(3200,!1)}function lr(){return new P(3202,!1)}function cr(){return new P(3013,!1)}function ur(n){return new P(3014,!1)}function hr(n){return new P(3015,!1)}function fr(n){return new P(3016,!1)}function dr(n,e){return new P(3404,!1)}function pr(n){return new P(3502,!1)}function mr(n){return new P(3503,!1)}function gr(){return new P(3300,!1)}function yr(n){return new P(3504,!1)}function vr(n){return new P(3301,!1)}function _r(n,e){return new P(3302,!1)}function Sr(n){return new P(3303,!1)}function Er(n,e){return new P(3400,!1)}function br(n){return new P(3401,!1)}function wr(n){return new P(3402,!1)}function Tr(n,e){return new P(3505,!1)}function Ae(n){switch(n.length){case 0:return new Te;case 1:return n[0];default:return new ht(n)}}function ls(n,e,t=new Map,i=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,f=h&&a||new Map;l.forEach((T,b)=>{let g=b,S=T;if(b!=="offset")switch(g=n.normalizePropertyName(g,s),S){case Nt:S=t.get(b);break;case he:S=i.get(b);break;default:S=n.normalizeStyleValue(b,g,S,s);break}f.set(g,S)}),h||r.push(f),a=f,o=c}),s.length)throw pr(s);return r}function $i(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&gi(t,"start",n)));break;case"done":n.onDone(()=>i(t&&gi(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&gi(t,"destroy",n)));break}}function gi(n,e,t){let i=t.totalTime,s=!!t.disabled,r=Bi(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function Bi(n,e,t,i,s="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function Y(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function jn(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var Ar=typeof document>"u"?null:document.documentElement;function zi(n){let e=n.parentNode||n.host||null;return e===Ar?null:e}function Dr(n){return n.substring(1,6)=="ebkit"}var Le=null,Vn=!1;function Pr(n){Le||(Le=Cr()||{},Vn=Le.style?"WebkitAppearance"in Le.style:!1);let e=!0;return Le.style&&!Dr(n)&&(e=n in Le.style,!e&&Vn&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Le.style)),e}function Cr(){return typeof document<"u"?document.body:null}function cs(n,e){for(;e;){if(e===n)return!0;e=zi(e)}return!1}function us(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var Ir=(()=>{let e=class e{validateStyleProperty(i){return Pr(i)}containsElement(i,s){return cs(i,s)}getParentElement(i){return zi(i)}query(i,s,r){return us(i,s,r)}computeStyle(i,s,r){return r||""}animate(i,s,r,o,a,l=[],c){return new Te(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac});let n=e;return n})(),ji=class ji{};ji.NOOP=new Ir;var Wn=ji,bi=class{};var Mr=1e3,hs="{{",Fr="}}",fs="ng-enter",wi="ng-leave",kt="ng-trigger",xt=".ng-trigger",Qn="ng-animating",Ti=".ng-animating";function ge(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ai(parseFloat(e[1]),e[2])}function Ai(n,e){switch(e){case"s":return n*Mr;default:return n}}function $t(n,e,t){return n.hasOwnProperty("duration")?n:Nr(n,e,t)}function Nr(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(qn(n)),{duration:0,delay:0,easing:""};s=Ai(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Ai(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=n;if(!t){let a=!1,l=e.length;s<0&&(e.push(Qs()),a=!0),r<0&&(e.push(Zs()),a=!0),a&&e.splice(l,0,qn(n))}return{duration:s,delay:r,easing:o}}function kr(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function fe(n,e,t){e.forEach((i,s)=>{let r=Ui(s);t&&!t.has(s)&&t.set(s,n.style[r]),n.style[r]=i})}function xe(n,e){e.forEach((t,i)=>{let s=Ui(i);n.style[s]=""})}function ft(n){return Array.isArray(n)?n.length==1?n[0]:Kn(n):n}function Or(n,e,t){let i=e.params||{},s=ds(n);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||t.push(Gs(r))})}var Di=new RegExp(`${hs}\\s*(.+?)\\s*${Fr}`,"g");function ds(n){let e=[];if(typeof n=="string"){let t;for(;t=Di.exec(n);)e.push(t[1]);Di.lastIndex=0}return e}function pt(n,e,t){let i=`${n}`,s=i.replace(Di,(r,o)=>{let a=e[o];return a==null&&(t.push(Ys(o)),a=""),a.toString()});return s==i?n:s}var Rr=/-+([a-z0-9])/g;function Ui(n){return n.replace(Rr,(...e)=>e[1].toUpperCase())}function Lr(n,e){return n===0||e===0}function Hr(n,e,t){if(t.size&&e.length){let i=e[0],s=[];if(t.forEach((r,o)=>{i.has(o)||s.push(o),i.set(o,r)}),s.length)for(let r=1;ro.set(a,Ki(n,a)))}}return e}function G(n,e,t){switch(e.type){case E.Trigger:return n.visitTrigger(e,t);case E.State:return n.visitState(e,t);case E.Transition:return n.visitTransition(e,t);case E.Sequence:return n.visitSequence(e,t);case E.Group:return n.visitGroup(e,t);case E.Animate:return n.visitAnimate(e,t);case E.Keyframes:return n.visitKeyframes(e,t);case E.Style:return n.visitStyle(e,t);case E.Reference:return n.visitReference(e,t);case E.AnimateChild:return n.visitAnimateChild(e,t);case E.AnimateRef:return n.visitAnimateRef(e,t);case E.Query:return n.visitQuery(e,t);case E.Stagger:return n.visitStagger(e,t);default:throw Xs(e.type)}}function Ki(n,e){return window.getComputedStyle(n)[e]}var xr=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"]),Zn=class extends bi{normalizePropertyName(e,t){return Ui(e)}normalizeStyleValue(e,t,i,s){let r="",o=i.toString().trim();if(xr.has(t)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(Js(e,i))}return o+r}};var Bt="*";function $r(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>Br(i,t,e)):t.push(n),t}function Br(n,e,t){if(n[0]==":"){let l=zr(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(hr(n)),e;let s=i[1],r=i[2],o=i[3];e.push(Gn(s,o));let a=s==Bt&&o==Bt;r[0]=="<"&&!a&&e.push(Gn(o,s))}function zr(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}var Ot=new Set(["true","1"]),Rt=new Set(["false","0"]);function Gn(n,e){let t=Ot.has(n)||Rt.has(n),i=Ot.has(e)||Rt.has(e);return(s,r)=>{let o=n==Bt||n==s,a=e==Bt||e==r;return!o&&t&&typeof s=="boolean"&&(o=s?Ot.has(n):Rt.has(n)),!a&&i&&typeof r=="boolean"&&(a=r?Ot.has(e):Rt.has(e)),o&&a}}var ps=":self",Ur=new RegExp(`s*${ps}s*,?`,"g");function ms(n,e,t,i){return new Pi(n).build(e,t,i)}var Yn="",Pi=class{constructor(e){this._driver=e}build(e,t,i){let s=new Ci(t);return this._resetContextStyleTimingState(s),G(this,ft(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Yn,e.collectedStyles=new Map,e.collectedStyles.set(Yn,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,s=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(er()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==E.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==E.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,s+=l.depCount,o.push(l)}else t.errors.push(tr())}),{type:E.Trigger,name:e.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=s||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ds(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(ir(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:i,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=G(this,ft(e.animation),t),s=$r(e.expr,t.errors);return{type:E.Transition,matchers:s,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:He(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(i=>G(this,i,t)),options:He(e.options)}}visitGroup(e,t){let i=t.currentTime,s=0,r=e.steps.map(o=>{t.currentTime=i;let a=G(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:E.Group,steps:r,options:He(e.options)}}visitAnimate(e,t){let i=Vr(e.timings,t.errors);t.currentAnimateTimings=i;let s,r=e.styles?e.styles:u({});if(r.type==E.Keyframes)s=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=u(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,s=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:i,style:s,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===he?i.push(a):t.errors.push(nr(a)):i.push(new Map(Object.entries(a)));let r=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(hs)>=0){r=!0;break}}}),{type:E.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,s=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),f=!0;h&&(r!=s&&r>=h.startTime&&s<=h.endTime&&(t.errors.push(sr(l,h.startTime,h.endTime,r,s)),f=!1),r=h.startTime),f&&c.set(l,{startTime:r,endTime:s}),t.options&&Or(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rr()),i;let s=1,r=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(O=>{let L=this._makeStyleAst(O,t),V=L.offset!=null?L.offset:jr(L.styles),$=0;return V!=null&&(r++,$=L.offset=V),l=l||$<0||$>1,a=a||$0&&r{let V=T>0?L==b?1:T*L:o[L],$=V*I;t.currentTime=g+S.delay+$,S.duration=$,this._validateStyleAst(O,t),O.offset=V,i.styles.push(O)}),i}visitReference(e,t){return{type:E.Reference,animation:G(this,ft(e.animation),t),options:He(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:He(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:He(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Kr(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,Y(t.collectedStyles,t.currentQuerySelector,new Map);let a=G(this,ft(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:E.Query,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:He(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(cr());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:$t(e.timings,t.errors,!0);return{type:E.Stagger,animation:G(this,ft(e.animation),t),timings:i,options:null}}};function Kr(n){let e=!!n.split(/\s*,\s*/).find(t=>t==ps);return e&&(n=n.replace(Ur,"")),n=n.replace(/@\*/g,xt).replace(/@\w+/g,t=>xt+"-"+t.slice(1)).replace(/:animating/g,Ti),[n,e]}function qr(n){return n?J({},n):null}var Ci=class{constructor(e){this.errors=e,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 jr(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Vr(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=$t(n,e).duration;return yi(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=yi(0,0,"");return r.dynamic=!0,r.strValue=t,r}let s=$t(t,e);return yi(s.duration,s.delay,s.easing)}function He(n){return n?(n=J({},n),n.params&&(n.params=qr(n.params))):n={},n}function yi(n,e,t){return{duration:n,delay:e,easing:t}}function qi(n,e,t,i,s,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var mt=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Wr=1,Qr=":enter",Zr=new RegExp(Qr,"g"),Gr=":leave",Yr=new RegExp(Gr,"g");function gs(n,e,t,i,s,r=new Map,o=new Map,a,l,c=[]){return new Ii().buildKeyframes(n,e,t,i,s,r,o,a,l,c)}var Ii=class{buildKeyframes(e,t,i,s,r,o,a,l,c,h=[]){c=c||new mt;let f=new Mi(e,t,c,s,r,h,[]);f.options=l;let T=l.delay?ge(l.delay):0;f.currentTimeline.delayNextStep(T),f.currentTimeline.setStyles([o],null,f.errors,l),G(this,i,f);let b=f.timelines.filter(g=>g.containsAnimation());if(b.length&&a.size){let g;for(let S=b.length-1;S>=0;S--){let I=b[S];if(I.element===t){g=I;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,f.errors,l)}return b.length?b.map(g=>g.buildKeyframes()):[qi(t,[],[],[],0,T,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let s of e){let r=s==null?void 0:s.delay;if(r){let o=typeof r=="number"?r:ge(pt(r,(s==null?void 0:s.params)??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?ge(i.duration):null,a=i.delay!=null?ge(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),G(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,s=t,r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==E.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=zt);let o=ge(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>G(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],s=t.currentTimeline.currentTime,r=e.options&&e.options.delay?ge(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),G(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,s=t.params?pt(i,t.params,t.errors):i;return $t(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),s.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,s=t.currentAnimateTimings;!s&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,s=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?ge(s.delay):0;r&&(t.previousNode.type===E.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=zt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let f=t.createSubContext(e.options,c);r&&f.delayNextStep(r),c===t.element&&(l=f.currentTimeline),G(this,e.animation,f),f.currentTimeline.applyStylesToKeyframe();let T=f.currentTimeline.currentTime;o=Math.max(o,T)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let f=h.currentTime;G(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=s.currentTime-f+(s.startTime-i.currentTimeline.startTime)}},zt={},Mi=class n{constructor(e,t,i,s,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=zt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ut(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,s=this.options;i.duration!=null&&(s.duration=ge(i.duration)),i.delay!=null&&(s.delay=ge(i.delay));let r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=pt(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(s=>{i[s]=t[s]})}}return e}createSubContext(e=null,t,i){let s=t||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=zt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new Fi(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(Zr,"."+this._enterClassName),e=e.replace(Yr,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&a.length==0&&o.push(ur(t)),a}},Ut=class n{constructor(e,t,i,s){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=s,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Wr,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||he),this._currentKeyframe.set(t,he);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,s){t&&this._previousKeyframe.set("easing",t);let r=s&&s.params||{},o=Xr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=pt(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??he),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let s=this._styleSummary.get(i);(!s||t.time>s.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,f)=>{h===Nt?e.add(f):h===he&&t.add(f)}),i||c.set("offset",l/this.duration),s.push(c)});let r=[...e.values()],o=[...t.values()];if(i){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return qi(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},Fi=class extends Ut{constructor(e,t,i,s,r,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",Xn(a)),r.push(c);let h=e.length-1;for(let f=1;f<=h;f++){let T=new Map(e[f]),b=T.get("offset"),g=t+b*i;T.set("offset",Xn(g/o)),r.push(T)}i=o,t=0,s="",e=r}return qi(this.element,e,this.preStyleProps,this.postStyleProps,i,t,s,!0)}};function Xn(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Xr(n,e){let t=new Map,i;return n.forEach(s=>{if(s==="*"){i??(i=e.keys());for(let r of i)t.set(r,he)}else for(let[r,o]of s)t.set(r,o)}),t}function Jn(n,e,t,i,s,r,o,a,l,c,h,f,T){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:f,errors:T}}var vi={},Kt=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,s){return Jr(this.ast.matchers,e,t,i,s)}buildStyles(e,t,i){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e==null?void 0:e.toString())||s),s?s.buildStyles(t,i):new Map}build(e,t,i,s,r,o,a,l,c,h){var se;let f=[],T=this.ast.options&&this.ast.options.params||vi,b=a&&a.params||vi,g=this.buildStyles(i,b,f),S=l&&l.params||vi,I=this.buildStyles(s,S,f),O=new Set,L=new Map,V=new Map,$=s==="void",Ue={params:ys(S,T),delay:(se=this.ast.options)==null?void 0:se.delay},ne=h?[]:gs(e,t,this.ast.animation,r,o,g,I,Ue,c,f),W=0;return ne.forEach(de=>{W=Math.max(de.duration+de.delay,W)}),f.length?Jn(t,this._triggerName,i,s,$,g,I,[],[],L,V,W,f):(ne.forEach(de=>{let pe=de.element,Xi=Y(L,pe,new Set);de.preStyleProps.forEach(Ie=>Xi.add(Ie));let Ye=Y(V,pe,new Set);de.postStyleProps.forEach(Ie=>Ye.add(Ie)),pe!==t&&O.add(pe)}),Jn(t,this._triggerName,i,s,$,g,I,ne,[...O.values()],L,V,W))}};function Jr(n,e,t,i,s){return n.some(r=>r(e,t,i,s))}function ys(n,e){let t=J({},e);return Object.entries(n).forEach(([i,s])=>{s!=null&&(t[i]=s)}),t}var Ni=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,s=ys(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=pt(o,s,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function eo(n,e,t){return new ki(n,e,t)}var ki=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new Ni(s.style,r,i))}),es(this.states,"true","1"),es(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new Kt(e,s,this.states))}),this.fallbackTransition=to(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,s){return this.transitionFactories.find(o=>o.match(e,t,i,s))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function to(n,e,t){let i=[(o,a)=>!0],s={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:s,matchers:i,options:null,queryCount:0,depCount:0};return new Kt(n,r,e)}function es(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var io=new mt,Oi=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],s=[],r=ms(this._driver,t,i,s);if(i.length)throw mr(i);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,i){let s=e.element,r=ls(this._normalizer,e.keyframes,t,i);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=gs(this._driver,t,r,fs,wi,new Map,new Map,i,io,s),o.forEach(h=>{let f=Y(a,h.element,new Map);h.postStyleProps.forEach(T=>f.set(T,null))})):(s.push(gr()),o=[]),s.length)throw yr(s);a.forEach((h,f)=>{h.forEach((T,b)=>{h.set(b,this._driver.computeStyle(f,b,he))})});let l=o.map(h=>{let f=a.get(h.element);return this._buildPlayer(h,new Map,f)}),c=Ae(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw vr(e);return t}listen(e,t,i,s){let r=Bi(t,"","","");return $i(this._getPlayer(e),i,r,s),()=>{}}command(e,t,i,s){if(i=="register"){this.register(e,s[0]);return}if(i=="create"){let o=s[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},ts="ng-animate-queued",no=".ng-animate-queued",_i="ng-animate-disabled",so=".ng-animate-disabled",ro="ng-star-inserted",oo=".ng-star-inserted",ao=[],vs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ie="__ng_removed",gt=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),s=i?e.value:e;if(this.value=uo(s),i){let r=e,{value:o}=r,a=nn(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(s=>{i[s]==null&&(i[s]=t[s])})}}},dt="void",Si=new gt(dt),Ri=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ee(t,this._hostClassName)}listen(e,t,i,s){if(!this._triggers.has(t))throw _r(i,t);if(i==null||i.length==0)throw Sr(t);if(!ho(i))throw Er(i,t);let r=Y(this._elementListeners,e,[]),o={name:t,phase:i,callback:s};r.push(o);let a=Y(this._engine.statesByElement,e,new Map);return a.has(t)||(ee(e,kt),ee(e,kt+"-"+t),a.set(t,Si)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw br(e);return t}trigger(e,t,i,s=!0){let r=this._getTrigger(t),o=new yt(this.id,t,e),a=this._engine.statesByElement.get(e);a||(ee(e,kt),ee(e,kt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new gt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Si),!(c.value===dt)&&l.value===c.value){if(!mo(l.params,c.params)){let S=[],I=r.matchStyles(l.value,l.params,S),O=r.matchStyles(c.value,c.params,S);S.length?this._engine.reportError(S):this._engine.afterFlush(()=>{xe(e,I),fe(e,O)})}return}let T=Y(this._engine.playersByElement,e,[]);T.forEach(S=>{S.namespaceId==this.id&&S.triggerName==t&&S.queued&&S.destroy()});let b=r.matchTransition(l.value,c.value,e,c.params),g=!1;if(!b){if(!s)return;b=r.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:b,fromState:l,toState:c,player:o,isFallbackTransition:g}),g||(ee(e,ts),o.onStart(()=>{Ze(e,ts)})),o.onDone(()=>{let S=this.players.indexOf(o);S>=0&&this.players.splice(S,1);let I=this._engine.playersByElement.get(e);if(I){let O=I.indexOf(o);O>=0&&I.splice(O,1)}}),this.players.push(o),T.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,xt,!0);i.forEach(s=>{if(s[ie])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,i,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,dt,s);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&Ae(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let s=new Set;t.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Si,h=new gt(dt),f=new yt(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:f,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)i.markElementAsRemoved(this.id,e,!1,t);else{let r=e[ie];(!r||r===vs)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){ee(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let s=i.player;if(s.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Bi(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,$i(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(i)}),this._queue=[],t.sort((i,s)=>{let r=i.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Li=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Ri(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,s=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=s.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return s.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let s=this._namespaceLookup[e];s&&s.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let s of i.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&t.add(r)}}return t}trigger(e,t,i,s){if(Lt(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,s),!0}return!1}insertNode(e,t,i,s){if(!Lt(t))return;let r=t[ie];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ee(e,_i)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ze(e,_i))}removeNode(e,t,i){if(Lt(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,s,r){this.collectedLeaveElements.push(t),t[ie]={namespaceId:e,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,s,r){return Lt(t)?this._fetchNamespace(e).listen(t,i,s,r):()=>{}}_buildInstruction(e,t,i,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,xt,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ti,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ae(this.players).onDone(()=>e());e()})}processLeaveNode(e){var i;let t=e[ie];if(t&&t.setForRemoval){if(e[ie]=vs,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}(i=e.classList)!=null&&i.contains(_i)&&this.markElementAsDisabled(e,!1),this.driver.query(e,so,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ae(t).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(e){throw wr(e)}_flushAnimations(e,t){let i=new mt,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(p=>{h.add(p);let m=this.driver.query(p,no,!0);for(let y=0;y{let y=fs+S++;g.set(m,y),p.forEach(D=>ee(D,y))});let I=[],O=new Set,L=new Set;for(let p=0;pO.add(D)):L.add(m))}let V=new Map,$=ss(T,Array.from(O));$.forEach((p,m)=>{let y=wi+S++;V.set(m,y),p.forEach(D=>ee(D,y))}),e.push(()=>{b.forEach((p,m)=>{let y=g.get(m);p.forEach(D=>Ze(D,y))}),$.forEach((p,m)=>{let y=V.get(m);p.forEach(D=>Ze(D,y))}),I.forEach(p=>{this.processLeaveNode(p)})});let Ue=[],ne=[];for(let p=this._namespaceList.length-1;p>=0;p--)this._namespaceList[p].drainQueuedTransitions(t).forEach(y=>{let D=y.player,H=y.element;if(Ue.push(D),this.collectedEnterElements.length){let U=H[ie];if(U&&U.setForMove){if(U.previousTriggersValues&&U.previousTriggersValues.has(y.triggerName)){let Me=U.previousTriggersValues.get(y.triggerName),X=this.statesByElement.get(y.element);if(X&&X.has(y.triggerName)){let vt=X.get(y.triggerName);vt.value=Me,X.set(y.triggerName,vt)}}D.destroy();return}}let re=!f||!this.driver.containsElement(f,H),Q=V.get(H),ye=g.get(H),M=this._buildInstruction(y,i,ye,Q,re);if(M.errors&&M.errors.length){ne.push(M);return}if(re){D.onStart(()=>xe(H,M.fromStyles)),D.onDestroy(()=>fe(H,M.toStyles)),s.push(D);return}if(y.isFallbackTransition){D.onStart(()=>xe(H,M.fromStyles)),D.onDestroy(()=>fe(H,M.toStyles)),s.push(D);return}let tn=[];M.timelines.forEach(U=>{U.stretchStartingKeyframe=!0,this.disabledNodes.has(U.element)||tn.push(U)}),M.timelines=tn,i.append(H,M.timelines);let Us={instruction:M,player:D,element:H};o.push(Us),M.queriedElements.forEach(U=>Y(a,U,[]).push(D)),M.preStyleProps.forEach((U,Me)=>{if(U.size){let X=l.get(Me);X||l.set(Me,X=new Set),U.forEach((vt,Xt)=>X.add(Xt))}}),M.postStyleProps.forEach((U,Me)=>{let X=c.get(Me);X||c.set(Me,X=new Set),U.forEach((vt,Xt)=>X.add(Xt))})});if(ne.length){let p=[];ne.forEach(m=>{p.push(Tr(m.triggerName,m.errors))}),Ue.forEach(m=>m.destroy()),this.reportError(p)}let W=new Map,se=new Map;o.forEach(p=>{let m=p.element;i.has(m)&&(se.set(m,m),this._beforeAnimationBuild(p.player.namespaceId,p.instruction,W))}),s.forEach(p=>{let m=p.element;this._getPreviousPlayers(m,!1,p.namespaceId,p.triggerName,null).forEach(D=>{Y(W,m,[]).push(D),D.destroy()})});let de=I.filter(p=>rs(p,l,c)),pe=new Map;ns(pe,this.driver,L,c,he).forEach(p=>{rs(p,l,c)&&de.push(p)});let Ye=new Map;b.forEach((p,m)=>{ns(Ye,this.driver,new Set(p),l,Nt)}),de.forEach(p=>{let m=pe.get(p),y=Ye.get(p);pe.set(p,new Map([...(m==null?void 0:m.entries())??[],...(y==null?void 0:y.entries())??[]]))});let Ie=[],Ji=[],en={};o.forEach(p=>{let{element:m,player:y,instruction:D}=p;if(i.has(m)){if(h.has(m)){y.onDestroy(()=>fe(m,D.toStyles)),y.disabled=!0,y.overrideTotalTime(D.totalTime),s.push(y);return}let H=en;if(se.size>1){let Q=m,ye=[];for(;Q=Q.parentNode;){let M=se.get(Q);if(M){H=M;break}ye.push(Q)}ye.forEach(M=>se.set(M,H))}let re=this._buildAnimation(y.namespaceId,D,W,r,Ye,pe);if(y.setRealPlayer(re),H===en)Ie.push(y);else{let Q=this.playersByElement.get(H);Q&&Q.length&&(y.parentPlayer=Ae(Q)),s.push(y)}}else xe(m,D.fromStyles),y.onDestroy(()=>fe(m,D.toStyles)),Ji.push(y),h.has(m)&&s.push(y)}),Ji.forEach(p=>{let m=r.get(p.element);if(m&&m.length){let y=Ae(m);p.setRealPlayer(y)}}),s.forEach(p=>{p.parentPlayer?p.syncPlayerEvents(p.parentPlayer):p.destroy()});for(let p=0;p!re.destroyed);H.length?fo(this,m,H):this.processLeaveNode(m)}return I.length=0,Ie.forEach(p=>{this.players.push(p),p.onDone(()=>{p.destroy();let m=this.players.indexOf(p);this.players.splice(m,1)}),p.play()}),Ie}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,s,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==dt;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let s=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,h=c!==r,f=Y(i,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(b=>{let g=b.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),b.destroy(),f.push(b)})}xe(r,t.fromStyles)}_buildAnimation(e,t,i,s,r,o){let a=t.triggerName,l=t.element,c=[],h=new Set,f=new Set,T=t.timelines.map(g=>{let S=g.element;h.add(S);let I=S[ie];if(I&&I.removedBeforeQueried)return new Te(g.duration,g.delay);let O=S!==l,L=po((i.get(S)||ao).map(W=>W.getRealPlayer())).filter(W=>{let se=W;return se.element?se.element===S:!1}),V=r.get(S),$=o.get(S),Ue=ls(this._normalizer,g.keyframes,V,$),ne=this._buildPlayer(g,Ue,L);if(g.subTimeline&&s&&f.add(S),O){let W=new yt(e,a,S);W.setRealPlayer(ne),c.push(W)}return ne});c.forEach(g=>{Y(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>co(this.playersByQueriedElement,g.element,g))}),h.forEach(g=>ee(g,Qn));let b=Ae(T);return b.onDestroy(()=>{h.forEach(g=>Ze(g,Qn)),fe(l,t.toStyles)}),f.forEach(g=>{Y(s,g,[]).push(b)}),b}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Te(e.duration,e.delay)}},yt=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Te,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(s=>$i(e,i,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Y(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function co(n,e,t){let i=n.get(e);if(i){if(i.length){let s=i.indexOf(t);i.splice(s,1)}i.length==0&&n.delete(e)}return i}function uo(n){return n??null}function Lt(n){return n&&n.nodeType===1}function ho(n){return n=="start"||n=="done"}function is(n,e){let t=n.style.display;return n.style.display=e??"none",t}function ns(n,e,t,i,s){let r=[];t.forEach(l=>r.push(is(l)));let o=[];i.forEach((l,c)=>{let h=new Map;l.forEach(f=>{let T=e.computeStyle(c,f,s);h.set(f,T),(!T||T.length==0)&&(c[ie]=lo,o.push(c))}),n.set(c,h)});let a=0;return t.forEach(l=>is(l,r[a++])),o}function ss(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,s=new Set(e),r=new Map;function o(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:s.has(c)?l=i:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function ee(n,e){var t;(t=n.classList)==null||t.add(e)}function Ze(n,e){var t;(t=n.classList)==null||t.remove(e)}function fo(n,e,t){Ae(t).onDone(()=>n.processLeaveNode(e))}function po(n){let e=[];return _s(n,e),e}function _s(n,e){for(let t=0;ts.add(r)):e.set(n,i),t.delete(n),!0}var qt=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new Li(e.body,t,i),this._timelineEngine=new Oi(e.body,t,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,t,i,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],h=ms(this._driver,r,l,c);if(l.length)throw dr(s,l);c.length&&void 0,a=eo(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,s){this._transitionEngine.insertNode(e,t,i,s)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,s){if(i.charAt(0)=="@"){let[r,o]=jn(i),a=s;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,i,s)}listen(e,t,i,s,r){if(i.charAt(0)=="@"){let[o,a]=jn(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function go(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Ei(e[0]),e.length>1&&(i=Ei(e[e.length-1]))):e instanceof Map&&(t=Ei(e)),t||i?new Hi(n,t,i):null}var Ge=class Ge{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let s=Ge.initialStylesByElement.get(e);s||Ge.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&fe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fe(this._element,this._initialStyles),this._endStyles&&(fe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ge.initialStylesByElement.delete(this._element),this._startStyles&&(xe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xe(this._element,this._endStyles),this._endStyles=null),fe(this._element,this._initialStyles),this._state=3)}};Ge.initialStylesByElement=new WeakMap;var Hi=Ge;function Ei(n){let e=null;return n.forEach((t,i)=>{yo(i)&&(e=e||new Map,e.set(i,t))}),e}function yo(n){return n==="display"||n==="position"}var jt=class{constructor(e,t,i,s){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,s)=>{s!=="offset"&&e.set(s,this._finished?i:Ki(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},os=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return cs(e,t)}getParentElement(e){return zi(e)}query(e,t,i){return us(e,t,i)}computeStyle(e,t,i){return Ki(e,t)}animate(e,t,i,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:i,delay:s,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(b=>b instanceof jt);Lr(i,s)&&h.forEach(b=>{b.currentSnapshot.forEach((g,S)=>c.set(S,g))});let f=kr(t).map(b=>new Map(b));f=Hr(e,f,c);let T=go(e,f);return new jt(e,f,l,T)}};var Ht="@",Ss="@.disabled",Vt=class{constructor(e,t,i,s){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){var t,i;(i=(t=this.delegate).destroyNode)==null||i.call(t,e)}destroy(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(e=this._onDestroy)==null||e.call(this)}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,s=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,s){this.delegate.setAttribute(e,t,i,s)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,s){this.delegate.setStyle(e,t,i,s)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Ht&&t==Ss?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},xi=class extends Vt{constructor(e,t,i,s,r){super(t,i,s,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Ht?t.charAt(1)=="."&&t==Ss?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==Ht){let s=vo(e),r=t.slice(1),o="";return r.charAt(0)!=Ht&&([r,o]=_o(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function vo(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function _o(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var as=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(s,r)=>{let o=r==null?void 0:r.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,t){var c;let i="",s=this.delegate.createRenderer(e,t);if(!e||!((c=t==null?void 0:t.data)!=null&&c.animation)){let h=this._rendererCache,f=h.get(s);if(!f){let T=()=>h.delete(s);f=new Vt(i,s,this.engine,T),h.set(s,f)}return f}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,e,h.name,h)};return t.data.animation.forEach(a),new xi(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&et(i));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([t,i])}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 So=K(()=>{let n={onRemovalComplete:()=>{}},e=new Xe(null),t=d(qt,{optional:!0})||n,{onRemovalComplete:i=n.onRemovalComplete}=t;return t.onRemovalComplete=(s,r)=>{e.next(s),i.call(t,s,r)},e.pipe(_e(s=>tt(0).pipe(F(()=>null),le(s))),ti())});function Es(n,e=null){return ai(n).activeElement!==n&&!n.matches(":disabled")&&!(e!=null&&e.contains(n))}function Eo(n){return ae(q(n,"focusin").pipe(F(({target:e})=>e)),q(n,"focusout").pipe(ve(({target:e,relatedTarget:t})=>!!t&&Es(e)),F(({relatedTarget:e})=>e)))}var bs=K(()=>{let n=d(So),e=d(be),t=d(at),i=q(e,"focusout",{capture:!0}),s=q(e,"focusin",{capture:!0}),r=q(e,"blur"),o=q(e,"mousedown"),a=q(e,"mouseup");return ae(i.pipe(qe(o),it({delay:()=>a}),ln(n),ve(([l,c])=>Es(It(l),c)),F(([{relatedTarget:l}])=>l)),r.pipe(F(()=>t.activeElement),ve(l=>!!(l!=null&&l.matches("iframe")))),s.pipe(_e(l=>{let c=It(l),h=ai(c);return h===t?oe(c):Eo(h).pipe(le(c))})),o.pipe(_e(l=>{let c=It(l);return!t.activeElement||t.activeElement===t.body?oe(c):i.pipe(rn(1),F(()=>c),qe(tt(0)))}))).pipe(Z(),ti())}),_a=K(()=>{var n;return((n=d(at).querySelector("base"))==null?void 0:n.href)??""}),bo=/(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/,wo=/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-/,To=K(()=>bo.test(d(ci).toLowerCase())||wo.test(d(ci).slice(0,4).toLowerCase())),ws=K(()=>zn(d(Rn))),Ao=K(()=>d(To)&&!d(ws)),Ts=K(()=>{var n;return!!((n=d(be))!=null&&n.webkitConvertPointFromNodeToPage)}),Sa=K(()=>d(ws)?"ios":d(Ao)?"android":"web"),Ea=K(()=>{let n=d(be).matchMedia("(pointer: coarse)");return Dn(et(n,"change").pipe(F(()=>n.matches)),{initialValue:n.matches})}),Do=K(()=>!!d(be).Cypress),Po=K(We),ba=K(()=>d(Do)||d(Po)),Co=new nt("");function wa(n){return{provide:Co,useValue:n}}var Ta=K(()=>An(d(un))?new Range:{}),As=new nt("[TUI_WINDOW_SIZE]",{factory:()=>{let n=d(be);return q(n,"resize").pipe(le(null),F(()=>{var s,r;let e=Math.max(n.document.documentElement.clientWidth||0,n.innerWidth||0,((s=n.visualViewport)==null?void 0:s.width)||0),t=Math.max(n.document.documentElement.clientHeight||0,n.innerHeight||0,((r=n.visualViewport)==null?void 0:r.height)||0),i={width:e,height:t,top:0,left:0,right:e,bottom:t,x:0,y:0};return Ke(J({},i),{toJSON:()=>JSON.stringify(i)})}),_t({bufferSize:1,refCount:!0}))}});function Io({currentTarget:n,relatedTarget:e}){return!oi(e)||!oi(n)||!n.contains(e)}var $e=(()=>{let e=class e extends Fe{constructor(){super(i=>this.stream$.subscribe(i)),this.el=te(),this.zone=d(me),this.stream$=ae(q(this.el,"mouseenter").pipe(F(li)),q(this.el,"mouseleave").pipe(F(We)),q(this.el,"mouseout").pipe(ve(Io),F(We))).pipe(Z(),we(this.zone))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac});let n=e;return n})();var La=(()=>{let e=class e{constructor(){this.tuiHoveredChange=d($e)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275dir=x({type:e,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},standalone:!0,features:[ue([$e])]});let n=e;return n})();var _="{{duration}}ms ease-in-out",A={params:{duration:300}},j=300,Ds=C("tuiParentAnimation",[w(":leave",[k(":scope > *",[Ft()],{optional:!0})])]),$a=C("tuiParentStop",[w(":enter",[])]),Ba=C("tuiHost",[w(":enter",[u({overflow:"clip"}),k(":scope > *",[Ft()],{optional:!0})]),w(":leave",[k(":scope > *",[Ft()],{optional:!0})])]),za=C("tuiHeightCollapse",[w(":enter",[u({height:0}),v(_,u({height:"*"}))],A),w(":leave",[u({height:"*"}),v(_,u({height:0}))],A)]),Ua=C("tuiHeightCollapseList",[w("* => *",[k(":enter",[u({height:0}),z(j,[v(_,u({height:"*"}))])],{optional:!0}),k(":leave",[u({height:"*"}),z(j,[v(_,u({height:0}))])],{optional:!0})],A)]),Ka=C("tuiWidthCollapse",[w(":enter",[u({width:0}),v(_,u({width:"*"}))],A),w(":leave",[u({width:"*"}),v(_,u({width:0}))],A)]),qa=C("tuiWidthCollapseList",[w("* => *",[k(":enter",[u({width:0}),z(j,[v(_,u({width:"*"}))])],{optional:!0}),k(":leave",[u({width:"*"}),z(j,[v(_,u({width:0}))])],{optional:!0})],A)]),Ps=C("tuiFadeIn",[w(":enter",[u({opacity:0}),v(_,u({opacity:1}))],A),w(":leave",[u({opacity:1}),v(_,u({opacity:0}))],A)]),ja=C("tuiFadeInList",[w("* => *",[k(":enter",[u({opacity:0}),z(j,[v(_,u({opacity:1}))])],{optional:!0}),k(":leave",[u({opacity:1}),z(j,[v(_,u({opacity:0}))])],{optional:!0})],A)]),Va=C("tuiFadeInTop",[w(":enter",[u({transform:"translateY(-10px)",opacity:0}),v(_,u({transform:"translateY(0)",opacity:1}))],A),w(":leave",[u({transform:"translateY(0)",opacity:1}),v(_,u({transform:"translateY(-10px)",opacity:0}))],A)]),Wa=C("tuiFadeInBottom",[w(":enter",[u({transform:"translateY(10px)",opacity:0}),v(_,u({transform:"translateY(0)",opacity:1}))],A),w(":leave",[u({transform:"translateY(0)",opacity:1}),v(_,u({transform:"translateY(10px)",opacity:0}))],A)]),Qa=C("tuiDropdownAnimation",[w(":enter",[u({transform:"translateY(-10px)",opacity:0}),v(_,u({transform:"translateY(0)",opacity:1}))],A),w(":leave",[u({transform:"translateY(0)",opacity:1}),v(_,u({transform:"translateY(-10px)",opacity:0}))],A)]),Za=C("tuiScaleIn",[w(":enter",[u({transform:"scale(0)"}),v(_,u({transform:"scale(1)"}))],A),w(":leave",[u({transform:"scale(1)"}),v(_,u({transform:"scale(0)"}))],A)]),Ga=C("tuiPop",[w(":enter",[u({transform:"scale(0)"}),v(_,u({transform:"scale(1.1)"})),v(_,u({transform:"scale(1)"}))],A),w(":leave",[u({transform:"scale(1)"}),v(_,u({transform:"scale(1.1)"})),v(_,u({transform:"scale(0)"}))],A)]),Ya=C("tuiScaleInList",[w("* => *",[k(":enter",[u({transform:"scale(0)"}),z(j,[v(_,u({transform:"scale(1)"}))])],{optional:!0}),k(":leave",[u({transform:"scale(1)"}),z(j,[v(_,u({transform:"scale(0)"}))])],{optional:!0})],A)]),Xa=C("tuiSlideIn",[w("* => left",[u({transform:"translateX(-100%)"}),v(_,u({transform:"translateX(0)"}))],A),w("left => *",[u({transform:"translateX(0)"}),v(_,u({transform:"translateX(-100%)"}))],A),w("* => right",[u({transform:"translateX(100%)"}),v(_,u({transform:"translateX(0)"}))],A),w("right => *",[u({transform:"translateX(0)"}),v(_,u({transform:"translateX(100%)"}))],A)]),Ja=C("tuiSlideInLeft",[w(":enter",[u({transform:"translateX(-100%)"}),v(_,u({transform:"translateX(0)"}))],A),w(":leave",[u({transform:"translateX(0)"}),v(_,u({transform:"translateX(-100%)"}))],A)]),el=C("tuiSlideInLeftList",[w("* => *",[k(":enter",[u({transform:"translateX(-100%)"}),z(j,[v(_,u({transform:"translateX(0)"}))])],{optional:!0}),k(":leave",[u({transform:"translateX(0)"}),z(j,[v(_,u({transform:"translateX(-100%)"}))])],{optional:!0})],A)]),tl=C("tuiSlideInRight",[w(":enter",[u({transform:"translateX(100%)"}),v(_,u({transform:"translateX(0)"}))],A),w(":leave",[u({transform:"translateX(0)"}),v(_,u({transform:"translateX(100%)"}))],A)]),il=C("tuiSlideInRightList",[w("* => *",[k(":enter",[u({transform:"translateX(100%)"}),z(j,[v(_,u({transform:"translateX(0)"}))])],{optional:!0}),k(":leave",[u({transform:"translateX(0)"}),z(j,[v(_,u({transform:"translateX(100%)"}))])],{optional:!0})],A)]),nl=C("tuiSlideInTop",[w(":enter",[u({transform:"translate3d(0,{{start}},0)",pointerEvents:"none"}),v(_,u({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),w(":leave",[u({transform:"translate3d(0,{{end}},0)"}),v(_,u({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),sl=C("tuiSlideInTopList",[w("* => *",[k(":enter",[u({transform:"translateY(100%)"}),z(j,[v(_,u({transform:"translateY(0)"}))])],{optional:!0}),k(":leave",[u({transform:"translateY(0)"}),z(j,[v(_,u({transform:"translateY(100%)"}))])],{optional:!0})],A)]),rl=C("tuiSlideInBottom",[w(":enter",[u({transform:"translateY(-100%)"}),v(_,u({transform:"translateY(0)"}))],A),w(":leave",[u({transform:"translateY(0)"}),v(_,u({transform:"translateY(-100%)"}))],A)]),ol=C("tuiSlideInBottomList",[w("* => *",[k(":enter",[u({transform:"translateY(-100%)"}),z(j,[v(_,u({transform:"translateY(0)"}))])],{optional:!0}),k(":leave",[u({transform:"translateY(0)"}),z(j,[v(_,u({transform:"translateY(-100%)"}))])],{optional:!0})],A)]);var Wt=class{},De=class extends Wt{},Pe=class extends Wt{};function Cs(n,e,t){return{provide:n,deps:[[new bt,new st,n],t],useFactory:Vi(e)}}function Vi(n){return(e,t)=>{var i;return((i=e==null?void 0:e.find)==null?void 0:i.call(e,s=>s!==t&&s.type===n))||t}}function Is(n,e){return Cs(De,n,e)}function Ms(n,e){return Cs(Pe,n,e)}function dl(n){return ke(De,n,!0)}function Zt(n){return ke(Pe,n,!0)}var Qt=class{};function Fs(n){return ke(Qt,n,!0)}var Be=class extends Fe{};function Gt(n){return ke(Be,n,!0)}var Ns=(()=>{let e=class e{constructor(){this.destroyRef=d(At),this.drivers=d(Be),this.vehicles=d(Qt)}ngOnInit(){let i=this.vehicles.find(({type:s})=>s===this.type);ae(...this.drivers.filter(({type:s})=>s===this.type)).pipe(Z(),Ve(this.destroyRef)).subscribe(s=>{i==null||i.toggle(s)})}};e.\u0275fac=function(s){return new(s||e)},e.\u0275dir=x({type:e});let n=e;return n})();var Dl=(()=>{let e=class e extends Fe{constructor(){super(i=>this.stream$.subscribe(i)),this.media=d($n),this.sorted=Object.values(this.media).sort((i,s)=>i-s),this.invert=Object.keys(this.media).reduce((i,s)=>Ke(J({},i),{[this.media[s]]:s}),{}),this.stream$=d(As).pipe(F(({width:i})=>this.sorted.find(s=>s>i)),F(i=>this.invert[i||this.sorted[this.sorted.length-1]]),Z(),we(d(me)),_t({bufferSize:1,refCount:!0}))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Wi=(()=>{let e=class e extends Fe{constructor(){let i=d(On),s=d(me);super(r=>i.pipe(le(null),F(()=>this.accessor.getPosition(this.el.getBoundingClientRect())),Hn(s),on(()=>this.accessor.getPosition(Oe))).subscribe(r)),this.el=te(),this.accessor=d(De)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac});let n=e;return n})(),ks=(()=>{let e=class e{constructor(){this.isWebkit=d(Ts),this.win=d(be)}correct(i){var s,r;return this.isWebkit?[i[0]+(((s=this.win.visualViewport)==null?void 0:s.offsetTop)??0),i[1]+(((r=this.win.visualViewport)==null?void 0:r.offsetLeft)??0)]:i}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Mo=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];function Ml(n=""){return n.length===1||Mo.includes(n)}function Qi(n,e="tui-hints"){var t;return!!((t=Fn(n))!=null&&t.some(i=>!i.closest(e)))}function Rs(n,e){return(t,i)=>{let s=t||J({},i||e);return Object.keys(n).forEach(r=>{s[r]=n[r]}),s}}var Os={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function Fl(n,e="s"){return Os[n]>Os[e]}var Fo=300;function Ls(n){return{value:"",params:{duration:No(n)}}}function No(n){return n&&Fo/n}var Zi=(()=>{let e=class e{constructor(){var i;this.control=d(Pn,{optional:!0,self:!0}),this.active$=d(bs),this.zone=d(me),this.el=te(),this.tuiActiveZoneParent=null,this.subActiveZones=[],this.directParentActiveZone=d(e,{skipSelf:!0,optional:!0}),this.tuiActiveZoneChange=this.active$.pipe(F(s=>!!s&&this.contains(s)),le(!1),Z(),St(1),Et(s=>{var r;!s&&typeof((r=this.control)==null?void 0:r.valueAccessor.onTouched)=="function"&&this.control.valueAccessor.onTouched()}),we(this.zone)),(i=this.directParentActiveZone)==null||i.addSubActiveZone(this)}set tuiActiveZoneParentSetter(i){this.setZone(i)}ngOnDestroy(){var i,s;(i=this.directParentActiveZone)==null||i.removeSubActiveZone(this),(s=this.tuiActiveZoneParent)==null||s.removeSubActiveZone(this)}contains(i){return this.el.contains(i)||this.subActiveZones.some((s,r,o)=>o.indexOf(s)===r&&s.contains(i))}setZone(i){var s;(s=this.tuiActiveZoneParent)==null||s.removeSubActiveZone(this),i==null||i.addSubActiveZone(this),this.tuiActiveZoneParent=i}addSubActiveZone(i){this.subActiveZones=[...this.subActiveZones,i]}removeSubActiveZone(i){this.subActiveZones=Cn(this.subActiveZones,this.subActiveZones.indexOf(i))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275dir=x({type:e,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],hostBindings:function(s,r){s&1&&ot("mousedown.silent",function(){return 0},!1,Dt)},inputs:{tuiActiveZoneParentSetter:[0,"tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"],standalone:!0});let n=e;return Je([lt],n.prototype,"setZone",null),n})();var ko=["*"];function Oo(n,e){if(n&1&&vn(0,"span",1),n&2){let t=e.polymorpheusOutlet;je("innerHTML",t,hn)}}var Ro=n=>({$implicit:n});function Lo(n,e){n&1&&_n(0)}function Ho(n,e){if(n&1&&(gn(0,"div",1),Pt(1,Lo,1,0,"ng-container",2),yn()),n&2){let t=e.$implicit;je("@tuiParentAnimation",void 0)("tuiActiveZoneParent",t.activeZone||null),ni(),je("polymorpheusOutlet",t.component)("polymorpheusOutletContext",wn(4,Ro,t))}}var xo=K(()=>Ko),$s=(()=>{let e=class e extends Xe{constructor(){super([])}add(i){this.next(this.value.concat(i))}remove(i){this.value.includes(i)&&this.next(this.value.filter(s=>s!==i))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),$o=(()=>{let e=class e extends Ns{constructor(){super(...arguments),this.type="hint"}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=rt(e)))(r||e)}})(),e.\u0275dir=x({type:e,standalone:!0,features:[Ne]});let n=e;return n})(),Hs=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"],Bs={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"@tui.circle-help"},ze=In(Bs),vc=n=>({provide:ze,deps:[[new st,Bo],[new st,new bt,ze]],useFactory:Rs(n,Bs)}),Bo=(()=>{let e=class e{constructor(){this.options=d(ze,{skipSelf:!0}),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,this.change$=new Jt}ngOnChanges(){this.change$.next()}};e.\u0275fac=function(s){return new(s||e)},e.\u0275dir=x({type:e,selectors:[["","tuiHintContent",""]],inputs:{content:[0,"tuiHintContent","content"],direction:[0,"tuiHintDirection","direction"],appearance:[0,"tuiHintAppearance","appearance"],showDelay:[0,"tuiHintShowDelay","showDelay"],hideDelay:[0,"tuiHintHideDelay","hideDelay"]},standalone:!0,features:[ue([ke(ze,e)]),Tt]});let n=e;return n})(),Gi=(()=>{let e=class e extends Be{constructor(){super(i=>this.stream$.subscribe(i)),this.hovered$=d($e),this.options=d(ze),this.visible=!1,this.toggle$=new Jt,this.stream$=ae(this.toggle$.pipe(_e(i=>oe(i).pipe(ei(i?0:this.tuiHintHideDelay))),qe(this.hovered$),it()),this.hovered$.pipe(_e(i=>oe(i).pipe(ei(i?this.tuiHintShowDelay:this.tuiHintHideDelay))),qe(this.toggle$),it())).pipe(ve(()=>this.enabled),F(i=>i&&(this.el.hasAttribute("tuiHintPointer")||!Qi(this.el))),Et(i=>{this.visible=i})),this.parent=d(e,{optional:!0,skipSelf:!0}),this.tuiHintShowDelay=this.options.showDelay,this.tuiHintHideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0,this.el=te()}toggle(i=!this.visible){var s;this.toggle$.next(i),(s=this.parent)==null||s.toggle(i)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275dir=x({type:e,inputs:{tuiHintShowDelay:"tuiHintShowDelay",tuiHintHideDelay:"tuiHintHideDelay"},exportAs:["tuiHintHover"],standalone:!0,features:[ue([Gt(e),$e]),Ne]});let n=e;return n})(),Ce=8,Yt=22,N=0,R=1,zs=(()=>{let e=class e extends De{constructor(){super(...arguments),this.viewport=d(ui),this.accessor=Vi("hint")(d(Pe),d(Yi)),this.points=Hs.reduce((i,s)=>Ke(J({},i),{[s]:[0,0]}),{}),this.direction=d(ze).direction,this.type="hint"}getPosition({width:i,height:s}){let r=this.accessor.getClientRect()??Oe,o=r.left+r.width/2,a=r.top+r.height/2;if(this.points["top-left"][N]=r.top-s-Ce,this.points["top-left"][R]=o-i+Yt,this.points.top[N]=this.points["top-left"][N],this.points.top[R]=o-i/2,this.points["top-right"][N]=this.points["top-left"][N],this.points["top-right"][R]=o-Yt,this.points["bottom-left"][N]=r.bottom+Ce,this.points["bottom-left"][R]=this.points["top-left"][R],this.points.bottom[N]=this.points["bottom-left"][N],this.points.bottom[R]=this.points.top[R],this.points["bottom-right"][N]=this.points["bottom-left"][N],this.points["bottom-right"][R]=this.points["top-right"][R],this.points["left-top"][N]=a-s+Yt,this.points["left-top"][R]=r.left-i-Ce,this.points.left[N]=a-s/2,this.points.left[R]=this.points["left-top"][R],this.points["left-bottom"][N]=a-Yt,this.points["left-bottom"][R]=this.points["left-top"][R],this.points["right-top"][N]=this.points["left-top"][N],this.points["right-top"][R]=r.right+Ce,this.points.right[N]=this.points.left[N],this.points.right[R]=this.points["right-top"][R],this.points["right-bottom"][N]=this.points["left-bottom"][N],this.points["right-bottom"][R]=this.points["right-top"][R],this.checkPosition(this.points[this.direction],i,s))return this.points[this.direction];let l=Hs.find(c=>this.checkPosition(this.points[c],i,s));return this.points[l||this.fallback]}get fallback(){return this.points.top[N]>this.viewport.getClientRect().bottom-this.points.bottom[N]?"top":"bottom"}checkPosition([i,s],r,o){let a=this.viewport.getClientRect();return i>Ce/4&&s>Ce/4&&i+o{let i;return function(r){return(i||(i=rt(e)))(r||e)}})(),e.\u0275dir=x({type:e,inputs:{direction:[0,"tuiHintDirection","direction"]},standalone:!0,features:[Ne]});let n=e;return n})(),Yi=(()=>{let e=class e{constructor(){this.service=d($s),this.appearance=d(ze).appearance,this.component=d(Re),this.el=te(),this.activeZone=d(Zi,{optional:!0}),this.type="hint"}set tuiHint(i){this.content=i,i||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.getBoundingClientRect()}toggle(i){i&&this.content?this.service.add(this):this.service.remove(this)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275dir=x({type:e,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{context:[0,"tuiHintContext","context"],appearance:[0,"tuiHintAppearance","appearance"],tuiHint:"tuiHint"},standalone:!0,features:[ue([Zt(e),Fs(e),{provide:Re,deps:[xo,wt],useClass:Re}]),dn([$o,{directive:Gi,inputs:["tuiHintHideDelay","tuiHintHideDelay","tuiHintShowDelay","tuiHintShowDelay"]},{directive:zs,inputs:["tuiHintDirection","tuiHintDirection"]}])]});let n=e;return n})(),zo=(()=>{let e=class e extends Gi{constructor(){super(...arguments),this.currentRect=Oe}getClientRect(){return this.currentRect}onMove({clientX:i,clientY:s}){this.currentRect=Nn(i,s)}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=rt(e)))(r||e)}})(),e.\u0275dir=x({type:e,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(s,r){s&1&&ot("mousemove.silent",function(a){return r.onMove(a)})},standalone:!0,features:[ue([Zt(e),Gt(e)]),Ne]});let n=e;return n})(),xs=4,Uo=[Wi,$e,Is("hint",zs),Ms("hint",Yi)],Ko=(()=>{let e=class e{constructor(){var i;this.polymorpheus=d(fi),this.el=te(),this.hover=d(Gi),this.vvs=d(ks),this.viewport=d(ui),this.appearance=this.polymorpheus.$implicit.appearance||((i=d(Yi).el.closest("[tuiTheme]"))==null?void 0:i.getAttribute("tuiTheme")),this.options=Ls(d(xn)),this.pointer=d(zo,{optional:!0}),this.accessor=d(Pe),d(Wi).pipe(an(()=>this.hover.el.isConnected),F(s=>this.vvs.correct(s)),Ve()).subscribe({next:([s,r])=>this.update(s,r),complete:()=>this.hover.toggle(!1)}),d($e).pipe(Ve()).subscribe(s=>this.hover.toggle(s))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(i){(!i.closest("tui-hint")&&!this.hover.el.contains(i)||Qi(this.hover.el))&&this.hover.toggle(!1)}apply(i,s,r,o){this.el.style.top=i,this.el.style.left=s,this.el.style.setProperty("--top",r),this.el.style.setProperty("--left",o)}update(i,s){let{height:r,width:o}=this.el.getBoundingClientRect(),a=this.accessor.getClientRect(),l=this.viewport.getClientRect();if(a===Oe||!r||!o)return;let c=Ct(s,xs,l.width-o-xs),[h,f]=this.vvs.correct([a.top+a.height/2-i,a.left+a.width/2-c]);this.apply(ct(Math.round(i)),ct(Math.round(c)),ct(Math.round(Ct(h,1,r-1))),ct(Math.round(Ct(f,1,o-1))))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=ii({type:e,selectors:[["tui-hint"]],hostVars:5,hostBindings:function(s,r){s&1&&ot("click",function(a){return r.onClick(a.target)},!1,Dt),s&2&&(Sn("@tuiFadeIn",r.options),pn("data-appearance",r.appearance)("tuiTheme",r.appearance),mn("_untouchable",r.pointer))},standalone:!0,features:[ue(Uo),ri],ngContentSelectors:ko,decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(s,r){s&1&&(En(),bn(0),Pt(1,Oo,1,1,"span",0)),s&2&&(ni(),je("polymorpheusOutlet",r.content)("polymorpheusOutletContext",r.context))},dependencies:[di],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-background-accent-1);border-radius:var(--tui-radius-l);color:var(--tui-text-primary-on-accent-1);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word;line-height:1.25rem}[_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-status-negative)}[data-appearance=dark][_nghost-%COMP%]{background:var(--tui-background-accent-opposite-hover);color:var(--tui-background-base);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:[Ps]},changeDetection:0});let n=e;return Je([lt],n.prototype,"apply",null),n})(),_c=(()=>{let e=class e extends Be{constructor(){super(i=>this.stream$.subscribe(i)),this.doc=d(at),this.el=te(),this.id$=new Xe(""),this.stream$=this.id$.pipe(Z(),Ln(()=>et(this.doc,"keydown",{capture:!0}),Mn),_e(()=>this.focused?oe(!1):ae(q(this.doc,"keyup"),q(this.element,"blur")).pipe(F(()=>this.focused))),sn(i=>i?tt(1e3):oe(null)),le(!1),Z(),St(1),we(d(me))),this.type="hint"}set tuiHintDescribe(i){this.id$.next(i||"")}get element(){return this.doc.getElementById(this.id$.value||"")||this.el}get focused(){return mi(this.element)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275dir=x({type:e,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},standalone:!0,features:[ue([Gt(e)]),Ne]});let n=e;return Je([lt],n.prototype,"element",null),n})(),Sc=(()=>{let e=class e extends Pe{constructor(){super(...arguments),this.type="hint"}getClientRect(){var i;return((i=this.tuiHintHost)==null?void 0:i.getBoundingClientRect())||Oe}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=rt(e)))(r||e)}})(),e.\u0275dir=x({type:e,selectors:[["","tuiHint","","tuiHintHost",""]],inputs:{tuiHintHost:"tuiHintHost"},standalone:!0,features:[ue([Zt(e)]),Ne]});let n=e;return n})();var Ec=(()=>{let e=class e{constructor(){this.hints$=d($s),this.destroyRef=d(At),this.cdr=d(Ee),this.hints=[]}ngOnInit(){this.hints$.pipe(Ve(this.destroyRef)).subscribe(i=>{this.hints=i,this.cdr.detectChanges()})}};e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=ii({type:e,selectors:[["tui-hints"]],hostAttrs:["aria-live","polite"],standalone:!0,features:[ri],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(s,r){s&1&&Pt(0,Ho,2,6,"div",0),s&2&&je("ngForOf",r.hints)},dependencies:[Tn,Zi,di],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;height:0}"],data:{animation:[Ds]}});let n=e;return n})();export{Ds as a,Ba as b,Ps as c,Qa as d,De as e,Pe as f,Vi as g,Is as h,Ms as i,dl as j,Zt as k,Fs as l,Gt as m,Ns as n,fi as o,Re as p,Ks as q,di as r,Ml as s,Rs as t,Fl as u,Ls as v,No as w,zn as x,Zo as y,pi as z,Jo as A,Un as B,ea as C,mi as D,ta as E,ia as F,Ir as G,Wn as H,bi as I,Zn as J,qt as K,os as L,as as M,To as N,ws as O,Sa as P,Co as Q,wa as R,$e as S,La as T,Dl as U,Wi as V,ks as W,Zi as X,vc as Y,Bo as Z,Gi as _,Yi as $,Ko as aa,_c as ba,Sc as ca,Ec as da}; diff --git a/chunk-PD2JCDVB.js b/chunk-PD2JCDVB.js deleted file mode 100644 index 7a70388a3..000000000 --- a/chunk-PD2JCDVB.js +++ /dev/null @@ -1 +0,0 @@ -import{$a as ie,Ca as te,Fa as ne,Gb as h,Gc as O,Hc as me,Ib as x,Ic as R,Kb as ae,Lb as re,Mb as oe,Nb as Y,Ob as se,Oc as pe,Pb as le,Rb as b,Sa as l,T as J,Tb as ce,Vc as j,Wc as ue,Wd as ge,We as be,Xb as g,Yb as k,Zb as $,_ as q,ag as U,ba as Q,ce as fe,df as H,ea as p,ee as Se,fb as _,fe as De,hb as S,hg as ke,ib as y,jf as Re,kb as P,kg as K,la as f,lb as N,lg as Me,mb as C,md as de,mg as ve,nb as T,ng as _e,oa as ee,ob as c,oc as M,od as he,pb as m,qb as D,r as F,rg as Pe,s as X,ua as A,ub as w,va as B,xb as z,yb as u}from"./chunk-HIUNHKUB.js";import{a as W,b as Z}from"./chunk-HFDGAYQF.js";var we=new Q("",{factory:()=>"https://api.coincap.io/v2/assets"}),I=(()=>{let i=class i{constructor(){this.http=p(pe),this.API=p(we),this.info$=this.getTokens()}getTokens(){return this.http.get(this.API)}getHistory(r,a){return this.http.get(`${this.API}/${r}/history`,{params:{interval:a}}).pipe(F(o=>o.data))}};i.\u0275fac=function(a){return new(a||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var t=function(e){return e.ArmenianDram="AMD",e.AustralianDollar="AUD",e.AzerbaijaniManat="AZN",e.Baht="THB",e.BahrainiDinar="BHD",e.BelarusianRuble="BYN",e.BrazilianReal="BRL",e.CanadianDollar="CAD",e.CzechKoruna="CZK",e.Dirham="AED",e.Dollar="USD",e.EastCaribbeanDollar="XCD",e.Euro="EUR",e.Forint="HUF",e.GeorgianLari="GEL",e.HongKongDollar="HKD",e.Hryvnia="UAH",e.IndianRupee="INR",e.IndonesianRupiah="IDR",e.IranianRial="IRR",e.IsraeliShekel="ILS",e.KyrgyzstanSom="KGS",e.MalaysianRinggit="MYR",e.MexicanPeso="MXN",e.MoldovanLeu="MDL",e.MongolianTugrik="MNT",e.NewTurkmenManat="TMT",e.PolandZloty="PLN",e.Pound="GBP",e.Ruble="RUB",e.SaudiRiyal="SAR",e.SerbianDinar="RSD",e.SingaporeDollar="SGD",e.SouthAfricanRand="ZAR",e.SriLankanRupee="LKR",e.SwissFranc="CHF",e.TajikistaniSomoni="TJS",e.Tenge="KZT",e.TurkishLira="TRY",e.UzbekSum="UZS",e.VietnameseDong="VND",e.Won="KRW",e.Yen="JPY",e.YuanRenminbi="CNY",e}(t||{}),n=function(e){return e.ArmenianDram="051",e.AustralianDollar="036",e.AzerbaijaniManat="944",e.Baht="764",e.BahrainiDinar="048",e.BelarusianRuble="933",e.BrazilianReal="986",e.CanadianDollar="124",e.CzechKoruna="203",e.Dirham="784",e.Dollar="840",e.EastCaribbeanDollar="951",e.Euro="978",e.Forint="348",e.GeorgianLari="981",e.HongKongDollar="344",e.Hryvnia="980",e.IndianRupee="356",e.IndonesianRupiah="360",e.IranianRial="364",e.IsraeliShekel="376",e.KyrgyzstanSom="417",e.MalaysianRinggit="458",e.MexicanPeso="484",e.MoldovanLeu="498",e.MongolianTugrik="496",e.NewTurkmenManat="934",e.PolandZloty="985",e.Pound="826",e.Ruble="643",e.SaudiRiyal="682",e.SerbianDinar="941",e.SingaporeDollar="702",e.SouthAfricanRand="710",e.SriLankanRupee="144",e.SwissFranc="756",e.TajikistaniSomoni="972",e.Tenge="398",e.TurkishLira="949",e.UzbekSum="860",e.VietnameseDong="704",e.Won="410",e.Yen="392",e.YuanRenminbi="156",e}(n||{});function ze(e){switch(e){case t.Ruble:case n.Ruble:return"\u20BD";case t.Dollar:case n.Dollar:case t.MexicanPeso:case n.MexicanPeso:return"$";case t.SingaporeDollar:case n.SingaporeDollar:return"S$";case t.AustralianDollar:case n.AustralianDollar:return"A$";case t.BahrainiDinar:case n.BahrainiDinar:return"BD";case t.CzechKoruna:case n.CzechKoruna:return"K\u010D";case t.HongKongDollar:case n.HongKongDollar:return"HK$";case t.CanadianDollar:case n.CanadianDollar:return"C$";case t.EastCaribbeanDollar:case n.EastCaribbeanDollar:return"EC$";case t.Euro:case n.Euro:return"\u20AC";case t.Forint:case n.Forint:return"Ft";case t.Pound:case n.Pound:return"\xA3";case t.Baht:case n.Baht:return"\u0E3F";case t.TurkishLira:case n.TurkishLira:return"\u20BA";case t.YuanRenminbi:case n.YuanRenminbi:return"CN\xA5";case t.Yen:case n.Yen:return"\xA5";case t.IsraeliShekel:case n.IsraeliShekel:return"\u20AA";case t.IndianRupee:case n.IndianRupee:return"\u20B9";case t.SwissFranc:case n.SwissFranc:return"\u20A3";case t.ArmenianDram:case n.ArmenianDram:return"\u058F";case t.Won:case n.Won:return"\u20A9";case t.Tenge:case n.Tenge:return"\u20B8";case t.Hryvnia:case n.Hryvnia:return"\u20B4";case t.UzbekSum:case n.UzbekSum:return"So'm";case t.KyrgyzstanSom:case n.KyrgyzstanSom:return"c";case t.Dirham:case n.Dirham:return"Dh";case t.TajikistaniSomoni:case n.TajikistaniSomoni:return"SM";case t.MalaysianRinggit:case n.MalaysianRinggit:return"RM";case t.BelarusianRuble:case n.BelarusianRuble:return"Br";case t.GeorgianLari:case n.GeorgianLari:return"\u20BE";case t.AzerbaijaniManat:case n.AzerbaijaniManat:return"\u20BC";case t.SriLankanRupee:case n.SriLankanRupee:return"Rs.";case t.SerbianDinar:case n.SerbianDinar:return"DIN";case t.SaudiRiyal:case n.SaudiRiyal:return"SR";case t.MoldovanLeu:case n.MoldovanLeu:return"L";case t.MongolianTugrik:case n.MongolianTugrik:return"\u20AE";case t.PolandZloty:case n.PolandZloty:return"z\u0142";case t.SouthAfricanRand:case n.SouthAfricanRand:return"R";case t.IranianRial:case n.IranianRial:return"IR";case t.IndonesianRupiah:case n.IndonesianRupiah:return"Rp";case t.VietnameseDong:case n.VietnameseDong:return"\u0111";case t.NewTurkmenManat:case n.NewTurkmenManat:return"TMT";case t.BrazilianReal:case n.BrazilianReal:return"R$";default:return null}}function Ee(e){return e===null||he(e)?e||"":String(e).padStart(3,"0")}function xe(e){let i=Ee(e);return ze(i)||i}var et={[t.Ruble]:n.Ruble,[t.Dollar]:n.Dollar,[t.MexicanPeso]:n.MexicanPeso,[t.MoldovanLeu]:n.MoldovanLeu,[t.PolandZloty]:n.PolandZloty,[t.SingaporeDollar]:n.SingaporeDollar,[t.AustralianDollar]:n.AustralianDollar,[t.HongKongDollar]:n.HongKongDollar,[t.CanadianDollar]:n.CanadianDollar,[t.CzechKoruna]:n.CzechKoruna,[t.EastCaribbeanDollar]:n.EastCaribbeanDollar,[t.Euro]:n.Euro,[t.Forint]:n.Forint,[t.Pound]:n.Pound,[t.Baht]:n.Baht,[t.BahrainiDinar]:n.BahrainiDinar,[t.TurkishLira]:n.TurkishLira,[t.YuanRenminbi]:n.YuanRenminbi,[t.Yen]:n.Yen,[t.IsraeliShekel]:n.IsraeliShekel,[t.IndianRupee]:n.IndianRupee,[t.SwissFranc]:n.SwissFranc,[t.ArmenianDram]:n.ArmenianDram,[t.Won]:n.Won,[t.Tenge]:n.Tenge,[t.Hryvnia]:n.Hryvnia,[t.UzbekSum]:n.UzbekSum,[t.KyrgyzstanSom]:n.KyrgyzstanSom,[t.Dirham]:n.Dirham,[t.TajikistaniSomoni]:n.TajikistaniSomoni,[t.MalaysianRinggit]:n.MalaysianRinggit,[t.BelarusianRuble]:n.BelarusianRuble,[t.GeorgianLari]:n.GeorgianLari,[t.AzerbaijaniManat]:n.AzerbaijaniManat,[t.SriLankanRupee]:n.SriLankanRupee,[t.SerbianDinar]:n.SerbianDinar,[t.SaudiRiyal]:n.SaudiRiyal,[t.MongolianTugrik]:n.MongolianTugrik,[t.SouthAfricanRand]:n.SouthAfricanRand,[t.IranianRial]:n.IranianRial,[t.IndonesianRupiah]:n.IndonesianRupiah,[t.VietnameseDong]:n.VietnameseDong,[t.NewTurkmenManat]:n.NewTurkmenManat,[t.BrazilianReal]:n.BrazilianReal};var tt={[n.Ruble]:t.Ruble,[n.Dollar]:t.Dollar,[n.MexicanPeso]:t.MexicanPeso,[n.MoldovanLeu]:t.MoldovanLeu,[n.PolandZloty]:t.PolandZloty,[n.SingaporeDollar]:t.SingaporeDollar,[n.AustralianDollar]:t.AustralianDollar,[n.HongKongDollar]:t.HongKongDollar,[n.CanadianDollar]:t.CanadianDollar,[n.CzechKoruna]:t.CzechKoruna,[n.EastCaribbeanDollar]:t.EastCaribbeanDollar,[n.Euro]:t.Euro,[n.Forint]:t.Forint,[n.Pound]:t.Pound,[n.Baht]:t.Baht,[n.BahrainiDinar]:t.BahrainiDinar,[n.TurkishLira]:t.TurkishLira,[n.YuanRenminbi]:t.YuanRenminbi,[n.Yen]:t.Yen,[n.IsraeliShekel]:t.IsraeliShekel,[n.IndianRupee]:t.IndianRupee,[n.SwissFranc]:t.SwissFranc,[n.ArmenianDram]:t.ArmenianDram,[n.Won]:t.Won,[n.Tenge]:t.Tenge,[n.Hryvnia]:t.Hryvnia,[n.UzbekSum]:t.UzbekSum,[n.KyrgyzstanSom]:t.KyrgyzstanSom,[n.Dirham]:t.Dirham,[n.TajikistaniSomoni]:t.TajikistaniSomoni,[n.MalaysianRinggit]:t.MalaysianRinggit,[n.BelarusianRuble]:t.BelarusianRuble,[n.GeorgianLari]:t.GeorgianLari,[n.AzerbaijaniManat]:t.AzerbaijaniManat,[n.SriLankanRupee]:t.SriLankanRupee,[n.SerbianDinar]:t.SerbianDinar,[n.SaudiRiyal]:t.SaudiRiyal,[n.MongolianTugrik]:t.MongolianTugrik,[n.SouthAfricanRand]:t.SouthAfricanRand,[n.IranianRial]:t.IranianRial,[n.IndonesianRupiah]:t.IndonesianRupiah,[n.VietnameseDong]:t.VietnameseDong,[n.NewTurkmenManat]:t.NewTurkmenManat,[n.BrazilianReal]:t.BrazilianReal};var Fe={currency:null,currencyAlign:"right",sign:"negative-only"},Ne=de(Fe);function Ce(e,i){return i==="never"||!e||i==="negative-only"&&e>0?"":i==="force-negative"||e<0&&i!=="force-positive"?Se:De}var Te=2,Ie=(()=>{let i=class i{constructor(){this.options=p(Ne),this.format=p(be)}transform(r,a=this.options.currency,o=this.options.currencyAlign){return this.format.pipe(F(d=>{let v=Ce(r,this.options.sign),L=xe(a),V=Re(Math.abs(r),Z(W({},d),{precision:Number.isNaN(d.precision)?Te:d.precision})),G=(L==null?void 0:L.length)>1||o==="right"?fe:"";return o==="right"?`${v}${V}${G}${L}`:`${v}${L}${G}${V}`}))}};i.\u0275fac=function(a){return new(a||i)},i.\u0275pipe=ee({name:"tuiAmount",type:i,pure:!0,standalone:!0});let e=i;return e})();var Le={Y:"d1",M6:"h6",M:"h1",W:"m15",D:"m1"};var Oe=(e,i)=>[e,i];function He(e,i){if(e&1){let s=w();c(0,"button",4),z("click",function(){let a=A(s).$implicit,o=u();return B(o.filterButton.set(a))}),h(1),m()}if(e&2){let s=i.$implicit,r=u();S("tuiAppearanceState",s===r.filterButton()?"active":null),l(),x(" ",s," ")}}var Ae=(()=>{let i=class i{constructor(){this.pricesService=p(I),this.step=M(()=>Math.ceil((this.history()??[]).length/this.maxPoints)),this.xTargets=M(()=>new Map((this.history()??[]).map((r,a)=>[Math.trunc(a/this.step()),new Date(r.date).toDateString()]))),this.chart=M(()=>this.processData(this.history())),this.minPrice=M(()=>Math.min(...(this.history()??[]).map(r=>Number(r.priceUsd)))),this.maxPrice=M(()=>Math.max(...(this.history()??[]).map(r=>Number(r.priceUsd)))),this.filterButtons=["D","W","M","M6","Y"],this.filterButton=ie(this.filterButtons[0]),this.maxPoints=150,this.token=ne.required(),this.interval=M(()=>Le[this.filterButton()]),this.history=ue(X([j(this.token),j(this.interval)]).pipe(J(([r,a])=>this.pricesService.getHistory(r,a)))),this.yStringify=r=>`${(this.maxPrice()>10?r:r/100).toLocaleString("en-US",{maximumFractionDigits:this.maxPrice()>10?0:2})} $`,this.xStringify=r=>`${this.xTargets().get(r)}`}processData(r){return(r??[]).map((o,d)=>[Math.trunc(d/this.step()),Number(o.priceUsd)*(this.maxPrice()>10?1:100)]).filter((o,d)=>d%this.step()===0)}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=f({type:i,selectors:[["lmb-price-chart"]],inputs:{token:[1,"token"]},standalone:!0,features:[b],decls:9,vars:21,consts:[[1,"axes",3,"axisYLabels","horizontalLines","verticalLines"],[1,"chart",3,"height","value","width","x","xStringify","y","yStringify"],[1,"buttons"],["appearance","icon","tuiButton","",1,"period",3,"tuiAppearanceState"],["appearance","icon","tuiButton","",1,"period",3,"click","tuiAppearanceState"]],template:function(a,o){a&1&&(c(0,"tui-axes",0),g(1,"tuiAmount"),g(2,"async"),g(3,"tuiAmount"),g(4,"async"),D(5,"tui-line-chart",1),m(),c(6,"div",2),C(7,He,2,2,"button",3,N),m()),a&2&&(S("axisYLabels",ce(18,Oe,k(2,12,k(1,10,o.minPrice()))||"",k(4,16,k(3,14,o.maxPrice()))||""))("horizontalLines",4)("verticalLines",4),l(5),S("height",o.maxPrice()*(o.maxPrice()>10?1:100)-o.minPrice()*(o.maxPrice()>10?1:100))("value",o.chart())("width",o.chart().length)("x",0)("xStringify",o.xStringify)("y",o.minPrice()*(o.maxPrice()>10?1:100))("yStringify",o.yStringify),l(2),T(o.filterButtons))},dependencies:[O,R,Ie,_e,H,Pe],styles:[".buttons[_ngcontent-%COMP%]{display:flex;margin-top:1.5rem;justify-content:space-between}.axes[_ngcontent-%COMP%]{height:12.5rem}.period[_ngcontent-%COMP%]{width:2.5rem;height:1.5rem}.chart[_ngcontent-%COMP%]{color:var(--tui-chart-categorical-07);position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let e=i;return e})();function Ue(e,i){if(e&1){let s=w();c(0,"div",4),z("click",function(){A(s);let a=u().$implicit,o=u(2);return B(o.chooseToken(a.id))}),D(1,"tui-avatar",5),c(2,"div",6),h(3),c(4,"div",7),h(5),g(6,"number"),c(7,"span"),h(8),g(9,"number"),m()()()()}if(e&2){let s=u().$implicit;l(),S("src","https://assets.coincap.io/assets/icons/"+s.symbol.toLowerCase()+"@2x.png"),l(2),x(" ",s.name," "),l(2),x(" ",$(6,6,s.priceUsd,"1.2-2"),"$ "),l(2),y("color",s.changePercent24Hr[0]==="-"?"var(--tui-status-negative)":"var(--tui-status-positive)"),l(),x(" ",$(9,9,s.changePercent24Hr,"1.2-2"),"% ")}}function Ke(e,i){if(e&1&&_(0,Ue,10,12,"div",3),e&2){let s=i.$implicit,r=u(2);P(r.token===""||s.id===r.token?0:-1)}}function Ye(e,i){if(e&1){let s=w();c(0,"button",8),z("click",function(){A(s);let a=u(2);return B(a.addToken())}),h(1," Add Token "),m()}}function $e(e,i){if(e&1&&(Y(0),c(1,"div",0)(2,"div",1),C(3,Ke,1,1,null,null,N),m(),_(5,Ye,2,0,"button",2),m()),e&2){let s=u(),a=le(0).data;l(3),T(a.slice(0,s.showTokens)),l(2),P(s.token===""&&s.showTokens{let i=class i{constructor(){this.pricesService=p(I),this.info$=this.pricesService.info$,this.showTokens=4,this.token="",this.tokenChange=new te}addToken(){this.showTokens+=1}chooseToken(r){let a=this.token===r?"":r;this.token=a,this.tokenChange.emit(a)}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=f({type:i,selectors:[["lmb-price-list"]],inputs:{token:"token"},outputs:{tokenChange:"tokenChange"},standalone:!0,features:[b],decls:3,vars:4,consts:[["tuiCardLarge","",1,"price-list"],[1,"list"],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add"],["tuiCell","l"],["tuiCell","l",3,"click"],[3,"src"],["tuiTitle",""],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.circle-plus","tuiIconButton","",1,"button-add",3,"click"]],template:function(a,o){if(a&1&&(Y(0),g(1,"async"),_(2,$e,6,1,"div",0)),a&2){let d=se(k(1,1,o.info$));l(2),P(d?2:-1)}},dependencies:[O,R,me,ke,H,K,Me,U],styles:["[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:not(:last-child){border-radius:0;box-shadow:0 1px var(--tui-border-normal)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:hover{background-color:var(--tui-background-neutral-1-hover)}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]:active{background-color:var(--tui-background-neutral-1-pressed)}.price-list[_ngcontent-%COMP%]{padding:0}.button-add[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.list[_ngcontent-%COMP%]{max-height:22.5rem;overflow:scroll;background-color:var(--tui-background-base-alt);border-radius:1rem;border:1px solid var(--tui-border-normal)}"],changeDetection:0});let e=i;return e})();function je(e,i){if(e&1&&D(0,"lmb-price-chart",3),e&2){let s=u();S("token",s.token)}}var ye=(()=>{let i=class i{constructor(){this.pricesService=p(I),this.token=""}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=f({type:i,selectors:[["lmb-prices"]],standalone:!0,features:[b],decls:6,vars:6,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],["tuiHeader",""],["tuiTitle",""],[3,"token"],[3,"tokenChange","token"]],template:function(a,o){a&1&&(c(0,"div",0)(1,"header",1)(2,"h2",2),h(3," Cryptocurrency Prices "),m()(),_(4,je,1,1,"lmb-price-chart",3),c(5,"lmb-price-list",4),oe("tokenChange",function(v){return re(o.token,v)||(o.token=v),v}),m()()),a&2&&(y("height","100%"),l(2),y("text-align","center"),l(2),P(o.token!==""?4:-1),l(),ae("token",o.token))},dependencies:[R,Ae,Be,ge,K,ve,U],encapsulation:2,changeDetection:0});let e=i;return e})();var on=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=f({type:i,selectors:[["lmb-crypto"]],standalone:!0,features:[b],decls:3,vars:0,consts:[[1,"column"],[1,"row"],[1,"grow"]],template:function(a,o){a&1&&(c(0,"div",0)(1,"div",1),D(2,"lmb-prices",2),m()())},dependencies:[R,ye],styles:[".grow[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{position:relative;display:grid;flex:0 0 auto;grid-template-columns:4fr 6fr 4fr;gap:1rem}@media (max-width: 56.25rem){.row[_ngcontent-%COMP%]{display:flex;flex:1;flex-wrap:wrap}.grow[_ngcontent-%COMP%]{height:max-content}}@media (max-width: 35.625rem){.grow[_ngcontent-%COMP%]{width:100%}}.column[_ngcontent-%COMP%]{display:flex;gap:.625rem;padding-top:1.25rem;flex-direction:column}"],changeDetection:0});let e=i;return e})();export{on as CryptoComponent}; diff --git a/chunk-Q5TS7ZXN.js b/chunk-Q5TS7ZXN.js new file mode 100644 index 000000000..a6efeeaa0 --- /dev/null +++ b/chunk-Q5TS7ZXN.js @@ -0,0 +1,6 @@ +import{L as wt,b as lt,e as mt,j as L,k as B,l as A,o as gt,q as ft,t as vt,w as j,y as ht}from"./chunk-MGNJSP4A.js";import{h as E,i as _}from"./chunk-DRE72XA7.js";import{$ as M,Y as yt,a as et}from"./chunk-P7BVBIJ3.js";import{$a as k,Db as H,Eb as N,Fa as V,Fb as u,Gb as s,Hb as S,Ib as z,Jb as T,Kb as C,Kc as Y,Ke as F,Lc as tt,Nd as dt,Te as ut,Wb as f,Wc as it,Xb as p,Ya as h,Yc as nt,bf as pt,df as D,ef as ct,fb as q,hb as P,ja as r,kf as xt,lb as w,lf as bt,mb as $,nb as l,nf as Q,ob as W,pb as y,pc as J,pd as ot,qa as d,sa as v,sd as at,ub as x,uc as K,vb as b,wd as rt,xb as X,xd as st,y as U,yb as Z,zb as I}from"./chunk-ZFID6WDR.js";import{a as R,b as G}from"./chunk-HFDGAYQF.js";var _t=["wrapper"],Dt=["*"];function At(i,t){if(i&1&&(x(0,"tui-loader",4),I(1,5),b()),i&2){let c=N(2);l("overlay",!0)("showLoader",c.loading),h(),l("ngTemplateOutlet",c.content)}}function Mt(i,t){if(i&1&&(X(0),s(1),w(2,At,2,3,"tui-loader",3),Z()),i&2){let c=N();h(2),l("ngIf",c.async)("ngIfElse",c.content)}}var Ot=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=v({type:t,selectors:[["","tuiExpandContent",""]],standalone:!0});let i=t;return i})(),a={Idle:0,Loading:1,Prepared:2,Animated:3},kt=48;var ne=(()=>{let t=class t{constructor(){this.cdr=r(J),this.destroyRef=r(V),this.state=a.Idle,this.content=null,this.expanded=null,this.async=!1}set expandedSetter(n){if(this.expanded===null){this.expanded=n;return}if(this.state!==a.Idle){this.expanded=n,this.state=a.Animated;return}this.expanded=n,this.retrigger(this.async&&n?a.Loading:a.Animated)}get contentVisible(){return this.expanded||this.state!==a.Idle}get overflow(){return this.state!==a.Idle}get loading(){return!!this.expanded&&this.async&&this.state===a.Loading}get height(){let{expanded:n,state:e,contentWrapper:o}=this;return n&&e===a.Prepared||!n&&e===a.Animated?0:o&&(!n&&e===a.Prepared||n&&e===a.Animated)?o.nativeElement.offsetHeight:o&&n&&e===a.Loading?Math.max(o.nativeElement.offsetHeight,kt):null}onTransitionEnd({propertyName:n,pseudoElement:e}){n==="opacity"&&!e&&this.state===a.Animated&&(this.state=a.Idle)}onExpandLoaded(n){n.stopPropagation(),this.state===a.Loading&&this.retrigger(a.Animated)}retrigger(n){this.state=a.Prepared,U(0).pipe(it(this.destroyRef)).subscribe(()=>{this.state===a.Prepared&&(this.state=n,this.cdr.markForCheck())})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["tui-expand"]],contentQueries:function(e,o,m){if(e&1&&S(m,Ot,5,k),e&2){let g;T(g=C())&&(o.content=g.first)}},viewQuery:function(e,o){if(e&1&&z(_t,5),e&2){let m;T(m=C())&&(o.contentWrapper=m.first)}},hostVars:9,hostBindings:function(e,o){e&1&&H("transitionend.self",function(g){return o.onTransitionEnd(g)})("tui-expand-loaded",function(g){return o.onExpandLoaded(g)}),e&2&&($("aria-expanded",o.expanded),W("height",o.height,"px"),y("_expanded",o.expanded)("_overflow",o.overflow)("_loading",o.loading))},inputs:{async:"async",expandedSetter:[0,"expanded","expandedSetter"]},standalone:!0,features:[p],ngContentSelectors:Dt,decls:3,vars:3,consts:[["wrapper",""],[1,"t-wrapper"],[4,"ngIf"],["size","l",3,"overlay","showLoader",4,"ngIf","ngIfElse"],["size","l",3,"overlay","showLoader"],[3,"ngTemplateOutlet"]],template:function(e,o){e&1&&(u(),x(0,"div",1,0),w(2,Mt,3,2,"ng-container",2),b()),e&2&&(l("@tuiParentAnimation",void 0)("@.disabled",o.overflow),h(2),l("ngIf",o.contentVisible))},dependencies:[ht,Y,tt],styles:['[_nghost-%COMP%]{transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;opacity:0;transition-delay:1ms}._overflow[_nghost-%COMP%]{overflow:hidden}._expanded[_nghost-%COMP%]{opacity:1;transform:translateZ(0)}._loading[_nghost-%COMP%]{opacity:.99}.t-wrapper[_ngcontent-%COMP%]:before, .t-wrapper[_ngcontent-%COMP%]:after{content:"";display:table}'],data:{animation:[et]},changeDetection:0});let i=t;return i})();var Nt={size:"m"},Pt=ot(Nt);function Tt(i){return st(Pt,i,Nt)}var It=["tuiNavigationAside",""],Ht=[[["header"]],"*",[["footer"]]],St=["header","*","footer"];var O=["*"];var zt=["tuiNavigationHeader",""],Et=["tuiNavigationLogo",""],Ft=["tuiNavigationMain",""],Lt=["tuiNavigationNav",""],Bt=(()=>{let t=class t{constructor(){this.expanded=q(!1)}set tuiNavigationAside(n){this.expanded.set(n)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["aside","tuiNavigationAside",""]],hostAttrs:["tuiNavigationAside","","tuiTheme","dark"],hostVars:2,hostBindings:function(e,o){e&2&&y("_expanded",o.expanded())},inputs:{tuiNavigationAside:"tuiNavigationAside"},standalone:!0,features:[f([D({size:"s",appearance:"flat"}),B({appearance:"dropdown-navigation",align:"right",offset:12})]),p],attrs:It,ngContentSelectors:St,decls:5,vars:0,consts:[[1,"t-nav-scrollbar"],["tuiFade","vertical","tuiScrollable","",1,"t-nav-content"]],template:function(e,o){e&1&&(u(Ht),s(0),x(1,"tui-scrollbar",0)(2,"div",1),s(3,1),b()(),s(4,2))},dependencies:[lt,xt,mt],styles:[`aside[tuiNavigationAside]{transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:3rem;display:flex;width:3rem;flex-direction:column;padding:.5rem .5rem .25rem;box-sizing:border-box;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}aside[tuiNavigationAside]._expanded{width:13.75rem}aside[tuiNavigationAside]._expanded+main[tuiNavigationMain]{max-width:calc(100% - 13.75rem)}aside[tuiNavigationAside] .t-nav-scrollbar{margin:0 -.25rem}aside[tuiNavigationAside] .t-nav-content{scrollbar-width:none;-ms-overflow-style:none;height:100%;padding:0 .25rem;overflow:auto}aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar,aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar-thumb{display:none}aside[tuiNavigationAside] tui-expand [tuiAsideItem]{padding-inline-start:2rem}aside[tuiNavigationAside] hr{background:var(--tui-border-normal);height:1px;margin:0 0 .25rem;border:none}aside[tuiNavigationAside] header{padding-bottom:.25rem;box-shadow:inset 0 -1px var(--tui-border-normal);margin-bottom:1rem}aside[tuiNavigationAside] footer{margin-top:auto;border-top:1.75rem solid transparent}aside[tuiNavigationAside]+main[tuiNavigationMain]{max-width:calc(100% - 3rem)}[tuiAsideItem]{width:100%;justify-content:flex-start;gap:.625rem;margin-bottom:.25rem;color:var(--tui-text-primary)!important}[tuiAsideItem]:after{border:none!important;margin-left:auto!important;color:var(--tui-text-tertiary)}[tuiAsideItem]._chevron-rotated,[tuiAsideItem]._active{background:var(--tui-background-neutral-1-hover)}tui-dropdown[data-appearance=dropdown-navigation]{border:none;background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]{justify-content:flex-start}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._active{background:transparent}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link:not(._custom):after{opacity:0}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link._active:after{opacity:1} +`],encapsulation:2,changeDetection:0});let i=t;return i})();var jt=(()=>{let t=class t{constructor(){this.el=dt(),this.aside=r(Bt),this.dropdown=r(A,{optional:!0}),this.binding=at(M,"tuiHint",K(()=>{var n;return this.aside.expanded()||this.dropdown?"":(n=this.el.textContent)==null?void 0:n.trim()}))}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=v({type:t,selectors:[["","tuiHintAside",""]],standalone:!0,features:[f([yt({direction:"right"})]),P([M])]});let i=t;return i})(),qe=(()=>{let t=class t{constructor(){this.icon=r(F).check,this.icons=r(pt),this.link=r(E,{self:!0,optional:!0}),this.active=nt(r(_).isActiveChange),this.size="s"}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=v({type:t,selectors:[["","tuiAsideItem",""]],hostAttrs:["tuiButton","","tuiOption",""],hostVars:6,hostBindings:function(e,o){e&2&&y("_link",o.link)("_active",o.active())("_custom",o.icon!==o.icons.iconEnd)},standalone:!0,features:[f([rt(vt,t),Qt(),Rt()]),P([jt,gt,ft,ct,{directive:_,inputs:["routerLinkActiveOptions","routerLinkActiveOptions"]}])]});let i=t;return i})();function Qt(){return{provide:ut,useFactory:()=>{let{check:i,more:t}=r(F),c=r(j,{optional:!0})&&r(E,{self:!0,optional:!0})?i:"";return r(A,{self:!0,optional:!0})?t:c}}}function Rt(){return{provide:L,useFactory:()=>G(R({},r(L,{skipSelf:!0})),{offset:r(j,{optional:!0})?8:12})}}var $e=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["header","tuiNavigationHeader",""]],hostAttrs:["tuiTheme","dark"],standalone:!0,features:[f([bt({size:"s",appearance:"secondary"}),Tt({size:"xs"}),Q({size:"m",appearance:"primary"}),D({size:"s",appearance:"flat"}),B({appearance:"dropdown-navigation"})]),p],attrs:zt,ngContentSelectors:O,decls:1,vars:0,template:function(e,o){e&1&&(u(),s(0))},styles:[`header[tuiNavigationHeader]{--tui-text-action: var(--tui-text-primary);--tui-text-action-hover: var(--tui-text-primary);position:sticky;top:0;z-index:1;display:flex;height:3rem;width:100%;align-items:center;gap:.25rem;padding:.5rem;box-sizing:border-box;font:var(--tui-font-text-s);line-height:1rem;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}header[tuiNavigationHeader] [tuiNavigationLogo]{padding:0 .5rem;margin-inline-start:.25rem}header[tuiNavigationHeader] [tuiNavigationLogo] tui-icon{font-size:1rem}header[tuiNavigationHeader] [tuiButton],header[tuiNavigationHeader] [tuiBadge],header[tuiNavigationHeader] [tuiChip],header[tuiNavigationHeader] tui-badge,header[tuiNavigationHeader] tui-chip{max-width:8rem}header[tuiNavigationHeader] hr{width:2rem;margin:0 0 0 auto;border:none;visibility:hidden;flex-shrink:0}header[tuiNavigationHeader] hr~[tuiButton]{margin-right:.5rem}tui-dropdown[data-appearance=dropdown-navigation]{--tui-text-primary: #fff;--tui-background-neutral-1: rgba(255, 255, 255, .16);border:none;color:var(--tui-text-primary);background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)} +`],encapsulation:2,changeDetection:0});let i=t;return i})(),We=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["","tuiNavigationLogo",""]],standalone:!0,features:[p],attrs:Et,ngContentSelectors:O,decls:1,vars:0,template:function(e,o){e&1&&(u(),s(0))},styles:[`[tuiNavigationLogo]{display:flex;align-items:center;gap:.5rem;overflow:hidden;white-space:nowrap;font-weight:700} +`],encapsulation:2,changeDetection:0});let i=t;return i})(),Xe=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["main","tuiNavigationMain",""]],hostAttrs:["tuiNavigationMain",""],standalone:!0,features:[p],attrs:Ft,ngContentSelectors:O,decls:1,vars:0,template:function(e,o){e&1&&(u(),s(0))},styles:[`main[tuiNavigationMain]{transition-property:max-width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;flex:1;padding:0 1.25rem;isolation:isolate;box-sizing:border-box}main[tuiNavigationMain]:before{content:"";position:sticky;top:3rem;z-index:2;display:block;height:3rem;width:calc(100% + 2.5rem);pointer-events:none;margin:0 -1.25rem -3rem;border-radius:1.25rem 1.25rem 0 0;box-shadow:0 -1.25rem var(--tui-theme-color, #000)}main[tuiNavigationMain]>[tuiHeader]{margin:1rem 0 .5rem}main[tuiNavigationMain]>[tuiHeader][tuiCardLarge]{flex-direction:column;gap:1rem}main[tuiNavigationMain]>[tuiHeader][tuiCardLarge]>:last-child:not([tuiTitle]){margin-bottom:.25rem}main[tuiNavigationMain]>[tuiHeader]:not([tuiCardLarge]) [tuiTitle]{max-width:42rem;white-space:nowrap;gap:.375rem;overflow:hidden}main[tuiNavigationMain]>[tuiHeader]:not([tuiCardLarge]) [tuiSubtitle]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;word-break:break-word;font:var(--tui-font-text-s);overflow:hidden}main[tuiNavigationMain]>[tuiHeader] [tuiCaption]{scrollbar-width:none;-ms-overflow-style:none;display:flex;gap:1rem;color:var(--tui-text-tertiary);font:var(--tui-font-text-s);white-space:nowrap;text-transform:none;overflow:auto}main[tuiNavigationMain]>[tuiHeader] [tuiCaption]::-webkit-scrollbar,main[tuiNavigationMain]>[tuiHeader] [tuiCaption]::-webkit-scrollbar-thumb{display:none}main[tuiNavigationMain]>[tuiHeader] [tuiCaption] tui-icon{font-size:1rem;margin:.125rem 0;color:var(--tui-text-secondary)}main[tuiNavigationMain]>[tuiHeader] [tuiAccessories]{margin-inline-start:3rem;gap:.5rem!important}main[tuiNavigationMain]>a:first-child,main[tuiNavigationMain]>button:first-child,main[tuiNavigationMain]>tui-breadcrumbs:first-child{height:1.25rem;padding:0;margin-top:.875rem} +`],encapsulation:2,changeDetection:0});let i=t;return i})(),Ze=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=d({type:t,selectors:[["nav","tuiNavigationNav",""]],standalone:!0,features:[f([Q({size:"m"}),D({size:"s"}),wt({size:"m"})]),p],attrs:Lt,ngContentSelectors:O,decls:1,vars:0,template:function(e,o){e&1&&(u(),s(0))},styles:[`nav[tuiNavigationNav]{top:3rem;z-index:1;display:flex;min-height:3rem;align-items:center;gap:.5rem;box-shadow:inset 0 -1px var(--tui-border-normal);padding:.25rem 1.25rem 0;margin:0 -1.25rem;box-sizing:border-box;white-space:nowrap;overflow:hidden;font:var(--tui-font-text-s);line-height:1rem;color:var(--tui-text-secondary);background:var(--tui-background-base)}nav[tuiNavigationNav] [tuiNavigationLogo]{font:var(--tui-font-text-m);font-weight:700;color:var(--tui-text-primary)}nav[tuiNavigationNav]>a{text-decoration:none;color:inherit}nav[tuiNavigationNav]>hr{width:2rem;margin:0 0 0 auto;border:none;visibility:hidden;flex-shrink:0}nav[tuiNavigationNav] tui-icon{font-size:1rem;vertical-align:bottom}nav[tuiNavigationNav] tui-tabs,nav[tuiNavigationNav] [tuiTabs]{margin-inline-end:1rem}nav[tuiNavigationNav] tui-tabs:before,nav[tuiNavigationNav] [tuiTabs]:before{background:var(--tui-background-accent-opposite-pressed)} +`],encapsulation:2,changeDetection:0});let i=t;return i})();export{ne as a,Bt as b,qe as c,$e as d,We as e,Xe as f,Ze as g}; diff --git a/chunk-T5IT4JHE.js b/chunk-T5IT4JHE.js new file mode 100644 index 000000000..9072556c4 --- /dev/null +++ b/chunk-T5IT4JHE.js @@ -0,0 +1 @@ +import{b as a}from"./chunk-XEM5DNZU.js";import"./chunk-MGNJSP4A.js";import"./chunk-BXPD2UYH.js";import"./chunk-DRE72XA7.js";import"./chunk-VQIVFWH7.js";import"./chunk-P7BVBIJ3.js";import"./chunk-G2BQMJPO.js";import"./chunk-ZFID6WDR.js";import"./chunk-HFDGAYQF.js";export{a as IotComponent}; diff --git a/chunk-VQIVFWH7.js b/chunk-VQIVFWH7.js new file mode 100644 index 000000000..78568e55d --- /dev/null +++ b/chunk-VQIVFWH7.js @@ -0,0 +1,2 @@ +import{$ as Et,S as K,Y as zt,Z as Ft,_ as Ht,ba as Yt,ca as $t}from"./chunk-P7BVBIJ3.js";import{$a as E,Aa as st,Ab as ht,Ad as Mt,B as it,Ba as lt,Bd as Pt,Ce as Lt,Db as W,Eb as l,Ed as Tt,Fa as ct,Fb as pt,Gb as mt,Ge as St,Hb as q,He as Dt,Ia as Q,Ib as ft,Jb as $,Jc as R,Kb as N,Kc as k,L as j,La as dt,Lb as gt,Mb as _,Mc as xt,Ob as x,Ud as B,W as nt,Wb as S,Wc as vt,We as wt,X as ot,Xb as L,Ya as r,Zb as _t,ae as Ot,bb as ut,bc as G,be as It,cc as Z,da as at,df as At,eb as Y,g as et,ja as m,l as z,lb as p,lf as Nt,mb as b,nb as c,ob as g,pb as M,pd as yt,qa as T,r as F,s as H,sa as C,td as Ct,ub as h,ud as bt,vb as d,wb as y,xb as O,yb as I,yd as X,za as rt}from"./chunk-ZFID6WDR.js";import{a as A,b as V}from"./chunk-HFDGAYQF.js";function Wt(t){let e=String(t),[n,i]=e.split("e-"),o=e;if(i){let[,a]=n.split("."),u=Number(i)+((a==null?void 0:a.length)||0);o=t.toFixed(u)}return o}function qt(t,e){let[,n=""]=Wt(t).split(".");return Ct(e)?n.slice(0,Math.max(0,e)):n}function Be(t,e={}){let{precision:n,decimalSeparator:i,thousandSeparator:o,decimalMode:a,rounding:u}=A(V(A({},wt),{decimalMode:"always",precision:1/0}),e),s=Number.isFinite(n)?Tt({value:t,precision:n,method:u}):t,f=String(Math.floor(Math.abs(s))),v=qt(s,n),U=Number(v)>0;if(Number.isFinite(n))if(a==="always"||U&&a==="pad"){let P=Math.max(n-v.length,0),Qt="0".repeat(P);v=`${v}${Qt}`}else v=v.replace(/0*$/,"");let jt=f.length%3,w=(t<0?It:"")+f.charAt(0);for(let P=1;P3&&(w+=o),w+=f.charAt(P);return v?w+i+v:w}function Ue(t){if(t==="")return"";let e=0;for(let a=0;a{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=T({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-cell"],standalone:!0,features:[L],decls:0,vars:0,template:function(o,a){},styles:[`[tuiCell]{--tui-height: calc(var(--tui-height-s) - .5rem);--t-padding: .125rem 1rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;box-sizing:content-box;isolation:isolate;color:var(--tui-text-primary);padding:var(--t-padding);min-height:var(--t-height)}[tuiCell]:disabled{pointer-events:none}[tuiCell] [tuiAccessories]{position:relative;display:flex;max-height:var(--t-height);align-items:center;align-self:stretch}[tuiCell] [tuiCellActions]{position:absolute;right:0;z-index:1;padding-right:inherit}[tuiCell] [tuiCellActions]~*{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}[tuiCell] [tuiCellActions] button,[tuiCell] [tuiCellActions] a{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;opacity:0}[tuiCell] [tuiCellActions] button:focus-visible,[tuiCell] [tuiCellActions] a:focus-visible{opacity:1}[tuiCell] [tuiSubtitle]{display:flex;align-items:center;gap:.25rem;color:var(--tui-text-secondary)}[tuiCell] [tuiTitle]{flex-shrink:7;margin-inline-end:auto;align-items:normal;text-align:left}[tuiCell] [tuiTitle]~[tuiTitle]{flex-shrink:3;margin-inline-end:0;text-align:right;align-items:flex-end}[tuiCell] [tuiTitle]~[tuiTitle][tuiFade]{align-items:flex-start}[tuiCell] tui-badge-notification[data-size=xs]{position:absolute;top:50%;transform:translateY(-50%);left:-.625rem}[tuiCell][data-size=s]{--t-height: calc(var(--tui-height-s) - .5rem);--t-padding: .125rem 1rem}[tuiCell][data-size=s] [tuiTitle]{max-height:100%;font:var(--tui-font-text-ui-s);gap:0}[tuiCell][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiCell][data-size=s]>*:not(:first-child),[tuiCell][data-size=s]>[tuiAccessories]>*:not(:first-child){margin-inline-start:.5rem}[tuiCell][data-size=s]>tui-avatar,[tuiCell][data-size=s]>tui-avatar-stack tui-avatar,[tuiCell][data-size=s]>[tuiAccessories] tui-avatar,[tuiCell][data-size=s]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 1.5rem;font:var(--tui-font-text-m);font-size:.5625rem}[tuiCell][data-size=m]{--t-height: calc(var(--tui-height-m) - .75rem);--t-padding: .375rem 1rem}[tuiCell][data-size=m] [tuiTitle]{font:var(--tui-font-text-ui-s);gap:.125rem}[tuiCell][data-size=m] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiCell][data-size=m]>*:not(:first-child),[tuiCell][data-size=m]>[tuiAccessories]>*:not(:first-child){margin-inline-start:.75rem}[tuiCell][data-size=m]>tui-avatar,[tuiCell][data-size=m]>tui-avatar-stack tui-avatar,[tuiCell][data-size=m]>[tuiAccessories] tui-avatar,[tuiCell][data-size=m]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 2rem}[tuiCell][data-size=l]{--t-height: calc(var(--tui-height-l) - 1rem);--t-padding: .5rem 1rem}[tuiCell][data-size=l]>*:not(:first-child),[tuiCell][data-size=l]>[tuiAccessories]>*:not(:first-child){margin-inline-start:1rem}[tuiCell][data-size=l]>tui-avatar,[tuiCell][data-size=l]>tui-avatar-stack tui-avatar,[tuiCell][data-size=l]>[tuiAccessories] tui-avatar,[tuiCell][data-size=l]>[tuiAccessories] tui-avatar-stack tui-avatar{--t-size: 2.5rem;font:var(--tui-font-text-m);font-weight:700}[tuiCell]:hover [tuiCellActions]~*{opacity:0}[tuiCell]:hover [tuiCellActions] button,[tuiCell]:hover [tuiCellActions] a{opacity:1}[tuiOption] [tuiCell],tui-primitive-textfield [tuiCell]{padding:0}@media (hover: hover) and (pointer: fine){a[tuiCell]:not([tuiSurface]):hover,button[tuiCell]:not([tuiSurface]):hover{background:var(--tui-background-neutral-1);cursor:pointer}} +`],encapsulation:2,changeDetection:0});let t=e;return t})(),Ge=(()=>{let e=class e{constructor(){this.nothing=Mt(Gt),this.size=""}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=C({type:e,selectors:[["","tuiCell","",5,"ng-template"]],hostAttrs:["tuiCell",""],hostVars:1,hostBindings:function(o,a){o&2&&b("data-size",a.size||"l")},inputs:{size:[0,"tuiCell","size"]},standalone:!0,features:[S([Nt({size:"s"}),At({size:"s"})])]});let t=e;return t})();var Zt=65536,J=class{constructor(e){this.$implicit=e}},Rt=(()=>{let e=class e{constructor(){this.viewContainer=m(Y),this.templateRef=m(E)}set tuiRepeatTimesOf(i){let o=Math.floor(Pt(i,0,Zt)),{length:a}=this.viewContainer;i"dashed";var ge=()=>"solid";var ri=(()=>{let e=class e{constructor(){this.axisX="solid",this.axisXLabels=[],this.axisY="solid",this.axisYInset=!1,this.axisYLabels=[],this.axisYName="",this.axisYSecondaryInset=!1,this.axisYSecondaryLabels=[],this.axisYSecondaryName="",this.horizontalLines=0,this.horizontalLinesHandler=ge,this.verticalLines=0,this.verticalLinesHandler=fe}get hasXLabels(){return!!this.axisXLabels.length}get hasYLabels(){return!!this.axisYLabels.length&&!this.axisYInset||!!this.axisYName}get hasYSecondaryLabels(){return!!this.axisYSecondaryLabels.length&&!this.axisYSecondaryInset||!!this.axisYSecondaryName}fallback(i){return i||Ot}get centeredXLabels(){return this.axisY==="none"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=T({type:e,selectors:[["tui-axes"]],hostVars:2,hostBindings:function(o,a){o&2&&M("_centered",a.centeredXLabels)},inputs:{axisX:"axisX",axisXLabels:"axisXLabels",axisY:"axisY",axisYInset:"axisYInset",axisYLabels:"axisYLabels",axisYName:"axisYName",axisYSecondaryInset:"axisYSecondaryInset",axisYSecondaryLabels:"axisYSecondaryLabels",axisYSecondaryName:"axisYSecondaryName",horizontalLines:"horizontalLines",horizontalLinesHandler:"horizontalLinesHandler",verticalLines:"verticalLines",verticalLinesHandler:"verticalLinesHandler"},standalone:!0,features:[L],ngContentSelectors:Kt,decls:13,vars:11,consts:[["class","t-side",3,"t-side_padding",4,"ngIf"],[1,"t-wrapper"],[1,"t-grid"],[1,"t-vertical"],["automation-id","tui-axex__vertical-line","class","t-line t-line_vertical",3,"borderRightStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-horizontal"],["automation-id","tui-axex__horizontal-line","class","t-line",3,"borderTopStyle",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["class","t-labels-y t-labels-y_inset",4,"ngIf"],["class","t-labels-y t-labels-y_inset t-labels-y_inset_secondary",4,"ngIf"],[1,"t-content"],["class","t-labels-x",4,"ngIf"],[1,"t-side"],["automation-id","tui-axex__axis-y-name","class","t-name t-name_primary",4,"ngIf"],["class","t-labels-y t-labels-y_primary",4,"ngIf"],["automation-id","tui-axex__axis-y-name",1,"t-name","t-name_primary"],[1,"t-labels-y","t-labels-y_primary"],["automation-id","tui-axex__axis-y-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-label",1,"t-label-y"],["automation-id","tui-axex__vertical-line",1,"t-line","t-line_vertical"],["automation-id","tui-axex__horizontal-line",1,"t-line"],[1,"t-labels-y","t-labels-y_inset"],[1,"t-labels-y","t-labels-y_inset","t-labels-y_inset_secondary"],["automation-id","tui-axex__axis-y-secondary-label","class","t-label-y",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-y-secondary-label",1,"t-label-y"],[1,"t-labels-x"],["automation-id","tui-axex__axis-x-label","class","t-label-x",3,"t-label-x_transparent",4,"ngFor","ngForOf"],["automation-id","tui-axex__axis-x-label",1,"t-label-x"],["class","t-labels-y t-labels-y_secondary",4,"ngIf"],["automation-id","tui-axex__axis-y-secondary-name","class","t-name",4,"ngIf"],[1,"t-labels-y","t-labels-y_secondary"],["automation-id","tui-axex__axis-y-secondary-name",1,"t-name"]],template:function(o,a){o&1&&(pt(),p(0,ie,3,4,"div",0),h(1,"div",1)(2,"div",2)(3,"div",3),p(4,ne,1,2,"div",4),d(),h(5,"div",5),p(6,oe,1,2,"div",6),d(),p(7,re,2,1,"div",7)(8,le,2,1,"div",8),h(9,"div",9),mt(10),d()(),p(11,de,2,1,"div",10),d(),p(12,me,3,4,"div",0)),o&2&&(c("ngIf",a.hasYLabels),r(2),g("border-bottom-style",a.axisX)("border-left-style",a.axisY),r(2),c("tuiRepeatTimesOf",a.verticalLines),r(2),c("tuiRepeatTimesOf",a.horizontalLines),r(),c("ngIf",a.axisYInset),r(),c("ngIf",a.axisYSecondaryInset),r(3),c("ngIf",a.hasXLabels),r(),c("ngIf",a.hasYSecondaryLabels))},dependencies:[k,R,Rt],styles:['[_nghost-%COMP%]{display:flex}.t-wrapper[_ngcontent-%COMP%]{display:flex;flex:1;height:100%;flex-direction:column}.t-grid[_ngcontent-%COMP%]{position:relative;display:flex;flex:1;justify-content:space-around;align-items:flex-end;border-width:1px;border-color:var(--tui-border-normal);isolation:isolate}.t-horizontal[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column}.t-vertical[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}._centered[_nghost-%COMP%] .t-vertical[_ngcontent-%COMP%]:after{content:"";display:block;flex:1 0 1px}.t-line[_ngcontent-%COMP%]{flex:2 0 1px;box-sizing:border-box;border-width:1px;border-color:var(--tui-border-normal)}._centered[_nghost-%COMP%] .t-line_vertical[_ngcontent-%COMP%]:first-child{flex:1 0 1px;pointer-events:none}.t-side[_ngcontent-%COMP%]{display:flex;align-items:stretch}.t-side_padding[_ngcontent-%COMP%]{padding-bottom:2rem}.t-name[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);writing-mode:tb;text-align:center;padding-left:.75rem;color:var(--tui-text-secondary)}.t-name_primary[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-labels-y[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-xs);flex-direction:column-reverse;justify-content:space-between;color:var(--tui-text-secondary)}.t-labels-y_primary[_ngcontent-%COMP%]{text-align:right;padding-right:.75rem}.t-labels-y_secondary[_ngcontent-%COMP%]{padding-left:.75rem}.t-labels-y_transparent[_ngcontent-%COMP%]{border-color:transparent}.t-labels-y_inset[_ngcontent-%COMP%]{position:absolute;top:.5625rem;left:.25rem;bottom:-.75rem;pointer-events:none}.t-labels-y_inset_secondary[_ngcontent-%COMP%]{left:auto;right:.25rem;text-align:right}.t-labels-x[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-xs);border-right:1px solid transparent;color:var(--tui-text-secondary)}.t-label-x[_ngcontent-%COMP%]{height:.4375rem;border-left:1px solid var(--tui-border-normal);flex:1;margin-bottom:1.5625rem}.t-label-x[_ngcontent-%COMP%]:before{content:"";display:block;height:.5625rem}.t-label-x_transparent[_ngcontent-%COMP%]{border-color:transparent}._centered[_nghost-%COMP%] .t-label-x[_ngcontent-%COMP%]{height:2rem;text-align:center;border:none;margin:0}[new][_nghost-%COMP%]:not(._centered) .t-label-x[_ngcontent-%COMP%]:last-child:not(:first-child){flex:.5;text-align:right;border-left:none}[new][_nghost-%COMP%]:not(._centered) .t-label-x[_ngcontent-%COMP%]:nth-last-child(2){flex:.5}.t-label-y[_ngcontent-%COMP%]:first-child{margin-bottom:-.375rem}.t-label-y[_ngcontent-%COMP%]:last-child{margin-top:-.375rem}.t-content[_ngcontent-%COMP%]{position:absolute;top:0;left:-1px;right:0;bottom:-1px;display:flex;align-items:flex-end}'],changeDetection:0});let t=e;return t})();function _e(t,e){let n=e[0]-t[0],i=e[1]-t[1];return Math.atan2(i,n)}function xe(t,e){let n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n**2+i**2)}function kt(t,e,n,i=!1,o=.2){let a=e||t,u=n||t,s=_e(a,u)+(i?Math.PI:0),f=xe(a,u)*o,v=t[0]+Math.cos(s)*f,U=t[1]+Math.sin(s)*f;return[v,U]}function ve(t,e,n){let[i,o]=kt(t[e-1],t[e-2],t[e],!1,n),[a,u]=kt(t[e],t[e-1],t[e+1],!0,n);return`C ${i},${o} ${a},${u} ${t[e][0]},${t[e][1]}`}function ye(t){return`L ${t}`}var Ce=500;function Xt(t,e,n){return n?ve(t,e,n/Ce):ye([t[e][0],t[e][1]])}var tt=class{constructor(e){this.internalDirectiveInstance=e}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},Bt=(()=>{let e=class e{constructor(){m(Y).createEmbeddedView(m(E),new tt(this))}static ngTemplateContextGuard(i,o){return!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=C({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"},standalone:!0});let t=e;return t})();var be="tui_",Ut=(()=>{let e=class e{generate(){return`${be}${e.autoId++}${Date.now()}`}};e.autoId=0,e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Me=(t,e)=>({$implicit:t,index:e});function Pe(t,e){if(t&1&&y(0,"div",10),t&2){let n=e.$implicit,i=l(3);g("bottom",i.getBottom(n[1]),"%")("left",i.getLeft(n[0]),"%")}}function Te(t,e){if(t&1&&(O(0),p(1,Pe,1,4,"div",9),I()),t&2){let n=l(2);r(),c("ngForOf",n.value)}}function Oe(t,e){if(t&1){let n=ht();h(0,"div",14),G(1,"async"),W("mouseenter",function(){rt(n);let o=l().index,a=l(3);return st(a.onMouseEnter(o))}),y(2,"div",15)(3,"div",16,0),d()}if(t&2){let n=gt(4),i=l(),o=i.$implicit,a=i.index,u=l(2).tuiLet,s=l();g("left",s.getLeft(s.getX(a)),"%")("width",s.getWidth(a),"%"),M("t-column_hint_hovered",Z(1,20,s.drivers.get(a)))("t-column_hovered",u===a),c("tuiHint",(s.hintDirective==null?null:s.hintDirective.hint)||s.hintContent)("tuiHintContext",_t(22,Me,s.getImplicit(o),a))("tuiHintDescribe",s.isFocusable?s.getHintId(a):null)("tuiHintHost",n),r(2),g("left",s.getOffset(a),"%"),r(),g("bottom",s.getBottom(o[1]),"%")("left",s.getOffset(a),"%"),c("id",s.getHintId(a))("tabIndex",s.isFocusable?0:-1)}}function Ie(t,e){if(t&1&&y(0,"div",17),t&2){let n=l().$implicit,i=l(3);g("bottom",i.getBottom(n[1]),"%")}}function Le(t,e){if(t&1&&(O(0),p(1,Oe,5,25,"div",12)(2,Ie,1,2,"div",13),I()),t&2){let n=l(3);r(),c("ngIf",n.value.length>1||n.dots),r(),c("ngIf",n.isFocusable)}}function Se(t,e){if(t&1&&(O(0),p(1,Le,3,2,"ng-container",11),I()),t&2){let n=l(2);r(),c("ngForOf",n.value)}}function De(t,e){if(t&1&&(h(0,"div",20),_(1),d()),t&2){let n=l().ngIf,i=l(2);g("left",i.getLeft(n[0]),"%"),r(),x(" ",i.xStringify(n[0])," ")}}function we(t,e){if(t&1&&(h(0,"div",21),_(1),d()),t&2){let n=l().ngIf,i=l(2);g("bottom",i.getBottom(n[1]),"%"),r(),x(" ",i.yStringify(n[1])," ")}}function Ae(t,e){if(t&1&&(O(0),p(1,De,2,3,"div",18)(2,we,2,3,"div",19),I()),t&2){let n=l(2);r(),c("ngIf",n.xStringify),r(),c("ngIf",n.yStringify)}}function ze(t,e){if(t&1&&(O(0),lt(),h(1,"svg",2)(2,"defs")(3,"linearGradient",3),y(4,"stop",4)(5,"stop",5),d()(),y(6,"path",6)(7,"path",7),d(),p(8,Te,2,1,"ng-container",8)(9,Se,2,1,"ng-container",8)(10,Ae,3,2,"ng-container",8),I()),t&2){let n=e.tuiLet,i=l();r(),b("viewBox",i.viewBox),r(2),b("id",i.fillId),r(3),b("d",i.fillD)("fill",i.fill),r(),b("d",i.d),r(),c("ngIf",i.dots),r(),c("ngIf",i.hasHints),r(),c("ngIf",i.getHovered(n))}}var Fe={dots:!1,filled:!1,smoothingFactor:0},He=yt(Fe);var Ee=(()=>{let e=class e{constructor(){this.charts=B,this.chartsRef=B,this.renderer=m(ut),this.destroyRef=m(ct),this.zone=m(Q),this.hovered$=m(K)}ngAfterViewInit(){H([Ye(this.charts),this.hovered$]).pipe(it(i=>!i.some(Boolean)),St(this.zone),vt(this.destroyRef)).subscribe(()=>{this.charts.forEach(i=>i.onHovered(NaN))})}getContext(i,o){return this.computeContext(...this.charts.map(({value:a})=>a))[i]}raise(i,o){let a=this.charts.map(s=>s.value[i]),u=[...a].sort((s,f)=>s[1]-f[1]);this.charts.forEach(s=>s.onHovered(i)),this.chartsRef.forEach(({nativeElement:s},f)=>this.renderer.setStyle(s,"z-index",u.indexOf(a[f])))}computeContext(...i){return(i[0]||[]).map((o,a)=>i.map(u=>u[a]))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=C({type:e,selectors:[["","tuiLineChartHint",""]],contentQueries:function(o,a,u){if(o&1&&(q(u,Vt,4),q(u,Vt,4,dt)),o&2){let s;$(s=N())&&(a.charts=s),$(s=N())&&(a.chartsRef=s)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[S([K])]});let t=e;return z([X],t.prototype,"computeContext",null),t})();function Ye(t){return H(t.map(({drivers:e})=>Lt(e).pipe(F(n=>n.map(i=>i.pipe(nt(!1))))))).pipe(F(e=>e.reduce((n,i)=>n.concat(i),[])),ot(e=>H(e)),F(e=>e.some(Boolean)),j())}var Vt=(()=>{let e=class e{constructor(){this.zone=m(Q),this.options=m(He),this.hover$=new et,this.autoIdString=m(Ut).generate(),this.hintDirective=m(Ee,{optional:!0}),this.hintOptions=m(Ft,{optional:!0}),this.drivers=B,this.x=0,this.y=0,this.width=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.filled=this.options.filled,this.dots=this.options.dots,this.value=[]}set valueSetter(i){this.value=i.filter(o=>!o.some(Number.isNaN))}onHovered(i){this.hover$.next(i)}get hovered$(){return this.hover$.pipe(j(),Dt(this.zone))}get hintContent(){var i;return((i=this.hintOptions)==null?void 0:i.content)||""}get fillId(){return`tui-line-chart-${this.autoIdString}`}get fill(){return this.filled?`url(#${this.fillId})`:"none"}get viewBox(){return`${this.x} ${this.y} ${this.width} ${this.height}`}get d(){return this.getD(this.value,this.smoothingFactor)}get fillD(){return this.value.length?`${this.d}V ${this.y} H ${this.value[0][0]} V ${this.value[0][1]}`:this.d}get isFocusable(){return!this.hintDirective&&this.hasHints}get hasHints(){var i;return!!this.xStringify||!!this.yStringify||!!((i=this.hintDirective)!=null&&i.hint)||!!this.hintContent}onMouseLeave(){this.hintDirective||this.onHovered(NaN)}getX(i){return this.isSinglePoint?this.value[0][0]/2:i?(this.value[i-1][0]+this.value[i][0])/2:2*this.value[0][0]-this.getX(1)}getWidth(i){return 100*this.computeWidth(i)/this.width}getHintId(i){return`${this.autoIdString}_${i}`}getImplicit(i){var o;return((o=this.hintDirective)==null?void 0:o.getContext(this.value.indexOf(i),this))||i}getHovered(i){return bt(i)&&Number.isInteger(i)?this.value[i]:null}getBottom(i){return 100*(i-this.y)/this.height}getLeft(i){return 100*(i-this.x)/this.width}getOffset(i){return 100*(this.value[i][0]-this.getX(i))/this.computeWidth(i)}onMouseEnter(i){this.hintDirective?this.hintDirective.raise(i,this):this.onHovered(i)}get isSinglePoint(){return this.value.length===1}getD(i,o){return i.reduce((a,u,s)=>s?`${a} ${Xt(i,s,o)}`:`M ${u}`,"")}computeWidth(i){return i===this.value.length-1?2*(this.value[i][0]-this.getX(i)):this.getX(i+1)-this.getX(i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=T({type:e,selectors:[["tui-line-chart"]],viewQuery:function(o,a){if(o&1&&ft(Ht,5),o&2){let u;$(u=N())&&(a.drivers=u)}},hostBindings:function(o,a){o&1&&W("mouseleave",function(){return a.onMouseLeave()})},inputs:{x:"x",y:"y",width:"width",height:"height",smoothingFactor:"smoothingFactor",xStringify:"xStringify",yStringify:"yStringify",filled:"filled",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[S([],[zt({direction:"top",hideDelay:0})]),L],decls:2,vars:3,consts:[["hintHost",""],[4,"tuiLet"],["focusable","false","height","100%","preserveAspectRatio","none","width","100%","xmlns","http://www.w3.org/2000/svg",1,"t-svg"],["x1","0","x2","0","y1","1","y2","0"],["offset","0%","stop-color","currentColor","stop-opacity","0.5"],["offset","100%","stop-color","currentColor","stop-opacity","0"],["stroke","none"],["fill","none","stroke","currentColor","stroke-width","2","vector-effect","non-scaling-stroke"],[4,"ngIf"],["class","t-dot",3,"bottom","left",4,"ngFor","ngForOf"],[1,"t-dot"],[4,"ngFor","ngForOf"],["class","t-column",3,"t-column_hint_hovered","t-column_hovered","left","width","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter",4,"ngIf"],["class","t-line t-line_horizontal",3,"bottom",4,"ngIf"],[1,"t-column",3,"mouseenter","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-line","t-line_vertical"],[1,"t-host",3,"id","tabIndex"],[1,"t-line","t-line_horizontal"],["class","t-hint t-hint_x",3,"left",4,"ngIf"],["class","t-hint t-hint_y",3,"bottom",4,"ngIf"],[1,"t-hint","t-hint_x"],[1,"t-hint","t-hint_y"]],template:function(o,a){o&1&&(p(0,ze,11,8,"ng-container",1),G(1,"async")),o&2&&c("tuiLet",Z(1,1,a.hovered$))},dependencies:[Bt,xt,k,Et,Yt,$t,R],styles:['[_nghost-%COMP%]{display:flex;width:100%;height:100%;pointer-events:none}.t-svg[_ngcontent-%COMP%]{transform:scaleY(-1)}.t-column[_ngcontent-%COMP%]{position:absolute;top:0;height:100%;pointer-events:auto}.t-dot[_ngcontent-%COMP%]{position:absolute;width:.375rem;height:.375rem;border-radius:100%;background:currentColor;margin:-.1875rem;box-shadow:0 0 0 2px #fff}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;width:.5rem;height:.5rem;border-radius:100%;opacity:0;background:#fff;margin:-.25rem;box-shadow:0 0 0 2px currentColor,0 .0625rem .1875rem .125rem #0000001a;outline:none;pointer-events:none}.t-host[_ngcontent-%COMP%]:focus, .t-column_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%], .t-column[_ngcontent-%COMP%]:hover .t-host[_ngcontent-%COMP%], .t-column_hint_hovered[_ngcontent-%COMP%] .t-host[_ngcontent-%COMP%]{opacity:1}.t-line[_ngcontent-%COMP%]{position:absolute;opacity:0;background:var(--tui-border-normal)}.t-line_vertical[_ngcontent-%COMP%]{top:0;bottom:0;left:50%;width:1px}.t-line_horizontal[_ngcontent-%COMP%]{z-index:-1;width:100%;height:1px}[style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] .t-line[_ngcontent-%COMP%], [style^="z-index: 0"][_nghost-%COMP%] .t-column_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column[_ngcontent-%COMP%]:hover + .t-line[_ngcontent-%COMP%], [_nghost-%COMP%]:not([style]) .t-column_hint_hovered[_ngcontent-%COMP%] + .t-line[_ngcontent-%COMP%]{opacity:1}.t-hint[_ngcontent-%COMP%]{position:absolute;box-shadow:var(--tui-shadow-small);font:var(--tui-font-text-xs);height:1.25rem;line-height:1.25rem;margin-bottom:-.625rem;padding:0 .375rem;white-space:nowrap;color:var(--tui-text-primary);background:var(--tui-background-base);transform:translate3d(-50%,0,0)}.t-hint_x[_ngcontent-%COMP%]{bottom:0}.t-hint_y[_ngcontent-%COMP%]{left:0}'],changeDetection:0});let t=e;return z([X],t.prototype,"hovered$",null),z([X],t.prototype,"getD",null),t})();export{Be as a,Ue as b,Ut as c,Bt as d,Rt as e,Ge as f,ri as g,He as h,Ee as i,Ye as j,Vt as k}; diff --git a/chunk-XEM5DNZU.js b/chunk-XEM5DNZU.js new file mode 100644 index 000000000..dc47091ae --- /dev/null +++ b/chunk-XEM5DNZU.js @@ -0,0 +1,11 @@ +import{A as Ea,B as wn,C as Co,D as yo,E as ka,F as Pn,G as In,H as Fa,I as Dn,J as Sn,K as Aa,M as Va,b as Cn,c as yn,e as fa,f as ga,g as _a,h as bn,k as va,l as Ti,m as Ze,n as _e,p as Ca,s as _o,t as ya,u as qt,v as ba,w as ve,x as xa,y as vo}from"./chunk-MGNJSP4A.js";import{a as wa}from"./chunk-BXPD2UYH.js";import{a as _n,b as sa,c as vn,d as Fe,e as go,f as Ra,g as En,h as Na,i as za,j as bo,k as Mi}from"./chunk-VQIVFWH7.js";import{$ as Tn,C as ua,D as da,E as pa,N as Qe,O as ma,R as ha,S as xi,T as fo,Y as Ta,Z as de,_ as xn,aa as Ma,ba as Mn,ca as Oa,o as ra,p as gn,q as aa,r as ut,u as la,x as ca}from"./chunk-P7BVBIJ3.js";import{a as Pa,b as _t,c as La}from"./chunk-G2BQMJPO.js";import{$a as Qi,$b as wr,$c as Ue,A as mr,Aa as y,Ab as A,Ac as Se,Ad as ke,Ae as ho,B as re,Ba as yr,Bb as Ht,Bd as an,C as $i,Ca as U,Cd as Lr,Db as O,Dd as Nr,Ea as br,Eb as g,Ee as Xr,Fa as fe,Fb as ht,Fd as sn,Fe as $t,Gb as j,Ge as bi,Ha as q,Hb as ae,Hc as Sr,I as hr,Ia as Dt,Ib as ct,Jb as Q,Jc as nt,K as Ne,Kb as Z,Kc as Y,Ke as un,L as zt,La as St,Lb as V,Lc as Ji,Le as dn,Mb as T,Mc as $,Me as pn,Nb as Qt,Nd as bt,Ne as Kr,Ob as F,Oc as z,Oe as mn,Pa as xr,Pb as _i,Pe as hn,Q as fr,Qb as Bt,Qc as Er,Qd as zr,Rb as kt,Rd as ln,Re as qr,Sb as jt,Sd as X,Se as Jr,Ta as io,Tb as oo,Td as Ge,U as Wi,Ub as ro,Uc as kr,Ud as ge,Ue as ta,Vb as ao,Vd as Hr,W as he,Wa as Tr,Wb as k,Wc as ft,Wd as lo,We as ea,X as Gi,Xb as P,Xe as ia,Y as fi,Ya as c,Yb as Tt,Yd as ce,Ye as na,Z as gr,Za as lt,Zb as Ki,Zc as Fr,_b as vi,_c as tn,_d as Br,_e as oa,a as sr,ac as Pr,ad as Ar,b as lr,bc as S,bd as se,be as jr,ca as Yi,cc as L,cd as Ft,ce as Ur,cf as fn,d as Hi,da as K,db as Mr,dc as so,dd as en,ea as at,eb as Or,ec as xe,ed as Vr,ee as $r,ef as ue,f as cr,fb as Zi,fc as qi,fd as Ee,fe as Wr,ff as W,g as xt,ga as dt,gb as H,gc as Te,gd as Mt,ge as cn,h as eo,hb as ze,hc as J,hd as nn,he as co,hf as Ia,i as ur,ia as Yt,ib as no,id as Rr,ie as uo,j as dr,ja as h,jd as $e,je as po,k as Bi,ka as _r,kd as We,ke as Ye,l as et,la as gi,lb as _,ld as At,le as Gr,lf as Da,m as pr,ma as vr,mb as B,md as Me,me as Yr,mf as On,n as Rt,nb as u,ne as Ct,oa as Cr,ob as w,od as on,oe as G,of as Sa,p as ji,pb as N,pc as Zt,pd as tt,pe as mo,qa as M,qb as Xi,qc as Ir,qd as yt,qe as Ot,r as it,ra as st,rb as He,rd as Ci,re as Nt,s as mi,sa as D,sb as Be,se as Kt,ta as Lt,tb as je,tc as Dr,td as rn,te as yi,ub as p,ud as Ut,vb as m,vd as le,wb as x,wd as gt,we as Qr,x as hi,xb as pt,xd as Xt,y as Ui,ya as be,yb as mt,yd as ot,z as me,za as C,zb as Et,ze as Zr}from"./chunk-ZFID6WDR.js";import{a as zi,b as to,c as ar,e as Le}from"./chunk-HFDGAYQF.js";var Ce=(()=>{let e=class e{transform(t,i,...o){return i(t,...o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiMapper",type:e,pure:!0,standalone:!0});let n=e;return n})();var Ha=(()=>{let e=class e{transform(t){return sa(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiAutoColor",type:e,pure:!0,standalone:!0});let n=e;return n})();var oc=(n,e)=>{let r=new Date(n.year,n.month,1).getDay();return r>=e?r-e:cn-(e-r)},rc=({month:n,rowIndex:e,colIndex:r,firstDayOfWeek:t})=>{let i=e*cn+r-oc(n,t)+1;return i>n.daysCount&&(i-=n.daysCount,n=n.append({month:1})),i<=0&&(n=n.append({month:-1}),i=n.daysCount+i),new G(n.year,n.month,i)},ac=6,Ba=(()=>{let e=class e{constructor(){this.firstDayOfWeek=h(mn),this.currentMonth=null,this.currentSheet=[]}transform(t,i=!1){var a;if((a=this.currentMonth)!=null&&a.monthSame(t))return this.currentSheet;let o=[];for(let s=0;sE.yearE.year>R.year||E.month>R.month;if(!(v(f)&&!i)){if(b(f)&&!i)break;l.push(f)}}o.push(l)}return this.currentSheet=o.filter(s=>s.length),this.currentMonth=t,this.currentSheet}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiCalendarSheet",type:e,pure:!0,standalone:!0});let n=e;return n})();var ja=(()=>{let e=class e{constructor(){this.months$=h(hn)}transform({month:t}){return this.months$.pipe(it(i=>i[t]))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiMonth",type:e,pure:!0,standalone:!0});let n=e;return n})();function sc(n){let e=n.length-1;return[n[e],...n.slice(0,e)]}var Ua=(()=>{let e=class e{constructor(){this.firstDayOfWeekIndex=h(mn)}transform(t){return t.pipe(it(sc),it(i=>[...i.slice(this.firstDayOfWeekIndex),...i.slice(0,this.firstDayOfWeekIndex)]))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiOrderWeekDays",type:e,pure:!0,standalone:!0});let n=e;return n})();var cc={appearance:"link",pseudo:!1},$a=tt(cc);var uc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-link"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,o){},styles:[`[tuiLink]{--tui-text-tertiary: var(--tui-text-secondary);padding:0;background:transparent;border:none;cursor:pointer;font:inherit;-webkit-text-decoration:none dashed currentColor;text-decoration:none dashed currentColor;text-underline-offset:.2em;text-decoration-thickness:.7px;text-decoration-color:color-mix(in lch,currentColor,transparent)}[tuiLink]:hover{--tui-text-secondary: var(--tui-text-primary)}[tuiLink]:before{margin-inline-end:.25rem}[tuiLink]:after{margin-inline-start:.25rem}[tuiLink][tuiIcons]._icon-start:before,[tuiLink][tuiIcons]._icon-end:after{content:"\\2060";padding:calc(var(--tui-icon-size, 1rem) / 2);vertical-align:super;font-size:0;line-height:0}[tuiLink]:focus-visible:not([data-focus=false]){outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)}[tuiLink][data-focus=true]{outline:none;background:var(--tui-service-selection-background);background:color-mix(in lch,currentColor 12%,transparent)} +`],encapsulation:2,changeDetection:0});let n=e;return n})(),kn=(()=>{let e=class e{constructor(){this.nothing=ke(uc),this.pseudo=h($a).pseudo}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostAttrs:["tuiLink",""],hostVars:2,hostBindings:function(i,o){i&2&&w("text-decoration-line",o.pseudo?"underline":null)},inputs:{pseudo:"pseudo"},standalone:!0,features:[k([ln($a)]),ze([Ge,fn])]});let n=e;return n})();var pc=["*"];function mc(n,e){if(n&1){let r=A();pt(0),p(1,"button",1),O("click",function(){C(r);let i=g();return y(i.onLeftClick())}),T(2),m(),p(3,"span",2),j(4),m(),p(5,"button",3),O("click",function(){C(r);let i=g();return y(i.onRightClick())}),T(6),m(),mt()}if(n&2){let r=e.ngIf,t=g();c(),N("t-hidden",t.leftComputedDisabled),u("iconStart",t.icons.decrement)("tabIndex",t.focusable?0:-1),c(),F(" ",r[0]," "),c(3),N("t-hidden",t.rightComputedDisabled),u("iconStart",t.icons.increment)("tabIndex",t.focusable?0:-1),c(),F(" ",r[1]," ")}}var Wa=(()=>{let e=class e{constructor(){this.icons=h(oa),this.spinTexts$=h(qr),this.focusable=!0,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new q,this.rightClick=new q}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}get leftComputedDisabled(){return this.disabled||this.leftDisabled}get rightComputedDisabled(){return this.disabled||this.rightDisabled}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-spin-button"]],hostBindings:function(i,o){i&1&&O("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return o.onLeftClick()})("keydown.arrowRight.prevent",function(){return o.onRightClick()})},inputs:{focusable:"focusable",disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},standalone:!0,features:[P],ngContentSelectors:pc,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-spin-button__left","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-spin-button__right","size","xs","tuiIconButton","","type","button",3,"click","iconStart","tabIndex"]],template:function(i,o){i&1&&(ht(),_(0,mc,7,10,"ng-container",0),S(1,"async")),i&2&&u("ngIf",L(1,1,o.spinTexts$))},dependencies:[ue,Y,$],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:700}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0});let n=e;return n})();var hc=(n,e,r,t,i)=>[n,e,r,t,i];function fc(n,e){if(n&1&&x(0,"div",3),n&2){let r=e.$implicit;u("textContent",r)}}function gc(n,e){if(n&1&&x(0,"div",12),n&2){let r=g().ngIf;w("background",(r==null?null:r[1])||"")}}function _c(n,e){if(n&1&&(p(0,"div",11),x(1,"div",12),_(2,gc,1,2,"div",13),m()),n&2){let r=e.ngIf;c(),w("background",r==null?null:r[0]),c(),u("ngIf",r.length>1)}}function vc(n,e){if(n&1){let r=A();p(0,"div",8),O("click",function(){C(r);let i=g().tuiLet,o=g(4);return y(o.onItemClick(i))})("tuiHoveredChange",function(i){C(r);let o=g().tuiLet,a=g(4);return y(a.onItemHovered(i&&o))}),p(1,"div",9),S(2,"tuiMapper"),T(3),_(4,_c,3,3,"div",10),S(5,"tuiMapper"),m()()}if(n&2){let r=g().tuiLet,t=g(4);N("t-cell_disabled",t.disabledItemHandler(r))("t-cell_interval",t.itemIsInterval(r))("t-cell_today",t.itemIsToday(r))("t-cell_unavailable",t.itemIsUnavailable(r)),B("data-range",t.getItemRange(r)),c(),N("t-item_unavailable",t.itemIsUnavailable(r)),B("data-type",so(2,14,r,t.dayTypeHandler)),c(2),F(" ",r.day," "),c(),u("ngIf",Te(5,17,wr(23,hc,r,t.toMarkers,t.itemIsToday(r),!!t.getItemRange(r),t.markerHandler)))}}function Cc(n,e){if(n&1&&(pt(0),_(1,vc,6,29,"div",7),mt()),n&2){let r=e.tuiLet,t=g(4);c(),u("ngIf",!t.itemIsUnavailable(r)||t.showAdjacent)}}function yc(n,e){if(n&1&&(pt(0),_(1,Cc,2,1,"ng-container",2),mt()),n&2){let r=e.$implicit,t=g().$implicit,i=g().tuiLet;c(),u("tuiLet",i[t][r])}}function bc(n,e){if(n&1&&(p(0,"div",5),_(1,yc,2,1,"ng-container",6),m()),n&2){let r=e.$implicit,t=g().tuiLet;c(),u("tuiRepeatTimesOf",t[r].length)}}function xc(n,e){if(n&1&&(p(0,"div"),_(1,bc,2,1,"div",4),m()),n&2){let r=e.tuiLet;c(),u("tuiRepeatTimesOf",r.length)}}function Tc(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=g();c(),F(" ",r.value.formattedYear," ")}}function Mc(n,e){if(n&1){let r=A();p(0,"button",3),O("click",function(){C(r);let i=g();return y(i.onYearClick())}),T(1),m()}if(n&2){let r=g();c(),F(" ",r.value.formattedYear," ")}}function Oc(n,e){if(n&1){let r=A();p(0,"div",4),O("click",function(){let i=C(r).tuiLet,o=g(3);return y(o.yearClick.emit(i))})("tuiHoveredChange",function(i){let o=C(r).tuiLet,a=g(3);return y(a.onItemHovered(i,o))}),p(1,"div",5),T(2),m()()}if(n&2){let r=e.tuiLet,t=g(3);N("t-cell_disabled",t.isDisabled(r))("t-cell_interval",t.itemIsInterval(r))("t-cell_today",t.itemIsToday(r)),u("tuiScrollIntoView",t.scrollItemIntoView(r)),B("data-range",t.getItemRange(r)),c(2),Qt(r)}}function wc(n,e){if(n&1&&(pt(0),_(1,Oc,3,9,"div",3),mt()),n&2){let r=e.$implicit,t=g().$implicit,i=g();c(),u("tuiLet",i.getItem(t,r))}}function Pc(n,e){n&1&&(p(0,"div",1),_(1,wc,2,1,"ng-container",2),m()),n&2&&(c(),u("tuiRepeatTimesOf",4))}function Ic(n,e){if(n&1){let r=A();p(0,"tui-scrollbar",2)(1,"tui-calendar-year",3),O("yearClick",function(i){C(r);let o=g();return y(o.onPickerYearClick(i))}),m()()}if(n&2){let r=g();c(),u("initialItem",r.month.year)("max",r.computedMax.year)("min",r.computedMin.year)("value",r.value)}}function Dc(n,e){if(n&1){let r=A();p(0,"tui-calendar-spin",4),O("valueChange",function(i){C(r);let o=g();return y(o.onPaginationValueChange(i))})("yearClick",function(){C(r);let i=g();return y(i.onPaginationYearClick())}),m(),p(1,"tui-calendar-sheet",5),S(2,"tuiMapper"),O("dayClick",function(i){C(r);let o=g();return y(o.onDayClick(i))})("hoveredItemChange",function(i){C(r);let o=g();return y(o.onHoveredItemChange(i))}),m()}if(n&2){let r=g();u("max",r.computedMaxViewedMonth)("min",r.computedMinViewedMonth)("value",r.month),c(),u("disabledItemHandler",qi(2,9,r.disabledItemHandler,r.disabledItemHandlerMapper,r.computedMin,r.computedMax))("hoveredItem",r.hoveredItem)("markerHandler",r.markerHandler)("month",r.month)("showAdjacent",r.showAdjacent)("value",r.value)}}var Sc=(()=>{let e=class e{constructor(){this.today=G.currentLocal(),this.unorderedWeekDays$=h(Jr),this.dayTypeHandler=h(Kr),this.month=Ct.currentLocal(),this.disabledItemHandler=ce,this.markerHandler=null,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new q,this.dayClick=new q,this.toMarkers=(t,i,o,a)=>{if(i||o)return null;let s=a==null?void 0:a(t);return s!=null&&s.length?s:null}}itemIsInterval(t){let{value:i,hoveredItem:o}=this;if(!(i instanceof Ot))return!1;if(!i.isSingleDay)return i.from.daySameOrBefore(t)&&i.to.dayAfter(t);if(o===null)return!1;let a=Ot.sort(i.from,o);return a.from.daySameOrBefore(t)&&a.to.dayAfter(t)}onItemHovered(t){this.updateHoveredItem(t||null)}getItemRange(t){let{value:i,hoveredItem:o}=this;return i?i instanceof G?i.daySame(t)?"single":null:i instanceof Ot?i.from.daySame(t)&&!i.isSingleDay||o!=null&&o.dayAfter(i.from)&&i.from.daySame(t)&&i.isSingleDay||o!=null&&o.daySame(t)&&o.dayBefore(i.from)&&i.isSingleDay?"start":i.to.daySame(t)&&!i.isSingleDay||o!=null&&o.dayBefore(i.from)&&i.from.daySame(t)&&i.isSingleDay||o!=null&&o.daySame(t)&&o.dayAfter(i.from)&&i.isSingleDay?"end":i.isSingleDay&&i.from.daySame(t)?"single":null:i.find(a=>a.daySame(t))?"single":null:null}get isSingleDayRange(){return this.value instanceof Ot&&this.value.isSingleDay}itemIsToday(t){return this.today.daySame(t)}itemIsUnavailable(t){return!this.month.monthSame(t)}onItemClick(t){this.dayClick.emit(t)}updateHoveredItem(t){le(this.hoveredItem,t,(i,o)=>i.daySame(o))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-calendar-sheet"]],hostVars:2,hostBindings:function(i,o){i&2&&N("_single",o.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},standalone:!0,features:[P],decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],[4,"tuiLet"],[1,"t-cell",3,"textContent"],["automation-id","tui-calendar-sheet__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-calendar-sheet__cell","class","t-cell",3,"t-cell_disabled","t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange",4,"ngIf"],["automation-id","tui-calendar-sheet__cell",1,"t-cell",3,"click","tuiHoveredChange"],["automation-id","tui-calendar-sheet__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"background",4,"ngIf"]],template:function(i,o){i&1&&(p(0,"div",0),_(1,fc,1,1,"div",1),S(2,"tuiOrderWeekDays"),S(3,"async"),m(),_(4,xc,2,1,"div",2),S(5,"tuiCalendarSheet")),i&2&&(c(),u("ngForOf",L(3,4,L(2,2,o.unorderedWeekDays$))),c(3),u("tuiLet",so(5,6,o.month,!0)))},dependencies:[z,nt,Y,$,Fe,Ce,go,fo,Ba,Ua],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{position:absolute;top:0;left:0;bottom:0;right:0;content:"";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:var(--tui-text-primary)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.1875rem;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:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-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_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_nghost-%COMP%]{width:15.75rem}[data-type=weekday][_ngcontent-%COMP%]{color:var(--tui-text-primary)}[data-type=weekend][_ngcontent-%COMP%]{color:var(--tui-text-negative)}.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-secondary);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});let n=e;return n})(),Ec=(()=>{let e=class e{constructor(){this.value=Ct.currentLocal(),this.min=Nt,this.max=Kt,this.valueChange=new q,this.yearClick=new q}onYearClick(){this.yearClick.next(this.value)}append(t){let i=this.value.append(t);this.min.monthSameOrAfter(i)?this.updateValue(this.min):this.updateValue(this.max.monthSameOrBefore(i)?this.max:i)}updateValue(t){this.value.monthSame(t)||(this.value=t,this.valueChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-calendar-spin"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},standalone:!0,features:[P],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","tabIndex","-1","tuiLink","","type","button",3,"click"]],template:function(i,o){if(i&1){let a=A();p(0,"tui-spin-button",1),O("leftClick",function(){return C(a),y(o.append({month:-1}))})("rightClick",function(){return C(a),y(o.append({month:1}))}),T(1),S(2,"tuiMonth"),S(3,"async"),_(4,Tc,2,1,"ng-container",2)(5,Mc,2,1,"ng-template",null,0,J),m()}if(i&2){let a=V(6);u("focusable",!1)("leftDisabled",o.value.monthSameOrBefore(o.min))("rightDisabled",o.value.monthSameOrAfter(o.max)),c(),F(" ",L(3,8,L(2,6,o.value))," "),c(3),u("ngIf",o.min.year===o.max.year)("ngIfElse",a)}},dependencies:[Wa,kn,ja,Y,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let n=e;return n})(),Ga=100,Ya=4,kc=(()=>{let e=class e{constructor(){this.hoveredItem=null,this.currentYear=Ct.currentLocal().year,this.value=null,this.initialItem=this.currentYear,this.min=co,this.max=uo,this.disabledItemHandler=ce,this.yearClick=new q}isDisabled(t){return this.max&&this.maxt||this.disabledItemHandler(t)}getItemRange(t){let{value:i,hoveredItem:o}=this;return i===null?null:i instanceof Yr?i.year===t?"single":null:rn(i)?i===t?"single":null:i instanceof mo?i.from.year===t&&!i.from.yearSame(i.to)||o!==null&&o>i.from.year&&i.from.year===t&&i.from.yearSame(i.to)||o!==null&&o===t&&oi.from.year&&i.from.yearSame(i.to)?"end":i.from.yearSame(i.to)&&i.from.year===t?"single":null:i.find(a=>a.year===t)?"single":null}itemIsInterval(t){let{value:i,hoveredItem:o}=this;return this.isRange(i)?i.from.yearSame(i.to)?o===null||i.from.year===o?!1:Lr(t,Math.min(i.from.year,o),Math.max(i.from.year,o)):i.from.year<=t&&i.to.year>t:!1}onItemHovered(t,i){this.updateHoveredItem(t,i)}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/Ya)}isRange(t){return t instanceof mo}scrollItemIntoView(t){return this.initialItem===t}getItem(t,i){return t*Ya+i+this.calculatedMin}itemIsToday(t){return this.currentYear===t}get calculatedMin(){let t=this.initialItem-Ga,i=this.min??co;return i>t?i:t}get calculatedMax(){let t=this.initialItem+Ga,i=this.max??uo;return i .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:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-text-primary-on-accent-1)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1)}.t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:hover > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-hover)}.t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%]:active > .t-item[_ngcontent-%COMP%]:after{background:var(--tui-background-accent-1-pressed)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-base-alt)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-background-neutral-1-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_disabled[_ngcontent-%COMP%]{pointer-events:none}.t-cell_disabled[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-hover)}.t-cell[_ngcontent-%COMP%]:active:not([data-range]) > .t-item[_ngcontent-%COMP%]{background:var(--tui-background-neutral-1-pressed)}[_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});let n=e;return n})(),Ke=(()=>{let e=class e{constructor(){this.day=null,this.view="month",this.month=Ct.currentLocal(),this.disabledItemHandler=ce,this.min=Nt,this.max=Kt,this.minViewedMonth=Nt,this.maxViewedMonth=Kt,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=null,this.dayClick=new q,this.monthChange=new q,this.hoveredItemChange=new q,this.disabledItemHandlerMapper=(t,i,o)=>a=>a.dayBefore(i)||a.dayAfter(o)||t(a)}set value(t){this.day=t,this.showAdjacent&&t instanceof G&&(this.month=t)}set initialView(t){this.view=t}get value(){return this.day}onPaginationValueChange(t){this.updateViewedMonth(t)}onDayClick(t){this.dayClick.emit(t)}onHoveredItemChange(t){this.updateHoveredDay(t)}get computedMin(){return this.min??Nt}get computedMax(){return this.max??Kt}get computedMinViewedMonth(){let t=this.computedMin,i=this.minViewedMonth??Nt;return i.monthSameOrAfter(t)?i:t}get computedMaxViewedMonth(){let t=this.computedMax,i=this.maxViewedMonth??Kt;return i.monthSameOrBefore(t)?i:t}get isInYearView(){return this.view==="year"}onPaginationYearClick(){this.view="year"}onPickerYearClick(t){this.view="month",this.updateViewedMonth(new Ct(t,this.month.month))}updateViewedMonth(t){this.month.monthSame(t)||(this.month=t,this.monthChange.emit(t))}updateHoveredDay(t){le(this.hoveredItem,t,(i,o)=>i.daySame(o))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-calendar"]],inputs:{month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value",initialView:"initialView"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},standalone:!0,features:[P],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(i,o){if(i&1&&_(0,Ic,2,4,"tui-scrollbar",1)(1,Dc,3,14,"ng-template",null,0,J),i&2){let a=V(2);u("ngIf",o.isInYearView)("ngIfElse",a)}},dependencies:[Y,Cn,kc,Ec,Sc,Ce],styles:["[_nghost-%COMP%]{display:block;min-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});let n=e;return n})();function Oi(n,e=0){return Ac(n)?Number(n):e}function Ac(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Qa(n){return n instanceof St?n.nativeElement:n}var Vc={size:"m",collapsed:!1,rounded:!0,orientation:"horizontal"},Rc=tt(Vc);var Lc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-group-styles"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,o){},styles:[`.tui-group{position:relative;display:flex;isolation:isolate;--t-radius: var(--tui-radius-m)}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group.tui-group>*:nth-child(n){border-radius:0}.tui-group_radius_large{--t-radius: var(--tui-radius-l)}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>*:not(:last-child){margin:0 -1px 0 0}.tui-group_collapsed>*._readonly,.tui-group_collapsed>*._disabled,.tui-group_collapsed>*._readonly:hover,.tui-group_collapsed>*._disabled:hover{z-index:0}.tui-group_collapsed>*._invalid{z-index:2}.tui-group_collapsed>*._invalid:hover,.tui-group_collapsed>*._invalid._hovered,.tui-group_collapsed>*._invalid._pressed{z-index:4}.tui-group_collapsed>*:hover,.tui-group_collapsed>*._hovered,.tui-group_collapsed>*._pressed{z-index:3}.tui-group_collapsed>*._hosted_dropdown_focused,.tui-group_collapsed>*._focus-visible,.tui-group_collapsed>*._focused.ng-touched,.tui-group_collapsed>*._focused.ng-untouched{z-index:5}.tui-group_collapsed>*._active,.tui-group_collapsed>*[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>*:has([tuiBlock]:checked){z-index:6}.tui-group_collapsed>*._focus-visible._focused,.tui-group_collapsed>*._focus-visible._active,.tui-group_collapsed>*._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>*:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin:0 0 -1px}.tui-group_rounded.tui-group_orientation_horizontal>*:first-child{border-top-left-radius:var(--t-radius);border-bottom-left-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_horizontal>*:last-child{border-top-right-radius:var(--t-radius);border-bottom-right-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:first-child{border-top-left-radius:var(--t-radius);border-top-right-radius:var(--t-radius)}.tui-group_rounded.tui-group_orientation_vertical>*:last-child{border-bottom-left-radius:var(--t-radius);border-bottom-right-radius:var(--t-radius)}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group .tui-group__inherit-item{border-radius:inherit} +`],encapsulation:2,changeDetection:0});let n=e;return n})(),Fn=(()=>{let e=class e{constructor(){this.options=h(Rc),this.nothing=ke(Lc),this.orientation=this.options.orientation,this.collapsed=this.options.collapsed,this.rounded=this.options.rounded,this.size=this.options.size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["role","group",1,"tui-group"],hostVars:10,hostBindings:function(i,o){i&2&&N("tui-group_orientation_horizontal",o.orientation==="horizontal")("tui-group_orientation_vertical",o.orientation==="vertical")("tui-group_radius_large",o.size==="l")("tui-group_collapsed",o.collapsed)("tui-group_rounded",o.rounded)},inputs:{orientation:"orientation",collapsed:"collapsed",rounded:"rounded",size:"size"},standalone:!0});let n=e;return n})();var An=(()=>{let e=class e{constructor(){this.destroyRef=h(fe),this.zone=h(Dt),this.host=bt(),this.tuiNativeValidator="Invalid"}validate(t){return this.control=t,Ui(0).pipe(bi(this.zone),Xr(this.destroyRef)).subscribe(()=>this.handleValidation()),null}handleValidation(){var t,i,o,a;(a=(o=this.el).setCustomValidity)==null||a.call(o,(t=this.control)!=null&&t.touched&&((i=this.control)!=null&&i.invalid)?this.tuiNativeValidator:"")}get el(){return this.host.querySelector("input,textarea,select")||this.host}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiNativeValidator",""]],hostBindings:function(i,o){i&1&&O("blur",function(){return o.handleValidation()})},inputs:{tuiNativeValidator:"tuiNativeValidator"},standalone:!0,features:[k([gt(Ar,e,!0)])]});let n=e;return n})();var xo={appearance:"textfield",size:"l",cleaner:!0},Xa=tt({appearance:Zi(xo.appearance),size:Zi(xo.size),cleaner:Zi(xo.cleaner)});function Ka(n){let{anchorOffset:e=0,focusOffset:r=0}=n.ownerDocument.getSelection()||{},t=Math.min(e,r),i=Math.max(e,r);return[t,i]}function Nc(n,[e,r]){var t,i;let o=n.ownerDocument,a=o.createRange();a.setStart(n.firstChild||n,Math.min(e,((t=n.textContent)===null||t===void 0?void 0:t.length)||0)),a.setEnd(n.lastChild||n,Math.min(r,((i=n.textContent)===null||i===void 0?void 0:i.length)||0));let s=o.getSelection();s&&(s.removeAllRanges(),s.addRange(a))}var To=class{constructor(e){this.element=e,this.maxLength=1/0}get value(){return this.element.innerText.replace(/\n\n$/,` +`)}set value(e){this.element.innerHTML=e.replace(/\n$/,` + +`)}get selectionStart(){return Ka(this.element)[0]}get selectionEnd(){return Ka(this.element)[1]}setSelectionRange(e,r){Nc(this.element,[e||0,r||0])}select(){this.setSelectionRange(0,this.value.length)}};function zc(n){let e=new To(n);return new Proxy(n,{get(r,t){if(t in e)return e[t];let i=r[t];return typeof i=="function"?i.bind(r):i},set(r,t,i,o){return Reflect.set(t in e?e:r,t,i,o)}})}var es=n=>n.isContentEditable?zc(n):n.querySelector("input,textarea")||n,te={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},Mo=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let e=this.past.pop();e&&this.now&&(this.future.push(this.now),this.updateElement(e,"historyUndo"))}redo(){let e=this.future.pop();e&&this.now&&(this.past.push(this.now),this.updateElement(e,"historyRedo"))}updateHistory(e){if(!this.now){this.now=e;return}let r=this.now.value!==e.value,t=this.now.selection.some((i,o)=>i!==e.selection[o]);!r&&!t||(r&&(this.past.push(this.now),this.future=[]),this.now=e)}updateElement(e,r){this.now=e,this.updateElementState(e,{inputType:r,data:null})}};function Hc(n,...e){return e.every(({value:r})=>r===n.value)}function Bc(n,...e){return e.every(({value:r,selection:t})=>r===n.value&&t[0]===n.selection[0]&&t[1]===n.selection[1])}function jc({value:n,selection:e},r,t){let[i,o]=e,a=typeof t=="function"?t({value:n,selection:e}):t;return{value:n,selection:a==="replace"?[i,i+r.length]:[i,o]}}function Nn(n){return typeof n=="string"}function qa(n,e,r,t){let i="";for(let o=e.length;o{let i=e[t];return Nn(i)?r===i:r.match(i)}):e.test(n)}function Uc(n,e,r){let t=null,i=null,o=Array.from(n.value).reduce((s,l,d)=>{let f=qa(e,s,l,r),v=s+f,b=e[v.length];return Nn(b)?v+b:l.match(b)?(t===null&&d>=n.selection[0]&&(t=v.length),i===null&&d>=n.selection[1]&&(i=v.length),v+l):v},""),a=qa(e,o,"",r);return{value:is(o+a,e)?o+a:o,selection:[t??o.length,i??o.length]}}function $c({value:n,selection:e},r){let[t,i]=e,o=t,a=i;return{value:Array.from(n).reduce((l,d,f)=>{let v=l+d;return t===f&&(o=l.length),i===f&&(a=l.length),v.match(r)?v:l},""),selection:[o,a]}}function Vn(n,e,r=null){if(is(n.value,e))return n;let{value:t,selection:i}=Array.isArray(e)?Uc(n,e,r):$c(n,e);return{selection:i,value:Array.isArray(e)?t.slice(0,e.length):t}}function Ja(n,e){if(!Array.isArray(e))return n;let[r,t]=n.selection,i=[],o=Array.from(n.value).reduce((a,s,l)=>{let d=e[l];return l===r&&i.push(a.length),l===t&&i.push(a.length),Nn(d)&&d===s?a:a+s},"");return i.length<2&&i.push(...new Array(2-i.length).fill(o.length)),{value:o,selection:[i[0],i[1]]}}var Ii=class{constructor(e,r){this.initialElementState=e,this.maskOptions=r,this.value="",this.selection=[0,0];let{value:t,selection:i}=Vn(this.initialElementState,this.getMaskExpression(this.initialElementState));this.value=t,this.selection=i}addCharacters([e,r],t){let{value:i}=this,o=this.getMaskExpression({value:i.slice(0,e)+t+i.slice(r),selection:[e+t.length,e+t.length]}),a={value:i,selection:[e,r]},s=Ja(a,o),[l,d]=jc(s,t,this.maskOptions.overwriteMode).selection,f=s.value.slice(0,l)+t,v=f.length,b=Vn({value:f+s.value.slice(d),selection:[v,v]},o,a);if(i.slice(0,l)===Vn({value:f,selection:[v,v]},o,a).value||Bc(this,b))throw new Error("Invalid mask value");this.value=b.value,this.selection=b.selection}deleteCharacters([e,r]){if(e===r||!r)return;let{value:t}=this,i=this.getMaskExpression({value:t.slice(0,e)+t.slice(r),selection:[e,e]}),o={value:t,selection:[e,r]},a=Ja(o,i),[s,l]=a.selection,d=a.value.slice(0,s)+a.value.slice(l),f=Vn({value:d,selection:[s,s]},i,o);this.value=f.value,this.selection=f.selection}getMaskExpression(e){let{mask:r}=this.maskOptions;return typeof r=="function"?r(e):r}},Oo=class{constructor(e){this.element=e,this.listeners=[]}listen(e,r,t){let i=r;this.element.addEventListener(e,i,t),this.listeners.push(()=>this.element.removeEventListener(e,i))}destroy(){this.listeners.forEach(e=>e())}},Jt={CTRL:1,ALT:2,SHIFT:4,META:8},wi={Y:89,Z:90};function Pi(n,e,r){return n.ctrlKey===!!(e&Jt.CTRL)&&n.altKey===!!(e&Jt.ALT)&&n.shiftKey===!!(e&Jt.SHIFT)&&n.metaKey===!!(e&Jt.META)&&n.keyCode===r}function Wc(n){return Pi(n,Jt.CTRL,wi.Y)||Pi(n,Jt.CTRL|Jt.SHIFT,wi.Z)||Pi(n,Jt.META|Jt.SHIFT,wi.Z)}function Gc(n){return Pi(n,Jt.CTRL,wi.Z)||Pi(n,Jt.META,wi.Z)}function zn(n,e){var r;let t=n.value;if(typeof e=="string")n.value=e;else{let[i,o]=e.selection;n.value=e.value,n.matches(":focus")&&((r=n.setSelectionRange)===null||r===void 0||r.call(n,i,o))}n.value!==t&&n.dispatchEvent(new Event("input",{bubbles:!0}))}function Yc({value:n,selection:e},r){let[t,i]=e;if(t!==i)return[t,i];let o=r?n.slice(t).indexOf(` +`)+1||n.length:n.slice(0,i).lastIndexOf(` +`)+1;return[r?t:o,r?o:i]}function Qc({value:n,selection:e},r){let[t,i]=e;return t!==i?[t,i]:(r?[t,i+1]:[t-1,i]).map(a=>Math.min(Math.max(a,0),n.length))}var Zc=/\s+$/g,Xc=/^\s+/g,ts=/\s/;function Kc({value:n,selection:e},r){let[t,i]=e;if(t!==i)return[t,i];if(r){let l=n.slice(t),[d]=l.match(Xc)||[""],f=l.trimStart().search(ts);return[t,f!==-1?t+d.length+f:n.length]}let o=n.slice(0,i),[a]=o.match(Zc)||[""],s=o.trimEnd().split("").reverse().findIndex(l=>l.match(ts));return[s!==-1?i-a.length-s:0,i]}function Rn(n=[]){return(e,...r)=>n.reduce((t,i)=>Object.assign(Object.assign({},t),i(t,...r)),e)}function qe(n,e){let r=Object.assign(Object.assign({},te),e),t=Rn(r.preprocessors),i=Rn(r.postprocessors),o=typeof n=="string"?{value:n,selection:[0,0]}:n,{elementState:a}=t({elementState:o,data:""},"validation"),s=new Ii(a,r),{value:l,selection:d}=i(s,o);return typeof n=="string"?l:{value:l,selection:d}}var Ln=class extends Mo{constructor(e,r){super(),this.element=e,this.maskitoOptions=r,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new Oo(this.element),this.options=Object.assign(Object.assign({},te),this.maskitoOptions),this.preprocessor=Rn(this.options.preprocessors),this.postprocessor=Rn(this.options.postprocessors),this.teardowns=this.options.plugins.map(t=>t(this.element,this.options)),this.updateHistory(this.elementState),this.eventListener.listen("keydown",t=>{if(Wc(t))return t.preventDefault(),this.redo();if(Gc(t))return t.preventDefault(),this.undo()}),this.eventListener.listen("beforeinput",t=>{var i;let o=t.inputType.includes("Forward");switch(this.updateHistory(this.elementState),t.inputType){case"historyUndo":return t.preventDefault(),this.undo();case"historyRedo":return t.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:t,isForward:o,selection:Qc(this.elementState,o)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:t,isForward:o,selection:Kc(this.elementState,o),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:t,isForward:o,selection:Yc(this.elementState,o),force:!0});case"insertCompositionText":return;case"insertReplacementText":return;case"insertLineBreak":case"insertParagraph":return this.handleEnter(t);case"insertFromPaste":case"insertText":case"insertFromDrop":default:return this.handleInsert(t,t.data||((i=t.dataTransfer)===null||i===void 0?void 0:i.getData("text/plain"))||"")}}),this.eventListener.listen("input",({inputType:t})=>{t!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}get elementState(){let{value:e,selectionStart:r,selectionEnd:t}=this.element;return{value:e,selection:[r||0,t||0]}}get maxLength(){let{maxLength:e}=this.element;return e===-1?1/0:e}destroy(){this.eventListener.destroy(),this.teardowns.forEach(e=>e==null?void 0:e())}updateElementState({value:e,selection:r},t={inputType:"insertText",data:null}){let i=this.elementState.value;this.updateValue(e),this.updateSelectionRange(r),i!==e&&this.dispatchInputEvent(t)}updateSelectionRange([e,r]){var t;let{element:i}=this;i.matches(":focus")&&(i.selectionStart!==e||i.selectionEnd!==r)&&((t=i.setSelectionRange)===null||t===void 0||t.call(i,e,r))}updateValue(e){this.element.value=e}ensureValueFitsMask(){this.updateElementState(qe(this.elementState,this.options))}dispatchInputEvent(e={inputType:"insertText",data:null}){globalThis.InputEvent&&this.element.dispatchEvent(new InputEvent("input",Object.assign(Object.assign({},e),{bubbles:!0,cancelable:!1})))}handleDelete({event:e,selection:r,isForward:t,force:i=!1}){let o={value:this.elementState.value,selection:r},[a,s]=o.selection,{elementState:l}=this.preprocessor({elementState:o,data:""},t?"deleteForward":"deleteBackward"),d=new Ii(l,this.options),[f,v]=l.selection;d.deleteCharacters([f,v]);let b=this.postprocessor(d,o);if(!(o.value.slice(0,a)+o.value.slice(s)===b.value&&!i&&!this.element.isContentEditable)){if(e.preventDefault(),Hc(o,l,d,b))return this.updateSelectionRange(t?[v,v]:[f,f]);this.updateElementState(b,{inputType:e.inputType,data:null}),this.updateHistory(b)}}handleInsert(e,r){let t=this.elementState,{elementState:i,data:o=r}=this.preprocessor({data:r,elementState:t},"insert"),a=new Ii(i,this.options);try{a.addCharacters(i.selection,o)}catch{return e.preventDefault()}let[s,l]=i.selection,d=t.value.slice(0,s)+r+t.value.slice(l),f=this.postprocessor(a,t);if(f.value.length>this.maxLength)return e.preventDefault();(d!==f.value||this.element.isContentEditable)&&(e.preventDefault(),this.updateElementState(f,{data:r,inputType:e.inputType}),this.updateHistory(f))}handleEnter(e){(this.isTextArea||this.element.isContentEditable)&&this.handleInsert(e,` +`)}};var wo=(()=>{let e=class e{constructor(){return this.nativeElement=bt(),new St(this.nativeElement)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiElement",""]],exportAs:["elementRef"],standalone:!0});let n=e;return n})();var ns=(()=>{let e=class e{constructor(){this.el=bt(),this.playbackRate=1,this.volume=1,this.currentTimeChange=new q,this.pausedChange=new q,this.volumeChange=new q}set playbackRateSetter(t){this.updatePlaybackRate(t)}set currentTime(t){Math.abs(t-this.currentTime)>.05&&(this.el.currentTime=t)}set paused(t){var i,o,a,s;t?(o=(i=this.el).pause)==null||o.call(i):((s=(a=this.el).play)==null||s.call(a),this.updatePlaybackRate(this.playbackRate))}get currentTime(){return this.el.currentTime??0}get paused(){return!!this.el.paused}onPausedChange(t){this.pausedChange.emit(t),this.updatePlaybackRate(this.playbackRate)}onVolumeChange(){this.volume=this.el.volume,this.volumeChange.emit(this.volume)}onCurrentTimeChange(){this.currentTimeChange.emit(this.currentTime)}updatePlaybackRate(t){this.playbackRate=t,this.el.playbackRate=this.playbackRate}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["video","tuiMedia",""],["audio","tuiMedia",""]],hostVars:1,hostBindings:function(i,o){i&1&&O("durationchange",function(){return 0})("ended",function(){return o.onPausedChange(!0)})("pause",function(){return o.onPausedChange(!0)})("play",function(){return o.onPausedChange(!1)})("volumechange",function(){return o.onVolumeChange()})("timeupdate",function(){return o.onCurrentTimeChange()})("seeking",function(){return o.onCurrentTimeChange()})("seeked",function(){return o.onCurrentTimeChange()}),i&2&&Ht("volume",o.volume)},inputs:{volume:"volume",playbackRateSetter:[0,"playbackRate","playbackRateSetter"],currentTime:"currentTime",paused:"paused"},outputs:{currentTimeChange:"currentTimeChange",pausedChange:"pausedChange",volumeChange:"volumeChange"},exportAs:["tuiMedia"],standalone:!0});let n=e;return n})();var os=(()=>{let e=class e{transform(t,i,...o){return t.filter(a=>i(a,...o))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=Lt({name:"tuiFilter",type:e,pure:!0,standalone:!0});let n=e;return n})();var qc=["*",[["tui-badge-notification","tuiSlot","top"]],[["","tuiSlot","top"]],[["tui-badge-notification","tuiSlot","bottom"]],[["","tuiSlot","bottom"]]],Jc=["*","tui-badge-notification[tuiSlot='top']","[tuiSlot='top']","tui-badge-notification[tuiSlot='bottom']","[tuiSlot='bottom']"],rs=(()=>{let e=class e{constructor(){this.tuiSlot="top"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiSlot",""]],inputs:{tuiSlot:"tuiSlot"},standalone:!0});let n=e;return n})(),as=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-badged-content"]],standalone:!0,features:[P],ngContentSelectors:Jc,decls:11,vars:4,consts:[["badgeTop",""],["badgeBottom",""],[1,"t-badge","t-badge_top",3,"waResizeObserver"],[1,"t-border"],[1,"t-badge","t-badge_bottom",3,"waResizeObserver"]],template:function(i,o){if(i&1){let a=A();ht(qc),j(0),p(1,"div",2,0),O("waResizeObserver",function(){return C(a),y(0)}),j(3,1),p(4,"div",3),j(5,2),m()(),p(6,"div",4,1),O("waResizeObserver",function(){return C(a),y(0)}),j(8,3),p(9,"div",3),j(10,4),m()()}if(i&2){let a=V(2),s=V(7);c(),w("--t-badge-height",a.offsetHeight,"px"),c(5),w("--t-badge-height",s.offsetHeight,"px")}},dependencies:[Ia],styles:["[_nghost-%COMP%]{--tui-radius: var(--tui-radius-l);--t-badge-height: 0;--t-corner-offset: calc((var(--tui-radius) * 1.4142 - var(--tui-radius)) * 1 / 1.4142);position:relative;display:inline-block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-max-content;width:max-content;color:var(--tui-background-base)}.t-badge[_ngcontent-%COMP%]{--t-offset: calc(var(--t-badge-height) * -.5 + var(--t-corner-offset));position:absolute;display:flex}.t-badge_top[_ngcontent-%COMP%]{top:var(--t-offset);right:var(--t-offset)}.t-badge_bottom[_ngcontent-%COMP%]{bottom:var(--t-offset);right:var(--t-offset)}.t-border[_ngcontent-%COMP%]:not(:empty){display:flex;border-radius:6rem;box-shadow:0 0 0 1px currentColor;background:currentColor}"],changeDetection:0});let n=e;return n})();var tu={appearance:"whiteblock",size:"l"},ss=tt(tu);var eu=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-block"],standalone:!0,features:[P],decls:0,vars:0,template:function(i,o){},styles:[`[tuiBlock]{position:relative;display:inline-flex;gap:1rem;color:var(--tui-text-primary);border-radius:var(--t-radius);min-height:var(--t-height);margin:0;box-sizing:border-box;cursor:pointer;overflow:hidden}[tuiBlock][data-size=s]{gap:.5rem;font:var(--tui-font-text-ui-s);padding:.5rem;--t-height: var(--tui-height-s);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=s] [tuiSubtitle]{font:var(--tui-font-text-ui-xs)}[tuiBlock][data-size=s] [tuiTooltip]{margin:0 .125rem}[tuiBlock][data-size=m]{gap:.625rem;font:var(--tui-font-text-ui-m);padding:var(--tui-padding-m);--t-height: var(--tui-height-m);--t-radius: var(--tui-radius-m)}[tuiBlock][data-size=m] input:not([tuiBlock]){margin:.125rem}[tuiBlock][data-size=m] [tuiTooltip]{margin:.125rem}[tuiBlock][data-size=l]{gap:.75rem;font:var(--tui-font-text-m);padding:var(--tui-padding-l);--t-height: var(--tui-height-l);--t-radius: var(--tui-radius-l)}[tuiBlock][data-size=l] [tuiTooltip]{margin:.25rem}[tuiBlock]._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}[tuiBlock]._disabled :focus{visibility:hidden}[tuiBlock][data-appearance=""]{justify-content:center}[tuiBlock] input[tuiBlock]{position:absolute;top:0;left:0;width:100%;height:100%;min-height:0;pointer-events:none;border-radius:inherit}[tuiBlock] tui-avatar{margin:-.25rem}[tuiBlock] [tuiTitle]{flex:1;gap:0;font:inherit;color:var(--tui-text-primary)}[tuiBlock] [tuiSubtitle]{color:var(--tui-text-secondary)}[tuiBlock] [tuiTooltip]{vertical-align:bottom;font-size:1rem;border:none} +`],encapsulation:2,changeDetection:0});let n=e;return n})(),Hn=(()=>{let e=class e{constructor(){this.nothing=ke(eu),this.size=h(ss).size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["label","tuiBlock",""],["input","tuiBlock",""]],contentQueries:function(i,o,a){if(i&1&&ae(a,se,5),i&2){let s;Q(s=Z())&&(o.control=s.first)}},hostAttrs:["tuiBlock",""],hostVars:3,hostBindings:function(i,o){i&2&&(B("data-size",o.size||"l"),N("_disabled",!!(o.control!=null&&o.control.disabled)))},inputs:{size:[0,"tuiBlock","size"]},standalone:!0,features:[k([ln(ss),Da({size:"s"})]),ze([An,Ge,fn])]});let n=e;return n})();var cs=(n,e,r,t)=>[n,e,r,t,!1],us=(n,e,r,t)=>[n,e,r,t,!0],iu=(n,e,r,t,i,o)=>[n,e,r,t,i,o];function nu(n,e){if(n&1){let r=A();p(0,"tui-calendar",3),S(1,"tuiMapper"),S(2,"tuiMapper"),S(3,"tuiMapper"),S(4,"tuiMapper"),jt("hoveredItemChange",function(i){C(r);let o=g();return kt(o.hoveredItem,i)||(o.hoveredItem=i),y(i)}),O("dayClick",function(i){C(r);let o=g();return y(o.onDayClick(i))})("monthChange",function(i){C(r);let o=g();return y(o.onMonthChange(i.append({month:-1})))})("mousedown.prevent.silent",function(){return C(r),y(0)}),m()}if(n&2){let r=g();u("disabledItemHandler",r.calculatedDisabledItemHandler)("markerHandler",r.markerHandler)("max",Te(1,9,vi(29,cs,r.max,r.capsMapper,r.value,r.maxLength)))("min",Te(2,15,vi(34,us,r.min,r.capsMapper,r.value,r.maxLength)))("minViewedMonth",xe(3,21,r.defaultViewedMonth,r.monthOffset,1))("month",xe(4,25,r.defaultViewedMonth,r.monthOffset,1))("showAdjacent",!1)("value",r.value),Bt("hoveredItem",r.hoveredItem)}}function ou(n,e){if(n&1&&x(0,"tui-icon",8),n&2){let r=g(3);w("font-size",1,"rem"),u("icon",r.icons.check)}}function ru(n,e){if(n&1){let r=A();p(0,"button",6),O("click",function(){let i=C(r).$implicit,o=g(2);return y(o.onItemSelect(i))})("mousedown.prevent.silent",function(){return C(r),y(0)}),T(1),_(2,ou,1,3,"tui-icon",7),m()}if(n&2){let r=e.$implicit,t=g(2);B("aria-checked",t.isItemActive(r)),c(),F(" ",r," "),c(),u("ngIf",t.isItemActive(r))}}function au(n,e){if(n&1&&(p(0,"tui-data-list",4),_(1,ru,3,3,"button",5),S(2,"async"),S(3,"tuiMapper"),m()),n&2){let r=g();w("flex",1),c(),u("ngForOf",Te(3,5,Pr(12,iu,r.items,r.mapper,r.min,r.max,r.minLength,L(2,3,r.otherDateText$))))}}var su=(n,e,r,t)=>{if(!(e!=null&&e.isSingleDay)||!r)return t?n||Nt:n||Kt;let i=Object.fromEntries(Object.entries(r).map(([a,s])=>[a,-s])),o=e.from.append(t?i:r).append({day:t?1:-1});return t?o.dayBefore(n||Nt)?n||Nt:o:n&&o.dayAfter(n)?n:o},Di=(()=>{let e=class e{constructor(){var t;this.otherDateText$=h(ka),this.icons=h(un),this.cdr=h(Zt),this.previousValue=null,this.hoveredItem=null,this.capsMapper=su,this.defaultViewedMonth=Ct.currentLocal(),this.disabledItemHandler=ce,this.markerHandler=null,this.items=[],this.min=Nt,this.max=Kt,this.minLength=null,this.maxLength=null,this.value=null,this.valueChange=new q,this.selectedActivePeriod=null,this.monthOffset=(i,o)=>i.append({month:o}),this.mapper=(i,o,a,s,l)=>[...i.filter(d=>(s===null||d.range.from.append(s).daySameOrBefore(d.range.to))&&(o===null||d.range.to.daySameOrAfter(o))&&(a===null||d.range.from.daySameOrBefore(a))),l||""],(t=h(Ea,{optional:!0}))==null||t.pipe($t(this.cdr),ft()).subscribe(i=>{this.value=i})}ngOnChanges(){var t;this.defaultViewedMonth=((t=this.value)==null?void 0:t.from)||this.defaultViewedMonth}get calculatedDisabledItemHandler(){return this.calculateDisabledItemHandler(this.disabledItemHandler,this.value,this.minLength)}onEsc(t){var i;t.key!=="Escape"||!((i=this.value)!=null&&i.isSingleDay)||(t.stopPropagation(),this.value=this.previousValue)}isItemActive(t){let{activePeriod:i}=this;return Ci(t)&&i===null||i===t}onItemSelect(t){Ci(t)?this.activePeriod!==null&&(this.selectedActivePeriod=null,this.updateValue(null)):(this.selectedActivePeriod=t,this.updateValue(t.range.dayLimit(this.min,this.max)))}onMonthChange(t){this.defaultViewedMonth=t}onDayClick(t){var i;this.previousValue=this.value,this.selectedActivePeriod=null,(i=this.value)!=null&&i.isSingleDay?this.updateValue(Ot.sort(this.value.from,t)):this.value=new Ot(t,t)}updateValue(t){this.value=t,this.valueChange.emit(t)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(t=>le(this.value,t.range,(i,o)=>i.from.daySame(o.from.dayLimit(this.min,this.max))&&i.to.daySame(o.to.dayLimit(this.min,this.max))))||null)}calculateDisabledItemHandler(t,i,o){return a=>{if(!(i!=null&&i.isSingleDay)||!o)return t(a);let s=Object.fromEntries(Object.entries(o).map(([v,b])=>[v,-b])),l=i.from.append(s).append({day:1}),d=i.from.append(o).append({day:-1});return l.dayBefore(a)&&d.dayAfter(a)||t(a)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-calendar-range"]],hostBindings:function(i,o){i&1&&O("keydown.capture",function(s){return o.onEsc(s)},!1,Tr)},inputs:{defaultViewedMonth:"defaultViewedMonth",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength",value:"value"},outputs:{valueChange:"valueChange"},standalone:!0,features:[be,P],decls:7,vars:37,consts:[["presets",""],["automation-id","tui-calendar-range__calendar",1,"t-calendar",3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","maxViewedMonth","min","month","showAdjacent","value","hoveredItem"],[3,"disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem","hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent",4,"ngIf","ngIfElse"],[3,"hoveredItemChange","dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem"],["automation-id","tui-calendar-range__menu","role","menu"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent",4,"ngFor","ngForOf"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","",3,"click","mousedown.prevent.silent"],["automation-id","tui-calendar-range__checkmark",3,"icon","font-size",4,"ngIf"],["automation-id","tui-calendar-range__checkmark",3,"icon"]],template:function(i,o){if(i&1){let a=A();p(0,"tui-calendar",1),S(1,"tuiMapper"),S(2,"tuiMapper"),S(3,"tuiMapper"),jt("hoveredItemChange",function(l){return C(a),kt(o.hoveredItem,l)||(o.hoveredItem=l),y(l)}),O("dayClick",function(l){return C(a),y(o.onDayClick(l))})("monthChange",function(l){return C(a),y(o.onMonthChange(l))})("mousedown.prevent.silent",function(){return C(a),y(0)}),m(),_(4,nu,5,39,"tui-calendar",2)(5,au,4,19,"ng-template",null,0,J)}if(i&2){let a=V(6);u("disabledItemHandler",o.calculatedDisabledItemHandler)("markerHandler",o.markerHandler)("max",Te(1,11,vi(27,cs,o.max,o.capsMapper,o.value,o.maxLength)))("maxViewedMonth",o.items.length?null:xe(2,17,o.defaultViewedMonth,o.monthOffset,-1))("min",Te(3,21,vi(32,us,o.min,o.capsMapper,o.value,o.maxLength)))("month",o.defaultViewedMonth)("showAdjacent",!!o.items.length)("value",o.value),Bt("hoveredItem",o.hoveredItem),c(4),u("ngIf",!o.items.length)("ngIfElse",a)}},dependencies:[$,Y,nt,Ce,Ke,ve,qt,W],styles:["[_nghost-%COMP%]{display:flex;min-width:30rem}.t-calendar[_ngcontent-%COMP%]{border-right:1px solid var(--tui-border-normal)}"],changeDetection:0});let n=e;return et([ot],n.prototype,"calculateDisabledItemHandler",null),n})();var cu=["type","checkbox","tuiCheckbox",""],uu={size:"m",appearance:n=>n.checked||n.indeterminate?"primary":"whiteblock",icons:{checked:()=>"@tui.check",indeterminate:()=>"@tui.minus"}},du=tt(uu);var Bn=(()=>{let e=class e{constructor(){this.appearance=h(X),this.options=h(du),this.resolver=ta(),this.destroyRef=h(fe),this.el=bt(),this.size=this.options.size,this.control=h(se,{optional:!0,self:!0})}ngOnInit(){var t;(t=this.control)!=null&&t.valueChanges&&Zr(this.control).pipe(ft(this.destroyRef)).subscribe(i=>{let o=this.control instanceof Mt&&i===null?this.control.model:i;this.el.indeterminate=o===null})}ngDoCheck(){this.appearance.tuiAppearance=this.options.appearance(this.el)}getIcon(t){let i=this.options.icons[t],o=Ci(i)?i:i(this.size);return`url(${this.resolver(o)})`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["input","type","checkbox","tuiCheckbox",""]],hostVars:8,hostBindings:function(i,o){i&2&&(Ht("disabled",!o.control||o.control.disabled),B("data-size",o.size),w("--t-checked",o.getIcon("checked"))("--t-indeterminate",o.getIcon("indeterminate")),N("_readonly",!o.control))},inputs:{size:"size"},standalone:!0,features:[ze([Ge,An]),P],attrs:cu,decls:0,vars:0,template:function(i,o){},styles:[`[_nghost-%COMP%]{--t-size: 1.5rem;--t-radius: var(--tui-radius-s);width:var(--t-size);height:var(--t-size);border-radius:var(--t-radius);cursor:pointer;margin:0;flex-shrink:0}[_nghost-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background:currentColor;-webkit-mask:url('data:image/svg+xml,') center / 100%;mask:url('data:image/svg+xml,') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out}[_nghost-%COMP%]:disabled._readonly{opacity:1}[_nghost-%COMP%]:checked:before, [_nghost-%COMP%]:indeterminate:before{-webkit-mask-image:var(--t-checked);mask-image:var(--t-checked);transform:scale(1);transition:transform var(--tui-duration) ease-in-out,-webkit-mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out;transition:transform var(--tui-duration) ease-in-out,mask 0s ease-in-out,-webkit-mask 0s ease-in-out}[_nghost-%COMP%]:indeterminate:before{-webkit-mask-image:var(--t-indeterminate);mask-image:var(--t-indeterminate)}[data-size=s][_nghost-%COMP%]{--t-size: 1rem;--t-radius: var(--tui-radius-xs)}`],changeDetection:0});let n=e;return n})();function mu(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function hu(n,e){if(n&1){let r=A();p(0,"button",5,1),O("click",function(){let i=C(r).$implicit,o=g(2);return y(o.itemClick.emit(i))}),p(2,"span",6),_(3,mu,2,1,"ng-container",7),m()()}if(n&2){let r=e.$implicit,t=V(1),i=g(2);u("disabled",i.disabledItemHandler(r))("value",r),c(3),u("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(r,t))}}function fu(n,e){if(n&1&&(p(0,"tui-data-list",3),_(1,hu,4,4,"button",4),m()),n&2){let r=g();u("emptyContent",r.emptyContent)("size",r.size),c(),u("ngForOf",r.items)}}function gu(n,e){n&1&&x(0,"tui-loader",8)}var _u=["labels",""];function vu(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function Cu(n,e){if(n&1){let r=A();p(0,"button",7,1),O("click",function(){let i=C(r).$implicit,o=g(3);return y(o.itemClick.emit(i))}),_(2,vu,2,1,"ng-container",8),m()}if(n&2){let r=e.$implicit,t=V(1),i=g(3);u("disabled",i.disabledItemHandler(r))("value",r),c(2),u("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(r,t))}}function yu(n,e){if(n&1&&(p(0,"tui-opt-group",5),_(1,Cu,3,4,"button",6),m()),n&2){let r=e.$implicit,t=e.index,i=g(2);u("label",i.labels[t]),c(),u("ngForOf",r)}}function bu(n,e){if(n&1&&(p(0,"tui-data-list",3),_(1,yu,2,2,"tui-opt-group",4),m()),n&2){let r=g();u("emptyContent",r.emptyContent)("size",r.size),c(),u("ngForOf",r.items)}}function xu(n,e){n&1&&x(0,"tui-loader",9)}var Tu="[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}",Po=(()=>{let e=class e{constructor(){this.itemsHandlers=h(Fa),this.optionsQuery=ge,this.items=[],this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=ba(),this.itemClick=new q,this.itemContent=({$implicit:t})=>this.itemsHandlers.stringify(t)}getContext(t,{nativeElement:i}){return{$implicit:t,active:da(i)}}getOptions(t=!1){return this.optionsQuery.filter(({disabled:i})=>t||!i).map(({value:i})=>i).filter(Ut)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-data-list-wrapper",3,"labels",""]],viewQuery:function(i,o){if(i&1&&ct(qt,5),i&2){let a;Q(a=Z())&&(o.optionsQuery=a)}},inputs:{items:"items",disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"},outputs:{itemClick:"itemClick"},standalone:!0,features:[k([_o(e)]),P],decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-data-list-wrapper__loader",1,"t-loader"]],template:function(i,o){if(i&1&&_(0,fu,2,3,"tui-data-list",2)(1,gu,1,0,"ng-template",null,0,J),i&2){let a=V(2);u("ngIf",o.items)("ngIfElse",a)}},dependencies:[ve,qt,Y,nt,wo,vo,ut],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0});let n=e;return n})(),ds=(()=>{let e=class e extends Po{constructor(){super(...arguments),this.items=[],this.labels=[]}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-data-list-wrapper","labels",""]],inputs:{items:"items",labels:"labels"},standalone:!0,features:[k([_o(e)]),H,P],attrs:_u,decls:3,vars:2,consts:[["loading",""],["elementRef","elementRef"],[3,"emptyContent","size",4,"ngIf","ngIfElse"],[3,"emptyContent","size"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"click","disabled","value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-loader"]],template:function(i,o){if(i&1&&_(0,bu,2,3,"tui-data-list",2)(1,xu,1,0,"ng-template",null,0,J),i&2){let a=V(2);u("ngIf",o.items)("ngIfElse",a)}},dependencies:[ve,qt,xa,Y,nt,wo,ut,vo],styles:[Tu],changeDetection:0});let n=e;return n})();var Je=(()=>{let e=class e{constructor(){this.elementRef=h(St).nativeElement,this.ngZone=h(Dt),this.maskedElement=null,this.options=null,this.elementPredicate=es;let t=h(Ue,{self:!0,optional:!0});if(t){let i=t.writeValue.bind(t);t.writeValue=o=>{i(this.options?qe(String(o??""),this.options):o)}}}ngOnChanges(){return Le(this,null,function*(){var a;let{elementPredicate:t,options:i}=this;if((a=this.maskedElement)==null||a.destroy(),!i)return;let o=yield t(this.elementRef);this.elementPredicate===t&&this.ngZone.runOutsideAngular(()=>{this.maskedElement=new Ln(o,i)})})}ngOnDestroy(){var t;(t=this.maskedElement)==null||t.destroy()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","maskito",""]],inputs:{options:[0,"maskito","options"],elementPredicate:[0,"maskitoElement","elementPredicate"]},standalone:!0,features:[be]});let n=e;return n})();function Oe(n,e,r){let t=Math.min(Number(r),Math.max(Number(e),Number(n)));return n instanceof Date?new Date(t):t}function _s(n){return n.replaceAll(/\W/g,"").length}function ps(n,{day:e,month:r,year:t}={}){let i=new Date(n);return e&&i.setDate(i.getDate()+e),r&&i.setMonth(i.getMonth()+r),t&&i.setFullYear(i.getFullYear()+t),i}var vs=n=>{var e,r,t;return{day:((e=n.match(/d/g))===null||e===void 0?void 0:e.length)||0,month:((r=n.match(/m/g))===null||r===void 0?void 0:r.length)||0,year:((t=n.match(/y/g))===null||t===void 0?void 0:t.length)||0}};function Cs(n){return{day:String(n.getDate()).padStart(2,"0"),month:String(n.getMonth()+1).padStart(2,"0"),year:String(n.getFullYear()).padStart(4,"0"),hours:String(n.getHours()).padStart(2,"0"),minutes:String(n.getMinutes()).padStart(2,"0"),seconds:String(n.getSeconds()).padStart(2,"0"),milliseconds:String(n.getMilliseconds()).padStart(3,"0")}}function Ou(n,e){let r=_s(e),[t=""]=n.match(new RegExp(`(\\D*\\d){${r}}`))||[];return t}function ko(n,e){return n.length!r.match(/^0+$/))}function Ei(n,e,r){let t=_s(e);return n.replace(r,"").match(new RegExp(`(\\D*\\d[^\\d\\s]*){1,${t}}`,"g"))||[]}function ki(n,e){let r=e.replaceAll(/[^dmy]/g,""),t=n.replaceAll(/\D+/g,""),i={day:t.slice(r.indexOf("d"),r.lastIndexOf("d")+1),month:t.slice(r.indexOf("m"),r.lastIndexOf("m")+1),year:t.slice(r.indexOf("y"),r.lastIndexOf("y")+1)};return Object.fromEntries(Object.entries(i).filter(([o,a])=>!!a).sort(([o],[a])=>e.toLowerCase().indexOf(o[0])>e.toLowerCase().indexOf(a[0])?1:-1))}function Fo(n,e){var r,t,i,o,a,s,l;let d=((r=n.year)===null||r===void 0?void 0:r.length)===2?`20${n.year}`:n.year,f=new Date(Number(d??"0"),Number((t=n.month)!==null&&t!==void 0?t:"1")-1,Number((i=n.day)!==null&&i!==void 0?i:"1"),Number((o=e==null?void 0:e.hours)!==null&&o!==void 0?o:"0"),Number((a=e==null?void 0:e.minutes)!==null&&a!==void 0?a:"0"),Number((s=e==null?void 0:e.seconds)!==null&&s!==void 0?s:"0"),Number((l=e==null?void 0:e.milliseconds)!==null&&l!==void 0?l:"0"));return f.setFullYear(Number(d??"0")),f}var ys=", ";function ti({day:n,month:e,year:r,hours:t,minutes:i,seconds:o,milliseconds:a},{dateMode:s,dateTimeSeparator:l=ys,timeMode:d}){var f;let v=((f=s.match(/y/g))===null||f===void 0?void 0:f.length)===2?r==null?void 0:r.slice(-2):r;return(s+(d?l+d:"")).replaceAll(/d+/g,n??"").replaceAll(/m+/g,e??"").replaceAll(/y+/g,v??"").replaceAll(/H+/g,t??"").replaceAll("MSS",a??"").replaceAll(/M+/g,i??"").replaceAll(/S+/g,o??"").replaceAll(/^\D+/g,"").replaceAll(/\D+$/g,"")}var bs={day:31,month:12,year:9999},wu=[".",",","\u0431","\u044E"],Pu=new Date("0001-01-01"),xs=new Date("9999-12-31");var Iu=[":","."];var So="\xA0",Du="\u200B",Un="\u2013",Ao="\u2014",Si="-",jn="\u2212",Vo="\u30FC";function Su({dateString:n,dateModeTemplate:e,dateSegmentsSeparator:r,offset:t,selection:[i,o]}){let a=ki(n,e),s=Object.entries(a),l={};for(let[v,b]of s){let E=ti(l,{dateMode:e}),R=bs[v],rt=E.length&&r.length,vt=t+E.length+rt+vs(e)[v],Pt=vt>=i&&vt===o;if(Pt&&Number(b)>Number(R))return{validatedDateString:"",updatedSelection:[i,o]};if(Pt&&Number(b)<1)return{validatedDateString:"",updatedSelection:[i,o]};l[v]=b}let d=ti(l,{dateMode:e}),f=d.length-n.length;return{validatedDateString:d,updatedSelection:[i+f,o+f]}}var Ts=/[\\^$.*+?()[\]{}|]/g,Eu=new RegExp(Ts.source);function wt(n){return n&&Eu.test(n)?n.replaceAll(Ts,"\\$&"):n}function ee(n,{prefix:e,postfix:r}){var t,i;let o=new RegExp(`^${wt(e)}`),a=new RegExp(`${wt(r)}$`),[s=""]=(t=n.match(o))!==null&&t!==void 0?t:[],[l=""]=(i=n.match(a))!==null&&i!==void 0?i:[],d=n.replace(o,"").replace(a,"");return{extractedPrefix:s,extractedPostfix:l,cleanValue:d}}function ku(n,e){let r="";for(let t=0;tString.fromCharCode(e.charCodeAt(0)-65248))}function Ms({dateModeTemplate:n,dateSegmentSeparator:e,splitFn:r,uniteFn:t}){return({value:i,selection:o})=>{var a;let[s,l]=o,{dateStrings:d,restPart:f=""}=r(i),v=[],b=0;d.forEach(R=>{let rt=ki(R,n),Pt=Object.entries(rt).reduce((It,[Gt,pe])=>{let{validatedSegmentValue:rr,prefixedZeroesCount:pi}=Eo(pe,`${bs[Gt]}`);return b+=pi,Object.assign(Object.assign({},It),{[Gt]:rr})},{});v.push(ti(Pt,{dateMode:n}))});let E=t(v,i)+(!((a=d[d.length-1])===null||a===void 0)&&a.endsWith(e)?e:"")+f;return b&&E.slice(l+b,l+b+e.length)===e&&(b+=e.length),{selection:[s+b,l+b],value:E}}}function Fu({dateModeTemplate:n,firstDateEndSeparator:e,dateSegmentSeparator:r,pseudoFirstDateEndSeparators:t}){return({elementState:i,data:o})=>{let{value:a,selection:s}=i,l=Ou(a,n),d=t.filter(v=>!e.includes(v)&&v!==r),f=new RegExp(`[${d.join("")}]`,"gi");return{elementState:{selection:s,value:l&&a.length>l.length?l+a.slice(l.length).replace(/^[\D\s]*/,e):a},data:o.replace(f,e)}}}function Ro(){return({elementState:n,data:e})=>{let{value:r,selection:t}=n;return{elementState:{selection:t,value:ms(r)},data:ms(e)}}}function Au(n,e){let r=vs(e);return Object.fromEntries(Object.entries(n).map(([t,i])=>{let o=r[t];return[t,i.length===o&&i.match(/^0+$/)?"1".padStart(o,"0"):i]}))}function Os({dateModeTemplate:n,min:e=Pu,max:r=xs,rangeSeparator:t="",dateSegmentSeparator:i="."}){return({value:o,selection:a})=>{let s=t&&o.endsWith(t),l=Ei(o,n,t),d="";for(let f of l){d+=d?t:"";let v=ki(f,n);if(!ko(f,n)){let R=Au(v,n),rt=ti(R,{dateMode:n}),vt=f.endsWith(i)?i:"";d+=rt+vt;continue}let b=Fo(v),E=Oe(b,e,r);d+=ti(Cs(E),{dateMode:n})}return{selection:a,value:d+(s?t:"")}}}function ws({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:r="",dateTimeSeparator:t=ys}){return({elementState:i,data:o})=>{let a=r?new RegExp(`${r}|-`):t,s=o.split(a),l=o.includes(t)?[s[0]]:s;if(l.every(d=>d.trim().split(/\D/).filter(Boolean).length===n.split(e).length)){let d=l.map(f=>Vu(f,n,e)).join(r);return{elementState:i,data:`${d}${o.includes(t)&&t+s[1]||""}`}}return{elementState:i,data:o}}}function Vu(n,e,r){let t=n.split(/\D/).filter(Boolean),i=e.split(r);return t.map((a,s)=>s===i.length-1?a:a.padStart(i[s].length,"0")).join(r)}function Ru(n){let e=new RegExp(`${wt(n)}$`);return n?({value:r,selection:t},i)=>{if(!r&&!i.value.endsWith(n))return{value:r,selection:t};if(!r.endsWith(n)&&!i.value.endsWith(n))return{selection:t,value:r+n};let o=i.value.replace(e,""),a=i.selection[1]>=o.length,s=ku(o,r);return{selection:t,value:Array.from(n).reverse().reduce((l,d,f)=>{let v=l.length-1-f,b=s[v]===d&&a;return l[v]!==d||b?l.slice(0,v+1)+d+l.slice(v+1):l},r)}}:ei}function Lu(n){return n?({value:e,selection:r},t)=>{if(e.startsWith(n)||!e&&!t.value.startsWith(n))return{value:e,selection:r};let[i,o]=r,a=Array.from(n).reduce((l,d,f)=>l[f]===d?l:l.slice(0,f)+d+l.slice(f),e),s=a.length-e.length;return{selection:[i+s,o+s],value:a}}:ei}function Ps({dateModeTemplate:n,dateSegmentsSeparator:e,rangeSeparator:r=""}){return({elementState:t,data:i})=>{let{value:o,selection:a}=t;if(i===e)return{elementState:t,data:a[0]===o.length?i:""};let s=i.replaceAll(new RegExp(`[^\\d${wt(e)}${r}]`,"g"),"");if(!s)return{elementState:t,data:""};let[l,d]=a,f=d+i.length,v=o.slice(0,l)+s+o.slice(f),b=Ei(v,n,r),E="",R=!!r&&v.includes(r);for(let vt of b){let{validatedDateString:Pt,updatedSelection:It}=Su({dateString:vt,dateModeTemplate:n,dateSegmentsSeparator:e,offset:E.length,selection:[l,f]});if(vt&&!Pt)return{elementState:t,data:""};f=It[1],E+=R&&!E?Pt+r:Pt}let rt=E.slice(l,f);return{elementState:{selection:a,value:E.slice(0,l)+rt.split(e).map(vt=>"0".repeat(vt.length)).join(e)+E.slice(f)},data:rt}}}function Lo(n,e,r){return(t,i)=>{let o=()=>e(t,i);return t.addEventListener(n,o,r),()=>t.removeEventListener(n,o,r)}}function Is(n){return e=>{let r=e.ownerDocument,t=0,i=()=>t++,o=()=>{t=Math.max(--t,0)},a=()=>{if(!e.matches(":focus"))return;if(t)return r.addEventListener("mouseup",a,{once:!0,passive:!0});let s=e.selectionStart||0,l=e.selectionEnd||0,[d,f]=n(e.value,[s,l]);(d>s||f{r.removeEventListener("selectionchange",a),r.removeEventListener("mousedown",i),r.removeEventListener("mouseup",o)}}}function Ds(){return({elementState:n},e)=>{let{value:r,selection:t}=n;if(!r||Nu(r,t))return{elementState:n};let[i,o]=t,a=r.slice(i,o).replaceAll(/\d/g,"0"),s=r.slice(0,i)+a+r.slice(o);return e==="validation"||e==="insert"&&i===o?{elementState:{selection:t,value:s}}:{elementState:{selection:e==="deleteBackward"||e==="insert"?[i,i]:[o,o],value:s}}}}function Nu(n,[e,r]){return r===n.length}function Ss({mode:n,separator:e=".",max:r,min:t}){let i=n.split("/").join(e);return Object.assign(Object.assign({},te),{mask:Array.from(i).map(o=>e.includes(o)?o:/\d/),overwriteMode:"replace",preprocessors:[Ro(),Ds(),ws({dateModeTemplate:i,dateSegmentsSeparator:e}),Ps({dateModeTemplate:i,dateSegmentsSeparator:e})],postprocessors:[Ms({dateModeTemplate:i,dateSegmentSeparator:e,splitFn:o=>({dateStrings:[o]}),uniteFn:([o])=>o}),Os({min:t,max:r,dateModeTemplate:i,dateSegmentSeparator:e})]})}var zu=[Si,Un,Ao,jn,Vo];function Hu({dateModeTemplate:n,rangeSeparator:e,minLength:r,maxLength:t,max:i=xs}){return Do(r)&&Do(t)?ei:({value:o,selection:a})=>{let s=Ei(o,n,e);if(s.length!==2||s.some(R=>!ko(R,n)))return{value:o,selection:a};let[l,d]=s.map(R=>Fo(ki(R,n))),f=ps(l,Object.assign(Object.assign({},r),{day:(r==null?void 0:r.day)&&r.day-1})),v=Do(t)?i:ps(l,Object.assign(Object.assign({},t),{day:(t==null?void 0:t.day)&&t.day-1})),b=Oe(d,f,i),E=b>v?v:b;return{selection:a,value:s[0]+e+ti(Cs(E),{dateMode:n})}}}function Bu({dateModeTemplate:n,rangeSeparator:e}){return({value:r,selection:t})=>{let i=Ei(r,n,e),o=i.length===2&&i.every(b=>ko(b,n)),[a,s]=t,l=a>=r.length,d=a===0&&s>=r.length;if(!(l||d)||!o)return{value:r,selection:t};let[f,v]=i.map(b=>Fo(ki(b,n)));return{selection:t,value:f>v?i.reverse().join(e):r}}}function Es({mode:n,min:e,max:r,minLength:t,maxLength:i,dateSeparator:o=".",rangeSeparator:a=`${So}${Un}${So}`}){let s=n.split("/").join(o),l=Array.from(s).map(d=>o.includes(d)?d:/\d/);return Object.assign(Object.assign({},te),{mask:[...l,...Array.from(a),...l],overwriteMode:"replace",preprocessors:[Ro(),Fu({dateModeTemplate:s,dateSegmentSeparator:o,firstDateEndSeparator:a,pseudoFirstDateEndSeparators:zu}),Ds(),ws({dateModeTemplate:s,rangeSeparator:a,dateSegmentsSeparator:o}),Ps({dateModeTemplate:s,rangeSeparator:a,dateSegmentsSeparator:o})],postprocessors:[Ms({dateModeTemplate:s,dateSegmentSeparator:o,splitFn:d=>({dateStrings:Ei(d,s,a)}),uniteFn:(d,f)=>d.reduce((v,b,E)=>v+b+(!E&&f.includes(a)?a:""),"")}),Os({min:e,max:r,dateModeTemplate:s,rangeSeparator:a,dateSegmentSeparator:o}),Hu({dateModeTemplate:s,minLength:t,maxLength:i,max:r,rangeSeparator:a}),Bu({dateModeTemplate:s,rangeSeparator:a})]})}var r0=new RegExp(`[${Iu.map(wt).join("")}]$`);function ju({prefix:n,postfix:e}){return({elementState:r,data:t})=>{let{cleanValue:i}=ee(t,{prefix:n,postfix:e});return{elementState:r,data:i}}}function ks({decimalSeparator:n,isNegativeAllowed:e,precision:r,thousandSeparator:t,prefix:i,postfix:o,decimalPseudoSeparators:a=[],pseudoMinuses:s=[],minusSign:l}){let d=hs(i),f="\\d",v=e?`[${l}${s.map(rt=>`\\${rt}`).join("")}]?`:"",b=t?`[${f}${wt(t).replaceAll(/\s/g,"\\s")}]*`:`[${f}]*`,E=r>0?`([${wt(n)}${a.map(wt).join("")}]${f}{0,${Number.isFinite(r)?r:""}})?`:"",R=hs(o);return new RegExp(`^${d}${v}${b}${E}${R}$`)}function hs(n){return n?`${n.split("").map(e=>`${wt(e)}?`).join("")}`:""}function Ae(n,e="."){let r=!!n.match(new RegExp(`^\\D*[${jn}\\${Si}${Un}${Ao}${Vo}]`)),t=wt(e),i=n.replaceAll(new RegExp(`${t}(?!\\d)`,"g"),"").replaceAll(new RegExp(`[^\\d${t}]`,"g"),"").replace(e,".");return i?Number((r?Si:"")+i):NaN}function Uu(n){let e=String(n),[r,t]=e.split("e-"),i=e;if(t){let[,o]=r.split("."),a=Number(t)+((o==null?void 0:o.length)||0);i=n.toFixed(a)}return i}function Fs(n,{decimalSeparator:e,thousandSeparator:r}){let[t="",i=""]=n.split(e),[,o="",a=""]=t.match(new RegExp(`([^\\d${wt(r)}]+)?(.*)`))||[];return{minus:o,integerPart:a,decimalPart:i}}function $u({decimalSeparator:n,thousandSeparator:e,decimalPseudoSeparators:r=wu}){return r.filter(t=>t!==e&&t!==n)}function Wu({decimalSeparator:n,precision:e,decimalZeroPadding:r,prefix:t,postfix:i}){return e<=0||!r?ei:({value:o,selection:a})=>{let{cleanValue:s,extractedPrefix:l,extractedPostfix:d}=ee(o,{prefix:t,postfix:i});if(Number.isNaN(Ae(s,n)))return{value:o,selection:a};let[f,v=""]=s.split(n);return{value:l+f+n+v.padEnd(e,"0")+d,selection:a}}}function Gu({prefix:n,postfix:e,decimalSeparator:r,thousandSeparator:t}){return({value:i,selection:o})=>{let[a]=o,{cleanValue:s,extractedPrefix:l,extractedPostfix:d}=ee(i,{prefix:n,postfix:e}),{minus:f,integerPart:v,decimalPart:b}=Fs(s,{decimalSeparator:r,thousandSeparator:t}),E=!v&&!b&&s.includes(r);return!v&&!Number(b)&&a===(f+l).length||E?{selection:o,value:l+f+d}:{value:i,selection:o}}}function Yu({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:r,prefix:t,postfix:i,minusSign:o}){let a=!0,s=ks({decimalSeparator:n,decimalPseudoSeparators:e,pseudoMinuses:r,prefix:"",postfix:"",thousandSeparator:"",precision:1/0,isNegativeAllowed:!0,minusSign:o});return({elementState:l,data:d})=>{if(!a)return{elementState:l,data:d};a=!1;let{value:f,selection:v}=l,[b,E]=v,{extractedPrefix:R,cleanValue:rt,extractedPostfix:vt}=ee(f,{prefix:t,postfix:i}),Pt=qe({selection:[Math.max(b-R.length,0),Oe(E-R.length,0,rt.length)],value:rt},{mask:s}),[It,Gt]=Pt.selection;return{elementState:{selection:[It+R.length,Gt+R.length],value:R+Pt.value+vt},data:d}}}function Qu({decimalSeparator:n,thousandSeparator:e,prefix:r,postfix:t}){let i=a=>{let s=wt(e);return a.replace(new RegExp(`^(\\D+)?[0${s}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${s}]+(?=[1-9])`),"$1")},o=(a,s)=>{let l=a.slice(0,s),d=a.slice(s).startsWith("0");return l.length-i(l).length+(d?1:0)};return({value:a,selection:s})=>{let[l,d]=s,{cleanValue:f,extractedPrefix:v,extractedPostfix:b}=ee(a,{prefix:r,postfix:t}),E=f.includes(n),[R,rt=""]=f.split(n),vt=i(R);if(R===vt)return{value:a,selection:s};let Pt=l-o(a,l),It=d-o(a,d);return{value:v+vt+(E?n:"")+rt+b,selection:[Math.max(Pt,0),Math.max(It,0)]}}}function Zu({min:n,max:e,decimalSeparator:r,minusSign:t}){return({value:i,selection:o})=>{let a=Ae(i,r),s=a>0?Math.min(a,e):Math.max(a,n);if(a&&s!==a){let l=`${s}`.replace(".",r).replace(Si,t);return{value:l,selection:[l.length,l.length]}}return{value:i,selection:o}}}function Xu({decimalSeparator:n,thousandSeparator:e,decimalZeroPadding:r}){return({elementState:t,data:i},o)=>{let{value:a,selection:s}=t,[l,d]=s,f=a.slice(l,d),v=r?[n,e]:[e],b=r&&l>a.indexOf(n)&&!!f.match(/^0+$/gi);return o!=="deleteBackward"&&o!=="deleteForward"||!v.includes(f)&&!b?{elementState:t,data:i}:{elementState:{value:a,selection:o==="deleteForward"?[d,d]:[l,l]},data:i}}}function Ku({decimalSeparator:n,precision:e,prefix:r,postfix:t}){let i=new RegExp(`^\\D*${wt(n)}`);return({elementState:o,data:a})=>{let{value:s,selection:l}=o,{cleanValue:d,extractedPrefix:f}=ee(s,{prefix:r,postfix:t}),[v,b]=l,E=Oe(v-f.length,0,d.length),R=Oe(b-f.length,0,d.length);if(e<=0||d.slice(0,E).includes(n)||d.slice(R).includes(n)||!a.match(i))return{elementState:o,data:a};let rt=d.slice(0,E).match(/\d+/);return{elementState:o,data:rt?a:`0${a}`}}}function fs({validCharacter:n,pseudoCharacters:e,prefix:r,postfix:t}){let i=new RegExp(`[${e.join("")}]`,"gi");return({elementState:o,data:a})=>{let{value:s,selection:l}=o,{cleanValue:d,extractedPostfix:f,extractedPrefix:v}=ee(s,{prefix:r,postfix:t});return{elementState:{selection:l,value:v+d.replace(i,n)+f},data:a.replace(i,n)}}}function qu({decimalSeparator:n,prefix:e,postfix:r}){return({elementState:t,data:i})=>{let{value:o,selection:a}=t,[s,l]=a,{cleanValue:d}=ee(o,{prefix:e,postfix:r});return{elementState:t,data:!d.includes(n)||o.slice(s,l+1).includes(n)?i:i.replaceAll(new RegExp(wt(n),"gi"),"")}}}function Ju({thousandSeparator:n,decimalSeparator:e,prefix:r,postfix:t}){if(!n)return ei;let i=(...o)=>o.every(a=>/\s/.test(a));return({value:o,selection:a})=>{let{cleanValue:s,extractedPostfix:l,extractedPrefix:d}=ee(o,{prefix:r,postfix:t}),{minus:f,integerPart:v,decimalPart:b}=Fs(s,{decimalSeparator:e,thousandSeparator:n}),[E,R]=a,[rt,vt]=a,Pt=Array.from(v).reduceRight((It,Gt,pe)=>{let pi=!(!pe&&Gt===n)&&It.length&&(It.length+1)%4===0;return pi&&(Gt===n||i(Gt,n))?n+It:Gt===n&&!pi?(pe&&pe<=E&&rt--,pe&&pe<=R&&vt--,It):pi?(pe<=E&&rt++,pe<=R&&vt++,Gt+n+It):Gt+It},"");return{value:d+f+Pt+(s.includes(e)?e:"")+b+l,selection:[rt,vt]}}}function td({precision:n,decimalSeparator:e,prefix:r,postfix:t}){if(n>0)return ei;let i=new RegExp(`${wt(e)}.*$`,"g");return({elementState:o,data:a})=>{let{value:s,selection:l}=o,{cleanValue:d,extractedPrefix:f,extractedPostfix:v}=ee(s,{prefix:r,postfix:t}),[b,E]=l,R=f+d.replace(i,"")+v;return{elementState:{selection:[Math.min(b,R.length),Math.min(E,R.length)],value:R},data:a.replace(i,"")}}}var gs=[0,0];function ed({decimalSeparator:n,thousandSeparator:e,prefix:r,postfix:t}){let i=Qu({decimalSeparator:n,thousandSeparator:e,prefix:r,postfix:t});return Lo("blur",o=>{let a=i({value:o.value,selection:gs},{value:"",selection:gs}).value;zn(o,a)},{capture:!0})}function id({min:n,max:e,decimalSeparator:r}){return Lo("blur",(t,i)=>{let o=Ae(t.value,r),a=Oe(o,n,e);!Number.isNaN(o)&&o!==a&&zn(t,qe(Uu(a),i))},{capture:!0})}function nd({decimalSeparator:n,prefix:e,postfix:r}){return Lo("blur",t=>{let{cleanValue:i,extractedPostfix:o,extractedPrefix:a}=ee(t.value,{prefix:e,postfix:r}),s=a+i.replace(new RegExp(`^(\\D+)?${wt(n)}`),`$10${n}`)+o;zn(t,s)},{capture:!0})}function As({max:n=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:r=0,thousandSeparator:t=So,decimalSeparator:i=".",decimalPseudoSeparators:o,decimalZeroPadding:a=!1,prefix:s="",postfix:l="",minusSign:d=jn}={}){let f=[Si,Un,Ao,Vo,jn].filter(E=>E!==t&&E!==i&&E!==d),v=$u({decimalSeparator:i,thousandSeparator:t,decimalPseudoSeparators:o}),b=s.endsWith(i)&&r>0?`${s}${Du}`:s;return Object.assign(Object.assign({},te),{mask:ks({decimalSeparator:i,precision:r,thousandSeparator:t,prefix:b,postfix:l,isNegativeAllowed:e<0,minusSign:d}),preprocessors:[Ro(),Yu({decimalSeparator:i,decimalPseudoSeparators:v,pseudoMinuses:f,prefix:b,postfix:l,minusSign:d}),ju({prefix:b,postfix:l}),fs({validCharacter:d,pseudoCharacters:f,prefix:b,postfix:l}),fs({validCharacter:i,pseudoCharacters:v,prefix:b,postfix:l}),Ku({decimalSeparator:i,precision:r,prefix:b,postfix:l}),Xu({decimalSeparator:i,decimalZeroPadding:a,thousandSeparator:t}),td({precision:r,decimalSeparator:i,prefix:b,postfix:l}),qu({decimalSeparator:i,prefix:b,postfix:l})],postprocessors:[Zu({decimalSeparator:i,min:e,max:n,minusSign:d}),Lu(b),Ru(l),Ju({decimalSeparator:i,thousandSeparator:t,prefix:b,postfix:l}),Wu({decimalSeparator:i,decimalZeroPadding:a,precision:r,prefix:b,postfix:l}),Gu({prefix:b,postfix:l,decimalSeparator:i,thousandSeparator:t})],plugins:[ed({decimalSeparator:i,thousandSeparator:t,prefix:b,postfix:l}),nd({decimalSeparator:i,prefix:b,postfix:l}),id({min:e,max:n,decimalSeparator:i})],overwriteMode:a?({value:E,selection:[R]})=>R<=E.indexOf(i)?"shift":"replace":"shift"})}var od=["type","range","tuiSlider",""];var rd=7;function Vs(n,e){let r=n.findIndex((o,a)=>a&&e(o)),t=n[r-1]||n[0],i=n[r]||n[n.length-1];return[t,i]}function ad(n,e){let[[r,t],[i,o]]=Vs(e,([l,d])=>n<=l),a=(n-r)/(i-r),s=(o-t)*a+t;return Nr(s,rd)}function sd(n,e){let[[r,t],[i,o]]=Vs(e,([s,l])=>n<=l),a=(n-t)/(o-t)||0;return(i-r)*a+r}var ld={size:"m",trackColor:"var(--tui-background-neutral-2)"},cd=tt(ld);var No=(()=>{let e=class e{constructor(){var t;this.injector=h(Cr),this.control=h(se,{self:!0,optional:!0}),this.options=h(cd),this.size=this.options.size,this.segments=1,this.el=bt(),this.control instanceof Mt&&((t=this.control.valueChanges)==null||t.pipe($t(h(Zt)),hr(1)).subscribe())}get valueRatio(){return(this.value-this.min)/(this.max-this.min)||0}get min(){return Number(this.el.min)}get max(){return Number(this.el.max||100)}get value(){return!this.hasKeySteps&&this.control instanceof Mt?this.control.viewModel:Number(this.el.value)||0}set value(t){this.el.value=`${t}`}get segmentWidth(){return 100/Math.max(1,this.segments)}get hasKeySteps(){return!!this.injector.get(ud,null)}get step(){return Number(this.el.step)||1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["input","type","range","tuiSlider",""]],hostVars:7,hostBindings:function(i,o){i&1&&O("input",function(){return 0}),i&2&&(B("data-size",o.size),w("--tui-slider-track-color",o.options.trackColor)("--tui-slider-fill-ratio",o.valueRatio)("--tui-slider-segment-width",o.segmentWidth,"%"))},inputs:{size:"size",segments:"segments"},standalone:!0,features:[P],attrs:od,decls:0,vars:0,template:function(i,o){},styles:['[_nghost-%COMP%]{position:relative;display:block;width:100%;color:var(--tui-background-accent-1);cursor:pointer;-webkit-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m)}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}[data-size=s][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=s][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[data-size=m][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=m][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[_nghost-%COMP%]::-webkit-slider-container{border-radius:inherit}[data-size=m][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),auto}[data-size=s][_nghost-%COMP%]::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}[data-size=m][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}[data-size=s][_nghost-%COMP%]::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:linear-gradient(to right,currentColor 0px .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{-webkit-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=m][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=m][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible[data-size=m][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[data-size=s][_nghost-%COMP%]::-moz-range-thumb{-moz-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb:hover, :active:not(:disabled)[data-size=s][_nghost-%COMP%]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible[data-size=s][_nghost-%COMP%]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}[_nghost-%COMP%]::-moz-range-progress{border-radius:inherit}[_nghost-%COMP%]::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}'],changeDetection:0});let n=e;return et([ot],n.prototype,"hasKeySteps",null),n})(),ud=(()=>{let e=class e extends _a{constructor(){super(...arguments),this.slider=h(Yi(()=>No))}writeValue(t){if(t===null)return;let i=an(t,this.min,this.max);this.slider.value=this.transformToNativeValue(i)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.onChange(ad(this.slider.valueRatio*100,this.keySteps))}transformToNativeValue(t){let{min:i,max:o}=this.slider;return sd(t,this.keySteps)*(o-i)/100+i}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(i,o){i&1&&O("blur",function(){return o.onTouched()})("input",function(){return o.updateControlValue()})("change",function(){return o.updateControlValue()}),i&2&&(Ht("disabled",o.disabled()),B("aria-valuenow",o.value())("aria-valuemin",o.min)("aria-valuemax",o.max))},inputs:{keySteps:"keySteps"},standalone:!0,features:[k([ha(0)]),H]});let n=e;return n})();var dd=["tuiProgressLabel",""],pd=[[["progress"]],[["tui-progress-circle"]],"*"],md=["progress","tui-progress-circle","*"],hd={color:null,size:"m"},fd=tt(hd);var Rs=(()=>{let e=class e{constructor(){this.options=h(fd),this.animationDelay$=Rt(!0).pipe(Ne(0)),this.value=0,this.max=1,this.color=this.options.color,this.size=this.options.size}get progressRatio(){let t=this.value/this.max;return Number.isFinite(t)?t:0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-progress-circle"]],hostVars:5,hostBindings:function(i,o){i&2&&(B("data-size",o.size),w("--tui-progress-color",o.color)("--progress-ratio",o.progressRatio))},inputs:{value:"value",max:"max",color:"color",size:"size"},standalone:!0,features:[P],decls:5,vars:6,consts:[[1,"t-hidden-progress",3,"max","value"],["aria-hidden","true","height","100%","width","100%",1,"t-svg"],["cx","50%","cy","50%",1,"t-track"],["cx","50%","cy","50%",1,"t-progress"]],template:function(i,o){i&1&&(x(0,"progress",0),yr(),p(1,"svg",1),x(2,"circle",2)(3,"circle",3),S(4,"async"),m()),i&2&&(u("max",o.max)("value",o.value),c(3),N("t-progress_filled",L(4,4,o.animationDelay$)))},dependencies:[$],styles:["[_nghost-%COMP%]{--t-track-stroke: var(--tui-thickness, .375em);--t-progress-stroke: var(--tui-thickness, .375em);position:relative;display:block;color:var(--tui-background-accent-1);transform:rotate(-90deg);transform-origin:center;font-size:1rem;width:var(--t-diameter);height:var(--t-diameter)}[data-size=xxs][_nghost-%COMP%]{--t-diameter: 2em}[data-size=xs][_nghost-%COMP%]{--t-diameter: 2.5em}[data-size=s][_nghost-%COMP%]{--t-diameter: 3.5em}[data-size=m][_nghost-%COMP%]{--t-diameter: 4em}[data-size=l][_nghost-%COMP%]{--t-diameter: 5em}[data-size=xl][_nghost-%COMP%]{--t-diameter: 6em}[data-size=xxl][_nghost-%COMP%]{--t-diameter: 8em}.t-track[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-background-neutral-1);stroke-width:var(--t-track-stroke);r:calc((var(--t-diameter) - var(--t-track-stroke)) / 2)}.t-progress[_ngcontent-%COMP%]{fill:transparent;stroke:var(--tui-progress-color, currentColor);stroke-linecap:round;stroke-width:var(--t-progress-stroke);stroke-dasharray:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));stroke-dashoffset:calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2));r:calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)}.t-progress_filled[_ngcontent-%COMP%]{transition:stroke-dashoffset var(--tui-duration) linear;stroke-dashoffset:calc(calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)) - var(--progress-ratio) * calc(2 * 3.14159265 * calc((var(--t-diameter) - var(--t-progress-stroke)) / 2)))}.t-hidden-progress[_ngcontent-%COMP%]{position:absolute;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0}.t-svg[_ngcontent-%COMP%]{overflow:unset}"],changeDetection:0});let n=e;return n})(),Ls=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["label","tuiProgressLabel",""]],standalone:!0,features:[P],attrs:dd,ngContentSelectors:md,decls:4,vars:0,consts:[[1,"t-label"]],template:function(i,o){i&1&&(ht(pd),j(0),j(1,1),p(2,"span",0),j(3,2),m())},styles:["[_nghost-%COMP%]{position:relative;display:inline-block;color:var(--tui-text-primary)}.t-label[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;font:var(--tui-font-text-s);flex-direction:column;justify-content:center;align-items:center}"],changeDetection:0});let n=e;return n})();var $n={DMY:"dd/mm/yyyy",MDY:"mm/dd/yyyy",YMD:"yyyy/mm/dd"};var zo=1.5,gd=2.5;function Ns(n,e=!1,r=!1,t=!1,i="m"){let o=i==="s"?0:.25,a=0;return n&&(a+=zo+o),e&&(a+=zo+o),r&&(a+=zo+o),t&&(a+=gd+o),a}var B0=`?v=${$r}`;var _d=/^((?!chrome|android).)*safari/i;function zs(n){return ca(n)||_d.test(n.userAgent.toLowerCase())}var j0=va({limitWidth:"fixed",align:"right"});var X0=tt({AD:"+376###-###",AE:"+971-##-###-####",AF:"+93##-###-####",AG:"+1(268) ###-####",AI:"+1(264) ###-####",AL:"+355(###) ###-###",AM:"+374##-###-###",AO:"+244(###) ###-###",AR:"+54(###) ####-####",AT:"+43(###) ###-####",AU:"+61#-####-####",AW:"+297###-####",AZ:"+994##-###-##-##",BA:"+387 ###-####-##",BB:"+1(246) ###-####",BD:"+880##-###-###",BE:"+32(###) ###-###",BF:"+226##-##-####",BG:"+359(###) ###-###",BH:"+973####-####",BI:"+257##-##-####",BJ:"+229##-##-####",BL:"+590 ## ## ## ## ##",BM:"+1(441) ###-####",BN:"+673###-####",BO:"+591#-###-####",BQ:"+599-###-####",BR:"+55(##) ####-####",BS:"+1(242) ###-####",BT:"+975#-###-###",BW:"+267##-###-###",BY:"+375(##) ###-##-##",BZ:"+501###-####",CA:"+1(###) ###-####",CD:"+243(###) ###-###",CF:"+236-##-##-####",CG:"+242##-###-####",CH:"+41##-###-####",CI:"+225##-##-###-###",CL:"+56#-####-####",CM:"+237#####-####",CN:"+86(###) ####-####",CO:"+57(###) ###-####",CR:"+506####-####",CU:"+53#-###-####",CV:"+238(###) ##-##",CW:"+5999-###-####",CY:"+357##-###-###",CZ:"+420(###) ###-###",DE:"+49(###) ###-###-##",DJ:"+253##-##-##-##",DK:"+45##-##-##-##",DM:"+1(767) ###-####",DO:"+1(###) ###-####",DZ:"+213##-###-####",EC:"+593##-###-####",EE:"+372####-####",EG:"+20(###) ###-####",ER:"+291#-###-###",ES:"+34(###) ###-###",ET:"+251##-###-####",FI:"+358(###) ###-##-##",FJ:"+679##-#####",FK:"+500#####",FM:"+691###-####",FR:"+33 ## ## ## ## ##",GA:"+241##-##-##-##",GB:"+44##-####-####",GD:"+1(473) ###-####",GE:"+995(###) ###-###",GF:"+594 ## ## ## ## ##",GH:"+233(###) ###-###",GI:"+350###-#####",GL:"+299##-##-##",GM:"+220(###) ##-##",GN:"+224##-###-###",GP:"+590 ## ## ## ## ##",GQ:"+240##-###-####",GR:"+30(###) ###-####",GT:"+502#-###-####",GW:"+245#-######",GY:"+592###-####",HK:"+852####-####",HN:"+504####-####",HR:"+385##-###-####",HT:"+509##-##-####",HU:"+36(###) ###-###",ID:"+62(###) ###-##-###",IE:"+353(###) ###-###",IL:"+972##-###-####",IN:"+91(####) ###-###",IQ:"+964(###) ###-####",IR:"+98(###) ###-####",IS:"+354###-####",IT:"+39(###) ####-###",JM:"+1(876) ###-####",JO:"+962#-####-####",JP:"+81-##-####-####",KE:"+254###-######",KG:"+996(###) ###-###",KH:"+855##-###-###",KM:"+269##-#####",KN:"+1(869) ###-####",KP:"+850####-#############",KR:"+82##-###-####",KW:"+965####-####",KY:"+1(345) ###-####",KZ:"+7(###) ###-##-##",LA:"+856##-##-###-###",LB:"+961##-###-###",LC:"+1(758) ###-####",LI:"+423(###) ###-####",LK:"+94##-###-####",LR:"+231##-###-###",LS:"+266#-###-####",LT:"+370(###) ##-###",LU:"+352(###) ###-###",LV:"+371##-###-###",LY:"+218##-###-####",MA:"+212##-####-###",MC:"+377###-###-###",MD:"+373####-####",ME:"+382##-###-###",MF:"+590 ## ## ## ## ##",MG:"+261##-##-#####",MK:"+389##-###-###",ML:"+223##-##-####",MM:"+95##-###-###",MN:"+976##-##-####",MO:"+853####-####",MQ:"+596 ## ## ## ## ##",MR:"+222##-##-####",MS:"+1(664) ###-####",MT:"+356####-####",MU:"+230####-####",MV:"+960###-####",MW:"+265#-####-####",MX:"+52(###) ###-####",MY:"+60(###) ###-###",MZ:"+258##-###-###",NA:"+264##-###-####",NC:"+687 ### ###",NE:"+227##-##-####",NG:"+234(###) ###-####",NI:"+505####-####",NL:"+31##-###-####",NO:"+47(###) ##-###",NP:"+977##-###-###",NZ:"+64(###) ###-####",OM:"+968##-###-###",PA:"+507###-####",PE:"+51(###) ###-###",PF:"+689 ## ## ## ##",PG:"+675(###) ##-###",PH:"+63(###) ###-####",PK:"+92(###) ###-####",PL:"+48(###) ###-###",PT:"+351##-###-####",PW:"+680###-####",PY:"+595(###) ###-###",QA:"+974####-####",RE:"+262 ## ## ## ## ##",RO:"+40##-###-####",RS:"+381##-###-####",RU:"+7### ###-##-##",RW:"+250(###) ###-###",SA:"+966#-####-####",SB:"+677###-####",SC:"+248#-###-###",SD:"+249##-###-####",SE:"+46##-###-####",SG:"+65####-####",SH:"+290####",SI:"+386##-###-###",SK:"+421(###) ###-###",SL:"+232##-######",SM:"+378####-######",SN:"+221##-###-####",SO:"+252##-###-###",SR:"+597###-####",ST:"+239##-#####",SV:"+503##-##-####",SX:"+1(721) ###-####",SY:"+963##-####-###",SZ:"+268##-##-####",TC:"+1(649) ###-####",TD:"+235##-##-##-##",TG:"+228##-###-###",TH:"+66##-###-####",TJ:"+992##-###-####",TL:"+670###-#####",TM:"+993#-###-####",TN:"+216##-###-###",TO:"+676#####",TR:"+90(###) ###-####",TT:"+1(868) ###-####",TW:"+886#-####-####",TZ:"+255##-###-####",UA:"+380(##) ###-##-##",UG:"+256(###) ###-###",US:"+1(###) ###-####",UY:"+598#-###-##-##",UZ:"+998##-###-####",VC:"+1(784) ###-####",VE:"+58(###) ###-####",VG:"+1(284)###-####",VN:"+84(###) ####-###",VU:"+678##-#####",WS:"+685##-####",XK:"+383##-###-###",YE:"+967###-###-###",YT:"+262 ## ## ## ## ##",ZA:"+27##-###-####",ZM:"+260##-###-####",ZW:"+263#-######",VA:"+39 #### ###-####",WF:"+681 ## ##-##",VI:"+1(340) ###-####",JE:"+44(####) ######",AC:"+247###-####",TV:"+686###-####",TK:"+690###-####",TA:"+290###-####",SS:"+211### ###-###",SJ:"+47 ## ##-##-##",PS:"+970 #### ###-###",PR:"+1(###) ###-####",PM:"+508 ### ##-##-##",NU:"+683 ###-####",NR:"+674 ###-####",NF:"+672##-####",MP:"+1(670) ###-####",MH:"+692 ###-####",KI:"+686 ####-####",IO:"+246 ### ####",IM:"+44(####) ######",GU:"+1(###) ###-###",GG:"+44(###) ###-####",FO:"+298 ######",EH:"+212 #### #####",CX:"+61 # ####-####",CK:"+682 ## ###",CC:"+61 # ####-####",AX:"+358 ## ###-####",AS:"+1(###) ###-####"}),Ho=new dt("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function we(n){return gt(Ho,n)}var Hs=new dt("[TUI_FONTS_READY]",{factory:()=>{var n;return pr(((n=h(Se).fonts)==null?void 0:n.ready)||Bi).pipe(Wi({bufferSize:1,refCount:!1}))}}),K0=tt({}),q0=yt(()=>zs(h(Qr))),J0=yt(()=>!!h(yi).chrome),t_=yt(()=>{var n;return typeof((n=h(yi))==null?void 0:n.mozCancelFullScreen)<"u"}),e_=yt(()=>h(yi).location.host.endsWith("stackblitz.io")),i_=new dt("[TUI_MONTH_FORMATTER]");var n_=new dt("[TUI_SANITIZER]"),Bs=tt("textfield"),Fi=new dt("[TUI_TEXTFIELD_HOST]");function ye(n){return gt(Fi,n)}var o_=yt(()=>h(yi).matchMedia("(any-pointer: coarse)").matches),js=new dt("[TUI_VALUE_ACCESSOR]");var vd="tui_interactive_",Bo=(()=>{let e=class e{constructor(){this.focusVisible=!1,this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new q,this.focusVisibleChange=new q,this.autoIdString=`${vd}${e.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocused(){return!this.computedDisabled&&(this.pseudoFocus??this.focused)}get computedFocusVisible(){return!this.computedDisabled&&(this.pseudoFocus??this.focusVisible)}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get id(){return this.nativeId||this.autoIdString}updateFocused(t){this.focusedChange.emit(t)}updateFocusVisible(t){this.focusVisible!==t&&(this.focusVisible=t,this.focusVisibleChange.emit(t))}};e.autoId=0,e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,hostVars:7,hostBindings:function(i,o){i&2&&(B("data-focused",o.pseudoFocus),N("_disabled",o.computedDisabled)("_focused",o.computedFocused)("_focus-visible",o.computedFocusVisible))},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}});let n=e;return n})(),Ve=(()=>{let e=class e extends Bo{constructor(){super(),this.ngControl=h(se,{optional:!0}),this.refresh$=new xt,this.onTouched=lo,this.onChange=lo,this.fallbackValue=this.getFallbackValue(),this.destroyRef=h(fe),this.cdr=h(Zt),this.valueTransformer=h(ga,{optional:!0}),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(){return this.previousInternalValue??this.fallbackValue}set value(t){this.updateValue(t)}get safeCurrentValue(){return this.rawValue??this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:t})=>t,!1)}get valid(){return this.safeNgControlData(({valid:t})=>t,!1)}get touched(){return this.safeNgControlData(({touched:t})=>t,!1)}get disabled(){return this.safeNgControlData(({disabled:t})=>t,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:t})=>t,null)}get computedName(){var t;return((t=this.controlName)==null?void 0:t.toString())??null}get controlName(){var t,i;return((i=(t=this.ngControl)==null?void 0:t.name)==null?void 0:i.toString())??null}ngOnInit(){this.refresh$.pipe(Ne(0),he(null),it(()=>{var t;return(t=this.ngControl)==null?void 0:t.control}),re(Ut),zt(),Gi(t=>me(t.valueChanges,t.statusChanges)),ft(this.destroyRef)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(t){this.onChange=i=>{t(this.toControlValue(i))},this.refresh$.next()}registerOnTouched(t){this.onTouched=t}setDisabledState(){this.checkControlUpdate()}writeValue(t){let i=this.ngControl instanceof Mt&&this.previousInternalValue===void 0?this.ngControl.model:t;this.refreshLocalValue(this.fromControlValue(i))}updateFocused(t){t||this.controlMarkAsTouched(),super.updateFocused(t)}updateValue(t){this.disabled||this.valueIdenticalComparator(this.value,t)||(this.previousInternalValue=t,this.controlSetValue(t))}valueIdenticalComparator(t,i){return t===i}get rawValue(){let{ngControl:t}=this;if(t===null)return;let i=t instanceof Mt&&this.previousInternalValue===void 0?t.viewModel:t.value;return this.fromControlValue(i)}safeNgControlData(t,i){return(this.ngControl&&t(this.ngControl))??i}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(t){this.onChange(t),this.checkControlUpdate()}refreshLocalValue(t){this.previousInternalValue=t,this.checkControlUpdate()}fromControlValue(t){return this.valueTransformer?this.valueTransformer.fromControlValue(t):t}toControlValue(t){return this.valueTransformer?this.valueTransformer.toControlValue(t):t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,hostVars:4,hostBindings:function(i,o){i&2&&N("_readonly",o.readOnly)("_invalid",o.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[H]});let n=e;return n})();function ii(n){return gt(Ve,n)}var Pe=(()=>{let e=class e{constructor(){this.host=h(Ve,{optional:!0})}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 t;return((t=this.host.value)==null?void 0:t.toString())||""}process(t){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e});let n=e;return n})(),ie=(()=>{let e=class e{constructor(){this.change$=new xt}ngOnChanges(){this.change$.next()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,features:[be]});let n=e;return n})();var ni=(()=>{let e=class e extends Ve{getFallbackValue(){return null}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,features:[H]});let n=e;return n})();var Wn=(()=>{let e=class e{constructor(){var t;this.el=bt(),this.host=h(_e,{self:!0}),this.external=h(Ca,{optional:!0}),this.host.driver.pipe(zt(),ft()).subscribe(i=>{var o;return(o=this.external)==null?void 0:o.tuiDropdownOpenChange.next(i)}),(t=this.external)==null||t.tuiDropdownOpenChange.pipe(zt(),ft()).subscribe(i=>{var o;i&&((o=ua({initial:this.el,root:this.el}))==null||o.focus()),this.host.toggle(i)})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiDropdownOpenMonitor",""]],standalone:!0});let n=e;return n})();var jo=class{constructor(e,r,t,i,o,a,s,l,d,f,v,b,E){this.change$=e,this.options=r,this.legacyAppearance=t,this.appearanceDirective=i,this.cleanerDirective=o,this.customContentDirective=a,this.iconDirective=s,this.iconLeftDirective=l,this.labelOutsideDirective=d,this.sizeDirective=f,this.prefixDirective=v,this.postfixDirective=b,this.fillerDirective=E}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 iconStart(){return this.iconLeftDirective.iconStart}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}},Us={iconCleaner:"@tui.x",hintOnDisabled:!1},Uo=tt(Us);var $s=yt(()=>new Cd),Cd=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.appearance=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:[0,"tuiTextfieldAppearance","appearance"]},features:[k([gt($s,e)]),H]});let n=e;return n})(),$o=yt(()=>new yd),yd=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.cleaner=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:[0,"tuiTextfieldCleaner","cleaner"]},features:[k([gt($o,e)]),H]});let n=e;return n})(),Ws=yt(()=>new bd),bd=(()=>{let e=class e extends ie{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:[0,"tuiTextfieldCustomContent","customContent"]},features:[k([gt(Ws,e)]),H]});let n=e;return n})(),Gs=yt(()=>new Ai),Ai=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.filler=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:[0,"tuiTextfieldFiller","filler"]},features:[k([gt(Gs,e)]),H]});let n=e;return n})(),Ys=yt(()=>new Vi),Vi=(()=>{let e=class e extends ie{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:[0,"tuiTextfieldIcon","icon"]},features:[k([gt(Ys,e)]),H]});let n=e;return n})(),Qs=yt(()=>new xd),xd=(()=>{let e=class e extends ie{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconStart:[0,"tuiTextfieldIconLeft","iconStart"]},features:[k([gt(Qs,e)]),H]});let n=e;return n})(),Zs=yt(()=>new Td),Td=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.labelOutside=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:[0,"tuiTextfieldLabelOutside","labelOutside"]},features:[k([gt(Zs,e)]),H]});let n=e;return n})(),Xs=yt(()=>new Wo),Wo=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.postfix=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:[0,"tuiTextfieldPostfix","postfix"]},features:[k([gt(Xs,e)]),H]});let n=e;return n})(),Ks=yt(()=>new Go),Go=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.prefix=""}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:[0,"tuiTextfieldPrefix","prefix"]},features:[k([gt(Ks,e)]),H]});let n=e;return n})(),ne=yt(()=>new Md),Md=(()=>{let e=class e extends ie{constructor(){super(...arguments),this.size="l"}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["","tuiTextfieldSize",""]],inputs:{size:[0,"tuiTextfieldSize","size"]},features:[k([gt(ne,e)]),H]});let n=e;return n})(),Ie=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({});let n=e;return n})(),oi=new dt("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Ri=[{provide:oi,deps:[Zt,Uo,Bs,$s,$o,Ws,Ys,Qs,Zs,ne,Ks,Xs,Gs],useFactory:(n,e,r,...t)=>{let i=me(...t.map(({change$:o})=>o||mr)).pipe($t(n),ft());return i.subscribe(),new jo(i,e,r,...t)}}];var Od={provide:js,deps:[[new gi,new vr,Fr]],useFactory:lr},ri=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiValueAccessor",""]],features:[k([Od])]});let n=e;return n})(),ai=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({});let n=e;return n})();var qs=(()=>{let e=class e{constructor(){this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?"disabled":this.readOnly?"readonly":this.active?"active":this.hover?"hover":null}get noHover(){return this.readOnly||this.hover===!1}get noActive(){return this.readOnly||this.active===!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(i,o){i&2&&(B("data-appearance",o.appearance)("data-state",o.interactiveState),N("_invalid",o.computedInvalid)("_focused",o.computedFocused)("_no-hover",o.noHover)("_no-active",o.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"}});let n=e;return n})(),Gn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({});let n=e;return n})();function Pd(n,e){if(n&1&&x(0,"tui-icon",2),n&2){let r=e.polymorpheusOutlet;u("icon",r)}}function Id(n,e){n&1&&Et(0)}var Dd={iconSmall:"@tui.chevron-down",iconLarge:"@tui.chevron-down"},Sd=tt(Dd);var Yo=(()=>{let e=class e{constructor(){this.control=h(Ve,{optional:!0}),this.textfieldSize=h(ne),this.options=h(Sd),this.directive=h(_e,{optional:!0})}get rotated(){var t;return((t=this.directive)==null?void 0:t.tuiDropdownOpen)||!!this.control.pseudoOpen||!1}get small(){return!la(this.textfieldSize.size)}get arrowIcon(){return this.small?this.options.iconSmall:this.options.iconLarge}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-arrow"]],hostVars:4,hostBindings:function(i,o){i&2&&N("_rotated",o.rotated)("_small",o.small)},standalone:!0,features:[P],decls:3,vars:4,consts:[[3,"icon",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"icon"]],template:function(i,o){i&1&&(_(0,Pd,1,1,"tui-icon",0)(1,Id,1,0,"ng-container",1),S(2,"async")),i&2&&(u("polymorpheusOutlet",o.arrowIcon),c(),u("ngIf",L(2,2,o.directive==null?null:o.directive.tuiDropdownOpenChange)))},dependencies:[ut,Y,$,W],styles:["[_nghost-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}._rotated[_nghost-%COMP%]{transform:rotate(180deg)}tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let n=e;return n})(),Js=new gn(Yo),Ed={interactive:Js,disabled:Js},kd=tt(Ed);function Fd(n,e){if(n&1&&x(0,"tui-icon",3),n&2){let r=e.polymorpheusOutlet;u("icon",r)}}var el=(()=>{let e=class e extends de{constructor(){super(...arguments),this.isMobile=h(Qe),this.describeId=""}get computedAppearance(){return this.appearance||""}stopOnMobile(t){var i;this.isMobile&&(t.preventDefault(),t.stopPropagation()),(i=this.driver$)==null||i.toggle()}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-tooltip"]],viewQuery:function(i,o){if(i&1&&ct(xn,5),i&2){let a;Q(a=Z())&&(o.driver$=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("mousedown",function(s){return o.stopOnMobile(s)}),i&2&&B("data-appearance",o.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[H],decls:4,vars:11,consts:[["driver","tuiHintHover"],["automation-id","tui-tooltip__icon","tuiAppearance","icon",1,"t-tooltip-icon",3,"tuiAppearanceState","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],["class","t-icon",3,"icon",4,"polymorpheusOutlet"],[1,"t-icon",3,"icon"]],template:function(i,o){if(i&1&&(p(0,"span",1,0),S(2,"async"),_(3,Fd,1,1,"tui-icon",2),m()),i&2){let a=V(1);u("tuiAppearanceState",L(2,9,a)?"hover":null)("tuiHint",o.content)("tuiHintAppearance",o.computedAppearance)("tuiHintContext",o.context)("tuiHintDescribe",o.describeId)("tuiHintDirection",o.direction)("tuiHintHideDelay",o.hideDelay)("tuiHintShowDelay",o.showDelay),c(3),u("polymorpheusOutlet",o.icon)}},dependencies:[W,ut,X,Tn,Mn,$],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-primary)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-text-negative)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%}.t-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}"],changeDetection:0});let n=e;return n})(),il=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,W,Ma]});let n=e;return n})();var Vd=["pre"],Rd=["focusableElement"],Ld=[[["input"]],[["select"]],[["tuiContent"]],"*"],Nd=["input","select","tuiContent","*"],Qo=n=>({$implicit:n});function zd(n,e){n&1&&Et(0)}function Hd(n,e){n&1&&Et(0)}function Bd(n,e){n&1&&(p(0,"div",17),j(1,2),m())}function jd(n,e){if(n&1&&x(0,"tui-icon",20),n&2){let r=e.polymorpheusOutlet;u("icon",r.toString())}}function Ud(n,e){if(n&1&&(p(0,"div",18),_(1,jd,1,1,"tui-icon",19),m()),n&2){let r=g();c(),u("polymorpheusOutlet",r.iconLeftContent)("polymorpheusOutletContext",Tt(2,Qo,r.size))}}function $d(n,e){if(n&1&&(p(0,"label",21),j(1,3),m()),n&2){let r=g();N("t-placeholder_raised",r.placeholderRaised),u("for",r.computedId)}}function Wd(n,e){if(n&1&&x(0,"tui-icon",24),n&2){let r=e.polymorpheusOutlet;u("icon",r)}}function Gd(n,e){if(n&1&&(p(0,"div",22),_(1,Wd,1,1,"tui-icon",23),m()),n&2){let r=g();c(),u("polymorpheusOutlet",r.controller.customContent)}}function Yd(n,e){if(n&1&&x(0,"tui-icon",27),n&2){let r=e.polymorpheusOutlet;w("border","0.25rem solid transparent"),u("icon",r.toString())}}function Qd(n,e){if(n&1){let r=A();p(0,"span",25),O("click.stop",function(){C(r);let i=g();return y(i.clear())}),_(1,Yd,1,3,"tui-icon",26),m()}if(n&2){let r=g();c(),u("polymorpheusOutlet",r.iconCleaner||r.controller.options.iconCleaner)("polymorpheusOutletContext",Tt(2,Qo,r.size))}}function Zd(n,e){if(n&1&&x(0,"tui-tooltip",28),n&2){let r=g();u("content",r.hintOptions==null?null:r.hintOptions.content)("describeId",r.computedId)}}function Xd(n,e){if(n&1&&x(0,"tui-icon",20),n&2){let r=e.polymorpheusOutlet;u("icon",r.toString())}}function Kd(n,e){if(n&1&&(p(0,"div",29),_(1,Xd,1,1,"tui-icon",19),m()),n&2){let r=g();c(),u("polymorpheusOutlet",r.iconContent)("polymorpheusOutletContext",Tt(2,Qo,r.size))}}var qd=["tuiTextfieldLegacy",""],Jd=(()=>{let e=class e{constructor(){this.textfield=h(Ho),this.fontsReady$=h(Hs),this.prefix$=new eo(""),this.pre$=me(this.fontsReady$,this.prefix$).pipe(Ne(0),re(()=>{var t;return!!((t=this.pre)!=null&&t.nativeElement.isConnected)}),it(()=>{var t;return((t=this.pre)==null?void 0:t.nativeElement.offsetWidth)||0}),zt())}ngDoCheck(){this.prefix$.next(this.prefix)}get isContextTable(){return this.textfield.appearance==="table"}get filler(){let{focused:t,placeholder:i,exampleText:o,value:a,textfield:s}=this;return i&&o?"":t?o||s.filler.slice(a.length):""}get value(){return this.textfield.value}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}get placeholder(){var t;return((t=this.textfield.nativeFocusableElement)==null?void 0:t.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}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-value-decoration"]],viewQuery:function(i,o){if(i&1&&ct(Vd,7,St),i&2){let a;Q(a=Z())&&(o.pre=a.first)}},hostVars:4,hostBindings:function(i,o){i&1&&O("animationstart",function(){return o.ngDoCheck()}),i&2&&N("_table",o.isContextTable)("_filler",o.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(i,o){i&1&&x(0,"span",1,0)(2,"span",2)(3,"span",3)(4,"span",4),i&2&&(u("textContent",o.prefix),c(2),u("textContent",o.value),c(),u("textContent",o.filler),c(),u("textContent",o.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-tertiary);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[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-primary)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']});let n=e;return n})(),tp={s:1.25,m:1.75,l:2.25},Vt=(()=>{let e=class e extends Bo{constructor(){super(...arguments),this.legacyOptions=h(Uo),this.el=bt(),this.options=h(Xa),this.controller=h(oi),this.hintOptions=h(de,{optional:!0}),this.autofilled=!1,this.editable=!0,this.iconCleaner=this.legacyOptions.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.value="",this.valueChange=new q}get prefix(){return this.controller.prefix}get postfix(){return this.controller.postfix}get filler(){return this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;let{nativeElement:t}=this.focusableElement;return t.previousElementSibling||t}get focused(){return pa(this.el)}get appearance(){return this.options.appearance()==="table"?"table":this.controller.appearance}onModelChange(t){this.updateValue(t)}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var t;return!!((t=this.content)!=null&&t.length)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return Ns(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var t;return!!((t=this.hintOptions)!=null&&t.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var o;let i=(((o=this.nativeFocusableElement)==null?void 0:o.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!i}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconStart}get showHint(){var t;return!!((t=this.hintOptions)!=null&&t.content)&&(this.legacyOptions.hintOnDisabled||!this.computedDisabled)}get name(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.id)||""}onFocused(t){this.updateFocused(t)}getIndent$(t){return hi(t,"scroll").pipe(it(()=>-1*Math.max(t.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(t){let{nativeFocusableElement:i}=this;!i||t.target===i||(t.preventDefault(),i.focus())}onAutofilled(t){this.updateAutofilled(t)}detectRetargetFromLabel(t){zr(t)&&t.stopImmediatePropagation()}get iconPaddingLeft(){return tp[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(t){this.autofilled!==t&&(this.autofilled=t)}updateValue(t){this.value=t,this.valueChange.emit(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-primitive-textfield"]],contentQueries:function(i,o,a){if(i&1&&ae(a,ut,5),i&2){let s;Q(s=Z())&&(o.content=s)}},viewQuery:function(i,o){if(i&1&&ct(Rd,5),i&2){let a;Q(a=Z())&&(o.focusableElement=a.first)}},hostVars:15,hostBindings:function(i,o){i&1&&O("focusin",function(){return o.onFocused(!0)})("focusout",function(){return o.onFocused(!1)}),i&2&&(B("data-size",o.size),w("--border-start",o.borderStart,"rem")("--border-end",o.borderEnd,"rem"),N("_autofilled",o.autofilled)("_label-outside",o.options.appearance()==="table"||o.controller.labelOutside)("_readonly",o.readOnly)("_invalid",o.computedInvalid)("_hidden",o.inputHidden))},inputs:{editable:"editable",iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},features:[k([we(e),Ri]),H],ngContentSelectors:Nd,decls:24,vars:37,consts:[["focusableElement",""],["decor",""],[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"click.prevent.silent","mousedown","active","appearance","disabled","focus","hover","invalid","readOnly"],["automation-id","tui-primitive-textfield__native-input",1,"t-input",3,"ngModelChange","disabled","id","ngModel","readOnly","tabIndex"],["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"],["tuiAppearance","icon",3,"icon",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiAppearance","icon",3,"icon"],["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,"icon",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"icon"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"icon","border",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"icon"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(i,o){if(i&1){let a=A();ht(Ld),_(0,zd,1,0,"ng-container",2),S(1,"async"),_(2,Hd,1,0,"ng-container",2),S(3,"async"),p(4,"div",3),S(5,"async"),O("click.prevent.silent",function(l){return C(a),y(o.detectRetargetFromLabel(l))})("mousedown",function(l){return C(a),y(o.onMouseDown(l))}),j(6),j(7,1),p(8,"input",4,0),O("ngModelChange",function(l){return C(a),y(o.onModelChange(l))}),m(),_(10,Bd,2,0,"div",5),p(11,"div",6),_(12,Ud,2,4,"div",7),p(13,"div",8),_(14,$d,2,3,"label",9),p(15,"div",10),x(16,"tui-value-decoration",11,1),S(18,"async"),m()(),p(19,"div",12),_(20,Gd,2,1,"div",13)(21,Qd,2,4,"span",14)(22,Zd,1,2,"tui-tooltip",15)(23,Kd,2,4,"div",16),m()()()}if(i&2){let a=V(9),s=V(17);u("ngIf",L(1,29,o.content==null?null:o.content.changes)),c(2),u("ngIf",L(3,31,o.hintOptions==null?null:o.hintOptions.change$)),c(2),w("--text-indent",L(5,33,s.pre$),"px"),u("active",o.pseudoActive)("appearance",o.appearance)("disabled",o.disabled)("focus",o.computedFocused)("hover",o.pseudoHover)("invalid",o.computedInvalid)("readOnly",o.readOnly),c(4),u("disabled",o.computedDisabled)("id",o.id)("ngModel",o.value)("readOnly",o.readOnly||!o.editable)("tabIndex",o.computedFocusable?0:-1),B("aria-invalid",o.computedInvalid)("name",o.name),c(2),u("ngIf",o.inputHidden),c(2),u("ngIf",o.iconLeftContent),c(2),u("ngIf",o.hasPlaceholder),c(2),w("text-indent",L(18,35,o.getIndent$(a)),"px"),N("t-has-value",o.value),c(4),u("ngIf",o.hasCustomContent),c(),u("ngIf",o.hasCleaner),c(),u("ngIf",o.showHint),c(),u("ngIf",o.iconContent)}},dependencies:[Y,Ue,Ft,Mt,ut,qs,el,W,X,Jd,$],styles:['[_nghost-%COMP%]{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%]{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;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);color:var(--tui-text-primary);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{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}@supports (-webkit-touch-callout: none){.t-input[_ngcontent-%COMP%]:active{font-size:1rem}}.t-input[inputMode=none][_ngcontent-%COMP%]{caret-color:transparent}.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-tertiary);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}[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;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;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-secondary);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-text-negative)}._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-tertiary)}[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-primary)}.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;border:.25rem solid transparent}._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%]{margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-start:-.125rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size=s]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){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}[data-size=s][_nghost-%COMP%] tui-icon[_ngcontent-%COMP%]{border:.25rem solid transparent}.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;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});let n=e;return et([ot],n.prototype,"getIndent$",null),n})(),li=(()=>{let e=class e extends Pe{constructor(){super(...arguments),this.host=h(Vt)}get readOnly(){return this.host.readOnly||!this.host.editable}onValueChange(t){this.host.onModelChange(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-primitive-textfield"]],features:[k([ye(e)]),H]});let n=e;return n})(),nl=(()=>{let e=class e{constructor(){this.el=bt(),this.idService=h(vn),this.controller=h(oi),this.host=h(Fi),this.host.process(this.el)}get id(){return this.el.id||this.idService.generate()}get inputMode(){return this.el.inputMode||this.host.inputMode}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["input","tuiTextfieldLegacy",""],["textarea","tuiTextfieldLegacy",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(i,o){i&1&&O("input",function(s){return o.host.onValueChange(s.target.value)}),i&2&&(Ht("tabIndex",o.host.focusable?0:-1)("readOnly",o.host.readOnly)("value",o.host.value),B("id",o.id)("inputMode",o.inputMode)("aria-invalid",o.host.invalid)("disabled",o.host.disabled||null))},features:[k([Ri])],attrs:qd,decls:0,vars:0,template:function(i,o){},styles:['[_nghost-%COMP%]{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;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);color:var(--tui-text-primary);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]:-webkit-autofill:focus{-webkit-text-fill-color:var(--tui-text-primary)!important;border-color:var(--tui-service-autofill-background);box-shadow:0 0 0 100rem var(--tui-service-autofill-background) inset!important}@supports (-webkit-touch-callout: none){[_nghost-%COMP%]:active{font-size:1rem}}[inputMode=none][_nghost-%COMP%]{caret-color:transparent}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}[_nghost-%COMP%]::-webkit-caps-lock-indicator, [_nghost-%COMP%]::-webkit-contacts-auto-fill-button, [_nghost-%COMP%]::-webkit-credit-card-auto-fill-button, [_nghost-%COMP%]::-webkit-credentials-auto-fill-button, [_nghost-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}[_nghost-%COMP%]::placeholder{color:var(--tui-text-tertiary);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) [_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::placeholder{opacity:1}[data-size=s][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] 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%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_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) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}textarea[_nghost-%COMP%]{white-space:pre-wrap}textarea[_nghost-%COMP%] tui-textarea._ios[_nghost-%COMP%], tui-textarea._ios [_nghost-%COMP%], textarea[_nghost-%COMP%] tui-text-area._ios[_nghost-%COMP%], tui-text-area._ios [_nghost-%COMP%]{padding-left:.8125rem}'],changeDetection:0});let n=e;return n})(),De=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,At,Gn,il,W]});let n=e;return n})();var ep=["*",[["input"]],[["tuiContent"]]],ip=["*","input","tuiContent"];function np(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function op(n,e){if(n&1&&(p(0,"div",6),_(1,np,2,1,"ng-container",7),m()),n&2){g();let r=V(9);c(),u("polymorpheusOutlet",r)}}function rp(n,e){if(n&1){let r=A();p(0,"section",8)(1,"button",9),O("click.prevent",function(){C(r);let i=g();return y(i.onArrow(i.step))})("mousedown.prevent",function(){C(r);let i=g();return y(i.nativeFocusableElement==null?null:i.nativeFocusableElement.focus())}),T(2," + "),m(),p(3,"button",9),O("click.prevent",function(){C(r);let i=g();return y(i.onArrow(-i.step))})("mousedown.prevent",function(){C(r);let i=g();return y(i.nativeFocusableElement==null?null:i.nativeFocusableElement.focus())}),T(4," - "),m()()}if(n&2){let r=g(),t=V(1);c(),u("appearance",t.appearance)("disabled",!r.canIncrement)("iconStart",r.icons.up),c(2),u("appearance",t.appearance)("disabled",!r.canDecrement)("iconStart",r.icons.down)}}function ap(n,e){n&1&&Et(0)}function sp(n,e){n&1&&j(0,2)}var rl={icons:{up:"@tui.plus",down:"@tui.minus"},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,step:0},al=tt(rl);function sl(n){return Xt(al,n,rl)}var lp=18,cp=new dt(""),ll=(()=>{let e=class e extends ni{constructor(){super(...arguments),this.isIOS=h(ma),this.textfieldSize=h(ne),this.options=h(al),this.unfinishedValue="",this.polymorpheusValueContent=ge,this.valueTransformer=h(cp,{optional:!0}),this.numberFormat=ea,this.controller=h(oi),this.numberFormat$=h(ia).pipe($t(this.cdr),ft()).subscribe(t=>{this.numberFormat=t}),this.min=this.options.min,this.max=this.options.max,this.step=this.options.step}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get inputMode(){return this.isIOS&&this.isNegativeAllowed?"text":this.precision?"decimal":"numeric"}get calculatedMaxLength(){let i=!!this.precision&&this.nativeValue.includes(this.numberFormat.decimalSeparator)?Math.min(this.precision+1,20):0,o=this.numberFormat.thousandSeparator.repeat(5).length;return lp+i+o}get computedValue(){return this.focused?this.nativeValue:this.formattedValue}onValueChange(t){let i=Ae(t,this.numberFormat.decimalSeparator);if(this.unfinishedValue=null,Number.isNaN(i)){this.value=null;return}if(this.isNativeValueNotFinished){this.unfinishedValue=t,this.cdr.markForCheck();return}ithis.computedMax||(this.value=i)}writeValue(t){super.writeValue(t),this.nativeValue=this.formattedValue}get size(){return this.textfieldSize.size}get icons(){return this.options.icons}get computedMin(){return this.computeMin(this.min,this.max)}get computedMax(){return this.computeMax(this.min,this.max)}get isNegativeAllowed(){return this.computedMin<0}get formattedValue(){return this.value!==null?this.getFormattedValue(this.value||0):""}get canDecrement(){return this.interactive&&(this.value||0)>this.computedMin}get canIncrement(){return this.interactive&&(this.value||0)this.computedMax:t[d.length,rt.length-f.length])]})}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-input-number"]],contentQueries:function(i,o,a){if(i&1&&ae(a,ut,5),i&2){let s;Q(s=Z())&&(o.polymorpheusValueContent=s)}},viewQuery:function(i,o){if(i&1&&ct(Vt,5),i&2){let a;Q(a=Z())&&(o.textfield=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("keydown.arrowDown",function(){return o.onArrow(-o.step)})("keydown.arrowUp",function(){return o.onArrow(o.step)}),i&2&&B("data-size",o.size)},inputs:{min:"min",max:"max",step:"step"},features:[k([we(e),ii(e),Ri]),H],ngContentSelectors:ip,decls:10,vars:14,consts:[["textfield",""],["valueContent",""],["tuiTextfieldPostfix","","tuiTextfieldPrefix","","tuiValueAccessor","",1,"t-textfield",3,"focusedChange","valueChange","disabled","focusable","invalid","maskito","pseudoActive","pseudoFocus","pseudoHover","readOnly","value"],["ngProjectAs","tuiContent","class","t-value-content",5,["tuiContent"],4,"ngIf"],["class","t-buttons",4,"ngIf"],[4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value-content"],[4,"polymorpheusOutlet"],[1,"t-buttons"],["size","s","tabindex","-1","tuiIconButton","","type","button",1,"t-button",3,"click.prevent","mousedown.prevent","appearance","disabled","iconStart"]],template:function(i,o){if(i&1){let a=A();ht(ep),p(0,"tui-primitive-textfield",2,0),O("focusedChange",function(l){return C(a),y(o.onFocused(l))})("valueChange",function(l){return C(a),y(o.onValueChange(l))}),j(2),j(3,1,["ngProjectAs","input",5,["input"]]),_(4,op,2,1,"div",3),m(),_(5,rp,5,6,"section",4)(6,ap,1,0,"ng-container",5),S(7,"async"),_(8,sp,1,0,"ng-template",null,1,J)}i&2&&(u("disabled",o.computedDisabled)("focusable",o.focusable)("invalid",o.computedInvalid)("maskito",o.mask)("pseudoActive",o.pseudoActive)("pseudoFocus",o.computedFocused)("pseudoHover",o.pseudoHover)("readOnly",o.readOnly)("value",o.computedValue),c(4),u("ngIf",o.polymorpheusValueContent.length),c(),u("ngIf",o.step),c(),u("ngIf",L(7,12,o.polymorpheusValueContent.changes)))},dependencies:[Y,Je,Vt,li,Go,Wo,ut,ri,ue,$],styles:["[_nghost-%COMP%]{display:flex;border-radius:var(--tui-radius-m);text-align:left}.t-textfield[_ngcontent-%COMP%]{flex:1;max-width:100%;border-radius:inherit;text-align:inherit}.t-textfield[_ngcontent-%COMP%]:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.t-value-content[_ngcontent-%COMP%]{width:100%}.t-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;margin-left:.125rem;border-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%]{flex-direction:row-reverse}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin:0 0 0 .125rem;border-top-right-radius:inherit;border-bottom-right-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-radius:0}[data-size=m][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-m) * .75)}[data-size=l][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-l) * .75)}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{display:flex;flex:1;height:auto;align-items:center;justify-content:center;border-radius:0}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin-bottom:.125rem;border-top-right-radius:inherit}.t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:inherit}"],changeDetection:0});let n=e;return et([ot],n.prototype,"computeMin",null),et([ot],n.prototype,"computeMax",null),et([ot],n.prototype,"calculateMask",null),n})(),cl=(()=>{let e=class e extends Pe{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.inputMode=this.host.inputMode,this.host.nativeFocusableElement.maxLength=this.host.nativeFocusableElement.maxLength>0?this.host.nativeFocusableElement.maxLength:this.host.calculatedMaxLength)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-input-number"]],features:[k([ye(e)]),H]});let n=e;return n})(),ul=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,De,Ie,ai]});let n=e;return n})();function up(n,e){if(n&1&&x(0,"tui-icon",3),n&2){let r=g();u("icon",r.icons.check)("tuiScrollIntoView",!0)}}function dp(n,e){n&1&&x(0,"span",4)}var pp=(()=>{let e=class e{constructor(){this.host=h(ya),this.el=bt(),this.changeDetection$=new xt,this.abstractControl=h(Ve,{optional:!0}),this.control=h(se),this.option=h(qt),this.dataList=h(ve,{optional:!0}),this.icons=h(un),this.context=h(ra),this.selected$=me(this.changeDetection$,this.control.valueChanges||Bi,ho(this.el,"animationstart")).pipe(he(null),it(()=>this.selected),zt())}ngOnInit(){Promise.resolve().then(()=>{var t,i;Ut(this.option.value)&&!this.option.disabled&&((i=(t=this.host).checkOption)==null||i.call(t,this.option.value))})}ngDoCheck(){this.changeDetection$.next()}get value(){var t;return((t=this.abstractControl)==null?void 0:t.value)??this.control.value}get matcher(){return this.host.identityMatcher||Br}get selected(){return Ut(this.option.value)&&Ut(this.value)&&this.matcher(this.value,this.option.value)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-select-option"]],decls:5,vars:5,consts:[["dummy",""],[3,"ngTemplateOutlet"],["automation-id","tui-select-option__checkmark","class","t-checkmark",3,"icon","tuiScrollIntoView",4,"ngIf","ngIfElse"],["automation-id","tui-select-option__checkmark",1,"t-checkmark",3,"icon","tuiScrollIntoView"],[1,"t-dummy"]],template:function(i,o){if(i&1&&(Et(0,1),_(1,up,1,2,"tui-icon",2),S(2,"async"),_(3,dp,1,0,"ng-template",null,0,J)),i&2){let a=V(4);u("ngTemplateOutlet",o.context.$implicit),c(),u("ngIf",L(2,3,o.selected$))("ngIfElse",a)}},dependencies:[Y,Ji,yn,W,$],styles:['@keyframes _ngcontent-%COMP%_retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;max-width:100%;animation:_ngcontent-%COMP%_retrigger 1s}.t-checkmark[_ngcontent-%COMP%]{margin-inline-start:auto;width:1.75rem;border:.25rem solid transparent;border-inline-start-width:.5rem}tui-data-list[data-size="s"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="s"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.375rem}tui-data-list[data-size="m"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-size="m"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{margin-inline-end:-.125rem}.t-dummy[_ngcontent-%COMP%]{width:1.75rem}'],changeDetection:0});let n=e;return n})(),mp=new gn(pp),dl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,W]});let n=e;return n})();var hp={valueContent:""},qC=tt(hp);var ml=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,De,dl,Yo,Gn,Ie,Ze,ve,qt,Po,ds]});let n=e;return n})();var gp=["*",[["input"]]],_p=["*","input"],vp=n=>({$implicit:n});function Cp(n,e){if(n&1){let r=A();p(0,"tui-primitive-textfield",5),O("focusedChange",function(i){C(r);let o=g();return y(o.onFocused(i))})("valueChange",function(i){C(r);let o=g();return y(o.onValueChange(i))}),j(1),j(2,1,["ngProjectAs","input",5,["input"]]),m()}if(n&2){let r=e.tuiLet,t=g(),i=V(4);u("disabled",t.computedDisabled)("focusable",t.computedFocusable)("invalid",t.computedInvalid)("maskito",t.computedMask)("nativeId",t.nativeId)("pseudoFocus",t.pseudoFocus)("pseudoHover",t.pseudoHover)("readOnly",t.readOnly)("tuiTextfieldFiller",t.getComputedFiller(r||""))("tuiTextfieldIcon",t.calendarIcon&&i)("value",t.computedValue)}}function yp(n,e){if(n&1){let r=A();p(0,"tui-icon",8),O("click",function(){C(r);let i=g(2);return y(i.onIconClick())}),m()}if(n&2){let r=e.polymorpheusOutlet,t=g(2);N("t-icon_small",t.size==="s")("t-icon",!t.computedDisabled),u("icon",r.toString())}}function bp(n,e){n&1&&x(0,"input",9)}function xp(n,e){if(n&1&&_(0,yp,1,5,"tui-icon",6)(1,bp,1,0,"input",7),n&2){let r=g();u("polymorpheusOutlet",r.calendarIcon)("polymorpheusOutletContext",Tt(3,vp,r.size)),c(),u("ngIf",r.nativePicker)}}function Tp(n,e){if(n&1){let r=A();p(0,"div",12),O("mousedown.prevent.silent",function(){return C(r),y(0)}),p(1,"button",13),O("click",function(){C(r);let i=g(2);return y(i.onDayClick(i.items[0].day))}),T(2),m()()}if(n&2){let r=g(2);c(2),F(" ",r.items[0]," ")}}function Mp(n,e){if(n&1){let r=A();p(0,"tui-calendar",10),O("dayClick",function(i){C(r);let o=g();return y(o.onDayClick(i))})("monthChange",function(i){C(r);let o=g();return y(o.onMonthChange(i))})("mousedown.prevent.silent",function(){return C(r),y(0)}),m(),_(1,Tp,3,1,"div",11)}if(n&2){let r=g();u("disabledItemHandler",r.disabledItemHandler)("markerHandler",r.markerHandler)("max",r.computedMax)("min",r.computedMin)("month",r.computedActiveYearMonth)("value",r.value),c(),u("ngIf",r.items.length===1)}}var Zo=(()=>{let e=class e extends Pe{get value(){return this.host.computedValue}get max(){return this.host.computedMax}get min(){return this.host.computedMin}get format(){return this.host.dateFormat}onValueChange(t){t||(this.host.nativeValue=""),this.host.onValueChange(t)}process(t){t.inputMode="numeric"}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-input-date",3,"multiple",""]],features:[k([ye(e)]),H]});let n=e;return n})(),Op=(()=>{let e=class e{constructor(){this.host=h(Fi)}get value(){return this.host.value.length===Ye?G.normalizeParse(this.host.value,this.host.format.mode).toString("YMD","-"):""}get max(){return this.host.max.toJSON()}get min(){return this.host.min.toJSON()}onChange(t){this.host.onValueChange(t?G.normalizeParse(t,"YMD").toString(this.host.format.mode):"")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(i,o){i&1&&O("change",function(s){return o.onChange(s.target.value)})("click.stop.silent",function(){return 0})("input.stop.silent",function(){return 0})("mousedown.stop.silent",function(){return 0}),i&2&&Ht("tabIndex",-1)("value",o.value)("max",o.max)("min",o.min)},features:[k([ye(Zo)])]});let n=e;return n})(),hl=(()=>{let e=class e extends ni{constructor(){super(...arguments),this.options=h(In),this.textfieldSize=h(ne),this.mobileCalendar=h(Dn,{optional:!0}),this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=ce,this.markerHandler=null,this.items=[],this.defaultActiveYearMonth=Ct.currentLocal(),this.dateFormat=dn,this.open=!1,this.dateTexts$=h(Pn),this.valueTransformer=h(Co,{optional:!0}),this.isMobile=h(Qe),this.filler$=this.dateTexts$.pipe(it(t=>on(t[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat$=h(pn).pipe($t(this.cdr),ft()).subscribe(t=>{this.dateFormat=t})}get computedMin(){return this.min??this.options.min}get computedMax(){return this.max??this.options.max}get nativeFocusableElement(){var t;return((t=this.textfield)==null?void 0:t.nativeFocusableElement)??null}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get nativeValue(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}get computedValue(){let{value:t,nativeValue:i,activeItem:o}=this;return o?String(o):t?t.toString(this.dateFormat.mode,this.dateFormat.separator):i}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!t&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=t.length!==Ye?null:G.normalizeParse(t,this.dateFormat.mode)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get size(){return this.textfieldSize.size}get nativePicker(){return this.options.nativePicker&&!!this.mobileCalendar&&this.isMobile}get calendarIcon(){return this.options.icon}get computedActiveYearMonth(){var t;return this.items[0]&&((t=this.value)!=null&&t.daySame(this.items[0].day))?this.items[0].displayDay:this.month||this.value||Wr(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get computedMask(){return this.activeItem?te:this.computeMaskOptions(this.dateFormat.mode,this.dateFormat.separator,this.computedMin,this.computedMax)}get activeItem(){let{value:t}=this;return t&&this.items.find(i=>i.day.daySame(t))||null}onClick(){!this.isMobile&&this.interactive&&(this.open=!this.open)}getComputedFiller(t){return this.activeItem?"":t}onIconClick(){this.isMobile&&this.interactive&&(this.open=!0)}onDayClick(t){this.value=t,this.open=!1}onMonthChange(t){this.month=t}onOpenChange(t){this.open=t}onFocused(t){this.updateFocused(t)}valueIdenticalComparator(t,i){return le(t,i,(o,a)=>o.daySame(a))}computeMaskOptions(t,i,o,a){return Ss({separator:i,mode:$n[t],min:o.toLocalNativeDate(),max:a.toLocalNativeDate()})}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-input-date",3,"multiple",""]],viewQuery:function(i,o){if(i&1&&ct(Vt,5),i&2){let a;Q(a=Z())&&(o.textfield=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("click",function(){return o.onClick()}),i&2&&B("data-size",o.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[k([we(e),bn(e),ii(e),wn(Co),Sn]),H],ngContentSelectors:_p,decls:7,vars:7,consts:[["iconContent",""],["dropdown","polymorpheus"],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange",4,"tuiLet"],[3,"polymorpheus"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"focusedChange","valueChange","disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDate","","class","t-native-input",4,"ngIf"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],["tuiDate","",1,"t-native-input"],["automation-id","tui-input-date__calendar",3,"dayClick","monthChange","mousedown.prevent.silent","disabledItemHandler","markerHandler","max","min","month","value"],["class","t-button",3,"mousedown.prevent.silent",4,"ngIf"],[1,"t-button",3,"mousedown.prevent.silent"],["tuiLink","","type","button",3,"click"]],template:function(i,o){if(i&1){let a=A();ht(gp),p(0,"div",2),O("tuiDropdownOpenChange",function(l){return C(a),y(o.onOpenChange(l))}),_(1,Cp,3,11,"tui-primitive-textfield",3),S(2,"async"),_(3,xp,2,5,"ng-template",null,0,J)(5,Mp,2,7,"ng-template",4,1,J),m()}if(i&2){let a=V(6);u("tuiDropdown",a)("tuiDropdownEnabled",o.interactive&&!o.nativePicker)("tuiDropdownOpen",o.open&&o.interactive&&!o.nativePicker),c(),u("tuiLet",L(2,5,o.filler$)),c(4),u("polymorpheus",o.type)}},dependencies:[Y,Je,ut,aa,Ke,kn,Vt,li,ri,Fe,Vi,Ai,Wn,X,W,Ti,_e,Op,$],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-border-normal)}.t-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;text-align:center}.t-native-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0});let n=e;return et([ot],n.prototype,"computeMaskOptions",null),n})(),fl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,Ke,De,ai,Ie,W,Ze]});let n=e;return n})();var wp=["*",[["input"]]],Pp=["*","input"],gl=n=>({$implicit:n});function Ip(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function Dp(n,e){if(n&1&&(p(0,"div",6),_(1,Ip,2,1,"ng-container",7),m()),n&2){let r=g(2);c(),u("polymorpheusOutlet",r.computedContent)("polymorpheusOutletContext",Tt(2,gl,r.value))}}function Sp(n,e){if(n&1){let r=A();p(0,"tui-primitive-textfield",4),O("valueChange",function(i){C(r);let o=g();return y(o.onValueChange(i))}),j(1),j(2,1,["ngProjectAs","input",5,["input"]]),_(3,Dp,2,4,"div",5),m()}if(n&2){let r=e.tuiLet,t=g(),i=V(4);u("disabled",t.computedDisabled)("invalid",t.computedInvalid)("maskito",t.computedMask)("nativeId",t.nativeId)("pseudoActive",t.pseudoActive)("pseudoFocus",t.innerPseudoFocused)("pseudoHover",t.pseudoHover)("readOnly",t.readOnly)("tuiTextfieldFiller",t.getComputedRangeFiller(r||""))("tuiTextfieldIcon",t.calendarIcon&&i)("value",t.computedValue),c(3),u("ngIf",t.showValueTemplate)}}function Ep(n,e){if(n&1){let r=A();p(0,"tui-icon",9),O("click",function(){C(r);let i=g(2);return y(i.onIconClick())}),m()}if(n&2){let r=e.polymorpheusOutlet,t=g(2);N("t-icon_small",t.size==="s")("t-icon",!t.computedDisabled),u("icon",r.toString())}}function kp(n,e){if(n&1&&_(0,Ep,1,5,"tui-icon",8),n&2){let r=g();u("polymorpheusOutlet",r.calendarIcon)("polymorpheusOutletContext",Tt(2,gl,r.size))}}function Fp(n,e){if(n&1){let r=A();p(0,"tui-calendar-range",10),O("valueChange",function(i){C(r);let o=g();return y(o.onRangeChange(i))}),m()}if(n&2){let r=g();u("defaultViewedMonth",r.defaultViewedMonth)("disabledItemHandler",r.disabledItemHandler)("items",r.items)("markerHandler",r.markerHandler)("max",r.max)("maxLength",r.maxLength)("min",r.min)("minLength",r.minLength)("value",r.value)}}var _l=(()=>{let e=class e extends ni{constructor(){super(...arguments),this.isMobile=h(Qe),this.mobileCalendar=h(Dn,{optional:!0}),this.options=h(In),this.textfieldSize=h(ne),this.dateTexts$=h(Pn),this.valueTransformer=h(yo,{optional:!0}),this.dateFiller$=this.dateTexts$.pipe(it(t=>on(t[this.dateFormat.mode],this.dateFormat.separator))),this.dateFormat=dn,this.dateFormat$=h(pn).pipe($t(this.cdr),ft()).subscribe(t=>{this.dateFormat=t}),this.selectedActivePeriod=null,this.disabledItemHandler=ce,this.markerHandler=null,this.defaultViewedMonth=Ct.currentLocal(),this.items=[],this.min=this.options.min,this.max=this.options.max,this.minLength=null,this.maxLength=null,this.open=!1}get nativeFocusableElement(){var t;return((t=this.textfield)==null?void 0:t.nativeFocusableElement)??null}get focused(){var t;return!!((t=this.textfield)!=null&&t.focused)}get computedExampleText(){var t,i;return this.items.length&&((i=(t=this.textfield)==null?void 0:t.nativeFocusableElement)==null?void 0:i.placeholder)||""}get computedValue(){let{value:t,nativeValue:i,activePeriod:o}=this;return o?String(o):t?t.getFormattedDayRange(this.dateFormat.mode,this.dateFormat.separator):i}onClick(){!this.isMobile&&this.interactive&&this.toggle()}ngAfterViewChecked(){this.calendarRange&&(this.calendarRange.selectedActivePeriod=this.selectedActivePeriod,this.calendarRange.cdr.markForCheck())}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),!t&&!this.mobileCalendar&&this.onOpenChange(!0),this.value=t.length===Gr?Ot.normalizeParse(t,this.dateFormat.mode):null,this.value||(this.selectedActivePeriod=null)}onRangeChange(t){var i;this.toggle(),this.focusInput(),t||(this.nativeValue=""),this.value=t,this.selectedActivePeriod=((i=this.calendarRange)==null?void 0:i.selectedActivePeriod)??null}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get size(){return this.textfieldSize.size}get computedMobile(){return this.isMobile&&!!this.mobileCalendar}get calendarIcon(){return this.options.icon}get computedMask(){return this.activePeriod?te:this.calculateMask(this.dateFormat.mode,this.dateFormat.separator,this.min,this.max,this.minLength,this.maxLength)}get activePeriod(){return this.selectedActivePeriod??(this.items.find(t=>le(this.value,t.range,(i,o)=>i.from.daySame(o.from.dayLimit(this.min,this.max))&&i.to.daySame(o.to.dayLimit(this.min,this.max))))||null)}get showValueTemplate(){return Ut(this.value)&&!this.focused}get computedContent(){var t;return((t=this.activePeriod)==null?void 0:t.content)||this.computedValue}get innerPseudoFocused(){return this.pseudoFocus===!1?!1:this.open||this.computedFocused?!0:null}get nativeValue(){var t;return((t=this.nativeFocusableElement)==null?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}getComputedRangeFiller(t){return this.activePeriod?"":this.getDateRangeFiller(t)}onIconClick(){this.isMobile&&this.interactive&&this.onOpenChange(!0)}onOpenChange(t){this.open=t}onActiveZone(t){this.updateFocused(t),!t&&!this.itemSelected&&(this.nativeValue.length===Ye||this.nativeValue.length===Ye+po.length)&&(this.value=Ot.normalizeParse(this.nativeValue,this.dateFormat.mode))}valueIdenticalComparator(t,i){return le(t,i,(o,a)=>o.daySame(a))}get itemSelected(){return this.items.findIndex(t=>String(t)===this.nativeValue)!==-1}calculateMask(t,i,o,a,s,l){return Es({dateSeparator:i,mode:$n[t],min:(o||Nt).toLocalNativeDate(),max:(a||Kt).toLocalNativeDate(),minLength:s||{},maxLength:l||{}})}toggle(){this.open=!this.open}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}getDateRangeFiller(t){return`${t}${po}${t}`}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275cmp=M({type:e,selectors:[["tui-input-date-range"]],viewQuery:function(i,o){if(i&1&&(ct(Vt,5),ct(Di,5)),i&2){let a;Q(a=Z())&&(o.textfield=a.first),Q(a=Z())&&(o.calendarRange=a.first)}},hostVars:1,hostBindings:function(i,o){i&1&&O("click",function(){return o.onClick()}),i&2&&B("data-size",o.size)},inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonth:"defaultViewedMonth",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength"},features:[k([we(e),bn(e),ii(e),wn(yo),Sn]),H],ngContentSelectors:Pp,decls:7,vars:6,consts:[["iconContent",""],["dropdown",""],["tuiDropdownOpenMonitor","",1,"t-hosted",3,"tuiActiveZoneChange","tuiDropdownOpenChange","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","valueChange",4,"tuiLet"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"valueChange","disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value"],["ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"t-icon_small","t-icon","icon","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-input-date-range__icon","tuiAppearance","icon",3,"click","icon"],[3,"valueChange","defaultViewedMonth","disabledItemHandler","items","markerHandler","max","maxLength","min","minLength","value"]],template:function(i,o){if(i&1){let a=A();ht(wp),p(0,"div",2),O("tuiActiveZoneChange",function(l){return C(a),y(o.onActiveZone(l))})("tuiDropdownOpenChange",function(l){return C(a),y(o.onOpenChange(l))}),_(1,Sp,4,12,"tui-primitive-textfield",3),S(2,"async"),_(3,kp,1,4,"ng-template",null,0,J)(5,Fp,1,9,"ng-template",null,1,J),m()}if(i&2){let a=V(6);u("tuiDropdown",a)("tuiDropdownEnabled",o.interactive)("tuiDropdownOpen",o.open&&o.interactive),c(),u("tuiLet",L(2,4,o.dateFiller$))}},dependencies:[Y,Je,Fe,ut,Vt,li,Vi,Ai,Di,ri,Wn,W,X,Ti,_e,$],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-icon_small[_ngcontent-%COMP%]{border:.25rem solid transparent}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}"],changeDetection:0});let n=e;return et([ot],n.prototype,"calculateMask",null),n})(),vl=(()=>{let e=class e extends Pe{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}process(t){t.inputMode="numeric"}ngDoCheck(){this.host.nativeFocusableElement&&(this.host.nativeFocusableElement.placeholder=this.host.computedExampleText)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=U(e)))(o||e)}})(),e.\u0275dir=D({type:e,selectors:[["tui-input-date-range"]],features:[k([ye(e)]),H]});let n=e;return n})(),Cl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=st({type:e}),e.\u0275inj=at({imports:[z,De,Ie,Di,ai,W,Ze]});let n=e;return n})();var Ap=[{id:"1",date:"17.07.2024"}],yl=(()=>{let e=class e{constructor(){this.progress$=Ui(300,200).pipe(it(t=>t+30),he(30),gr(t=>t<=100)),this.schedule=Ap}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Rp(n,e){if(n&1&&(p(0,"tui-input-date",5),T(1," cleaning time "),x(2,"input",8),m()),n&2){let r=e.$implicit,t=e.$index,i=g();u("ariaValueMin",i.now)("formControl",r)("min",i.now)("readOnly",t==0)}}function Lp(n,e){if(n&1&&(p(0,"label",9)(1,"span",10),T(2),m(),x(3,"tui-progress-circle",11),S(4,"async"),m()),n&2){let r=e.ngIf,t=g();w("margin-bottom","auto"),c(2),F("",r,"%"),c(),w("color",L(4,7,t.color$)),u("max",100)("value",r)}}var xl=(()=>{let e=class e{constructor(){this.cleaningService=h(yl),this.now=G.currentLocal(),this.forms=new We(this.cleaningService.schedule.map(t=>new Ee(new G(G.parseRawDateString(t.date).year,G.parseRawDateString(t.date).month,G.parseRawDateString(t.date).day)))),this.color$=this.cleaningService.progress$.pipe(it(t=>t<33?"var(--tui-status-negative)":t<66?"var(--tui-status-warning)":"var(--tui-background-accent-1)"))}addNew(){this.forms.push(new Ee)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-cleaning"]],standalone:!0,features:[P],decls:12,vars:5,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"timetable"],[1,"list"],[1,"input-date",3,"ariaValueMin","formControl","min","readOnly"],["tuiProgressLabel","",3,"margin-bottom",4,"ngIf"],["appearance","primary","tuiButton","",1,"add-button",3,"click"],["tuiTextfieldLegacy",""],["tuiProgressLabel",""],[1,"percent"],["size","s",3,"max","value"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),T(3," Cleaning schedule "),m()(),p(4,"div",3)(5,"div",4),Be(6,Rp,3,4,"tui-input-date",5,He),m(),_(8,Lp,5,9,"label",6),S(9,"async"),m(),p(10,"button",7),O("click",function(){return o.addNew()}),T(11," Add "),m()()),i&2&&(c(2),w("text-align","center"),c(4),je(o.forms.controls),c(2),u("ngIf",L(9,3,o.cleaningService.progress$)))},dependencies:[$,z,Y,At,Ft,Me,$e,X,ue,_t,fl,hl,Zo,nl,Rs,Ls],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:center;height:100%;background-color:var(--tui-background-base)}.add-button[_ngcontent-%COMP%]{max-width:7rem}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem}.percent[_ngcontent-%COMP%]{font:var(--tui-font-text-m)}tui-progress-circle[_ngcontent-%COMP%]{transition:color 2s}.input-date[_ngcontent-%COMP%]{width:10rem}.timetable[_ngcontent-%COMP%]{display:flex;gap:.625rem}"],changeDetection:0});let n=e;return n})();var Np=[{name:"Room temperature \u0421\xB0",value:32},{name:"Water temperature",value:0},{name:"Air humidity, %",value:10}],Tl=(()=>{let e=class e{constructor(){this.climateControlData=Np}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function zp(n,e){if(n&1){let r=A();p(0,"tui-input-number",5),jt("ngModelChange",function(i){let o=C(r).$implicit;return kt(o.value,i)||(o.value=i),y(i)}),T(1),m()}if(n&2){let r=e.$implicit;Bt("ngModel",r.value),c(),F(" ",r.name," ")}}var Ml=(()=>{let e=class e{constructor(){this.climateControlService=h(Tl).climateControlData}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-climate-control"]],standalone:!0,features:[k([na({precision:0}),sl({step:1})]),P],decls:6,vars:3,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"group"],[3,"ngModel","ngModelChange",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),T(3," Climate control "),m()(),p(4,"div",3),_(5,zp,2,2,"tui-input-number",4),m()()),i&2&&(c(2),w("text-align","center"),c(3),u("ngForOf",o.climateControlService))},dependencies:[z,nt,At,Ft,Mt,X,_t,ul,ll,cl],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;background-color:var(--tui-background-base);height:100%}.card[tuiCardLarge][_ngcontent-%COMP%] .group[_ngcontent-%COMP%]:last-child{display:flex;margin-top:0;flex-direction:column;gap:.625rem}"],changeDetection:0});let n=e;return n})();var Xo;try{Xo=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Xo=!1}var Li=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Er(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Xo)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(Yt(xr))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var oe=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(oe||{}),Xn,Re;function Ol(){if(Re==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Re=!1,Re;if("scrollBehavior"in document.documentElement.style)Re=!0;else{let n=Element.prototype.scrollTo;n?Re=!/\{\s*\[native code\]\s*\}/.test(n.toString()):Re=!1}}return Re}function ci(){if(typeof document!="object"||!document)return oe.NORMAL;if(Xn==null){let n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let r=document.createElement("div"),t=r.style;t.width="2px",t.height="1px",n.appendChild(r),document.body.appendChild(n),Xn=oe.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,Xn=n.scrollLeft===0?oe.NEGATED:oe.INVERTED),n.remove()}return Xn}var Bp=new dt("cdk-dir-doc",{providedIn:"root",factory:jp});function jp(){return h(Se)}var Up=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function $p(n){let e=(n==null?void 0:n.toLowerCase())||"";return e==="auto"&&typeof navigator<"u"&&(navigator!=null&&navigator.language)?Up.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Kn=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new q,t){let i=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.value=$p(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(Yt(Bp,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ko=class{};function wl(n){return n&&typeof n.connect=="function"&&!(n instanceof cr)}var qn=class extends Ko{constructor(e){super(),this._data=e}connect(){return ji(this._data)?this._data:Rt(this._data)}disconnect(){}},Ni=function(n){return n[n.REPLACED=0]="REPLACED",n[n.INSERTED=1]="INSERTED",n[n.MOVED=2]="MOVED",n[n.REMOVED=3]="REMOVED",n}(Ni||{}),qo=new dt("_ViewRepeater");var Jn=class{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(e,r,t,i,o){e.forEachOperation((a,s,l)=>{let d,f;if(a.previousIndex==null){let v=()=>t(a,s,l);d=this._insertView(v,l,r,i(a)),f=d?Ni.INSERTED:Ni.REPLACED}else l==null?(this._detachAndCacheView(s,r),f=Ni.REMOVED):(d=this._moveView(s,l,r,i(a)),f=Ni.MOVED);o&&o({context:d==null?void 0:d.context,operation:f,record:a})})}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,r,t,i){let o=this._insertViewFromCache(r,t);if(o){o.context.$implicit=i;return}let a=e();return t.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(e,r){let t=r.detach(e);this._maybeCacheView(t,r)}_moveView(e,r,t,i){let o=t.get(e);return t.move(o,r),o.context.$implicit=i,o}_maybeCacheView(e,r){if(this._viewCache.length0?o/this._itemSize:0;if(r.end>i){let l=Math.ceil(t/this._itemSize),d=Math.max(0,Math.min(a,i-l));a!=d&&(a=d,o=d*this._itemSize,r.start=Math.floor(a)),r.end=Math.max(0,Math.min(i,r.start+l))}let s=o-r.start*this._itemSize;if(s0&&(r.end=Math.min(i,r.end+d),r.start=Math.max(0,Math.floor(a-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(r),this._viewport.setRenderedContentOffset(this._itemSize*r.start),this._scrolledIndexChange.next(Math.floor(a))}};function Qp(n){return n._scrollStrategy}var Sl=(()=>{let e=class e{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Jo(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=Oi(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=Oi(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=Oi(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[k([{provide:Dl,useFactory:Qp,deps:[Yi(()=>e)]}]),be]});let n=e;return n})(),Zp=20,tr=(()=>{let e=class e{constructor(t,i,o){this._ngZone=t,this._platform=i,this._scrolled=new xt,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Zp){return this._platform.isBrowser?new Hi(i=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe($i(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Rt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){let o=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(re(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,t)&&i.push(a)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let o=Qa(i),a=t.getElementRef().nativeElement;do if(o==a)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return hi(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(Yt(Dt),Yt(Li),Yt(Se,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),El=(()=>{let e=class e{constructor(t,i,o,a){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=o,this.dir=a,this._destroyed=new xt,this._elementScrolled=new Hi(s=>this.ngZone.runOutsideAngular(()=>hi(this.elementRef.nativeElement,"scroll").pipe(fi(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),o&&ci()!=oe.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),ci()==oe.INVERTED?t.left=t.right:ci()==oe.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;Ol()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left))}measureScrollOffset(t){let i="left",o="right",a=this.elementRef.nativeElement;if(t=="top")return a.scrollTop;if(t=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:i:t=="end"&&(t=s?i:o),s&&ci()==oe.INVERTED?t==i?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&ci()==oe.NEGATED?t==i?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:t==i?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}};e.\u0275fac=function(i){return new(i||e)(lt(St),lt(tr),lt(Dt),lt(Kn,8))},e.\u0275dir=D({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let n=e;return n})(),Xp=20,Kp=(()=>{let e=class e{constructor(t,i,o){this._platform=t,this._change=new xt,this._changeListener=a=>{this._change.next(a)},this._document=o,i.runOutsideAngular(()=>{if(t.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,i=this._getWindow(),o=t.documentElement,a=o.getBoundingClientRect(),s=-a.top||t.body.scrollTop||i.scrollY||o.scrollTop||0,l=-a.left||t.body.scrollLeft||i.scrollX||o.scrollLeft||0;return{top:s,left:l}}change(t=Xp){return t>0?this._change.pipe($i(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(i){return new(i||e)(Yt(Li),Yt(Dt),Yt(Se,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Pl=new dt("VIRTUAL_SCROLLABLE"),qp=(()=>{let e=class e extends El{constructor(t,i,o,a){super(t,i,o,a)}measureViewportSize(t){let i=this.elementRef.nativeElement;return t==="horizontal"?i.clientWidth:i.clientHeight}};e.\u0275fac=function(i){return new(i||e)(lt(St),lt(tr),lt(Dt),lt(Kn,8))},e.\u0275dir=D({type:e,features:[H]});let n=e;return n})();function Jp(n,e){return n.start==e.start&&n.end==e.end}var tm=typeof requestAnimationFrame<"u"?dr:ur,er=(()=>{let e=class e extends qp{get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}constructor(t,i,o,a,s,l,d,f){super(t,l,o,s),this.elementRef=t,this._changeDetectorRef=i,this._scrollStrategy=a,this.scrollable=f,this._platform=h(Li),this._detachedSubject=new xt,this._renderedRangeSubject=new xt,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new Hi(v=>this._scrollStrategy.scrolledIndexChange.subscribe(b=>Promise.resolve().then(()=>this.ngZone.run(()=>v.next(b))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=sr.EMPTY,this._injector=h(br),this._isDestroyed=!1,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(he(null),$i(0,tm),fi(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(fi(this._detachedSubject)).subscribe(i=>{let o=i.length;o!==this._dataLength&&(this._dataLength=o,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){Jp(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,i="to-start"){t=this.appendOnly&&i==="to-start"?0:t;let o=this.dir&&this.dir.value=="rtl",a=this.orientation=="horizontal",s=a?"X":"Y",d=`translate${s}(${Number((a&&o?-1:1)*t)}px)`;this._renderedContentOffset=t,i==="to-end"&&(d+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,i="auto"){let o={behavior:i};this.orientation==="horizontal"?o.start=t:o.top=t,this.scrollable.scrollTo(o)}scrollToIndex(t,i="auto"){this._scrollStrategy.scrollToIndex(t,i)}measureScrollOffset(t){let i;return this.scrollable==this?i=o=>super.measureScrollOffset(o):i=o=>this.scrollable.measureScrollOffset(o),Math.max(0,i(t??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){var f;let i,o="left",a="right",s=((f=this.dir)==null?void 0:f.value)=="rtl";t=="start"?i=s?a:o:t=="end"?i=s?o:a:t?i=t:i=this.orientation==="horizontal"?"left":"top";let l=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-l}measureRenderedContentSize(){let t=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,Mr(()=>{this._isChangeDetectionPending=!1;let t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let i of t)i()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight=this.orientation==="horizontal"?"":`${this._totalContentSize}px`,this._totalContentWidth=this.orientation==="horizontal"?`${this._totalContentSize}px`:""}};e.\u0275fac=function(i){return new(i||e)(lt(St),lt(Zt),lt(Dt),lt(Dl,8),lt(Kn,8),lt(tr),lt(Kp),lt(Pl,8))},e.\u0275cmp=M({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(i,o){if(i&1&&ct(Gp,7),i&2){let a;Q(a=Z())&&(o._contentWrapper=a.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(i,o){i&2&&N("cdk-virtual-scroll-orientation-horizontal",o.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",o.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",Dr]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[k([{provide:El,useFactory:(t,i)=>t||i,deps:[[new gi,new _r(Pl)],e]}]),no,H,P],ngContentSelectors:Yp,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(i,o){i&1&&(ht(),p(0,"div",1,0),j(2),m(),x(3,"div",2)),i&2&&(c(3),w("width",o._totalContentWidth)("height",o._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});let n=e;return n})();function Il(n,e,r){let t=r;if(!t.getBoundingClientRect)return 0;let i=t.getBoundingClientRect();return n==="horizontal"?e==="start"?i.left:i.right:e==="start"?i.top:i.bottom}var kl=(()=>{let e=class e{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,wl(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new qn(ji(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(i,o)=>t(i+(this._renderedRange?this._renderedRange.start:0),o):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=Oi(t)}constructor(t,i,o,a,s,l){this._viewContainerRef=t,this._template=i,this._differs=o,this._viewRepeater=a,this._viewport=s,this.viewChange=new xt,this._dataSourceChanges=new xt,this.dataStream=this._dataSourceChanges.pipe(he(null),fr(),Gi(([d,f])=>this._changeDataSource(d,f)),Wi(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new xt,this.dataStream.subscribe(d=>{this._data=d,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(fi(this._destroyed)).subscribe(d=>{this._renderedRange=d,this.viewChange.observers.length&&l.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(t,i){if(t.start>=t.end)return 0;t.startthis._renderedRange.end;let o=t.start-this._renderedRange.start,a=t.end-t.start,s,l;for(let d=0;d-1;d--){let f=this._viewContainerRef.get(d+o);if(f&&f.rootNodes.length){l=f.rootNodes[f.rootNodes.length-1];break}}return s&&l?Il(i,"end",l)-Il(i,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,i)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,i):i)),this._needsUpdate=!0)}_changeDataSource(t,i){return t&&t.disconnect(this),this._needsUpdate=!0,i?i.connect(this):Rt()}_updateContext(){let t=this._data.length,i=this._viewContainerRef.length;for(;i--;){let o=this._viewContainerRef.get(i);o.context.index=this._renderedRange.start+i,o.context.count=t,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(a,s,l)=>this._getEmbeddedViewArgs(a,l),a=>a.item),t.forEachIdentityChange(a=>{let s=this._viewContainerRef.get(a.currentIndex);s.context.$implicit=a.item});let i=this._data.length,o=this._viewContainerRef.length;for(;o--;){let a=this._viewContainerRef.get(o);a.context.index=this._renderedRange.start+o,a.context.count=i,this._updateComputedContextProperties(a.context)}}_updateComputedContextProperties(t){t.first=t.index===0,t.last=t.index===t.count-1,t.even=t.index%2===0,t.odd=!t.even}_getEmbeddedViewArgs(t,i){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:i}}};e.\u0275fac=function(i){return new(i||e)(lt(Or),lt(Qi),lt(Ir),lt(qo),lt(er,4),lt(Dt))},e.\u0275dir=D({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[k([{provide:qo,useClass:Jn}])]});let n=e;return n})();var ui=[{name:"Misha Zhem",img:"./example.png",status:"online"},{name:"Oleg B.",img:"OB",status:"online"},{name:"Andrey M.",img:"AM",status:"online"},{name:"Misha Zhem3",img:"./example.png",status:"online"},{name:"Vladimir D.",img:"VD",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Misha Zhem2",img:"./example.png",status:"online"},{name:"Misha Zhem4",img:"./example.png",status:"online"},{name:"Gleb H.",img:"GH",status:"online"},{name:"Andrey M.",img:"AM",status:"online"}],di=[{name:"Misha Zhem4",img:"./example.png",status:"online",last:"9:12 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1},{name:"Misha Zhem2",img:"./example.png",status:"online",last:"8:45 PM",took:!1},{name:"Misha Zhem",img:"./example.png",status:"online",last:"1:10 PM",took:!1},{name:"Misha Zhem3",img:"./example.png",status:"online",last:"11:05 AM",took:!0},{name:"Gleb H.",img:"GH",status:"online",last:"1:15 AM",took:!1},{name:"Vladimir D.",img:"VD",status:"online",last:"3:15 PM",took:!0},{name:"Oleg B.",img:"OB",status:"online",last:"11:35 AM",took:!0},{name:"Andrey M.",img:"AM",status:"online",last:"12:15 AM",took:!1}],em={contacts:ui.concat(ui,ui,ui,ui,ui),recent:di.concat(di,di,di,di,di)},Fl=(()=>{let e=class e{constructor(){this.contactsData=em}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function im(n,e){if(n&1){let r=A();p(0,"button",3),O("click",function(){let i=C(r).$index,o=g();return y(o.activeTab=i)}),p(1,"header",4)(2,"h2",5),T(3),m()()()}if(n&2){let r=e.$implicit;c(2),w("text-align","center"),c(),F(" ",r," ")}}function nm(n,e){if(n&1&&(p(0,"div",8),x(1,"tui-avatar",9),S(2,"tuiAutoColor"),p(3,"div",5),T(4),p(5,"div",10),T(6),m()(),p(7,"button",11),T(8," Call "),m()()),n&2){let r=e.$implicit;c(),w("background",L(2,5,r.img)),u("src",r.img),c(3),F(" ",r.name," "),c(2),Qt(r.status)}}function om(n,e){if(n&1&&(p(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),_(2,nm,9,7,"div",7),m()()),n&2){let r=g();c(2),u("cdkVirtualForOf",r.contactsService.contacts)}}function rm(n,e){if(n&1&&(p(0,"div",8)(1,"tui-badged-content"),x(2,"tui-avatar",12),S(3,"tuiAutoColor"),x(4,"tui-icon",13),m(),p(5,"div",5),T(6),p(7,"div",10),T(8),m()(),p(9,"div",10),T(10),m()()),n&2){let r=e.$implicit;c(2),w("background",L(3,8,r.img)),u("src",r.img),c(2),u("appearance",r.took?"error":"success")("icon",r.took?"@tui.arrow-down-left":"@tui.arrow-up-right"),c(2),F(" ",r.name," "),c(2),Qt(r.status),c(2),Qt(r.last)}}function am(n,e){if(n&1&&(p(0,"tui-scrollbar")(1,"cdk-virtual-scroll-viewport",6),_(2,rm,11,10,"div",7),m()()),n&2){let r=g();c(2),u("cdkVirtualForOf",r.contactsService.recent)}}var Al=(()=>{let e=class e{constructor(){this.contactsService=h(Fl).contactsData,this.tabs=["Contacts","Recent"],this.activeTab=0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-contacts"]],standalone:!0,features:[P],decls:6,vars:2,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal"],[3,"activeItemIndex"],["tuiTab",""],["tuiTab","",3,"click"],["tuiHeader",""],["tuiTitle",""],["itemSize","57","tuiScrollable","",1,"contacts-list","viewport","tui-zero-scrollbar"],["tuiCell","l",4,"cdkVirtualFor","cdkVirtualForOf"],["tuiCell","l"],[3,"src"],["tuiSubtitle",""],["appearance","icon","iconStart","@tui.phone","tuiIconButton",""],[1,"avatar",3,"src"],["size","s","tuiBadge","","tuiSlot","top",3,"appearance","icon"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"tui-tabs",1),Be(2,im,4,3,"button",2,He),m(),_(4,om,3,1,"tui-scrollbar")(5,am,3,1,"tui-scrollbar"),m()),i&2&&(c(),u("activeItemIndex",o.activeTab),c(),je(o.tabs),c(2),Xi(o.activeTab===0?4:5))},dependencies:[Sl,kl,er,z,X,Ha,On,Sa,rs,as,ue,_t,Ra,W,fa,Cn,Aa,Va],styles:["tui-tabs[_ngcontent-%COMP%]{display:flex;justify-content:space-around}[tuiCardLarge][_ngcontent-%COMP%] [tuiCell][data-size=l][_ngcontent-%COMP%]{margin:0;border-radius:0;box-shadow:0 1px var(--tui-border-normal)}.viewport[_ngcontent-%COMP%]{height:12.5rem}tui-badged-content[_ngcontent-%COMP%] tui-avatar[_ngcontent-%COMP%]{--t-size: 2.5rem;font:var(--tui-font-text-m);font-weight:700}"],changeDetection:0});let n=e;return n})();var sm=[{name:"Open the door",img:"@tui.door-open"},{name:"Play music",img:"@tui.speaker"},{name:"Call security",img:"@tui.shield-alert"},{name:"Turn up the heat",img:"@tui.heater"},{name:"Turn on the kettle",img:"@tui.coffee"}],Vl=(()=>{let e=class e{constructor(){this.controlPanelData=sm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function lm(n,e){if(n&1&&(p(0,"button",1)(1,"aside",2),x(2,"tui-avatar",3),m(),p(3,"h3",4),T(4),m()()),n&2){let r=e.$implicit;c(2),w("color","var(--tui-background-accent-opposite)"),u("src",r.img),c(2),F(" ",r.name," ")}}var Rl=(()=>{let e=class e{constructor(){this.controlPanelService=h(Vl).controlPanelData}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-small-card"]],standalone:!0,features:[P],decls:1,vars:1,consts:[["tuiCardLarge","","tuiHeader","","tuiSurface","elevated","class","button-card",4,"ngFor","ngForOf"],["tuiCardLarge","","tuiHeader","","tuiSurface","elevated",1,"button-card"],["tuiAccessories",""],["appearance","","size","l",3,"src"],[1,"text"]],template:function(i,o){i&1&&_(0,lm,5,4,"button",0),i&2&&u("ngForOf",o.controlPanelService)},dependencies:[z,nt,On,_t,La,wa],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-wrap:wrap;gap:.625rem;align-items:center;justify-content:space-around}@media (max-width: 50rem) and (min-width: 31.35rem){[_nghost-%COMP%]{display:grid;grid-template-columns:1fr 1fr}}.text[_ngcontent-%COMP%]{font:var(--tui-font-heading-6);margin-top:1rem;margin-bottom:1rem}[tuiHeader][_ngcontent-%COMP%] [tuiAccessories][_ngcontent-%COMP%]{gap:0}.button-card[_ngcontent-%COMP%]{display:flex;max-width:max-content;align-items:center;padding-right:1.75rem;gap:1rem}@media (max-width: 50rem){.button-card[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%}}@media (max-width: 31.25rem){.button-card[_ngcontent-%COMP%]{width:calc(100vw - 5.5rem);max-width:calc(100vw - 5.5rem);flex-shrink:0}}.button-card[_ngcontent-%COMP%]:last-child{grid-column-end:3;grid-column-start:1}"],changeDetection:0});let n=e;return n})();function cm(n,e){if(n&1&&x(0,"div",1),n&2){let r=e.$implicit,t=e.index,i=g();w("background","var(--tui-chart-categorical-0"+t+")")("height",i.getHeight(r),"%")}}var Ll=(()=>{let e=class e{constructor(){this.value=[],this.size="m"}getHeight(t){return 100*t/this.getSum(this.value)}getSum(t){return sn(...t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-bar"]],hostVars:1,hostBindings:function(i,o){i&2&&B("data-size",o.size)},inputs:{value:"value",size:"size"},standalone:!0,features:[P],decls:1,vars:1,consts:[["automation-id","tui-bar__bar",3,"background","height",4,"ngFor","ngForOf"],["automation-id","tui-bar__bar"]],template:function(i,o){i&1&&_(0,cm,1,4,"div",0),i&2&&u("ngForOf",o.value)},dependencies:[nt],styles:["[_nghost-%COMP%]{display:flex;min-width:.125rem;flex-direction:column-reverse;border-top-left-radius:var(--tui-radius-l);border-top-right-radius:var(--tui-radius-l);overflow:hidden}[data-size=l][_nghost-%COMP%]{width:1rem;max-width:1rem;margin:0 .1875rem}[data-size=m][_nghost-%COMP%]{width:.5rem;max-width:.5rem;margin:0 .1875rem}[data-size=s][_nghost-%COMP%]{width:.25rem;max-width:.5rem;margin:0 .125rem}"],changeDetection:0});let n=e;return et([ot],n.prototype,"getSum",null),n})();var um=["*"],dm=(n,e)=>({$implicit:n,index:e,flexible:!1}),pm=(n,e)=>({$implicit:n,index:e,flexible:!0});function mm(n,e){if(n&1&&Et(0,5),n&2){let r=e.$implicit,t=e.index;g(2);let i=V(4);u("ngTemplateOutlet",i)("ngTemplateOutletContext",Ki(2,dm,r,t))}}function hm(n,e){if(n&1&&(pt(0),_(1,mm,1,5,"ng-container",4),mt()),n&2){let r=g();c(),u("ngForOf",r.computedValue)}}function fm(n,e){if(n&1&&(p(0,"div",7),Et(1,5),m()),n&2){let r=e.$implicit,t=e.index;g(2);let i=V(4);c(),u("ngTemplateOutlet",i)("ngTemplateOutletContext",Ki(2,pm,r,t))}}function gm(n,e){if(n&1&&_(0,fm,2,5,"div",6),n&2){let r=g();u("ngForOf",r.computedValue)}}function _m(n,e){if(n&1&&x(0,"tui-bar",8),n&2){let r=e.flexible,t=e.index,i=e.$implicit,o=g();w("background","var(--tui-chart-categorical-0"+t+")")("height",o.getHeight(i),"%"),N("t-bar_flexible",r)("t-bar_negative",i<0),u("size",o.computedSize)("value",o.computedSegments)}}var vm=100,Cm=[],ym=[1],Nl=(()=>{let e=class e{constructor(){this.value=[],this.size="m",this.collapsed=!1}get computedValue(){return this.collapsed?ym:this.value}get computedSegments(){return this.collapsed?this.value:Cm}get computedSize(){return this.size||"m"}getHeight(t){return Math.abs(vm*t/this.getLargest(this.computedValue))}getLargest(t){return t.some(i=>i>0)?t.reduce((i,o)=>i>o?i:o,0):Math.abs(t.reduce((i,o)=>i({$implicit:n});function xm(n,e){if(n&1){let r=A();p(0,"div",2),S(1,"async"),O("mouseenter.once",function(){return C(r),y(0)}),p(2,"div",3),S(3,"tuiMapper"),x(4,"div",4,0)(6,"tui-bar-set",5),m()()}if(n&2){let r=e.$implicit,t=e.index,i=V(5),o=g();N("t-wrapper_hoverable",!!o.hintContent)("t-wrapper_hovered",L(1,15,o.drivers.get(t))),u("tuiHint",o.hintContent)("tuiHintContext",Tt(22,bm,t))("tuiHintDescribe",o.getHintId(t))("tuiHintHost",i),c(2),w("height",qi(3,17,r,o.percentMapper,o.collapsed,o.computedMax),"%"),c(4),u("collapsed",o.collapsed)("id",o.getHintId(t))("size",o.size)("tabIndex",o.hintContent?0:-1)("value",r)}}var zl=(()=>{let e=class e{constructor(){this.hintOptions=h(de,{optional:!0}),this.autoIdString=h(vn).generate(),this.drivers=ge,this.value=[],this.max=NaN,this.size="m",this.collapsed=!1,this.percentMapper=(t,i,o)=>100*(i?sn(...t):Math.max(...t))/o}get transposed(){return this.transpose(this.value)}get computedMax(){return this.max||this.getMax(this.value,this.collapsed)}get hintContent(){var t;return((t=this.hintOptions)==null?void 0:t.content)||""}getHintId(t){return`${this.autoIdString}_${t}`}transpose(t){return t.reduce((i,o)=>o.map((a,s)=>[...i[s]||[],o[s]]),[])}getMax(t,i){return i?Math.max(...t.reduce((o,a)=>o.map((s,l)=>s+a[l]))):t.reduce((o,a)=>Math.max(...a,o),0)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-bar-chart"]],viewQuery:function(i,o){if(i&1&&ct(xn,5),i&2){let a;Q(a=Z())&&(o.drivers=a)}},inputs:{value:"value",max:"max",size:"size",collapsed:"collapsed"},standalone:!0,features:[k([],[Ta({direction:"top"})]),P],decls:1,vars:1,consts:[["hintHost",""],["class","t-wrapper",3,"t-wrapper_hoverable","t-wrapper_hovered","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost","mouseenter.once",4,"ngFor","ngForOf"],[1,"t-wrapper",3,"mouseenter.once","tuiHint","tuiHintContext","tuiHintDescribe","tuiHintHost"],[1,"t-container"],[1,"t-host"],[1,"t-set",3,"collapsed","id","size","tabIndex","value"]],template:function(i,o){i&1&&_(0,xm,7,24,"div",1),i&2&&u("ngForOf",o.transposed)},dependencies:[nt,Tn,Mn,Oa,Ce,$,Nl],styles:["[_nghost-%COMP%]{display:flex;flex:1;height:100%}.t-wrapper[_ngcontent-%COMP%]{transition-property:background-color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;flex:1;align-items:flex-end;justify-content:center;height:100%}.t-wrapper_hoverable[_ngcontent-%COMP%]{cursor:pointer}.t-wrapper_hoverable[_ngcontent-%COMP%]:hover, .t-wrapper_hoverable.t-wrapper_hovered[_ngcontent-%COMP%]{background-color:#0000000d}.t-container[_ngcontent-%COMP%]{flex:1}.t-host[_ngcontent-%COMP%]{position:absolute;left:50%;right:50%}.t-set[_ngcontent-%COMP%]{border-radius:var(--tui-radius-m);pointer-events:none;outline:none}.t-set[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px var(--tui-border-focus)}"],changeDetection:0});let n=e;return et([ot],n.prototype,"transpose",null),et([ot],n.prototype,"getMax",null),n})();var Tm=n=>({$implicit:n});function Mm(n,e){if(n&1&&x(0,"tui-line-chart",2),n&2){let r=e.$implicit,t=e.first,i=g(),o=V(2);w("z-index",i.zIndex),u("dots",i.dots)("height",i.height)("smoothingFactor",i.smoothingFactor)("tuiHintContent",i.hintContent?o:"")("value",r)("width",t?i.firstWidth:i.getWidth(r[0][0]))("x",t?0:i.getX(r[0][0]))("xStringify",i.xStringify?i.daysStringify:null)("y",i.y)("yStringify",i.yStringify)}}function Om(n,e){if(n&1&&(pt(0),T(1),mt()),n&2){let r=e.polymorpheusOutlet;c(),F(" ",r," ")}}function wm(n,e){if(n&1&&_(0,Om,2,1,"ng-container",3),n&2){let r=e.$implicit,t=g();u("polymorpheusOutlet",t.hintContent)("polymorpheusOutletContext",Tt(2,Tm,t.getHintContext(r[0],t.value)))}}function Hl(n,e){return n.find(([r])=>r.daySame(e))||[e,NaN]}var ir=(()=>{let e=class e{constructor(){this.charts=ge,this.destroyRef=h(fe),this.zone=h(Dt),this.hovered$=h(xi)}ngAfterContentInit(){mi([...this.charts.map(({charts:t})=>bo(t)),this.hovered$]).pipe(re(t=>!t.some(Boolean)),bi(this.zone),ft(this.destroyRef)).subscribe(()=>{this.charts.forEach(t=>t.onHovered(NaN))})}getContext(t){return this.getMap(...this.charts.map(({value:i})=>i)).get(String(t))||[]}raise(t){let i=this.charts.map(({value:a})=>Hl(a,t)).filter(([a,s])=>!Number.isNaN(s)),o=[...i].sort((a,s)=>a[1]-s[1]);this.charts.forEach((a,s)=>{a.onHovered(t),a.zIndex=Math.max(o.indexOf(i[s]),0)})}getMap(...t){return(t[0]||[]).reduce((i,[o])=>i.set(String(o),t.map(a=>Hl(a,o))),new Map)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=D({type:e,selectors:[["","tuiLineChartHint",""]],contentQueries:function(i,o,a){if(i&1&&ae(a,nr,4),i&2){let s;Q(s=Z())&&(o.charts=s)}},inputs:{hint:[0,"tuiLineChartHint","hint"]},standalone:!0,features:[k([xi])]});let n=e;return et([ot],n.prototype,"getMap",null),n})(),Pm=[NaN,NaN],nr=(()=>{let e=class e{constructor(){this.destroyRef=h(fe),this.zone=h(Dt),this.hovered$=h(xi),this.options=h(Na),this.hintDirective=h(ir,{optional:!0}),this.charts=ge,this.y=0,this.height=0,this.smoothingFactor=this.options.smoothingFactor,this.xStringify=null,this.yStringify=null,this.dots=this.options.dots,this.zIndex=0,this.value=[],this.daysStringify=t=>this.xStringify?this.xStringify(this.getDay(t)):""}set valueSetter(t){if(!t.length){this.value=[];return}let i=t[0][0],o=[...t],a=G.lengthBetween(i,t[t.length-1][0])+1;this.value=Array.from({length:a},(s,l)=>{let d=i.append({day:l}),f=d.daySame(o[0][0])?o.shift():null,v=f?f[1]:NaN;return[d,v]})}ngAfterViewInit(){mi([bo(this.charts),this.hovered$]).pipe(re(t=>!t.some(Boolean)),bi(this.zone),ft(this.destroyRef)).subscribe(()=>{this.onHovered(NaN)})}onHovered(t){if(rn(t)){this.charts.forEach(s=>s.onHovered(NaN));return}let i=Ct.lengthBetween(this.value[0][0],t),o=G.lengthBetween(this.value[0][0],t)+this.value[0][0].day-1,a=this.charts.get(i);this.charts.forEach(s=>{s===a?a.onHovered(a.value.findIndex(l=>l[0]===o)):s.onHovered(NaN)})}get months(){return this.value.length?this.breakMonths(this.value):Hr}get firstWidth(){return this.months.length*this.value[0][0].daysCount}get hint(){var t;return((t=this.hintDirective)==null?void 0:t.hint)??this.hintContent}getHintContext(t,i){return i[t-i[0][0].day+1]}getX(t){let i=this.getDay(t),a=Ct.lengthBetween(this.value[0][0],i)*i.daysCount;return t-a}raise(t,{value:i}){let o=i[t][0],a=this.getDay(o);this.hintDirective?this.hintDirective.raise(a):this.onHovered(a)}getWidth(t){return this.getDay(t).daysCount*this.months.length}getContext(t,{value:i}){let o=i[t][0];return this.hintDirective?this.hintDirective.getContext(this.getDay(o)):this.getHintContext(o,this.value)}breakMonths(t){let i=t[0][0].day-1;return Array.from({length:Ct.lengthBetween(t[0][0],t[t.length-1][0])+1},(o,a)=>a+t[0][0].month+t[0][0].year*12).map(o=>t.map(([{month:a,year:s},l],d)=>a+s*12===o?[d+i,l]:null).filter(Ut)).map((o,a,s)=>a===s.length-1?o:[...o,s[a+1].find(l=>!Number.isNaN(l[1]))||Pm])}getDay(t){return this.value[t-this.value[0][0].day+1][0]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["tui-line-days-chart"]],viewQuery:function(i,o){if(i&1&&ct(Mi,5),i&2){let a;Q(a=Z())&&(o.charts=a)}},hostVars:2,hostBindings:function(i,o){i&2&&w("z-index",o.zIndex)},inputs:{y:"y",height:"height",smoothingFactor:"smoothingFactor",hintContent:"hintContent",xStringify:"xStringify",yStringify:"yStringify",dots:"dots",valueSetter:[0,"value","valueSetter"]},standalone:!0,features:[k([xi,{provide:za,useExisting:e}]),P],decls:3,vars:1,consts:[["hint",""],["class","t-chart",3,"dots","height","smoothingFactor","zIndex","tuiHintContent","value","width","x","xStringify","y","yStringify",4,"ngFor","ngForOf"],[1,"t-chart",3,"dots","height","smoothingFactor","tuiHintContent","value","width","x","xStringify","y","yStringify"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(i,o){i&1&&_(0,Mm,1,12,"tui-line-chart",1)(1,wm,1,4,"ng-template",null,0,J),i&2&&u("ngForOf",o.months)},dependencies:[Mi,nt,de,ut],styles:["[_nghost-%COMP%]{display:block}.t-chart[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0});let n=e;return et([ot],n.prototype,"getHintContext",null),et([ot],n.prototype,"breakMonths",null),n})();var Im={value:[[1e3,8e3,4e3,3e3,4e3],[6e3,2e3,4500,7e3,5e3]],labelsX:["Jan 2021","Feb","Mar"],labelsY:["0","10 000"]},Bl=(()=>{let e=class e{constructor(){this.costData=Im}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var jl=(()=>{let e=class e{constructor(){this.costService=h(Bl).costData,this.hint=({$implicit:t})=>this.costService.value.reduce((i,o)=>`${i}$${_n(o[t])} +`,"").trim()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-cost"]],standalone:!0,features:[P],decls:15,vars:7,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader","s"],["tuiTitle","s"],[1,"legend"],[1,"item"],[1,"name"],[1,"flex"],[1,"axes",3,"axisXLabels","axisYLabels"],[3,"max","tuiHintContent","value"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"div")(2,"header",1)(3,"h3",2),T(4," Utility costs "),m()(),p(5,"p",3)(6,"span",4)(7,"small",5),T(8,"Electricity bills"),m()(),p(9,"span",4)(10,"small",5),T(11,"Light bills"),m()()(),p(12,"div",6)(13,"tui-axes",7),x(14,"tui-bar-chart",8),m()()()()),i&2&&(c(3),w("text-align","center"),c(10),u("axisXLabels",o.costService.labelsX)("axisYLabels",o.costService.labelsY),c(),u("max",1e4)("tuiHintContent",o.hint)("value",o.costService.value))},dependencies:[z,At,X,En,zl,_t,de,ml],styles:['.axes[_ngcontent-%COMP%]{min-height:18.75rem;width:100%;--tui-chart-categorical-00: var(--tui-background-accent-1);--tui-chart-categorical-01: var(--tui-chart-categorical-12)}.flex[_ngcontent-%COMP%]{display:flex;width:100%}.select[_ngcontent-%COMP%]{max-width:20rem}.card[_ngcontent-%COMP%]{width:100%;height:100%;background-color:var(--tui-background-base)}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:last-child{color:var(--tui-chart-categorical-12)}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}'],changeDetection:0});let n=e;return n})();var Ul=(()=>{let e=class e{generateRandomData({from:t,to:i},o){return new Array(G.lengthBetween(t,i)+1).fill(0).reduce((a,s,l)=>[...a,[t.append({day:l}),Math.max((l?a[l-1][1]:o)+Math.random()*10-5,0)]],[]).filter(([a])=>a.dayOfWeek()<5)}random(t){return[this.generateRandomData(t,100)]}onlyMondays(t){return t.filter(i=>!i.dayOfWeek()).map(String)}even(t){return t.filter((i,o)=>!(o%2))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Dm(n,e){n&1&&(p(0,"span",8)(1,"small",9),T(2,"Electricity bills"),m()())}function Sm(n,e){if(n&1&&(x(0,"tui-line-days-chart",13),S(1,"tuiFilter")),n&2){let r=e.$implicit,t=g(3);u("height",200)("value",xe(1,2,r,t.filter,t.range))}}function Em(n,e){if(n&1&&(pt(0),_(1,Sm,2,6,"tui-line-days-chart",12),mt()),n&2){let r=g(2);c(),u("ngForOf",r.days)}}function km(n,e){if(n&1&&(x(0,"tui-line-chart",15),S(1,"tuiFilter"),S(2,"tuiMapper")),n&2){let r=e.$implicit,t=g(3);u("height",200)("value",xe(2,7,xe(1,3,r,t.filter,t.range),t.toNumbers,t.range))("width",t.getWidth(t.range))}}function Fm(n,e){if(n&1&&_(0,km,3,11,"tui-line-chart",14),n&2){let r=g(2);u("ngForOf",r.days)}}function Am(n,e){if(n&1&&(p(0,"tui-axes",10),_(1,Em,2,1,"ng-container",11)(2,Fm,1,1,"ng-template",null,1,J),m()),n&2){let r=e.ngIf,t=V(3),i=g(),o=V(10);u("axisXLabels",r)("horizontalLines",4)("tuiLineChartHint",o)("verticalLines",r.length),c(),u("ngIf",i.getWidth(i.show)>90)("ngIfElse",t)}}function Vm(n,e){if(n&1&&(p(0,"div",8)(1,"span",17),T(2),m()()),n&2){let r=e.$implicit;c(2),F("$",r[1].toFixed(0),"")}}function Rm(n,e){if(n&1&&(p(0,"div",16)(1,"strong"),T(2),m()(),p(3,"div"),_(4,Vm,3,1,"div",6),m()),n&2){let r=e.$implicit,t=g();c(2),Qt(t.getDate(r[0][0],t.range.from)),c(2),u("ngForOf",r)}}var $l=(()=>{let e=class e{constructor(){this.electricityService=h(Ul),this.months$=h(hn),this.show=new Ot(G.currentLocal(),G.currentLocal().append({month:3})),this.days=this.electricityService.random(this.show),this.maxLength={month:4},this.filter=([t],{from:i,to:o})=>t.daySameOrAfter(i)&&t.daySameOrBefore(o),this.toNumbers=(t,{from:i})=>t.map(([o,a])=>[G.lengthBetween(i,o),a])}get range(){return this.computeRange(this.show)}getWidth({from:t,to:i}){return G.lengthBetween(t,i)}getDate(t,i){return t instanceof G?t:i.append({day:t})}labels({from:t,to:i}){let o=G.lengthBetween(t,i);if(o>90)return this.months$.pipe(it(d=>Array.from({length:Ct.lengthBetween(t,i)+1},(f,v)=>d[t.append({month:v}).month])));let a=Array.from({length:o},(d,f)=>t.append({day:f})),s=this.electricityService.onlyMondays(a),l=a.map(String);return o>60?Rt(this.electricityService.even(s)):o>14?Rt(s):o>7?Rt(this.electricityService.even(l)):Rt(l)}onDataChange(t){this.days=this.electricityService.random(t)}computeRange(t){let{from:i,to:o}=t,a=G.lengthBetween(i,o),s=i.dayOfWeek(),l=o.dayOfWeek(),d=s?i.append({day:7-s}):i,f=l?o.append({day:7-l}):o,v=G.lengthBetween(d,f);return a>90?t:a>60?new Ot(d,f.append({day:v%14})):a>14?new Ot(d,f):new Ot(i,o.append({day:a%2}))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-electricity"]],standalone:!0,features:[P],decls:11,vars:6,consts:[["hint",""],["line",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],[1,"controls"],[3,"ngModelChange","maxLength","ngModel"],[1,"legend","tui-space_top-0"],["class","item",4,"ngFor","ngForOf"],["class","axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines",4,"ngIf"],[1,"item"],[1,"name"],[1,"axes",3,"axisXLabels","horizontalLines","tuiLineChartHint","verticalLines"],[4,"ngIf","ngIfElse"],["class","chart",3,"height","value",4,"ngFor","ngForOf"],[1,"chart",3,"height","value"],["class","chart",3,"height","value","width",4,"ngFor","ngForOf"],[1,"chart",3,"height","value","width"],[1,"tui-space_bottom-2"],[1,"value"]],template:function(i,o){if(i&1){let a=A();p(0,"div",2)(1,"div")(2,"p",3)(3,"tui-input-date-range",4),jt("ngModelChange",function(l){return C(a),kt(o.show,l)||(o.show=l),y(l)}),O("ngModelChange",function(l){return C(a),y(o.onDataChange(l))}),T(4," Data "),m()(),p(5,"p",5),_(6,Dm,3,0,"span",6),m(),_(7,Am,4,6,"tui-axes",7),S(8,"async"),m(),_(9,Rm,5,2,"ng-template",null,0,J),m()}i&2&&(c(3),u("maxLength",o.maxLength),Bt("ngModel",o.show),c(3),u("ngForOf",o.days),c(),u("ngIf",L(8,4,o.labels(o.show))))},dependencies:[$,z,nt,Y,At,Ft,Mt,X,En,_t,os,Cl,_l,vl,Mi,nr,ir,Ce],styles:['.card[_ngcontent-%COMP%]{background-color:var(--tui-background-base)}.axes[_ngcontent-%COMP%]{height:12.5rem}.controls[_ngcontent-%COMP%]{display:flex}.controls[_ngcontent-%COMP%] tui-input-date-range[_ngcontent-%COMP%]{flex:1}.legend[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.item[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);display:flex;align-items:center;margin:0 .75rem}.item[_ngcontent-%COMP%]:before{content:"";border-bottom:.125rem solid;width:1rem;margin-right:.5rem}.name[_ngcontent-%COMP%]{color:var(--tui-text-primary)}.value[_ngcontent-%COMP%]{color:var(--tui-background-base)}.chart[_ngcontent-%COMP%]{color:var(--tui-background-accent-1);position:absolute;top:0;left:0;width:100%;height:100%}'],changeDetection:0});let n=e;return n})();var Lm=[{room:"Kitchen",state:!0},{room:"Bedroom",state:!1},{room:"Bathroom",state:!0}],Wl=(()=>{let e=class e{constructor(){this.lightingData=Lm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Nm=n=>({checked:n}),zm=n=>({hidden:n});function Hm(n,e){if(n&1&&(p(0,"label",5)(1,"div",6),x(2,"input",7),T(3),m(),x(4,"tui-icon",8),m()),n&2){let r=e.$implicit,t=e.index,i=g();u("ngClass",Tt(8,Nm,r.value)),c(2),w("display","none"),u("formControl",r),c(),F(" ",i.lightingService[t].room," "),c(),w("color","var(--tui-chart-categorical-12)"),u("ngClass",Tt(10,zm,!r.value))}}var Gl=(()=>{let e=class e{constructor(){this.lightingService=h(Wl).lightingData,this.lightingForm=new We(this.lightingService.map(t=>new Ee(t.state)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-lighting"]],standalone:!0,features:[P],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",3,"ngClass",4,"ngFor","ngForOf"],["tuiBlock","",3,"ngClass"],[1,"title-room"],["tuiCheckbox","","type","checkbox",3,"formControl"],["alt","","icon","@tui.lightbulb",1,"light-svg",3,"ngClass"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),T(3," Lighting "),m()(),p(4,"form",3),_(5,Hm,5,12,"label",4),m()()),i&2&&(c(2),w("text-align","center"),c(2),u("collapsed",!0),c(),u("ngForOf",o.lightingForm.controls))},dependencies:[z,Sr,nt,At,nn,tn,Ft,en,Vr,Me,$e,X,Hn,_t,Bn,Fn,W,Pa],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;flex-shrink:0;text-align:center;height:100%;background-color:var(--tui-background-base)}.light-svg[_ngcontent-%COMP%]{width:1.875rem;height:1.875rem;margin-left:auto}.title-room[_ngcontent-%COMP%]{display:flex;height:1.875rem;align-items:center}.checked[_ngcontent-%COMP%]{background-color:var(--tui-status-warning-pale)}.hidden[_ngcontent-%COMP%]{display:none}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let n=e;return n})();var Bm=[{name:"Against All Odds",logo:"/music/against.jpg",performer:"Tiko Tiko",src:"./music/AgainstAllOdds.mp3",length:208},{name:"Howling at the Moon",logo:"/music/howling.avif",performer:"D Fine Us",src:"./music/HowlingAtTheMoon.mp3",length:195}],Yl=(()=>{let e=class e{constructor(){this.tracks=Bm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function or(n){return Math.floor(Math.random()*n)}var Ql=(()=>{let e=class e{constructor(){this.tracks=h(Yl).tracks,this.activeIndex=0,this.time=0,this.volume=1,this.repeat=!1,this.shuffle=!1,this.paused=!0}nextTrack(t){this.time=0,!this.repeat&&(this.activeIndex=this.shuffle?or(this.tracks.length):(this.activeIndex+1)%this.tracks.length,setTimeout(()=>Le(this,null,function*(){return t.play()}),1))}previousTrack(t){if(this.time=0,this.repeat)return;let i=this.activeIndex-1<0?this.tracks.length-1:this.activeIndex-1;this.activeIndex=this.shuffle?or(this.tracks.length):i,setTimeout(()=>Le(this,null,function*(){return t.play()}),1)}getMinutes(t){return(t/60<=9?"0":"")+Math.trunc(t/60).toString()}getSeconds(t){return t=Math.trunc(t),(t%60<=9?"0":"")+(t%60).toString()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-music"]],standalone:!0,features:[P],decls:30,vars:23,consts:[["audio",""],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"logo",3,"src"],[1,"tui-space_top-4","tui-space_bottom-2"],[1,"tui-space_top-0","tui-space_bottom-0"],["tuiMedia","",3,"currentTimeChange","pausedChange","volumeChange","ended","src","currentTime","paused","volume"],["size","m","tuiSlider","","type","range",3,"ngModelChange","max","ngModel"],[1,"duration"],[1,"buttons"],["appearance","icon","iconStart","@tui.shuffle","tuiIconButton","",3,"click","tuiAppearanceState"],["appearance","icon","iconStart","@tui.skip-back","tuiIconButton","",3,"click"],["appearance","icon","tuiIconButton","",3,"click","iconStart"],["appearance","icon","iconStart","@tui.skip-forward","tuiIconButton","",3,"click"],["appearance","icon","iconStart","@tui.repeat","tuiIconButton","",3,"click","tuiAppearanceState"],[1,"volume"],["icon","@tui.volume-1"],["max","1","size","m","step","0.01","tuiSlider","","type","range",3,"ngModelChange","ngModel"],["icon","@tui.volume-2"]],template:function(i,o){if(i&1){let a=A();p(0,"div",1)(1,"header",2)(2,"h2",3),T(3," Music "),m()(),p(4,"div",4),x(5,"img",5),p(6,"h2",6),T(7),m(),p(8,"p",7),T(9),m()(),p(10,"audio",8,0),jt("currentTimeChange",function(l){return C(a),kt(o.time,l)||(o.time=l),y(l)})("pausedChange",function(l){return C(a),kt(o.paused,l)||(o.paused=l),y(l)})("volumeChange",function(l){return C(a),kt(o.volume,l)||(o.volume=l),y(l)}),O("ended",function(){C(a);let l=V(11);return y(o.nextTrack(l))}),m(),p(12,"div")(13,"input",9),jt("ngModelChange",function(l){return C(a),kt(o.time,l)||(o.time=l),y(l)}),m(),p(14,"div",10)(15,"p",7),T(16),m(),p(17,"p",7),T(18),m()()(),p(19,"div",11)(20,"button",12),O("click",function(){return C(a),y(o.shuffle=!o.shuffle)}),m(),p(21,"button",13),O("click",function(){C(a);let l=V(11);return y(o.previousTrack(l))}),m(),p(22,"button",14),O("click",function(){return C(a),y(o.paused=!o.paused)}),m(),p(23,"button",15),O("click",function(){C(a);let l=V(11);return y(o.nextTrack(l))}),m(),p(24,"button",16),O("click",function(){return C(a),y(o.repeat=!o.repeat)}),m()(),x(25,"hr"),p(26,"div",17),x(27,"tui-icon",18),p(28,"input",19),jt("ngModelChange",function(l){return C(a),kt(o.volume,l)||(o.volume=l),y(l)}),m(),x(29,"tui-icon",20),m()()}if(i&2){let a=V(11);c(2),w("text-align","center"),c(3),u("src",o.tracks[o.activeIndex].logo,io),c(2),F(" ",o.tracks[o.activeIndex].name," "),c(),w("color","var(--tui-text-primary)"),c(),F(" ",o.tracks[o.activeIndex].performer," "),c(),u("src",o.tracks[o.activeIndex].src,io),Bt("currentTime",o.time)("paused",o.paused)("volume",o.volume),c(3),u("max",a.duration),Bt("ngModel",o.time),c(3),_i("",o.getMinutes(o.time),":",o.getSeconds(o.time),""),c(2),_i(" ",o.getMinutes(o.tracks[o.activeIndex].length),":",o.getSeconds(o.tracks[o.activeIndex].length)," "),c(2),u("tuiAppearanceState",o.shuffle?"active":null),c(2),u("iconStart",o.paused?"@tui.circle-play":"@tui.circle-stop"),c(2),u("tuiAppearanceState",o.repeat?"active":null),c(4),w("color","var(--tui-status-info)"),Bt("ngModel",o.volume)}},dependencies:[z,At,Ue,Rr,Ft,Mt,Me,X,ue,_t,W,ns,No],styles:[".duration[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:var(--tui-text-primary)}.buttons[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around}.volume[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.logo[_ngcontent-%COMP%]{border-radius:.5rem;width:9rem;height:9rem}"],changeDetection:0});let n=e;return n})();var jm=[{name:"Alarm system",state:!0},{name:"Close the curtains",state:!1},{name:"Video monitoring",state:!0},{name:"Enable gas sensor notification",state:!1}],Zl=(()=>{let e=class e{constructor(){this.safetyData=jm}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Um(n,e){if(n&1&&(p(0,"label",5),T(1),x(2,"input",6),m()),n&2){let r=e.$implicit,t=e.index,i=g();c(),F(" ",i.safetyService[t].name," "),c(),w("margin-left","auto"),u("formControl",r)}}var Xl=(()=>{let e=class e{constructor(){this.safetyService=h(Zl).safetyData,this.safetyForm=new We(this.safetyService.map(t=>new Ee(t.state)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-safety"]],standalone:!0,features:[P],decls:6,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],["orientation","vertical","tuiGroup","",3,"collapsed"],["tuiBlock","",4,"ngFor","ngForOf"],["tuiBlock",""],["tuiCheckbox","","type","checkbox",3,"formControl"]],template:function(i,o){i&1&&(p(0,"div",0)(1,"header",1)(2,"h2",2),T(3," Safety "),m()(),p(4,"form",3),_(5,Um,3,4,"label",4),m()()),i&2&&(c(2),w("text-align","center"),c(2),u("collapsed",!0),c(),u("ngForOf",o.safetyForm.controls))},dependencies:[z,nt,Me,nn,tn,Ft,en,$e,X,Hn,_t,Bn,Fn],styles:[".card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem;height:100%;background-color:var(--tui-background-base)}.card[tuiCardLarge][_ngcontent-%COMP%] form[_ngcontent-%COMP%]:last-child{margin-top:0}"],changeDetection:0});let n=e;return n})();var Kl=[1003,1006,1030,1087,1135],ql=[1009,1063,1180,1183,1186,1189,1192,1195,1198,1201,1204,1240,1243,1246,1249,1252,1276],Jl=[1066,1069,1072,1114,1117,1147,1168,1171,1204,1210,1213,1216,1219,1222,1225,1237,1255,1258,1261,1264,1273,1279,1282],tc=["Sun","Mon","Tues","Wed","Thurs","Fri","Sat"],ec=new dt("",{factory:()=>"1df6860ee44f43d693d113704242207"});var ic=(()=>{let e=class e{constructor(){this.http=h(kr),this.KEY=h(ec)}getWeather(){return this.http.get("https://api.weatherapi.com/v1/forecast.json",{params:{key:this.KEY,q:"London",api:"yes",days:"3"}})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $m(n,e){if(n&1&&(p(0,"div",15),x(1,"tui-icon",16),p(2,"div",5)(3,"p",9),T(4),m(),p(5,"p",9),T(6),m()()()),n&2){let r=e.$index;g();let t=ao(1),i=g();c(),u("icon",i.getSmallImage(t[r].day.condition.code)),c(),w("align-items","center"),c(),w("font-weight","600"),c(),F(" ",i.getWeekDay(t[r].date)," "),c(2),_i(" ",t[r].day.mintemp_c,"\xB0/",t[r].day.maxtemp_c,"\xB0 ")}}function Wm(n,e){if(n&1&&(oo(0)(1),p(2,"div",1)(3,"header",2)(4,"h2",3),T(5," Weather "),m()(),p(6,"div",4)(7,"div",5)(8,"h3",6),T(9),m(),p(10,"h1",7),T(11),m(),p(12,"div",8)(13,"p",9)(14,"span"),T(15),m(),T(16," \xB0/ "),p(17,"span"),T(18),m(),T(19," \xB0 "),m(),p(20,"div",10),x(21,"tui-icon",11),T(22),m(),p(23,"div",10),x(24,"tui-icon",12),T(25),m()(),p(26,"p",13),T(27),m()()(),p(28,"div",14),Be(29,$m,7,8,"div",15,He),m()()),n&2){let r=g(),t=ao(0),i=t.current;c();let o=ro(t.forecast.forecastday);c(),w("background-image",r.getImage(i.condition.code)),c(2),w("color","var(--tui-text-primary-on-accent-1)")("text-align","center"),c(5),F(" ",t.location.name," "),c(2),F("",i.temp_c,"\xB0"),c(2),w("display","flex"),c(),w("font-weight","600"),c(),Qt(i.dewpoint_c),c(2),w("font-weight","600"),c(),Qt(i.heatindex_c),c(4),F(" ",i.wind_kph,"km/h "),c(3),F(" ",i.humidity,"% "),c(2),F(" ",i.condition.text," "),c(2),je(o)}}var nc=(()=>{let e=class e{constructor(){this.weatherService=h(ic),this.info$=this.weatherService.getWeather()}getWeekDay(t){let i=t.split("-"),o=new Date(parseInt(i[0],10),parseInt(i[1],10)-1,parseInt(i[2],10));return tc[o.getDay()]}getTypeOfWeather(t){return Kl.includes(t)?"clouds":ql.includes(t)?"rain":Jl.includes(t)?"snow":"sun"}getSmallImage(t){let i=this.getTypeOfWeather(t);return i==="snow"?"@tui.snowflake":i==="rain"?"@tui.droplet":i==="clouds"?"@tui.cloud":"@tui.sun"}getImage(t){return`url(./weather/${this.getTypeOfWeather(t)}.jpg)`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["lmb-weather"]],standalone:!0,features:[P],decls:3,vars:4,consts:[["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card",3,"background-image"],["tuiAppearance","whiteblock","tuiCardLarge","normal",1,"card"],["tuiHeader",""],["tuiTitle",""],[1,"info"],[1,"left-side"],["tuiTitle","",1,"tui-text_body-m"],[1,"tui-space_top-3","tui-space_bottom-3"],[1,"description"],[1,"tui-space_top-0","tui-space_bottom-0"],[1,"indicator"],["icon","@tui.wind"],["icon","@tui.droplets"],[1,"tui-space_top-0","tui-space_bottom-0","tui-text_body-s"],[1,"list-days"],[1,"card-small"],[1,"card-icon",3,"icon"]],template:function(i,o){if(i&1&&(oo(0),S(1,"async"),_(2,Wm,31,20,"div",0)),i&2){let a=ro(L(1,1,o.info$));c(2),Xi(a?2:-1)}},dependencies:[$,z,X,_t,W],styles:[".indicator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.1rem}.card[_ngcontent-%COMP%]{background-position:center;overflow:hidden;box-shadow:inset 0 10rem 10rem 10rem #00000086;color:var(--tui-text-primary-on-accent-1)}.info[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.left-side[_ngcontent-%COMP%]{display:flex;flex-direction:column}.description[_ngcontent-%COMP%]{display:flex;gap:.625rem}.list-days[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-wrap:wrap}.card-small[_ngcontent-%COMP%]{display:flex;align-items:center}.card-icon[_ngcontent-%COMP%]{width:2rem;height:2rem}"],changeDetection:0});let n=e;return n})();var FM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=M({type:e,selectors:[["app-iot"]],standalone:!0,features:[P],decls:24,vars:0,consts:[[1,"tiles"],[1,"column"],[1,"row"],[1,"grow"]],template:function(i,o){i&1&&(p(0,"div",0),x(1,"lmb-small-card"),p(2,"div",1)(3,"div",2)(4,"div",3),x(5,"lmb-safety"),m(),p(6,"div",3),x(7,"lmb-electricity"),m(),p(8,"div",3),x(9,"lmb-climate-control"),m()(),p(10,"div",2)(11,"div",3),x(12,"lmb-lighting"),m(),p(13,"div",3),x(14,"lmb-cost"),m(),p(15,"div",3),x(16,"lmb-cleaning"),m()(),p(17,"div",2)(18,"div",3),x(19,"lmb-weather"),m(),p(20,"div",3),x(21,"lmb-music"),m(),p(22,"div",3),x(23,"lmb-contacts"),m()()()())},dependencies:[xl,Ml,z,Al,Rl,jl,$l,Gl,Ql,Xl,nc],styles:[".tiles[_ngcontent-%COMP%]{gap:1rem;padding-top:1.25rem}.grow[_ngcontent-%COMP%]{width:100%}.row[_ngcontent-%COMP%]{position:relative;display:grid;flex:0 0 auto;grid-template-columns:4fr 6fr 4fr;gap:1rem}@media (max-width: 56.25rem){.row[_ngcontent-%COMP%]{display:flex;flex:1;flex-wrap:wrap}.grow[_ngcontent-%COMP%]{height:max-content}}@media (max-width: 35.625rem){.grow[_ngcontent-%COMP%]{width:100%}}.column[_ngcontent-%COMP%]{display:flex;gap:.625rem;padding-top:1.25rem;flex-direction:column}"],changeDetection:0});let n=e;return n})();export{Ce as a,FM as b}; diff --git a/chunk-YB636DNS.js b/chunk-YB636DNS.js new file mode 100644 index 000000000..0dd5a73df --- /dev/null +++ b/chunk-YB636DNS.js @@ -0,0 +1 @@ +import{e as E,g as A}from"./chunk-Q5TS7ZXN.js";import"./chunk-MGNJSP4A.js";import{d as L,e as N,f as S,g as b,h as k}from"./chunk-DRE72XA7.js";import"./chunk-P7BVBIJ3.js";import{B as c,Mb as r,Mc as R,Ob as g,Oc as x,W as l,Xb as T,Ya as h,bc as C,cc as y,ff as D,ja as u,ob as v,qa as f,r as p,ub as m,vb as o,wb as a}from"./chunk-ZFID6WDR.js";import"./chunk-HFDGAYQF.js";var q=(()=>{let e=class e{constructor(){var i;this.activatedRoute=u(N),this.data$=u(b).events.pipe(c(t=>t instanceof L),p(t=>{var n;return(n=t.snapshot.firstChild)==null?void 0:n.data.title}),l((i=this.activatedRoute.snapshot.firstChild)==null?void 0:i.data.title))}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=f({type:e,selectors:[["lmb-dashboards"]],standalone:!0,features:[T],decls:11,vars:5,consts:[["tuiNavigationNav",""],["routerLink","/dashboards"],["icon","@tui.chevron-left"],["tuiNavigationLogo",""],["tuiFade",""]],template:function(t,n){if(t&1&&(m(0,"nav",0)(1,"a",1),a(2,"tui-icon",2),r(3," Back "),o(),r(4," / "),m(5,"span",3)(6,"span",4),r(7),C(8,"async"),o()(),a(9,"hr"),o(),a(10,"router-outlet")),t&2){let d;v("position","sticky"),h(7),g("",(d=y(8,3,n.data$))!==null&&d!==void 0?d:""," dashboard")}},dependencies:[R,x,k,S,D,E,A],encapsulation:2,changeDetection:0});let s=e;return s})();export{q as DashboardsComponent}; diff --git a/chunk-ZFID6WDR.js b/chunk-ZFID6WDR.js new file mode 100644 index 000000000..f85cf7018 --- /dev/null +++ b/chunk-ZFID6WDR.js @@ -0,0 +1,14 @@ +import{a as S,b as j,d as Ge,e as Ir}from"./chunk-HFDGAYQF.js";function C(t){return typeof t=="function"}function Zs(t){return C(t==null?void 0:t.lift)}function b(t){return e=>{if(Zs(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function An(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ii=An(t=>function(n){t(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 Gt(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var G=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage: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(C(r))try{r()}catch(o){e=o instanceof Ii?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{_l(o)}catch(s){e=e??[],s instanceof Ii?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Ii(e)}}add(e){var n;if(e&&e!==this)if(this.closed)_l(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Gt(n,e)}remove(e){let{_finalizers:n}=this;n&&Gt(n,e),e instanceof t&&e._removeParent(this)}};G.EMPTY=(()=>{let t=new G;return t.closed=!0,t})();var Qs=G.EMPTY;function wi(t){return t instanceof G||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function _l(t){C(t)?t():t.unsubscribe()}var Re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Sn={setTimeout(t,e,...n){let{delegate:r}=Sn;return r!=null&&r.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=Sn;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Ci(t){Sn.setTimeout(()=>{let{onUnhandledError:e}=Re;if(e)e(t);else throw t})}function be(){}var Ml=Ks("C",void 0,void 0);function Tl(t){return Ks("E",void 0,t)}function Al(t){return Ks("N",t,void 0)}function Ks(t,e,n){return{kind:t,value:e,error:n}}var Wt=null;function xn(t){if(Re.useDeprecatedSynchronousErrorHandling){let e=!Wt;if(e&&(Wt={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Wt;if(Wt=null,n)throw r}}else t()}function Sl(t){Re.useDeprecatedSynchronousErrorHandling&&Wt&&(Wt.errorThrown=!0,Wt.error=t)}var qt=class extends G{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,wi(e)&&e.add(this)):this.destination=cm}static create(e,n,r){return new ot(e,n,r)}next(e){this.isStopped?Xs(Al(e),this):this._next(e)}error(e){this.isStopped?Xs(Tl(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Xs(Ml,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},am=Function.prototype.bind;function Js(t,e){return am.call(t,e)}var ea=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){_i(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){_i(r)}else _i(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){_i(n)}}},ot=class extends qt{constructor(e,n,r){super();let i;if(C(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Re.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Js(e.next,o),error:e.error&&Js(e.error,o),complete:e.complete&&Js(e.complete,o)}):i=e}this.destination=new ea(i)}};function _i(t){Re.useDeprecatedSynchronousErrorHandling?Sl(t):Ci(t)}function um(t){throw t}function Xs(t,e){let{onStoppedNotification:n}=Re;n&&Sn.setTimeout(()=>n(t,e))}var cm={closed:!0,next:be,error:um,complete:be};function E(t,e,n,r,i){return new ta(t,e,n,r,i)}var ta=class extends qt{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function B(t,e){return b((n,r)=>{let i=0;n.subscribe(E(r,o=>{r.next(t.call(e,o,i++))}))})}function We(t,e){return b((n,r)=>{let i=0;n.subscribe(E(r,o=>t.call(e,o,i++)&&r.next(o)))})}function __(t,e,n,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function Nl(t,e,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{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(t,e||[])).next())})}function xl(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(t){return this instanceof Yt?(this.v=t,this):new Yt(t)}function Ol(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(i[f]=function(D){return new Promise(function(y,v){o.push([f,D,y,v])>1||u(f,D)})},p&&(i[f]=p(i[f])))}function u(f,p){try{c(r[f](p))}catch(D){h(o[0][3],D)}}function c(f){f.value instanceof Yt?Promise.resolve(f.value.v).then(l,d):h(o[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,p){f(p),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Fl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof xl=="function"?xl(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Nn=t=>t&&typeof t.length=="number"&&typeof t!="function";function Mi(t){return C(t==null?void 0:t.then)}var On=typeof Symbol=="function"&&Symbol.observable||"@@observable";function K(t){return t}function wr(...t){return na(t)}function na(t){return t.length===0?K:t.length===1?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}var I=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=dm(n)?n:new ot(n,r,i);return xn(()=>{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=Rl(r),new r((i,o)=>{let s=new ot({next:a=>{try{n(a)}catch(u){o(u),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)}[On](){return this}pipe(...n){return na(n)(this)}toPromise(n){return n=Rl(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function Rl(t){var e;return(e=t??Re.Promise)!==null&&e!==void 0?e:Promise}function lm(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function dm(t){return t&&t instanceof qt||lm(t)&&wi(t)}function Ti(t){return C(t[On])}function Ai(t){return Symbol.asyncIterator&&C(t==null?void 0:t[Symbol.asyncIterator])}function Si(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function fm(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var xi=fm();function Ni(t){return C(t==null?void 0:t[xi])}function Oi(t){return Ol(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:i}=yield Yt(n.read());if(i)return yield Yt(void 0);yield yield Yt(r)}}finally{n.releaseLock()}})}function Fi(t){return C(t==null?void 0:t.getReader)}function N(t){if(t instanceof I)return t;if(t!=null){if(Ti(t))return hm(t);if(Nn(t))return pm(t);if(Mi(t))return gm(t);if(Ai(t))return Pl(t);if(Ni(t))return mm(t);if(Fi(t))return vm(t)}throw Si(t)}function hm(t){return new I(e=>{let n=t[On]();if(C(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pm(t){return new I(e=>{for(let n=0;n{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Ci)})}function mm(t){return new I(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function Pl(t){return new I(e=>{ym(t,e).catch(n=>e.error(n))})}function vm(t){return Pl(Oi(t))}function ym(t,e){var n,r,i,o;return Nl(this,void 0,void 0,function*(){try{for(n=Fl(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.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}}e.complete()})}function fe(t,e,n,r=0,i=!1){let o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function kl(t,e,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&e.complete()},f=D=>c{o&&e.next(D),c++;let y=!1;N(n(D,l++)).subscribe(E(e,v=>{i==null||i(v),o?f(v):e.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;u.length&&cp(v)):p(v)}h()}catch(v){e.error(v)}}))};return t.subscribe(E(e,f,()=>{d=!0,h()})),()=>{a==null||a()}}function Pe(t,e,n=1/0){return C(e)?Pe((r,i)=>B((o,s)=>e(r,o,i,s))(N(t(r,i))),n):(typeof e=="number"&&(n=e),b((r,i)=>kl(r,i,t,n)))}function Cr(t=1/0){return Pe(K,t)}function Ll(){return Cr(1)}function Ri(t){return t&&C(t.schedule)}function ra(t){return t[t.length-1]}function Fn(t){return C(ra(t))?t.pop():void 0}function qe(t){return Ri(ra(t))?t.pop():void 0}function Vl(t,e){return typeof ra(t)=="number"?t.pop():e}function Pi(t,e=0){return b((n,r)=>{n.subscribe(E(r,i=>fe(r,t,()=>r.next(i),e),()=>fe(r,t,()=>r.complete(),e),i=>fe(r,t,()=>r.error(i),e)))})}function ki(t,e=0){return b((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function jl(t,e){return N(t).pipe(ki(e),Pi(e))}function Bl(t,e){return N(t).pipe(ki(e),Pi(e))}function Ul(t,e){return new I(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Hl(t,e){return new I(n=>{let r;return fe(n,e,()=>{r=t[xi](),fe(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>C(r==null?void 0:r.return)&&r.return()})}function Li(t,e){if(!t)throw new Error("Iterable cannot be null");return new I(n=>{fe(n,e,()=>{let r=t[Symbol.asyncIterator]();fe(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function $l(t,e){return Li(Oi(t),e)}function zl(t,e){if(t!=null){if(Ti(t))return jl(t,e);if(Nn(t))return Ul(t,e);if(Mi(t))return Bl(t,e);if(Ai(t))return Li(t,e);if(Ni(t))return Hl(t,e);if(Fi(t))return $l(t,e)}throw Si(t)}function se(t,e){return e?zl(t,e):N(t)}function Zt(...t){return Ll()(se(t,qe(t)))}function Qt(...t){let e=qe(t);return b((n,r)=>{(e?Zt(t,n,e):Zt(t,n)).subscribe(r)})}function ia(){return b((t,e)=>{let n=null;t._refCount++;let r=E(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let i=t._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var oa=class extends I{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Zs(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e==null||e.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new G;let n=this.getSubject();e.add(this.source.subscribe(E(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=G.EMPTY)}return e}refCount(){return ia()(this)}};var Rn={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Rn;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let i=e(o=>{n=void 0,t(o)});return new G(()=>n==null?void 0:n(i))},requestAnimationFrame(...t){let{delegate:e}=Rn;return((e==null?void 0:e.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=Rn;return((e==null?void 0:e.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0};var Gl=An(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class t extends I{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Vi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Gl}next(n){xn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){xn(()=>{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(){xn(()=>{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?Qs:(this.currentObservers=null,o.push(n),new G(()=>{this.currentObservers=null,Gt(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new I;return n.source=this,n}}return t.create=(e,n)=>new Vi(e,n),t})(),Vi=class extends he{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:Qs}};var Pn=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var _r={now(){return(_r.delegate||Date).now()},delegate:void 0};var Kt=class extends he{constructor(e=1/0,n=1/0,r=_r){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(e),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;sWl(e)&&t()),e},clearImmediate(t){Wl(t)}};var{setImmediate:Em,clearImmediate:bm}=ql,Tr={setImmediate(...t){let{delegate:e}=Tr;return((e==null?void 0:e.setImmediate)||Em)(...t)},clearImmediate(t){let{delegate:e}=Tr;return((e==null?void 0:e.clearImmediate)||bm)(t)},delegate:void 0};var Bi=class extends Ct{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Tr.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,n,r=0){var i;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:o}=e;n!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==n&&(Tr.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}};var kn=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};kn.now=_r.now;var _t=class extends kn{constructor(e,n=kn.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}};var Ui=class extends _t{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,i;e=e||r.shift();do if(i=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,i){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw i}}};var Im=new Ui(Bi);var st=new _t(Ct),Yl=st;var Hi=class extends Ct{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Rn.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,n,r=0){var i;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:o}=e;n!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==n&&(Rn.cancelAnimationFrame(n),e._scheduled=void 0)}};var $i=class extends _t{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,i;e=e||r.shift();do if(i=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,i){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw i}}};var wm=new $i(Hi);var Ce=new I(t=>t.complete());function ke(...t){let e=qe(t);return se(t,e)}function Cm(t,e){let n=C(t)?t:()=>t,r=i=>i.error(n());return new I(e?i=>e.schedule(r,0,i):r)}function _m(t){return!!t&&(t instanceof I||C(t.lift)&&C(t.subscribe))}var Jt=An(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Zl(t){return t instanceof Date&&!isNaN(t)}var{isArray:Mm}=Array;function Tm(t,e){return Mm(e)?t(...e):t(e)}function Ln(t){return B(e=>Tm(t,e))}var{isArray:Am}=Array,{getPrototypeOf:Sm,prototype:xm,keys:Nm}=Object;function zi(t){if(t.length===1){let e=t[0];if(Am(e))return{args:e,keys:null};if(Om(e)){let n=Nm(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function Om(t){return t&&typeof t=="object"&&Sm(t)===xm}function Gi(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function Fm(...t){let e=qe(t),n=Fn(t),{args:r,keys:i}=zi(t);if(r.length===0)return se([],e);let o=new I(Rm(r,e,i?s=>Gi(i,s):K));return n?o.pipe(Ln(n)):o}function Rm(t,e,n=K){return r=>{Ql(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=se(t[u],e),l=!1;c.subscribe(E(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Ql(t,e,n){t?fe(n,t,e):e()}function Pm(t){return new I(e=>{N(t()).subscribe(e)})}function ua(...t){let e=Fn(t),{args:n,keys:r}=zi(t),i=new I(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(r?Gi(r,a):a),o.complete())}))}});return e?i.pipe(Ln(e)):i}var km=["addListener","removeListener"],Lm=["addEventListener","removeEventListener"],Vm=["on","off"];function at(t,e,n,r){if(C(n)&&(r=n,n=void 0),r)return at(t,e,n).pipe(Ln(r));let[i,o]=Um(t)?Lm.map(s=>a=>t[s](e,a,n)):jm(t)?km.map(Kl(t,e)):Bm(t)?Vm.map(Kl(t,e)):[];if(!i&&Nn(t))return Pe(s=>at(s,e,n))(N(t));if(!i)throw new TypeError("Invalid event target");return new I(s=>{let a=(...u)=>s.next(1o(a)})}function Kl(t,e){return n=>r=>t[n](e,r)}function jm(t){return C(t.addListener)&&C(t.removeListener)}function Bm(t){return C(t.on)&&C(t.off)}function Um(t){return C(t.addEventListener)&&C(t.removeEventListener)}function ut(t=0,e,n=Yl){let r=-1;return e!=null&&(Ri(e)?n=e:r=e),new I(i=>{let o=Zl(t)?+t-n.now():t;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 Vn(...t){let e=qe(t),n=Vl(t,1/0),r=t;return r.length?r.length===1?N(r[0]):Cr(n)(se(r,e)):Ce}var ca=new I(be);function Jl(t){return b((e,n)=>{let r=!1,i=null,o=null,s=!1,a=()=>{if(o==null||o.unsubscribe(),o=null,r){r=!1;let c=i;i=null,n.next(c)}s&&n.complete()},u=()=>{o=null,s&&n.complete()};e.subscribe(E(n,c=>{r=!0,i=c,o||N(t(c)).subscribe(o=E(n,a,u))},()=>{s=!0,(!r||!o||o.closed)&&n.complete()}))})}function Hm(t,e=st){return Jl(()=>ut(t,e))}function Ar(t){return b((e,n)=>{let r=null,i=!1,o;r=e.subscribe(E(n,void 0,void 0,s=>{o=N(t(s,Ar(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Xl(t,e,n,r,i){return(o,s)=>{let a=n,u=e,c=0;o.subscribe(E(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function la(t,e){return C(e)?Pe(t,e,1):Pe(t,1)}function $m(t){return b((e,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)}};e.subscribe(E(n,a=>{o==null||o.unsubscribe(),r=!0,i=a,o=E(n,s,be),N(t(a)).subscribe(o)},()=>{s(),n.complete()},void 0,()=>{i=o=null}))})}function zm(t,e=st){return b((n,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,r.next(c)}};function u(){let c=s+t,l=e.now();if(l{o=c,s=e.now(),i||(i=e.schedule(u,t),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function Mt(t){return b((e,n)=>{let r=!1;e.subscribe(E(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function Tt(t){return t<=0?()=>Ce:b((e,n)=>{let r=0;e.subscribe(E(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function ed(){return b((t,e)=>{t.subscribe(E(e,be))})}function da(t){return B(()=>t)}function fa(t,e){return e?n=>Zt(e.pipe(Tt(1),ed()),n.pipe(fa(t))):Pe((n,r)=>N(t(n,r)).pipe(Tt(1),da(n)))}function Gm(t,e=st){let n=ut(t,e);return fa(()=>n)}function Wi(t,e=K){return t=t??Wm,b((n,r)=>{let i,o=!0;n.subscribe(E(r,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,r.next(s))}))})}function Wm(t,e){return t===e}function qi(t=qm){return b((e,n)=>{let r=!1;e.subscribe(E(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function qm(){return new Jt}function Yi(t){return b((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function td(t,e){let n=arguments.length>=2;return r=>r.pipe(t?We((i,o)=>t(i,o,r)):K,Tt(1),n?Mt(e):qi(()=>new Jt))}function ha(t){return t<=0?()=>Ce:b((e,n)=>{let r=[];e.subscribe(E(n,i=>{r.push(i),t{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Ym(t,e){let n=arguments.length>=2;return r=>r.pipe(t?We((i,o)=>t(i,o,r)):K,ha(1),n?Mt(e):qi(()=>new Jt))}function Zm(){return b((t,e)=>{let n,r=!1;t.subscribe(E(e,i=>{let o=n;n=i,r&&e.next([o,i]),r=!0}))})}function nd(t){let e=1/0,n;return t!=null&&(typeof t=="object"?{count:e=1/0,delay:n}=t:e=t),e<=0?()=>Ce:b((r,i)=>{let o=0,s,a=()=>{if(s==null||s.unsubscribe(),s=null,n!=null){let c=typeof n=="number"?ut(n):N(n(o)),l=E(i,()=>{l.unsubscribe(),u()});c.subscribe(l)}else u()},u=()=>{let c=!1;s=r.subscribe(E(i,void 0,()=>{++o=2,!0))}function Xt(t={}){let{connector:e=()=>new he,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,u,c=0,l=!1,d=!1,h=()=>{a==null||a.unsubscribe(),a=void 0},f=()=>{h(),s=u=void 0,l=d=!1},p=()=>{let D=s;f(),D==null||D.unsubscribe()};return b((D,y)=>{c++,!d&&!l&&h();let v=u=u??e();y.add(()=>{c--,c===0&&!d&&!l&&(a=pa(p,i))}),v.subscribe(y),!s&&c>0&&(s=new ot({next:L=>v.next(L),error:L=>{d=!0,h(),a=pa(f,n,L),v.error(L)},complete:()=>{l=!0,h(),a=pa(f,r),v.complete()}}),N(D).subscribe(s))})(o)}}function pa(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new ot({next:()=>{r.unsubscribe(),t()}});return N(e(...n)).subscribe(r)}function Zi(t,e,n){let r,i=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:e=1/0,refCount:i=!1,scheduler:n}=t:r=t??1/0,Xt({connector:()=>new Kt(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Km(t){return We((e,n)=>t<=n)}function At(t,e){return b((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(E(r,u=>{i==null||i.unsubscribe();let c=0,l=o++;N(t(u,l)).subscribe(i=E(r,d=>r.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function St(t){return b((e,n)=>{N(t).subscribe(E(n,()=>n.complete(),be)),!n.closed&&e.subscribe(n)})}function rd(t,e=!1){return b((n,r)=>{let i=0;n.subscribe(E(r,o=>{let s=t(o,i++);(s||e)&&r.next(o),!s&&r.complete()}))})}function Sr(t,e,n){let r=C(t)||e||n?{next:t,error:e,complete:n}:t;return r?b((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(E(o,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):K}function id(t,e){return b((n,r)=>{let{leading:i=!0,trailing:o=!1}=e??{},s=!1,a=null,u=null,c=!1,l=()=>{u==null||u.unsubscribe(),u=null,o&&(f(),c&&r.complete())},d=()=>{u=null,c&&r.complete()},h=p=>u=N(t(p)).subscribe(E(r,l,d)),f=()=>{if(s){s=!1;let p=a;a=null,r.next(p),!c&&h(p)}};n.subscribe(E(r,p=>{s=!0,a=p,!(u&&!u.closed)&&(i?f():h(p))},()=>{c=!0,!(o&&s&&u&&!u.closed)&&r.complete()}))})}function Jm(t,e=st,n){let r=ut(t,e);return id(()=>r,n)}function Xm(...t){let e=Fn(t);return b((n,r)=>{let i=t.length,o=new Array(i),s=t.map(()=>!1),a=!1;for(let u=0;u{o[u]=c,!a&&!s[u]&&(s[u]=!0,(a=s.every(K))&&(s=null))},be));n.subscribe(E(r,u=>{if(a){let c=[u,...o];r.next(e?e(...c):c)}}))})}function od(t,e){return Object.is(t,e)}var W=null,xr=!1,Qi=1,Le=Symbol("SIGNAL");function O(t){let e=W;return W=t,e}function sd(){return W}function ev(){return xr}var jn={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 Ji(t){if(xr)throw new Error("");if(W===null)return;W.consumerOnSignalRead(t);let e=W.nextProducerIndex++;if(ro(W),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function eo(t){ro(t);for(let e=0;e0}function ro(t){t.producerNode??(t.producerNode=[]),t.producerIndexOfThis??(t.producerIndexOfThis=[]),t.producerLastReadVersion??(t.producerLastReadVersion=[])}function fd(t){t.liveConsumerNode??(t.liveConsumerNode=[]),t.liveConsumerIndexOfThis??(t.liveConsumerIndexOfThis=[])}function hd(t){return t.producerNode!==void 0}function pd(t){let e=Object.create(nv);e.computation=t;let n=()=>{if(ad(e),Ji(e),e.value===Ki)throw e.error;return e.value};return n[Le]=e,n}var ga=Symbol("UNSET"),ma=Symbol("COMPUTING"),Ki=Symbol("ERRORED"),nv=j(S({},jn),{value:ga,dirty:!0,error:null,equal:od,producerMustRecompute(t){return t.value===ga||t.value===ma},producerRecomputeValue(t){if(t.value===ma)throw new Error("Detected cycle in computations.");let e=t.value;t.value=ma;let n=Or(t),r;try{r=t.computation()}catch(i){r=Ki,t.error=i}finally{Xi(t,n)}if(e!==ga&&e!==Ki&&r!==Ki&&t.equal(e,r)){t.value=e;return}t.value=r,t.version++}});function rv(){throw new Error}var gd=rv;function md(){gd()}function vd(t){gd=t}var va=null;function yd(t){let e=Object.create(Da);e.value=t;let n=()=>(Ji(e),e.value);return n[Le]=e,n}function io(t,e){cd()||md(),t.equal(t.value,e)||(t.value=e,iv(t))}function Dd(t,e){cd()||md(),io(t,e(t.value))}var Da=j(S({},jn),{equal:od,value:void 0});function iv(t){t.version++,tv(),ud(t),va==null||va()}function Ed(t,e,n){let r=Object.create(ov);n&&(r.consumerAllowSignalWrites=!0),r.fn=t,r.schedule=e;let i=u=>{r.cleanupFn=u};function o(u){return u.fn===null&&u.schedule===null}function s(u){o(u)||(to(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=ya)}let a=()=>{if(r.fn===null)return;if(ev())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!eo(r))return;r.hasRun=!0;let u=Or(r);try{r.cleanupFn(),r.cleanupFn=ya,r.fn(i)}finally{Xi(r,u)}};return r.ref={notify:()=>ld(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[Le]:r},r.ref}var ya=()=>{},ov=j(S({},jn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:ya});var pf="https://g.co/ng/security#xss",M=class extends Error{constructor(e,n){super(Lu(e,n)),this.code=e}};function Lu(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var gf=Symbol("InputSignalNode#UNSET"),sv=j(S({},Da),{transformFn:void 0,applyValueToInputSignal(t,e){io(t,e)}});function mf(t,e){let n=Object.create(sv);n.value=t,n.transformFn=e==null?void 0:e.transform;function r(){if(Ji(n),n.value===gf)throw new M(-950,!1);return n.value}return r[Le]=n,r}function zr(t){return{toString:t}.toString()}var oo="__parameters__";function av(t){return function(...n){if(t){let r=t(...n);for(let i in r)this[i]=r[i]}}}function Wo(t,e,n){return zr(()=>{let r=av(e);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(u,c,l){let d=u.hasOwnProperty(oo)?u[oo]:Object.defineProperty(u,oo,{value:[]})[oo];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Nt=globalThis;function V(t){for(let e in t)if(t[e]===V)return e;throw Error("Could not find renamed property on target object.")}function uv(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ae(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(ae).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` +`);return n===-1?e:e.substring(0,n)}function bd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var cv=V({__forward_ref__:V});function pt(t){return t.__forward_ref__=pt,t.toString=function(){return ae(this())},t}function ee(t){return vf(t)?t():t}function vf(t){return typeof t=="function"&&t.hasOwnProperty(cv)&&t.__forward_ref__===pt}function k(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function mn(t){return{providers:t.providers||[],imports:t.imports||[]}}function qo(t){return Id(t,yf)||Id(t,Df)}function LF(t){return qo(t)!==null}function Id(t,e){return t.hasOwnProperty(e)?t[e]:null}function lv(t){let e=t&&(t[yf]||t[Df]);return e||null}function wd(t){return t&&(t.hasOwnProperty(Cd)||t.hasOwnProperty(dv))?t[Cd]:null}var yf=V({\u0275prov:V}),Cd=V({\u0275inj:V}),Df=V({ngInjectableDef:V}),dv=V({ngInjectorDef:V}),m=class{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=k({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ef(t){return t&&!!t.\u0275providers}var fv=V({\u0275cmp:V}),hv=V({\u0275dir:V}),pv=V({\u0275pipe:V}),gv=V({\u0275mod:V}),vo=V({\u0275fac:V}),Rr=V({__NG_ELEMENT_ID__:V}),_d=V({__NG_ENV_ID__:V});function rn(t){return typeof t=="string"?t:t==null?"":String(t)}function mv(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():rn(t)}function vv(t,e){let n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new M(-200,t)}function Vu(t,e){throw new M(-201,!1)}var P=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(P||{}),Pa;function bf(){return Pa}function pe(t){let e=Pa;return Pa=t,e}function If(t,e,n){let r=qo(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&P.Optional)return null;if(e!==void 0)return e;Vu(t,"Injector")}var yv={},Pr=yv,ka="__NG_DI_FLAG__",yo="ngTempTokenPath",Dv="ngTokenPath",Ev=/\n/gm,bv="\u0275",Md="__source",$n;function Iv(){return $n}function xt(t){let e=$n;return $n=t,e}function wv(t,e=P.Default){if($n===void 0)throw new M(-203,!1);return $n===null?If(t,void 0,e):$n.get(t,e&P.Optional?null:void 0,e)}function H(t,e=P.Default){return(bf()||wv)(ee(t),e)}function g(t,e=P.Default){return H(t,Yo(e))}function Yo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function La(t){let e=[];for(let n=0;n ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ae(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Ev,` + `)}`}var VF=Zo(Wo("Inject",t=>({token:t})),-1),Gr=Zo(Wo("Optional"),8),jF=Zo(Wo("Self"),2),Wr=Zo(Wo("SkipSelf"),4);function on(t,e){let n=t.hasOwnProperty(vo);return n?t[vo]:null}function Tv(t,e,n){if(t.length!==e.length)return!1;for(let r=0;rArray.isArray(n)?ju(n,e):e(n))}function wf(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Do(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Sv(t,e){let n=[];for(let r=0;re;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function Nv(t,e,n){let r=qr(t,e);return r>=0?t[r|1]=n:(r=~r,xv(t,r,e,n)),r}function Ea(t,e){let n=qr(t,e);if(n>=0)return t[n|1]}function qr(t,e){return Ov(t,e,1)}function Ov(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<e?i=o:r=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),r&2&&c!==d){if(Ve(r))return!1;s=!0}}}}return Ve(r)||s}function Ve(t){return(t&1)===0}function Vv(t,e,n,r){if(e===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!==""&&!Ve(s)&&(e+=Ad(o,i),i=""),r=s,o=o||!Ve(r);n++}return i!==""&&(e+=Ad(o,i)),e}function zv(t){return t.map($v).join(",")}function Gv(t){let e=[],n=[],r=1,i=2;for(;r{let e=Of(t),n=j(S({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Mf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||kr.Emulated,styles:t.styles||_e,_:null,schemas:t.schemas||null,tView:null,id:""});Ff(n);let r=t.dependencies;return n.directiveDefs=xd(r,!1),n.pipeDefs=xd(r,!0),n.id=Zv(n),n})}function Wv(t){return lt(t)||Uu(t)}function qv(t){return t!==null}function vn(t){return zr(()=>({type:t.type,bootstrap:t.bootstrap||_e,declarations:t.declarations||_e,imports:t.imports||_e,exports:t.exports||_e,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Sd(t,e){if(t==null)return ct;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=Rt.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(n[o]=a!==Rt.None?[r,a]:r,e[o]=s):n[o]=r}return n}function F(t){return zr(()=>{let e=Of(t);return Ff(e),e})}function Qo(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function lt(t){return t[fv]||null}function Uu(t){return t[hv]||null}function xf(t){return t[pv]||null}function Yv(t){let e=lt(t)||Uu(t)||xf(t);return e!==null?e.standalone:!1}function Nf(t,e){let n=t[gv]||null;if(!n&&e===!0)throw new Error(`Type ${ae(t)} does not have '\u0275mod' property.`);return n}function Of(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||ct,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||_e,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Sd(t.inputs,e),outputs:Sd(t.outputs),debugInfo:null}}function Ff(t){var e;(e=t.features)==null||e.forEach(n=>n(t))}function xd(t,e){if(!t)return null;let n=e?xf:Wv;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(qv)}function Zv(t){let e=0,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of n)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Hu(t){return{\u0275providers:t}}function Qv(...t){return{\u0275providers:Rf(!0,t),\u0275fromNgModule:!0}}function Rf(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return ju(e,s=>{let a=s;ja(a,o,[],r)&&(i||(i=[]),i.push(a))}),i!==void 0&&Pf(i,o),n}function Pf(t,e){for(let n=0;n{e(o,r)})}}function ja(t,e,n,r){if(t=ee(t),!t)return!1;let i=null,o=wd(t),s=!o&<(t);if(!o&&!s){let u=t.ngModule;if(o=wd(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)ja(c,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{ju(o.imports,l=>{ja(l,e,n,r)&&(c||(c=[]),c.push(l))})}finally{}c!==void 0&&Pf(c,e)}if(!a){let c=on(i)||(()=>new i);e({provide:i,useFactory:c,deps:_e},i),e({provide:_f,useValue:i,multi:!0},i),e({provide:Eo,useValue:()=>H(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;$u(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function $u(t,e){for(let n of t)Ef(n)&&(n=n.\u0275providers),Array.isArray(n)?$u(n,e):e(n)}var Kv=V({provide:String,useValue:V});function kf(t){return t!==null&&typeof t=="object"&&Kv in t}function Jv(t){return!!(t&&t.useExisting)}function Xv(t){return!!(t&&t.useFactory)}function qn(t){return typeof t=="function"}function ey(t){return!!t.useClass}var Lf=new m(""),fo={},ty={},ba;function Ko(){return ba===void 0&&(ba=new bo),ba}var Te=class{},Vr=class extends Te{get destroyed(){return this._destroyed}constructor(e,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,Ua(e,s=>this.processProvider(s)),this.records.set(Cf,Bn(void 0,this)),i.has("environment")&&this.records.set(Te,Bn(void 0,this));let o=this.records.get(Lf);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(_f,_e,P.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=O(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(),O(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let n=xt(this),r=pe(void 0),i;try{return e()}finally{xt(n),pe(r)}}get(e,n=Pr,r=P.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(_d))return e[_d](this);r=Yo(r);let i,o=xt(this),s=pe(void 0);try{if(!(r&P.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=sy(e)&&qo(e);c&&this.injectableDefInScope(c)?u=Bn(Ba(e),fo):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=r&P.Self?Ko():this.parent;return n=r&P.Optional&&n===Pr?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[yo]=a[yo]||[]).unshift(ae(e)),o)throw a;return _v(a,e,"R3InjectorError",this.source)}else throw a}finally{pe(s),xt(o)}}resolveInjectorInitializers(){let e=O(null),n=xt(this),r=pe(void 0),i;try{let o=this.get(Eo,_e,P.Self);for(let s of o)s()}finally{xt(n),pe(r),O(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(ae(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(e){e=ee(e);let n=qn(e)?e:ee(e&&e.provide),r=ry(e);if(!qn(e)&&e.multi===!0){let i=this.records.get(n);i||(i=Bn(void 0,fo,!0),i.factory=()=>La(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=O(null);try{return n.value===fo&&(n.value=ty,n.value=n.factory()),typeof n.value=="object"&&n.value&&oy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{O(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=ee(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ba(t){let e=qo(t),n=e!==null?e.factory:on(t);if(n!==null)return n;if(t instanceof m)throw new M(204,!1);if(t instanceof Function)return ny(t);throw new M(204,!1)}function ny(t){if(t.length>0)throw new M(204,!1);let n=lv(t);return n!==null?()=>n.factory(t):()=>new t}function ry(t){if(kf(t))return Bn(void 0,t.useValue);{let e=Vf(t);return Bn(e,fo)}}function Vf(t,e,n){let r;if(qn(t)){let i=ee(t);return on(i)||Ba(i)}else if(kf(t))r=()=>ee(t.useValue);else if(Xv(t))r=()=>t.useFactory(...La(t.deps||[]));else if(Jv(t))r=()=>H(ee(t.useExisting));else{let i=ee(t&&(t.useClass||t.provide));if(iy(t))r=()=>new i(...La(t.deps));else return on(i)||Ba(i)}return r}function Bn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function iy(t){return!!t.deps}function oy(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function sy(t){return typeof t=="function"||typeof t=="object"&&t instanceof m}function Ua(t,e){for(let n of t)Array.isArray(n)?Ua(n,e):n&&Ef(n)?Ua(n.\u0275providers,e):e(n)}function zu(t,e){t instanceof Vr&&t.assertNotDestroyed();let n,r=xt(t),i=pe(void 0);try{return e()}finally{xt(r),pe(i)}}function jf(){return bf()!==void 0||Iv()!=null}function rr(t){if(!jf())throw new M(-203,!1)}function ay(t){return typeof t=="function"}var Je=0,T=1,_=2,ie=3,je=4,ve=5,Yn=6,zn=7,ne=8,Zn=9,Qe=10,$=11,jr=12,Nd=13,ir=14,Ie=15,sn=16,Un=17,Be=18,Jo=19,Bf=20,Ot=21,Gn=22,Me=23,z=25,Gu=1;var an=7,Io=8,Qn=9,re=10,wo=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(wo||{});function Ft(t){return Array.isArray(t)&&typeof t[Gu]=="object"}function gt(t){return Array.isArray(t)&&t[Gu]===!0}function Wu(t){return(t.flags&4)!==0}function Xo(t){return t.componentOffset>-1}function es(t){return(t.flags&1)===1}function dt(t){return!!t.template}function Ha(t){return(t[_]&512)!==0}var $a=class{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Uf(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}function yn(){return Hf}function Hf(t){return t.type.prototype.ngOnChanges&&(t.setInput=cy),uy}yn.ngInherit=!0;function uy(){let t=zf(this),e=t==null?void 0:t.current;if(e){let n=t.previous;if(n===ct)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function cy(t,e,n,r,i){let o=this.declaredInputs[r],s=zf(t)||ly(t,{previous:ct,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new $a(c&&c.currentValue,n,u===ct),Uf(t,e,i,n)}var $f="__ngSimpleChanges__";function zf(t){return t[$f]||null}function ly(t,e){return t[$f]=e}var Od=null;var Ye=function(t,e,n){Od!=null&&Od(t,e,n)},Gf="svg",dy="math";function Ke(t){for(;Array.isArray(t);)t=t[Je];return t}function fy(t){for(;Array.isArray(t);){if(typeof t[Gu]=="object")return t;t=t[Je]}return null}function Wf(t,e){return Ke(e[t])}function Ae(t,e){return Ke(e[t.index])}function qu(t,e){return t.data[e]}function Dn(t,e){return t[e]}function Lt(t,e){let n=e[t];return Ft(n)?n:n[Je]}function hy(t){return(t[_]&4)===4}function Yu(t){return(t[_]&128)===128}function py(t){return gt(t[ie])}function Pt(t,e){return e==null?null:t[e]}function qf(t){t[Un]=0}function Yf(t){t[_]&1024||(t[_]|=1024,Yu(t)&&ts(t))}function gy(t,e){for(;t>0;)e=e[ir],t--;return e}function Br(t){var e;return!!(t[_]&9216||(e=t[Me])!=null&&e.dirty)}function za(t){var e;(e=t[Qe].changeDetectionScheduler)==null||e.notify(7),t[_]&64&&(t[_]|=1024),Br(t)&&ts(t)}function ts(t){var n;(n=t[Qe].changeDetectionScheduler)==null||n.notify(0);let e=un(t);for(;e!==null&&!(e[_]&8192||(e[_]|=8192,!Yu(e)));)e=un(e)}function Zf(t,e){if((t[_]&256)===256)throw new M(911,!1);t[Ot]===null&&(t[Ot]=[]),t[Ot].push(e)}function my(t,e){if(t[Ot]===null)return;let n=t[Ot].indexOf(e);n!==-1&&t[Ot].splice(n,1)}function un(t){let e=t[ie];return gt(e)?e[ie]:e}var x={lFrame:ah(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Qf=!1;function vy(){return x.lFrame.elementDepthCount}function yy(){x.lFrame.elementDepthCount++}function Dy(){x.lFrame.elementDepthCount--}function Kf(){return x.bindingsEnabled}function Jf(){return x.skipHydrationRootTNode!==null}function Ey(t){return x.skipHydrationRootTNode===t}function by(){x.skipHydrationRootTNode=null}function w(){return x.lFrame.lView}function U(){return x.lFrame.tView}function BF(t){return x.lFrame.contextLView=t,t[ne]}function UF(t){return x.lFrame.contextLView=null,t}function te(){let t=Xf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Xf(){return x.lFrame.currentTNode}function Iy(){let t=x.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Vt(t,e){let n=x.lFrame;n.currentTNode=t,n.isParent=e}function Zu(){return x.lFrame.isParent}function Qu(){x.lFrame.isParent=!1}function eh(){return x.lFrame.contextLView}function th(){return Qf}function Fd(t){Qf=t}function Xe(){let t=x.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function wy(){return x.lFrame.bindingIndex}function Cy(t){return x.lFrame.bindingIndex=t}function jt(){return x.lFrame.bindingIndex++}function nh(t){let e=x.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function _y(){return x.lFrame.inI18n}function My(t,e){let n=x.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ga(e)}function Ty(){return x.lFrame.currentDirectiveIndex}function Ga(t){x.lFrame.currentDirectiveIndex=t}function rh(t){let e=x.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function ih(){return x.lFrame.currentQueryIndex}function Ku(t){x.lFrame.currentQueryIndex=t}function Ay(t){let e=t[T];return e.type===2?e.declTNode:e.type===1?t[ve]:null}function oh(t,e,n){if(n&P.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(n&P.Host);)if(i=Ay(o),i===null||(o=o[ir],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=x.lFrame=sh();return r.currentTNode=e,r.lView=t,!0}function Ju(t){let e=sh(),n=t[T];x.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function sh(){let t=x.lFrame,e=t===null?null:t.child;return e===null?ah(t):e}function ah(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function uh(){let t=x.lFrame;return x.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var ch=uh;function Xu(){let t=uh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Sy(t){return(x.lFrame.contextLView=gy(t,x.lFrame.contextLView))[ne]}function mt(){return x.lFrame.selectedIndex}function cn(t){x.lFrame.selectedIndex=t}function Yr(){let t=x.lFrame;return qu(t.tView,t.selectedIndex)}function HF(){x.lFrame.currentNamespace=Gf}function xy(){return x.lFrame.currentNamespace}var lh=!0;function ns(){return lh}function rs(t){lh=t}function Ny(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=Hf(e);(n.preOrderHooks??(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,o))}function is(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[Un]+=65536),(a>14>16&&(t[_]&3)===e&&(t[_]+=16384,Rd(a,o)):Rd(a,o)}var Wn=-1,ln=class{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Fy(t){return t instanceof ln}function Ry(t){return(t.flags&8)!==0}function Py(t){return(t.flags&16)!==0}var wa={},Wa=class{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=Yo(r);let i=this.injector.get(e,wa,r);return i!==wa||n===wa?i:this.parentInjector.get(e,n,r)}};function fh(t){return t!==Wn}function Co(t){return t&32767}function ky(t){return t>>16}function _o(t,e){let n=ky(t),r=e;for(;n>0;)r=r[ir],n--;return r}var qa=!0;function Mo(t){let e=qa;return qa=t,e}var Ly=256,hh=Ly-1,ph=5,Vy=0,Ze={};function jy(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Rr)&&(r=n[Rr]),r==null&&(r=n[Rr]=Vy++);let i=r&hh,o=1<>ph)]|=o}function To(t,e){let n=gh(t,e);if(n!==-1)return n;let r=e[T];r.firstCreatePass&&(t.injectorIndex=e.length,Ca(r.data,t),Ca(e,null),Ca(r.blueprint,null));let i=ec(t,e),o=t.injectorIndex;if(fh(i)){let s=Co(i),a=_o(i,e),u=a[T].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function Ca(t,e){t.push(0,0,0,0,0,0,0,0,e)}function gh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function ec(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=Eh(i),r===null)return Wn;if(n++,i=i[ir],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Wn}function Ya(t,e,n){jy(t,e,n)}function By(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let n=t.attrs;if(n){let r=n.length,i=0;for(;i>20,d=r?a:a+l,h=i?a+l:c;for(let f=d;f=u&&p.type===n)return f}if(i){let f=s[u];if(f&&dt(f)&&f.type===n)return u}return null}function dn(t,e,n,r){let i=t[n],o=e.data;if(Fy(i)){let s=i;s.resolving&&vv(mv(o[n]));let a=Mo(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?pe(s.injectImpl):null,l=oh(t,r,P.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&Ny(n,o[n],e)}finally{c!==null&&pe(c),Mo(a),s.resolving=!1,ch()}}return i}function Hy(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Rr)?t[Rr]:void 0;return typeof e=="number"?e>=0?e&hh:$y:e}function Pd(t,e,n){let r=1<>ph)]&r)}function kd(t,e){return!(t&P.Self)&&!(t&P.Host&&e)}var nn=class{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return yh(this._tNode,this._lView,e,Yo(r),n)}};function $y(){return new nn(te(),w())}function os(t){return zr(()=>{let e=t.prototype.constructor,n=e[vo]||Za(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[vo]||Za(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Za(t){return vf(t)?()=>{let e=Za(ee(t));return e&&e()}:on(t)}function zy(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[_]&2048&&!(s[_]&512);){let a=Dh(o,s,n,r|P.Self,Ze);if(a!==Ze)return a;let u=o.parent;if(!u){let c=s[Bf];if(c){let l=c.get(n,Ze,r);if(l!==Ze)return l}u=Eh(s),s=s[ir]}o=u}return i}function Eh(t){let e=t[T],n=e.type;return n===2?e.declTNode:n===1?t[ve]:null}function Gy(t){return By(te(),t)}function Ld(t,e=null,n=null,r){let i=bh(t,e,n,r);return i.resolveInjectorInitializers(),i}function bh(t,e=null,n=null,r,i=new Set){let o=[n||_e,Qv(t)];return r=r||(typeof t=="object"?void 0:ae(t)),new Vr(o,e||Ko(),r||null,i)}var tn=class tn{static create(e,n){if(Array.isArray(e))return Ld({name:""},n,e,"");{let r=e.name??"";return Ld({name:r},e.parent,e.providers,r)}}};tn.THROW_IF_NOT_FOUND=Pr,tn.NULL=new bo,tn.\u0275prov=k({token:tn,providedIn:"any",factory:()=>H(Cf)}),tn.__NG_ELEMENT_ID__=-1;var Ue=tn;var Wy=new m("");Wy.__NG_ELEMENT_ID__=t=>{let e=te();if(e===null)throw new M(204,!1);if(e.type&2)return e.value;if(t&P.Optional)return null;throw new M(204,!1)};var qy="ngOriginalError";function _a(t){return t[qy]}var He=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Yy,e.__NG_ENV_ID__=r=>r;let t=e;return t})(),Qa=class extends He{constructor(e){super(),this._lView=e}onDestroy(e){return Zf(this._lView,e),()=>my(this._lView,e)}};function Yy(){return new Qa(w())}var En=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Pn(!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)}};e.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ka=class extends he{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,jf()&&(this.destroyRef=g(He,{optional:!0})??void 0,this.pendingTasks=g(En,{optional:!0})??void 0)}emit(e){let n=O(null);try{super.next(e)}finally{O(n)}}subscribe(e,n,r){var u,c,l;let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let d=e;i=(u=d.next)==null?void 0:u.bind(d),o=(c=d.error)==null?void 0:c.bind(d),s=(l=d.complete)==null?void 0:l.bind(d)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof G&&e.add(a),a}wrapInTimeout(e){return n=>{var i;let r=(i=this.pendingTasks)==null?void 0:i.add();setTimeout(()=>{var o;e(n),r!==void 0&&((o=this.pendingTasks)==null||o.remove(r))})}}},J=Ka;function Ao(...t){}function Ih(t){let e,n;function r(){t=Ao;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Vd(t){return queueMicrotask(()=>t()),()=>{t=Ao}}var Z=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J(!1),this.onMicrotaskEmpty=new J(!1),this.onStable=new J(!1),this.onError=new J(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.callbackScheduled=!1,Ky(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new M(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,Zy,Ao,Ao);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},Zy={};function tc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Qy(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Ih(()=>{t.callbackScheduled=!1,Ja(t),t.isCheckStableRunning=!0,tc(t),t.isCheckStableRunning=!1})}),Ja(t))}function Ky(t){let e=()=>{Qy(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(Jy(a))return n.invokeTask(i,o,s,a);try{return jd(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Bd(t)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return jd(t),n.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Xy(a)&&e(),Bd(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Ja(t),tc(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Ja(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function jd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Bd(t){t._nesting--,tc(t)}var Xa=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new J,this.onMicrotaskEmpty=new J,this.onStable=new J,this.onError=new J}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}};function Jy(t){return wh(t,"__ignore_ng_zone__")}function Xy(t){return wh(t,"__scheduler_tick__")}function wh(t,e){var n,r;return!Array.isArray(t)||t.length!==1?!1:((r=(n=t[0])==null?void 0:n.data)==null?void 0:r[e])===!0}var fn=class{constructor(){this._console=console}handleError(e){let n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&_a(e);for(;n&&_a(n);)n=_a(n);return n||null}},eD=new m("",{providedIn:"root",factory:()=>{let t=g(Z),e=g(fn);return n=>t.runOutsideAngular(()=>e.handleError(n))}});function Ud(t,e){return mf(t,e)}function tD(t){return mf(gf,t)}var $F=(Ud.required=tD,Ud);function nD(){return or(te(),w())}function or(t,e){return new Q(Ae(t,e))}var Q=(()=>{let e=class e{constructor(r){this.nativeElement=r}};e.__NG_ELEMENT_ID__=nD;let t=e;return t})();function rD(t){return t instanceof Q?t.nativeElement:t}function iD(){return this._results[Symbol.iterator]()}var Ur=class t{get changes(){return this._changes??(this._changes=new J)}constructor(e=!1){this._emitDistinctChangesOnly=e,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=t.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=iD)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=Av(e);(this._changesDetected=!Tv(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(e){this._onDirty=e}setDirty(){var e;this.dirty=!0,(e=this._onDirty)==null||e.call(this)}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Ch(t){return(t.flags&128)===128}var _h=new Map,oD=0;function sD(){return oD++}function aD(t){_h.set(t[Jo],t)}function uD(t){_h.delete(t[Jo])}var Hd="__ngContext__";function kt(t,e){Ft(e)?(t[Hd]=e[Jo],aD(e)):t[Hd]=e}function Mh(t){return Ah(t[jr])}function Th(t){return Ah(t[je])}function Ah(t){for(;t!==null&&!gt(t);)t=t[je];return t}var eu;function zF(t){eu=t}function Sh(){if(eu!==void 0)return eu;if(typeof document<"u")return document;throw new M(210,!1)}var GF=new m("",{providedIn:"root",factory:()=>cD}),cD="ng",lD=new m(""),Zr=new m("",{providedIn:"platform",factory:()=>"unknown"});var WF=new m(""),qF=new m("",{providedIn:"root",factory:()=>{var t,e;return((e=(t=Sh().body)==null?void 0:t.querySelector("[ngCspNonce]"))==null?void 0:e.getAttribute("ngCspNonce"))||null}});var dD="h",fD="b";var hD=()=>null;function nc(t,e,n=!1){return hD(t,e,n)}var xh=!1,pD=new m("",{providedIn:"root",factory:()=>xh});var so;function gD(){if(so===void 0&&(so=null,Nt.trustedTypes))try{so=Nt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return so}function ss(t){var e;return((e=gD())==null?void 0:e.createHTML(t))||t}var ao;function Nh(){if(ao===void 0&&(ao=null,Nt.trustedTypes))try{ao=Nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ao}function $d(t){var e;return((e=Nh())==null?void 0:e.createHTML(t))||t}function zd(t){var e;return((e=Nh())==null?void 0:e.createScriptURL(t))||t}var So=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pf})`}};function Qr(t){return t instanceof So?t.changingThisBreaksApplicationSecurity:t}function rc(t,e){let n=mD(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${pf})`)}return n===e}function mD(t){return t instanceof So&&t.getTypeName()||null}function vD(t){let e=new nu(t);return yD()?new tu(e):e}var tu=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let n=new window.DOMParser().parseFromString(ss(e),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(e):(n.removeChild(n.firstChild),n)}catch{return null}}},nu=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let n=this.inertDocument.createElement("template");return n.innerHTML=ss(e),n}};function yD(){try{return!!new window.DOMParser().parseFromString(ss(""),"text/html")}catch{return!1}}var DD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Oh(t){return t=String(t),t.match(DD)?t:"unsafe:"+t}function vt(t){let e={};for(let n of t.split(","))e[n]=!0;return e}function Kr(...t){let e={};for(let n of t)for(let r in n)n.hasOwnProperty(r)&&(e[r]=!0);return e}var Fh=vt("area,br,col,hr,img,wbr"),Rh=vt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ph=vt("rp,rt"),ED=Kr(Ph,Rh),bD=Kr(Rh,vt("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")),ID=Kr(Ph,vt("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")),Gd=Kr(Fh,bD,ID,ED),kh=vt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wD=vt("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"),CD=vt("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"),_D=Kr(kh,wD,CD),MD=vt("script,style,template"),ru=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let n=e.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=SD(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=AD(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(e){let n=Wd(e).toLowerCase();if(!Gd.hasOwnProperty(n))return this.sanitizedSomething=!0,!MD.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=e.attributes;for(let i=0;i"),!0}endElement(e){let n=Wd(e).toLowerCase();Gd.hasOwnProperty(n)&&!Fh.hasOwnProperty(n)&&(this.buf.push(""))}chars(e){this.buf.push(qd(e))}};function TD(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function AD(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Lh(e);return e}function SD(t){let e=t.firstChild;if(e&&TD(t,e))throw Lh(e);return e}function Wd(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Lh(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var xD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ND=/([^\#-~ |!])/g;function qd(t){return t.replace(/&/g,"&").replace(xD,function(e){let n=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(ND,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var uo;function OD(t,e){let n=null;try{uo=uo||vD(t);let r=e?String(e):"";n=uo.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=uo.getInertBodyElement(r)}while(r!==o);let a=new ru().sanitizeChildren(Yd(n)||n);return ss(a)}finally{if(n){let r=Yd(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Yd(t){return"content"in t&&FD(t)?t.content:null}function FD(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var as=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(as||{});function YF(t){let e=oc();return e?$d(e.sanitize(as.HTML,t)||""):rc(t,"HTML")?$d(Qr(t)):OD(Sh(),rn(t))}function ic(t){let e=oc();return e?e.sanitize(as.URL,t)||"":rc(t,"URL")?Qr(t):Oh(rn(t))}function RD(t){let e=oc();if(e)return zd(e.sanitize(as.RESOURCE_URL,t)||"");if(rc(t,"ResourceURL"))return zd(Qr(t));throw new M(904,!1)}function PD(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?RD:ic}function ZF(t,e,n){return PD(e,n)(t)}function oc(){let t=w();return t&&t[Qe].sanitizer}var kD=/^>|^->||--!>|)/g,VD="\u200B$1\u200B";function jD(t){return t.replace(kD,e=>e.replace(LD,VD))}function QF(t){return t.ownerDocument.defaultView}function KF(t){return t.ownerDocument}function Vh(t){return t instanceof Function?t():t}function BD(t){return(t??g(Ue)).get(Zr)==="browser"}var xo=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(xo||{}),UD;function sc(t,e){return UD(t,e)}function Hn(t,e,n,r,i){if(r!=null){let o,s=!1;gt(r)?o=r:Ft(r)&&(s=!0,r=r[Je]);let a=Ke(r);t===0&&n!==null?i==null?$h(e,n,a):No(e,n,a,i||null,!0):t===1&&n!==null?No(e,n,a,i||null,!0):t===2?nE(e,a,s):t===3&&e.destroyNode(a),o!=null&&iE(e,t,o,n,i)}}function HD(t,e){return t.createText(e)}function $D(t,e,n){t.setValue(e,n)}function zD(t,e){return t.createComment(jD(e))}function jh(t,e,n){return t.createElement(e,n)}function GD(t,e){Bh(t,e),e[Je]=null,e[ve]=null}function WD(t,e,n,r,i,o){r[Je]=i,r[ve]=e,ls(t,r,n,1,i,o)}function Bh(t,e){var n;(n=e[Qe].changeDetectionScheduler)==null||n.notify(8),ls(t,e,e[$],2,null,null)}function qD(t){let e=t[jr];if(!e)return Ma(t[T],t);for(;e;){let n=null;if(Ft(e))n=e[jr];else{let r=e[re];r&&(n=r)}if(!n){for(;e&&!e[je]&&e!==t;)Ft(e)&&Ma(e[T],e),e=e[ie];e===null&&(e=t),Ft(e)&&Ma(e[T],e),n=e&&e[je]}e=n}}function YD(t,e,n,r){let i=re+r,o=n.length;r>0&&(n[i-1][je]=e),r0&&(t[n-1][je]=r[je]);let o=Do(t,re+e);GD(r[T],r);let s=o[Be];s!==null&&s.detachView(o[T]),r[ie]=null,r[je]=null,r[_]&=-129}return r}function us(t,e){if(!(e[_]&256)){let n=e[$];n.destroyNode&&ls(t,e,n,3,null,null),qD(e)}}function Ma(t,e){if(e[_]&256)return;let n=O(null);try{e[_]&=-129,e[_]|=256,e[Me]&&to(e[Me]),QD(t,e),ZD(t,e),e[T].type===1&&e[$].destroy();let r=e[sn];if(r!==null&>(e[ie])){r!==e[ie]&&ac(r,e);let i=e[Be];i!==null&&i.detachView(t)}uD(e)}finally{O(n)}}function ZD(t,e){let n=t.cleanup,r=e[zn];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&&(e[zn]=null);let i=e[Ot];if(i!==null){e[Ot]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===kr.None||o===kr.Emulated)return null}return Ae(r,n)}}function No(t,e,n,r,i){t.insertBefore(e,n,r,i)}function $h(t,e,n){t.appendChild(e,n)}function Zd(t,e,n,r,i){r!==null?No(t,e,n,r,i):$h(t,e,n)}function JD(t,e,n,r){t.removeChild(e,n,r)}function uc(t,e){return t.parentNode(e)}function XD(t,e){return t.nextSibling(e)}function zh(t,e,n){return tE(t,e,n)}function eE(t,e,n){return t.type&40?Ae(t,n):null}var tE=eE,Qd;function cs(t,e,n,r){let i=Hh(t,r,e),o=e[$],s=r.parent||e[ve],a=zh(s,r,e);if(i!=null)if(Array.isArray(n))for(let u=0;uz&&Zh(t,e,z,!1),Ye(s?2:0,i),n(r,i)}finally{cn(o),Ye(s?3:1,i)}}function lc(t,e,n){if(Wu(e)){let r=O(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function hE(t,e,n,r){let i=ip(e);i.push(n),t.firstCreatePass&&op(t).push(r,i.length-1)}function pE(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return Jf()&&(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:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Kd(t,e,n,r,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;r??(r={});let a,u=Rt.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?Jd(r,n,c,a,u):Jd(r,n,c,a)}return r}function Jd(t,e,n,r,i){let o;t.hasOwnProperty(n)?(o=t[n]).push(e,r):o=t[n]=[e,r],i!==void 0&&o.push(i)}function gE(t,e,n){let r=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function EE(t,e,n,r){let i=n.directiveStart,o=n.directiveEnd;Xo(n)&&TE(e,n,t.data[i+n.componentOffset]),t.firstCreatePass||To(n,e),kt(r,e);let s=n.initialInputs;for(let a=i;a{ts(t.lView)},consumerOnSignalRead(){this.lView[Me]=this}});function UE(t){let e=t[Me]??Object.create(HE);return e.lView=t,e}var HE=j(S({},jn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=un(t.lView);for(;e&&!dp(e[T]);)e=un(e);e&&Yf(e)},consumerOnSignalRead(){this.lView[Me]=this}});function dp(t){return t.type!==2}var $E=100;function fp(t,e=!0,n=0){var s,a,u;let r=t[Qe],i=r.rendererFactory,o=!1;o||(s=i.begin)==null||s.call(i);try{zE(t,n)}catch(c){throw e&&sp(t,c),c}finally{o||((a=i.end)==null||a.call(i),(u=r.inlineEffectRunner)==null||u.flush())}}function zE(t,e){let n=th();try{Fd(!0),au(t,e);let r=0;for(;Br(t);){if(r===$E)throw new M(103,!1);r++,au(t,1)}}finally{Fd(n)}}function GE(t,e,n,r){var l;let i=e[_];if((i&256)===256)return;let o=!1,s=!1;!o&&((l=e[Qe].inlineEffectRunner)==null||l.flush()),Ju(e);let a=!0,u=null,c=null;o||(dp(t)?(c=LE(e),u=Or(c)):sd()===null?(a=!1,c=UE(e),u=Or(c)):e[Me]&&(to(e[Me]),e[Me]=null));try{qf(e),Cy(t.bindingStartIndex),n!==null&&Jh(t,e,n,2,r);let d=(i&3)===3;if(!o)if(d){let p=t.preOrderCheckHooks;p!==null&&ho(e,p,null)}else{let p=t.preOrderHooks;p!==null&&po(e,p,0,null),Ia(e,0)}if(s||WE(e),hp(e,0),t.contentQueries!==null&&rp(t,e),!o)if(d){let p=t.contentCheckHooks;p!==null&&ho(e,p)}else{let p=t.contentHooks;p!==null&&po(e,p,1),Ia(e,1)}aE(t,e);let h=t.components;h!==null&&gp(e,h,0);let f=t.viewQuery;if(f!==null&&su(2,f,r),!o)if(d){let p=t.viewCheckHooks;p!==null&&ho(e,p)}else{let p=t.viewHooks;p!==null&&po(e,p,2),Ia(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Gn]){for(let p of e[Gn])p();e[Gn]=null}o||(e[_]&=-73)}catch(d){throw o||ts(e),d}finally{c!==null&&(Xi(c,u),a&&jE(c)),Xu()}}function hp(t,e){for(let n=Mh(t);n!==null;n=Th(n))for(let r=re;r-1&&(Hr(e,r),Do(n,r))}this._attachedToViewContainer=!1}us(this._lView[T],this._lView)}onDestroy(e){Zf(this._lView,e)}markForCheck(){vc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[_]&=-129}reattach(){za(this._lView),this._lView[_]|=128}detectChanges(){this._lView[_]|=1024,fp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ha(this._lView),n=this._lView[sn];n!==null&&!e&&ac(n,this._lView),Bh(this._lView[T],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=e;let n=Ha(this._lView),r=this._lView[sn];r!==null&&!n&&Uh(r,this._lView),za(this._lView)}},ft=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=QE;let t=e;return t})(),YE=ft,ZE=class extends YE{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var e;return((e=this._declarationTContainer.tView)==null?void 0:e.ssrId)||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let i=Xr(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new hn(i)}};function QE(){return ps(te(),w())}function ps(t,e){return t.type&4?new ZE(e,t,or(t,e)):null}var eR=new RegExp(`^(\\d+)*(${fD}|${dD})*(.*)`);var KE=()=>null;function Jn(t,e){return KE(t,e)}var Xn=class{},yc=new m("",{providedIn:"root",factory:()=>!1});var mp=new m(""),uu=class{},Fo=class{};function JE(t){let e=Error(`No component factory found for ${ae(t)}.`);return e[XE]=t,e}var XE="ngComponent";var cu=class{resolveComponentFactory(e){throw JE(e)}},Oc=class Oc{};Oc.NULL=new cu;var er=Oc,Ro=class{},sr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>eb();let t=e;return t})();function eb(){let t=w(),e=te(),n=Lt(e.index,t);return(Ft(n)?n:t)[$]}var tb=(()=>{let e=class e{};e.\u0275prov=k({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var Xd=new Set;function $e(t){var e;Xd.has(t)||(Xd.add(t),(e=performance==null?void 0:performance.mark)==null||e.call(performance,"mark_feature_usage",{detail:{feature:t}}))}var ge=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ge||{}),nb={destroy(){}};function rb(t,e){!e&&rr(rb);let n=(e==null?void 0:e.injector)??g(Ue);return BD(n)?($e("NgAfterNextRender"),ob(t,n,!0,(e==null?void 0:e.phase)??ge.MixedReadWrite)):nb}function ib(t,e){if(t instanceof Function)switch(e){case ge.EarlyRead:return{earlyRead:t};case ge.Write:return{write:t};case ge.MixedReadWrite:return{mixedReadWrite:t};case ge.Read:return{read:t}}return t}function ob(t,e,n,r){let i=ib(t,r),o=e.get(Dc),s=o.handler??(o.handler=new du),a=[],u=[],c=()=>{for(let f of u)s.unregister(f);l()},l=e.get(He).onDestroy(c),d=0,h=(f,p)=>{if(!p)return;let D=n?(...v)=>(d--,d<1&&c(),p(...v)):p,y=zu(e,()=>new lu(f,a,D));s.register(y),u.push(y),d++};return h(ge.EarlyRead,i.earlyRead),h(ge.Write,i.write),h(ge.MixedReadWrite,i.mixedReadWrite),h(ge.Read,i.read),{destroy:c}}var lu=class{constructor(e,n,r){var i;this.phase=e,this.pipelinedArgs=n,this.callbackFn=r,this.zone=g(Z),this.errorHandler=g(fn,{optional:!0}),(i=g(Xn,{optional:!0}))==null||i.notify(6)}invoke(){var e;try{let n=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,n)}catch(n){(e=this.errorHandler)==null||e.handleError(n)}}},du=class{constructor(){this.executingCallbacks=!1,this.buckets={[ge.EarlyRead]:new Set,[ge.Write]:new Set,[ge.MixedReadWrite]:new Set,[ge.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let n of e)n.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Dc=(()=>{let e=class e{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}};e.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Po(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&qh(t,n,o.join(" "))}}function fb(t,e,n){let r=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=pb;let t=e;return t})();function pb(){let t=te();return yp(t,w())}var gb=tt,vp=class extends gb{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return or(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){let e=ec(this._hostTNode,this._hostLView);if(fh(e)){let n=_o(e,this._hostLView),r=Co(e),i=n[T].data[r+8];return new nn(i,n)}else return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=tf(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-re}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Jn(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Kn(this._hostTNode,s)),a}createComponent(e,n,r,i,o){let s=e&&!ay(e),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,i=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let u=s?e:new pn(lt(e)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let D=(s?c:this.parentInjector).get(Te,null);D&&(o=D)}let l=lt(u.componentType??{}),d=Jn(this._lContainer,(l==null?void 0:l.id)??null),h=(d==null?void 0:d.firstChild)??null,f=u.create(c,i,h,o);return this.insertImpl(f.hostView,a,Kn(this._hostTNode,d)),f}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(py(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[ie],c=new vp(u,u[ve],u[ie]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return ei(s,i,o,r),e.attachToViewContainerRef(),wf(Ta(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=tf(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=Hr(this._lContainer,n);r&&(Do(Ta(this._lContainer),n),us(r[T],r))}detach(e){let n=this._adjustIndex(e,-1),r=Hr(this._lContainer,n);return r&&Do(Ta(this._lContainer),n)!=null?new hn(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function tf(t){return t[Io]}function Ta(t){return t[Io]||(t[Io]=[])}function yp(t,e){let n,r=e[t.index];return gt(r)?n=r:(n=np(r,e,null,t),e[t.index]=n,hs(e,n)),vb(n,e,t,r),new vp(n,t,e)}function mb(t,e){let n=t[$],r=n.createComment(""),i=Ae(e,t),o=uc(n,i);return No(n,o,r,XD(n,i),!1),r}var vb=Eb,yb=()=>!1;function Db(t,e,n){return yb(t,e,n)}function Eb(t,e,n,r){if(t[an])return;let i;n.type&8?i=Ke(r):i=mb(e,n),t[an]=i}var hu=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},pu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=re;de.trim())}function bp(t,e,n){t.queries===null&&(t.queries=new gu),t.queries.track(new mu(e,n))}function Sb(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function Ec(t,e){return t.queries.getByIndex(e)}function xb(t,e){let n=t[T],r=Ec(n,e);return r.crossesNgTemplate?vu(n,t,e,[]):Dp(n,t,r,e)}function gs(t){return typeof t=="function"&&t[Le]!==void 0}function nt(t,e){$e("NgSignals");let n=yd(t),r=n[Le];return e!=null&&e.equal&&(r.equal=e.equal),n.set=i=>io(r,i),n.update=i=>Dd(r,i),n.asReadonly=Nb.bind(n),n}function Nb(){let t=this[Le];if(t.readonlyFn===void 0){let e=()=>this();e[Le]=t,t.readonlyFn=e}return t.readonlyFn}function Ip(t){return gs(t)&&typeof t.set=="function"}function Ob(t){return Object.getPrototypeOf(t.prototype).constructor}function Se(t){let e=Ob(t.type),n=!0,r=[t];for(;e;){let i;if(dt(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new M(903,!1);i=e.\u0275dir}if(i){if(n){r.push(i);let s=t;s.inputs=co(t.inputs),s.inputTransforms=co(t.inputTransforms),s.declaredInputs=co(t.declaredInputs),s.outputs=co(t.outputs);let a=i.hostBindings;a&&Lb(t,a);let u=i.viewQuery,c=i.contentQueries;if(u&&Pb(t,u),c&&kb(t,c),Fb(t,i),uv(t.outputs,i.outputs),dt(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Lr(i.hostAttrs,n=Lr(n,i.hostAttrs))}}function co(t){return t===ct?{}:t===_e?[]:t}function Pb(t,e){let n=t.viewQuery;n?t.viewQuery=(r,i)=>{e(r,i),n(r,i)}:t.viewQuery=e}function kb(t,e){let n=t.contentQueries;n?t.contentQueries=(r,i,o)=>{e(r,i,o),n(r,i,o)}:t.contentQueries=e}function Lb(t,e){let n=t.hostBindings;n?t.hostBindings=(r,i)=>{e(r,i),n(r,i)}:t.hostBindings=e}function rt(t){let e=n=>{let r=(Array.isArray(t)?t:t()).map(i=>typeof i=="function"?{directive:ee(i),inputs:ct,outputs:ct}:{directive:ee(i.directive),inputs:nf(i.inputs),outputs:nf(i.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=wp,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return e.ngInherit=!0,e}function wp(t,e,n){if(t.hostDirectives!==null)for(let r of t.hostDirectives){let i=Uu(r.directive);Vb(i.declaredInputs,r.inputs),wp(i,e,n),n.set(i,r),e.push(i)}}function nf(t){if(t===void 0||t.length===0)return ct;let e={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Du=class extends yu{constructor(e){super(),this.moduleType=e}create(e){return new Vo(this.moduleType,e,[])}};var jo=class extends ht{constructor(e){super(),this.componentFactoryResolver=new ko(this),this.instance=null;let n=new Vr([...e.providers,{provide:ht,useValue:this},{provide:er,useValue:this.componentFactoryResolver}],e.parent||Ko(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Bb(t,e,n=null){return new jo({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}function _p(t){return Hb(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function Ub(t,e){if(Array.isArray(t))for(let n=0;n>17&32767}function Qb(t){return(t&2)==2}function Kb(t,e){return t&131071|e<<17}function Eu(t){return t|2}function nr(t){return(t&131068)>>2}function Aa(t,e){return t&-131069|e<<2}function Jb(t){return(t&1)===1}function bu(t){return t|1}function Xb(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=gn(s),u=nr(s);t[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||qr(d,l)>0)&&(c=!0)}else l=n;if(i)if(u!==0){let h=gn(t[a+1]);t[r+1]=lo(h,a),h!==0&&(t[h+1]=Aa(t[h+1],r)),t[a+1]=Kb(t[a+1],r)}else t[r+1]=lo(a,0),a!==0&&(t[a+1]=Aa(t[a+1],r)),a=r;else t[r+1]=lo(u,0),a===0?a=r:t[u+1]=Aa(t[u+1],r),u=r;c&&(t[r+1]=Eu(t[r+1])),rf(t,l,r,!0),rf(t,l,r,!1),eI(e,l,t,r,o),s=lo(a,u),o?e.classBindings=s:e.styleBindings=s}function eI(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&qr(o,e)>=0&&(n[r+1]=bu(n[r+1]))}function rf(t,e,n,r){let i=t[n+1],o=e===null,s=r?gn(i):nr(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],c=t[s+1];tI(u,e)&&(a=!0,t[s+1]=r?bu(c):Eu(c)),s=r?gn(c):nr(c)}a&&(t[n+1]=r?Eu(i):bu(i))}function tI(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?qr(t,e)>=0:!1}function Bt(t,e,n){let r=w(),i=jt();if(ue(r,i,e)){let o=U(),s=Yr();fs(o,s,r,t,e,r[$],n,!1)}return Bt}function of(t,e,n,r,i){let o=e.inputs,s=i?"class":"style";gc(t,n,o[s],s,r)}function yt(t,e,n){return Tp(t,e,n,!1),yt}function Ut(t,e){return Tp(t,e,null,!0),Ut}function Tp(t,e,n,r){let i=w(),o=U(),s=nh(2);if(o.firstUpdatePass&&rI(o,t,s,r),e!==et&&ue(i,s,e)){let a=o.data[mt()];uI(o,a,i,i[$],t,i[s+1]=cI(e,n),r,s)}}function nI(t,e){return e>=t.expandoStartIndex}function rI(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[mt()],s=nI(t,n);lI(o,r)&&e===null&&!s&&(e=!1),e=iI(i,o,e,r),Xb(i,o,e,n,s,r)}}function iI(t,e,n,r){let i=rh(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=Sa(null,t,e,n,r),n=$r(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=Sa(i,t,e,n,r),o===null){let u=oI(t,e,r);u!==void 0&&Array.isArray(u)&&(u=Sa(null,t,e,u[1],r),u=$r(u,e.attrs,r),sI(t,e,r,u))}else o=aI(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function oI(t,e,n){let r=n?e.classBindings:e.styleBindings;if(nr(r)!==0)return t[gn(r)]}function sI(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[gn(i)]=r}function aI(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[i+1];h===et&&(h=d?_e:void 0);let f=d?Ea(h,r):l===r?h:void 0;if(c&&!Uo(f)&&(f=Ea(u,r)),Uo(f)&&(a=f,s))return a;let p=t[i+1];i=s?gn(p):nr(p)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=Ea(u,r))}return a}function Uo(t){return t!==void 0}function cI(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ae(Qr(t)))),t}function lI(t,e){return(t.flags&(e?8:16))!==0}var Iu=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),i=Math.max(e,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(e,n){this.attach(n,this.detach(e))}};function xa(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function dI(t,e,n){let r,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let u=e.length-1;for(;o<=s&&o<=u;){let c=t.at(o),l=e[o],d=xa(o,c,o,l,n);if(d!==0){d<0&&t.updateValue(o,l),o++;continue}let h=t.at(s),f=e[u],p=xa(s,h,u,f,n);if(p!==0){p<0&&t.updateValue(s,f),s--,u--;continue}let D=n(o,c),y=n(s,h),v=n(o,l);if(Object.is(v,y)){let L=n(u,f);Object.is(L,D)?(t.swap(o,s),t.updateValue(s,f),u--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(r??(r=new Ho),i??(i=uf(t,o,s,n)),wu(t,r,o,v))t.updateValue(o,l),o++,s++;else if(i.has(v))r.set(D,t.detach(o)),s--;else{let L=t.create(o,e[o]);t.attach(o,L),o++,s++}}for(;o<=u;)af(t,r,n,o,e[o]),o++}else if(e!=null){let u=e[Symbol.iterator](),c=u.next();for(;!c.done&&o<=s;){let l=t.at(o),d=c.value,h=xa(o,l,o,d,n);if(h!==0)h<0&&t.updateValue(o,d),o++,c=u.next();else{r??(r=new Ho),i??(i=uf(t,o,s,n));let f=n(o,d);if(wu(t,r,o,f))t.updateValue(o,d),o++,s++,c=u.next();else if(!i.has(f))t.attach(o,t.create(o,d)),o++,s++,c=u.next();else{let p=n(o,l);r.set(p,t.detach(o)),s--}}}for(;!c.done;)af(t,r,n,t.length,c.value),c=u.next()}for(;o<=s;)t.destroy(t.detach(s--));r==null||r.forEach(u=>{t.destroy(u)})}function wu(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function af(t,e,n,r,i){if(wu(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function uf(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var Ho=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),e(r,n)}}};function nR(t,e){$e("NgControlFlow");let n=w(),r=jt(),i=n[r]!==et?n[r]:-1,o=i!==-1?$o(n,z+i):void 0,s=0;if(ue(n,r,t)){let a=O(null);try{if(o!==void 0&&cp(o,s),t!==-1){let u=z+t,c=$o(n,u),l=Tu(n[T],u),d=Jn(c,l.tView.ssrId),h=Xr(n,l,e,{dehydratedView:d});ei(c,h,s,Kn(l,d))}}finally{O(a)}}else if(o!==void 0){let a=up(o,s);a!==void 0&&(a[ne]=e)}}var Cu=class{constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-re}};function rR(t){return t}var _u=class{constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function iR(t,e,n,r,i,o,s,a,u,c,l,d,h){$e("NgControlFlow");let f=w(),p=U(),D=u!==void 0,y=w(),v=a?s.bind(y[Ie][ne]):s,L=new _u(D,v);y[z+t]=L,Bo(f,p,t+1,e,n,r,i,Pt(p.consts,o)),D&&Bo(f,p,t+2,u,c,l,d,Pt(p.consts,h))}var Mu=class extends Iu{constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-re}at(e){return this.getLView(e)[ne].$implicit}attach(e,n){let r=n[Yn];this.needsIndexUpdate||(this.needsIndexUpdate=e!==this.length),ei(this.lContainer,n,e,Kn(this.templateTNode,r))}detach(e){return this.needsIndexUpdate||(this.needsIndexUpdate=e!==this.length-1),fI(this.lContainer,e)}create(e,n){var o;let r=Jn(this.lContainer,this.templateTNode.tView.ssrId),i=Xr(this.hostLView,this.templateTNode,new Cu(this.lContainer,n,e),{dehydratedView:r});return(o=this.operationsCounter)==null||o.recordCreate(),i}destroy(e){var n;us(e[T],e),(n=this.operationsCounter)==null||n.recordDestroy()}updateValue(e,n){this.getLView(e)[ne].$implicit=n}reset(){var e;this.needsIndexUpdate=!1,(e=this.operationsCounter)==null||e.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(rs(!0),jh(r,i,xy()));function mI(t,e,n,r,i){let o=e.consts,s=Pt(o,r),a=bn(e,t,8,"ng-container",s);s!==null&&Po(a,s,!0);let u=Pt(o,i);return pc(e,n,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function ar(t,e,n){let r=w(),i=U(),o=t+z,s=i.firstCreatePass?mI(o,i,r,e,n):i.data[o];Vt(s,!0);let a=yI(i,r,s,t);return r[o]=a,ns()&&cs(i,r,a,s),kt(a,r),es(s)&&(dc(i,r,s),lc(i,s,r)),n!=null&&fc(r,s),ar}function ur(){let t=te(),e=U();return Zu()?Qu():(t=t.parent,Vt(t,!1)),e.firstCreatePass&&(is(e,t),Wu(t)&&e.queries.elementEnd(t)),ur}function vI(t,e,n){return ar(t,e,n),ur(),vI}var yI=(t,e,n,r)=>(rs(!0),zD(e[$],""));function sR(){return w()}function DI(t,e,n){let r=w(),i=jt();if(ue(r,i,e)){let o=U(),s=Yr();fs(o,s,r,t,e,r[$],n,!0)}return DI}function EI(t,e,n){let r=w(),i=jt();if(ue(r,i,e)){let o=U(),s=Yr(),a=rh(o.data),u=OE(a,s,r);fs(o,s,r,t,e,u,n,!0)}return EI}var en=void 0;function bI(t){let e=t,n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var II=["en",[["a","p"],["AM","PM"],en],[["AM","PM"],en,en],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],en,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],en,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",en,"{1} 'at' {0}",en],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",bI],Na={};function _c(t){let e=wI(t),n=cf(e);if(n)return n;let r=e.split("-")[0];if(n=cf(r),n)return n;if(r==="en")return II;throw new M(701,!1)}function cf(t){return t in Na||(Na[t]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[t]),Na[t]}var cr=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(cr||{});function wI(t){return t.toLowerCase().replace(/_/g,"-")}var zo="en-US";var CI=zo;function _I(t){typeof t=="string"&&(CI=t.toLowerCase().replace(/_/g,"-"))}var MI=(t,e,n)=>{};function lr(t,e,n,r){let i=w(),o=U(),s=te();return Ap(o,i,i[$],s,t,e,r),lr}function TI(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function Ap(t,e,n,r,i,o,s){let a=es(r),c=t.firstCreatePass&&op(t),l=e[ne],d=ip(e),h=!0;if(r.type&3||s){let D=Ae(r,e),y=s?s(D):D,v=d.length,L=s?R=>s(Ke(R[r.index])):r.index,Y=null;if(!s&&a&&(Y=TI(t,e,i,r.index)),Y!==null){let R=Y.__ngLastListenerFn__||Y;R.__ngNextListenerFn__=o,Y.__ngLastListenerFn__=o,h=!1}else{o=df(r,e,l,o),MI(D,i,o);let R=n.listen(y,i,o);d.push(o,R),c&&c.push(i,L,v,v+1)}}else o=df(r,e,l,o);let f=r.outputs,p;if(h&&f!==null&&(p=f[i])){let D=p.length;if(D)for(let y=0;y-1?Lt(t.index,e):e;vc(s,5);let a=lf(e,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=lf(e,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function vs(t=1){return Sy(t)}function AI(t,e){let n=null,r=jv(t);for(let i=0;i=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function dR(t){let e=eh();return Dn(e,z+t)}function Np(t,e=""){let n=w(),r=U(),i=t+z,o=r.firstCreatePass?bn(r,i,1,e,null):r.data[i],s=xI(r,n,o,e,t);n[i]=s,ns()&&cs(r,n,s,o),Vt(o,!1)}var xI=(t,e,n,r,i)=>(rs(!0),HD(e[$],r));function Tc(t){return Ac("",t,""),Tc}function Ac(t,e,n){let r=w(),i=Yb(r,t,e,n);return i!==et&&ap(r,mt(),i),Ac}function NI(t,e,n,r,i){let o=w(),s=Zb(o,t,e,n,r,i);return s!==et&&ap(o,mt(),s),NI}function OI(t,e,n){Ip(e)&&(e=e());let r=w(),i=jt();if(ue(r,i,e)){let o=U(),s=Yr();fs(o,s,r,t,e,r[$],n,!1)}return OI}function fR(t,e){let n=Ip(t);return n&&t.set(e),n}function FI(t,e){let n=w(),r=U(),i=te();return Ap(r,n,n[$],i,t,e),FI}var Op={};function RI(t){let e=U(),n=w(),r=t+z,i=bn(e,r,128,null,null);return Vt(i,!1),Mc(e,n,r,Op),RI}function hR(t){$e("NgLet");let e=U(),n=w(),r=mt();return Mc(e,n,r,t),t}function pR(t){let e=eh(),n=Dn(e,z+t);if(n===Op)throw new M(314,!1);return n}function PI(t,e,n){let r=U();if(r.firstCreatePass){let i=dt(t);Au(n,r.data,r.blueprint,i,!0),Au(e,r.data,r.blueprint,i,!1)}}function Au(t,e,n,r,i){if(t=ee(t),Array.isArray(t))for(let o=0;o>20;if(qn(t)||!t.multi){let f=new ln(c,i,A),p=Fa(u,e,i?l:l+h,d);p===-1?(Ya(To(a,s),o,u),Oa(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=Fa(u,e,l+h,d),p=Fa(u,e,l,l+h),D=f>=0&&n[f],y=p>=0&&n[p];if(i&&!y||!i&&!D){Ya(To(a,s),o,u);let v=VI(i?LI:kI,n.length,i,r,c);!i&&y&&(n[p].providerFactory=v),Oa(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(v),s.push(v)}else{let v=Fp(n[i?p:f],c,!i&&r);Oa(o,t,f>-1?f:p,v)}!i&&r&&y&&n[p].componentProviders++}}}function Oa(t,e,n,r){let i=qn(e),o=ey(e);if(i||o){let u=(o?ee(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Fp(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Fa(t,e,n,r){for(let i=n;i{n.providersResolver=(r,i)=>PI(r,i?i(t):t,e)}}var jI=(()=>{let e=class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=Rf(!1,r.type),o=i.length>0?Bb([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()}}};e.\u0275prov=k({token:e,providedIn:"environment",factory:()=>new e(H(Te))});let t=e;return t})();function ye(t){$e("NgStandalone"),t.getStandaloneInjector=e=>e.get(jI).getOrCreateStandaloneInjector(t)}function gR(t,e,n,r){return Rp(w(),Xe(),t,e,n,r)}function mR(t,e,n,r,i){return Pp(w(),Xe(),t,e,n,r,i)}function vR(t,e,n,r,i,o,s){return kp(w(),Xe(),t,e,n,r,i,o,s)}function yR(t,e,n,r,i,o,s,a){let u=Xe()+t,c=w(),l=bc(c,u,n,r,i,o);return ue(c,u+4,s)||l?In(c,u+5,a?e.call(a,n,r,i,o,s):e(n,r,i,o,s)):Mp(c,u+5)}function DR(t,e,n,r,i,o,s,a,u){let c=Xe()+t,l=w(),d=bc(l,c,n,r,i,o);return tr(l,c+4,s,a)||d?In(l,c+6,u?e.call(u,n,r,i,o,s,a):e(n,r,i,o,s,a)):Mp(l,c+6)}function ti(t,e){let n=t[e];return n===et?void 0:n}function Rp(t,e,n,r,i,o){let s=e+n;return ue(t,s,i)?In(t,s+1,o?r.call(o,i):r(i)):ti(t,s+1)}function Pp(t,e,n,r,i,o,s){let a=e+n;return tr(t,a,i,o)?In(t,a+2,s?r.call(s,i,o):r(i,o)):ti(t,a+2)}function BI(t,e,n,r,i,o,s,a){let u=e+n;return $b(t,u,i,o,s)?In(t,u+3,a?r.call(a,i,o,s):r(i,o,s)):ti(t,u+3)}function kp(t,e,n,r,i,o,s,a,u){let c=e+n;return bc(t,c,i,o,s,a)?In(t,c+4,u?r.call(u,i,o,s,a):r(i,o,s,a)):ti(t,c+4)}function UI(t,e,n,r,i,o){let s=e+n,a=!1;for(let u=0;u=0;n--){let r=e[n];if(t===r.name)return r}}function bR(t,e,n){let r=t+z,i=w(),o=Dn(i,r);return ni(i,r)?Rp(i,Xe(),e,o.transform,n,o):o.transform(n)}function IR(t,e,n,r){let i=t+z,o=w(),s=Dn(o,i);return ni(o,i)?Pp(o,Xe(),e,s.transform,n,r,s):s.transform(n,r)}function wR(t,e,n,r,i){let o=t+z,s=w(),a=Dn(s,o);return ni(s,o)?BI(s,Xe(),e,a.transform,n,r,i,a):a.transform(n,r,i)}function CR(t,e,n,r,i,o){let s=t+z,a=w(),u=Dn(a,s);return ni(a,s)?kp(a,Xe(),e,u.transform,n,r,i,o,u):u.transform(n,r,i,o)}function _R(t,e,n){let r=t+z,i=w(),o=Dn(i,r);return ni(i,r)?UI(i,Xe(),e,o.transform,n,o):o.transform.apply(o,n)}function ni(t,e){return t[T].data[e].pure}function MR(t,e){return ps(t,e)}var TR=(()=>{let e=class e{log(r){console.log(r)}warn(r){console.warn(r)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var $I=new m("");function dr(t){return!!t&&typeof t.then=="function"}function Sc(t){return!!t&&typeof t.subscribe=="function"}var zI=new m(""),Lp=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=g(zI,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(dr(s))r.push(s);else if(Sc(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});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}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Vp=new m("");function GI(){vd(()=>{throw new M(600,!1)})}function WI(t){return t.isBoundToModule}var qI=10;function YI(t,e,n){try{let r=n();return dr(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var ys=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(eD),this.afterRenderEffectManager=g(Dc),this.zonelessEnabled=g(yc),this.externalTestViews=new Set,this.beforeRender=new he,this.afterTick=new he,this.componentTypes=[],this.components=[],this.isStable=g(En).hasPendingTasks.pipe(B(r=>!r)),this._injector=g(Te)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Fo;if(!this._injector.get(Lp).done){let f=!o&&Yv(r),p=!1;throw new M(405,p)}let a;o?a=r:a=this._injector.get(er).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=WI(a)?void 0:this._injector.get(ht),c=i||a.selector,l=a.create(Ue.NULL,[],c,u),d=l.location.nativeElement,h=l.injector.get($I,null);return h==null||h.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Ra(this.components,l),h==null||h.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new M(101,!1);let i=O(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,O(i),this.afterTick.next()}}detectChangesInAttachedViews(r){var a,u;let i=null;this._injector.destroyed||(i=this._injector.get(Ro,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;oBr(l))&&(s.execute(),!this.allViews.some(({_lView:l})=>Br(l))))break}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Ra(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Vp,[]);[...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),()=>Ra(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new M(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ra(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function ZI(t,e,n,r){if(!n&&!Br(t))return;fp(t,e,n&&!r?0:1)}var xu=class{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},AR=(()=>{let e=class e{compileModuleSync(r){return new Du(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=Nf(r),s=Vh(o.declarations).reduce((a,u)=>{let c=lt(u);return c&&a.push(new pn(c)),a},[]);return new xu(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var QI=(()=>{let e=class e{constructor(){this.zone=g(Z),this.changeDetectionScheduler=g(Xn),this.applicationRef=g(ys)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;(r=this._onMicrotaskEmptySubscription)==null||r.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),KI=new m("",{factory:()=>!1});function jp({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??(t=()=>new Z(Bp())),[{provide:Z,useFactory:t},{provide:Eo,multi:!0,useFactory:()=>{let n=g(QI,{optional:!0});return()=>n.initialize()}},{provide:Eo,multi:!0,useFactory:()=>{let n=g(JI);return()=>{n.initialize()}}},e===!0?{provide:mp,useValue:!0}:[]]}function SR(t){let e=t==null?void 0:t.ignoreChangesOutsideZone,n=jp({ngZoneFactory:()=>{let r=Bp(t);return r.shouldCoalesceEventChangeDetection&&$e("NgZone_CoalesceEvent"),new Z(r)},ignoreChangesOutsideZone:e});return Hu([{provide:KI,useValue:!0},{provide:yc,useValue:!1},n])}function Bp(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(t==null?void 0:t.eventCoalescing)??!1,shouldCoalesceRunChangeDetection:(t==null?void 0:t.runCoalescing)??!1}}var JI=(()=>{let e=class e{constructor(){this.subscription=new G,this.initialized=!1,this.zone=g(Z),this.pendingTasks=g(En)}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(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),r??(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var XI=(()=>{let e=class e{constructor(){this.appRef=g(ys),this.taskService=g(En),this.ngZone=g(Z),this.zonelessEnabled=g(yc),this.disableScheduling=g(mp,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new G,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||(this.disableScheduling=!this.zonelessEnabled&&(this.ngZone instanceof Xa||!this.zoneIsDefined))}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?Vd:Ih;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Z.isInAngularZone())}tick(r){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Vd(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){var r;if(this.shouldRefreshViews=!1,this.runningTick=!1,(r=this.cancelScheduledCallback)==null||r.call(this),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let i=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(i)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ew(){return typeof $localize<"u"&&$localize.locale||zo}var Ds=new m("",{providedIn:"root",factory:()=>g(Ds,P.Optional|P.SkipSelf)||ew()});var Up=new m("");var mo=null;function tw(t=[],e){return Ue.create({name:e,providers:[{provide:Lf,useValue:"platform"},{provide:Up,useValue:new Set([()=>mo=null])},...t]})}function nw(t=[]){if(mo)return mo;let e=tw(t);return mo=e,GI(),rw(e),e}function rw(t){let e=t.get(lD,null);e==null||e.forEach(n=>n())}var fr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=iw;let t=e;return t})();function iw(t){return ow(te(),w(),(t&16)===16)}function ow(t,e,n){if(Xo(t)&&!n){let r=Lt(t.index,e);return new hn(r,r)}else if(t.type&175){let r=e[Ie];return new hn(r,e)}return null}var Nu=class{constructor(){}supports(e){return _p(e)}create(e){return new Ou(e)}},sw=(t,e)=>e,Ou=class{constructor(e){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=e||sw}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){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=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,i),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,i)):e=this._addAfter(new Fu(n,r),o,i)),e}_verifyReinsertion(e,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=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(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let i=n===null?this._itHead:n._next;return e._next=i,e._prev=n,i===null?this._itTail=e:i._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new Go),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Go),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Fu=class{constructor(e,n){this.item=e,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}},Ru=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Go=class{constructor(){this.map=new Map}put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Ru,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,i=this.map.get(r);return i?i.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function ff(t,e,n){let r=t.previousIndex;if(r===null)return r;let i=0;return n&&r{let e=class e{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||hf()),deps:[[e,new Wr,new Gr]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new M(901,!1)}};e.\u0275prov=k({token:e,providedIn:"root",factory:hf});let t=e;return t})();function xR(t){try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=nw(r),o=[jp({}),{provide:Xn,useExisting:XI},...n||[]],a=new jo({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(Z);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(fn,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:f=>{c.handleError(f)}})});let d=()=>a.destroy(),h=i.get(Up);return h.add(d),a.onDestroy(()=>{l.unsubscribe(),h.delete(d)}),YI(c,u,()=>{let f=a.get(Lp);return f.runInitializers(),f.donePromise.then(()=>{let p=a.get(Ds,zo);_I(p||zo);let D=a.get(ys);return e!==void 0&&D.bootstrap(e),D})})})}catch(e){return Promise.reject(e)}}var NR=new m("");function Nc(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function wn(t,e){$e("NgSignals");let n=pd(t);return e!=null&&e.equal&&(n[Le].equal=e.equal),n}function De(t){let e=O(null);try{return t()}finally{O(e)}}var aw=new m("",{providedIn:"root",factory:()=>g(uw)}),uw=(()=>{let e=class e{};e.\u0275prov=k({token:e,providedIn:"root",factory:()=>new Pu});let t=e;return t})(),Pu=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(En),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(e){let n=e.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||(this.queuedEffectCount++,r.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,n]of this.queues)e===null?this.flushQueue(n):e.run(()=>this.flushQueue(n))}flushQueue(e){for(let n of e)e.delete(n),this.queuedEffectCount--,n.run()}},ku=class{constructor(e,n,r,i,o,s){this.scheduler=e,this.effectFn=n,this.creationZone=r,this.injector=o,this.watcher=Ed(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i==null?void 0:i.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(n){let r=this.injector.get(fn,null,{optional:!0});r==null||r.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var e;this.watcher.destroy(),(e=this.unregisterOnDestroy)==null||e.call(this)}};function ri(t,e){var s;$e("NgSignals"),!(e!=null&&e.injector)&&rr(ri);let n=(e==null?void 0:e.injector)??g(Ue),r=(e==null?void 0:e.manualCleanup)!==!0?n.get(He):null,i=new ku(n.get(aw),t,typeof Zone>"u"?null:Zone.current,r,n,(e==null?void 0:e.allowSignalWrites)??!1),o=n.get(fr,null,{optional:!0});return!o||!(o._lView[_]&8)?i.watcher.notify():((s=o._lView)[Gn]??(s[Gn]=[])).push(i.watcher.notify),i}function Hp(t,e){let n=lt(t),r=e.elementInjector||Ko();return new pn(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector)}function OR(t){let e=lt(t);if(!e)return null;let n=new pn(e);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Kp=null;function hr(){return Kp}function XR(t){Kp??(Kp=t)}var $p=class{};var Oe=new m(""),Hc=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:()=>g(dw),providedIn:"platform"});let t=e;return t})(),eP=new m(""),dw=(()=>{let e=class e extends Hc{constructor(){super(),this._doc=g(Oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return hr().getBaseHref(this._doc)}onPopState(r){let i=hr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=hr().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}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function $c(t,e){if(t.length==0)return e;if(e.length==0)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,n==2?t+e.substring(1):n==1?t+e:t+"/"+e}function zp(t){let e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-(t[n-1]==="/"?1:0);return t.slice(0,r)+t.slice(n)}function Dt(t){return t&&t[0]!=="?"?"?"+t:t}var ws=(()=>{let e=class e{historyGo(r){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:()=>g(fw),providedIn:"root"});let t=e;return t})(),Jp=new m(""),fw=(()=>{let e=class e extends ws{constructor(r,i){var o;super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??((o=g(Oe).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 $c(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Dt(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Dt(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Dt(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)}};e.\u0275fac=function(i){return new(i||e)(H(Hc),H(Jp,8))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),tP=(()=>{let e=class e extends ws{constructor(r,i){super(),this._platformLocation=r,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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}path(r=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(r){let i=$c(this._baseHref,r);return i.length>0?"#"+i:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Dt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Dt(s));a.length==0&&(a=this._platformLocation.pathname),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)}};e.\u0275fac=function(i){return new(i||e)(H(Hc),H(Jp,8))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),hw=(()=>{let e=class e{constructor(r){this._subject=new J,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=mw(zp(Gp(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+Dt(i))}normalize(r){return e.stripTrailingSlash(gw(this._basePath,Gp(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+Dt(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Dt(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})}};e.normalizeQueryParams=Dt,e.joinWithSlash=$c,e.stripTrailingSlash=zp,e.\u0275fac=function(i){return new(i||e)(H(ws))},e.\u0275prov=k({token:e,factory:()=>pw(),providedIn:"root"});let t=e;return t})();function pw(){return new hw(H(ws))}function gw(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function Gp(t){return t.replace(/\/index.html$/,"")}function mw(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}var Xp=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(Xp||{});var Et={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function ii(t,e){let n=_c(t),r=n[cr.NumberSymbols][e];if(typeof r>"u"){if(e===Et.CurrencyDecimal)return n[cr.NumberSymbols][Et.Decimal];if(e===Et.CurrencyGroup)return n[cr.NumberSymbols][Et.Group]}return r}function vw(t,e){return _c(t)[cr.NumberFormats][e]}var yw=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Wp=22,Es=".",oi="0",Dw=";",Ew=",",Fc="#";function bw(t,e,n,r,i,o,s=!1){let a="",u=!1;if(!isFinite(t))a=ii(n,Et.Infinity);else{let c=_w(t);s&&(c=Cw(c));let l=e.minInt,d=e.minFrac,h=e.maxFrac;if(o){let L=o.match(yw);if(L===null)throw new Error(`${o} is not a valid digit info`);let Y=L[1],R=L[3],Ee=L[5];Y!=null&&(l=Rc(Y)),R!=null&&(d=Rc(R)),Ee!=null?h=Rc(Ee):R!=null&&d>h&&(h=d)}Mw(c,d,h);let f=c.digits,p=c.integerLen,D=c.exponent,y=[];for(u=f.every(L=>!L);p0?y=f.splice(p,f.length):(y=f,f=[0]);let v=[];for(f.length>=e.lgSize&&v.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)v.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(ii(n,r)),y.length&&(a+=ii(n,i)+y.join("")),D&&(a+=ii(n,Et.Exponential)+"+"+D)}return t<0&&!u?a=e.negPre+a+e.negSuf:a=e.posPre+a+e.posSuf,a}function Iw(t,e,n){let r=vw(e,Xp.Decimal),i=ww(r,ii(e,Et.MinusSign));return bw(t,i,e,Et.Group,Et.Decimal,n)}function ww(t,e="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(Dw),i=r[0],o=r[1],s=i.indexOf(Es)!==-1?i.split(Es):[i.substring(0,i.lastIndexOf(oi)+1),i.substring(i.lastIndexOf(oi)+1)],a=s[0],u=s[1]||"";n.posPre=a.substring(0,a.indexOf(Fc));for(let l=0;l-1&&(e=e.replace(Es,"")),(o=e.search(/e/i))>0?(i<0&&(i=o),i+=+e.slice(o+1),e=e.substring(0,o)):i<0&&(i=e.length),o=0;e.charAt(o)===oi;o++);if(o===(a=e.length))r=[0],i=1;else{for(a--;e.charAt(a)===oi;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(e.charAt(o))}return i>Wp&&(r=r.splice(0,Wp-1),n=i-1,i=1),{digits:r,exponent:n,integerLen:i}}function Mw(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i=c?p.pop():u=!1),h>=10?1:0},0);l&&(r.unshift(l),t.integerLen++)}function Rc(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function eg(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Pc=/\s+/,qp=[],nP=(()=>{let e=class e{constructor(r,i){this._ngEl=r,this._renderer=i,this.initialClasses=qp,this.stateMap=new Map}set klass(r){this.initialClasses=r!=null?r.trim().split(Pc):qp}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(Pc):r}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let i of r)this._updateState(i,!0);else if(r!=null)for(let i of Object.keys(r))this._updateState(i,!!r[i]);this._applyStateDiff()}_updateState(r,i){let o=this.stateMap.get(r);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(r,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let r of this.stateMap){let i=r[0],o=r[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(r,i){r=r.trim(),r.length>0&&r.split(Pc).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(A(Q),A(sr))},e.\u0275dir=F({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})(),rP=(()=>{let e=class e{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=Cp(this.ngComponentOutletNgModule,Yp(o)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Yp(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))}};e.\u0275fac=function(i){return new(i||e)(A(tt))},e.\u0275dir=F({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[yn]});let t=e;return t})();function Yp(t){return t.get(ht).injector}var kc=class{constructor(e,n,r,i){this.$implicit=e,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}},Tw=(()=>{let e=class e{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 kc(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 u=i.get(s);i.move(u,a),Zp(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Zp(s,o)})}static ngTemplateContextGuard(r,i){return!0}};e.\u0275fac=function(i){return new(i||e)(A(tt),A(ft),A(xc))},e.\u0275dir=F({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Zp(t,e){t.context.$implicit=e.item}var Aw=(()=>{let e=class e{constructor(r,i){this._viewContainer=r,this._context=new Lc,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){Qp("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Qp("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}};e.\u0275fac=function(i){return new(i||e)(A(tt),A(ft))},e.\u0275dir=F({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Lc=class{constructor(){this.$implicit=null,this.ngIf=null}};function Qp(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ae(e)}'.`)}var bs=class{constructor(e,n){this._viewContainerRef=e,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},Cs=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(r){this._ngSwitch=r,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(r){this._defaultViews.push(r)}_matchCase(r){let i=r===this._ngSwitch;return this._lastCasesMatched||(this._lastCasesMatched=i),this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(r){if(this._defaultViews.length>0&&r!==this._defaultUsed){this._defaultUsed=r;for(let i of this._defaultViews)i.enforceState(r)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),tg=(()=>{let e=class e{constructor(r,i,o){this.ngSwitch=o,o._addCase(),this._view=new bs(r,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(i){return new(i||e)(A(tt),A(ft),A(Cs,9))},e.\u0275dir=F({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),ng=(()=>{let e=class e{constructor(r,i,o){o._addDefault(new bs(r,i))}};e.\u0275fac=function(i){return new(i||e)(A(tt),A(ft),A(Cs,9))},e.\u0275dir=F({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var iP=(()=>{let e=class e{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(r,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(A(tt))},e.\u0275dir=F({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[yn]});let t=e;return t})();function rg(t,e){return new M(2100,!1)}var Vc=class{createSubscription(e,n){return De(()=>e.subscribe({next:n,error:r=>{throw r}}))}dispose(e){De(()=>e.unsubscribe())}},jc=class{createSubscription(e,n){return e.then(n,r=>{throw r})}dispose(e){}},Sw=new jc,xw=new Vc,oP=(()=>{let e=class e{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(dr(r))return Sw;if(Sc(r))return xw;throw rg(e,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()))}};e.\u0275fac=function(i){return new(i||e)(A(fr,16))},e.\u0275pipe=Qo({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var sP=(()=>{let e=class e{constructor(r){this._locale=r}transform(r,i,o){if(!Nw(r))return null;o||(o=this._locale);try{let s=Ow(r);return Iw(s,o,i)}catch(s){throw rg(e,s.message)}}};e.\u0275fac=function(i){return new(i||e)(A(Ds,16))},e.\u0275pipe=Qo({name:"number",type:e,pure:!0,standalone:!0});let t=e;return t})();function Nw(t){return!(t==null||t===""||t!==t)}function Ow(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var aP=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=vn({type:e}),e.\u0275inj=mn({});let t=e;return t})(),Fw="browser",Rw="server";function Pw(t){return t===Fw}function kw(t){return t===Rw}var uP=(()=>{let e=class e{};e.\u0275prov=k({token:e,providedIn:"root",factory:()=>Pw(g(Zr))?new Bc(g(Oe),window):new Uc});let t=e;return t})(),Bc=class{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let n=Lw(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function Lw(t,e){let n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=r.nextNode()}}return null}var Uc=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Is=class{};function si(t){t||(rr(si),t=g(He));let e=new I(n=>t.onDestroy(n.next.bind(n)));return n=>n.pipe(St(e))}function jw(t,e){!(e!=null&&e.injector)&&rr(jw);let n=(e==null?void 0:e.injector)??g(Ue),r=new Kt(1),i=ri(()=>{let o;try{o=t()}catch(s){De(()=>r.error(s));return}De(()=>r.next(o))},{injector:n,manualCleanup:!0});return n.get(He).onDestroy(()=>{i.destroy(),r.complete()}),r.asObservable()}function Bw(t,e){var a;let n=!(e!=null&&e.manualCleanup);n&&!(e!=null&&e.injector)&&rr(Bw);let r=n?((a=e==null?void 0:e.injector)==null?void 0:a.get(He))??g(He):null,i=Uw(e==null?void 0:e.equal),o;e!=null&&e.requireSync?o=nt({kind:0},{equal:i}):o=nt({kind:1,value:e==null?void 0:e.initialValue},{equal:i});let s=t.subscribe({next:u=>o.set({kind:1,value:u}),error:u=>{if(e!=null&&e.rejectErrors)throw u;o.set({kind:2,error:u})}});if(e!=null&&e.requireSync&&o().kind===0)throw new M(601,!1);return r==null||r.onDestroy(s.unsubscribe.bind(s)),wn(()=>{let u=o();switch(u.kind){case 1:return u.value;case 2:throw u.error;case 0:throw new M(601,!1)}},{equal:e==null?void 0:e.equal})}function Uw(t=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&t(e.value,n.value)}var fg=(()=>{let e=class e{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)}};e.\u0275fac=function(i){return new(i||e)(A(sr),A(Q))},e.\u0275dir=F({type:e});let t=e;return t})(),Gc=(()=>{let e=class e extends fg{};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=os(e)))(o||e)}})(),e.\u0275dir=F({type:e,features:[Se]});let t=e;return t})(),hi=new m(""),Hw={provide:hi,useExisting:pt(()=>$w),multi:!0},$w=(()=>{let e=class e extends Gc{writeValue(r){this.setProperty("checked",r)}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=os(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){i&1&&lr("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[X([Hw]),Se]});let t=e;return t})(),zw={provide:hi,useExisting:pt(()=>hg),multi:!0};function Gw(){let t=hr()?hr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Ww=new m(""),hg=(()=>{let e=class e extends fg{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Gw())}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)}};e.\u0275fac=function(i){return new(i||e)(A(sr),A(Q),A(Ww,8))},e.\u0275dir=F({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&lr("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:[X([zw]),Se]});let t=e;return t})();var Wc=new m(""),qc=new m("");function pg(t){return t!=null}function gg(t){return dr(t)?se(t):t}function mg(t){let e={};return t.forEach(n=>{e=n!=null?S(S({},e),n):e}),Object.keys(e).length===0?null:e}function vg(t,e){return e.map(n=>n(t))}function qw(t){return!t.validate}function yg(t){return t.map(e=>qw(e)?e:n=>e.validate(n))}function Yw(t){if(!t)return null;let e=t.filter(pg);return e.length==0?null:function(n){return mg(vg(n,e))}}function Yc(t){return t!=null?Yw(yg(t)):null}function Zw(t){if(!t)return null;let e=t.filter(pg);return e.length==0?null:function(n){let r=vg(n,e).map(gg);return ua(r).pipe(B(mg))}}function Zc(t){return t!=null?Zw(yg(t)):null}function ig(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Dg(t){return t._rawValidators}function Eg(t){return t._rawAsyncValidators}function zc(t){return t?Array.isArray(t)?t:[t]:[]}function Ms(t,e){return Array.isArray(t)?t.includes(e):t===e}function og(t,e){let n=zc(e);return zc(t).forEach(i=>{Ms(n,i)||n.push(i)}),n}function sg(t,e){return zc(e).filter(n=>!Ms(t,n))}var Ts=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Yc(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Zc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},mr=class extends Ts{get formDirective(){return null}get path(){return null}},Cn=class extends Ts{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},As=class{constructor(e){this._cd=e}get isTouched(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._touched)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.touched)}get isUntouched(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.untouched)}get isPristine(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._pristine)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.pristine)}get isDirty(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.dirty)}get isValid(){var e,n,r,i,o;return(r=(n=(e=this._cd)==null?void 0:e.control)==null?void 0:n._status)==null||r.call(n),!!((o=(i=this._cd)==null?void 0:i.control)!=null&&o.valid)}get isInvalid(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.invalid)}get isPending(){var e,n;return!!((n=(e=this._cd)==null?void 0:e.control)!=null&&n.pending)}get isSubmitted(){var e,n,r;return(n=(e=this._cd)==null?void 0:e._submitted)==null||n.call(e),!!((r=this._cd)!=null&&r.submitted)}},Qw={"[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"},NP=j(S({},Qw),{"[class.ng-submitted]":"isSubmitted"}),OP=(()=>{let e=class e extends As{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(A(Cn,2))},e.\u0275dir=F({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Ut("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:[Se]});let t=e;return t})(),FP=(()=>{let e=class e extends As{constructor(r){super(r)}};e.\u0275fac=function(i){return new(i||e)(A(mr,10))},e.\u0275dir=F({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Ut("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)("ng-submitted",o.isSubmitted)},features:[Se]});let t=e;return t})();var ai="VALID",_s="INVALID",pr="PENDING",ui="DISABLED",vr=class{},Ss=class extends vr{constructor(e,n){super(),this.value=e,this.source=n}},li=class extends vr{constructor(e,n){super(),this.pristine=e,this.source=n}},di=class extends vr{constructor(e,n){super(),this.touched=e,this.source=n}},gr=class extends vr{constructor(e,n){super(),this.status=e,this.source=n}};function Qc(t){return(Os(t)?t.validators:t)||null}function Kw(t){return Array.isArray(t)?Yc(t):t||null}function Kc(t,e){return(Os(e)?e.asyncValidators:t)||null}function Jw(t){return Array.isArray(t)?Zc(t):t||null}function Os(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function bg(t,e,n){let r=t.controls;if(!(e?Object.keys(r):r).length)throw new M(1e3,"");if(!r[n])throw new M(1001,"")}function Ig(t,e,n){t._forEachChild((r,i)=>{if(n[i]===void 0)throw new M(1002,"")})}var fi=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=wn(()=>this.statusReactive()),this.statusReactive=nt(void 0),this._pristine=wn(()=>this.pristineReactive()),this.pristineReactive=nt(!0),this._touched=wn(()=>this.touchedReactive()),this.touchedReactive=nt(!1),this._events=new he,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return De(this.statusReactive)}set status(e){De(()=>this.statusReactive.set(e))}get valid(){return this.status===ai}get invalid(){return this.status===_s}get pending(){return this.status==pr}get disabled(){return this.status===ui}get enabled(){return this.status!==ui}get pristine(){return De(this.pristineReactive)}set pristine(e){De(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return De(this.touchedReactive)}set touched(e){De(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(og(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(og(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(sg(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(sg(e,this._rawAsyncValidators))}hasValidator(e){return Ms(this._rawValidators,e)}hasAsyncValidator(e){return Ms(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(j(S({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new di(!0,r))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),n&&e.emitEvent!==!1&&this._events.next(new di(!1,r))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(j(S({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new li(!1,r))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&e.emitEvent!==!1&&this._events.next(new li(!0,r))}markAsPending(e={}){this.status=pr;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new gr(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(j(S({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=ui,this.errors=null,this._forEachChild(i=>{i.disable(j(S({},e),{onlySelf:!0}))}),this._updateValue();let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ss(this.value,r)),this._events.next(new gr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(j(S({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=ai,this._forEachChild(r=>{r.enable(j(S({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(j(S({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ai||this.status===pr)&&this._runAsyncValidator(r,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ss(this.value,n)),this._events.next(new gr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(j(S({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ui:ai}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=pr,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=gg(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){var e;if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=((e=this._hasOwnPendingAsyncValidator)==null?void 0:e.emitEvent)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new gr(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,r)}_initObservables(){this.valueChanges=new J,this.statusChanges=new J}_calculateStatus(){return this._allControlsDisabled()?ui:this.errors?_s:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(pr)?pr:this._anyControlsHaveStatus(_s)?_s:ai}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&this._events.next(new li(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new di(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Os(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Kw(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Jw(this._rawAsyncValidators)}},xs=class extends fi{constructor(e,n,r){super(Qc(n),Kc(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){Ig(this,!0,e),Object.keys(e).forEach(r=>{bg(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(r=>{let i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&e(r))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(e,n){let r=e;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var pi=new m("CallSetDisabledState",{providedIn:"root",factory:()=>Fs}),Fs="always";function Xw(t,e){return[...e.path,t]}function Jc(t,e,n=Fs){var r,i;wg(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&((i=(r=e.valueAccessor).setDisabledState)==null||i.call(r,t.disabled)),n0(t,e),i0(t,e),r0(t,e),e0(t,e)}function ag(t,e,n=!0){let r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),t0(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ns(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function e0(t,e){if(e.valueAccessor.setDisabledState){let n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function wg(t,e){let n=Dg(t);e.validator!==null?t.setValidators(ig(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let r=Eg(t);e.asyncValidator!==null?t.setAsyncValidators(ig(r,e.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();Ns(e._rawValidators,i),Ns(e._rawAsyncValidators,i)}function t0(t,e){let n=!1;if(t!==null){if(e.validator!==null){let i=Dg(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Eg(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(n=!0,t.setAsyncValidators(o))}}}let r=()=>{};return Ns(e._rawValidators,r),Ns(e._rawAsyncValidators,r),n}function n0(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Cg(t,e)})}function r0(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Cg(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Cg(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function i0(t,e){let n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function o0(t,e){t==null,wg(t,e)}function _g(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function s0(t){return Object.getPrototypeOf(t.constructor)===Gc}function a0(t,e){t._syncPendingControls(),e.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function Mg(t,e){if(!e)return null;Array.isArray(e);let n,r,i;return e.forEach(o=>{o.constructor===hg?n=o:s0(o)?r=o:i=o}),i||r||n||null}var u0={provide:mr,useExisting:pt(()=>c0)},ci=Promise.resolve(),c0=(()=>{let e=class e extends mr{get submitted(){return De(this.submittedReactive)}constructor(r,i,o){super(),this.callSetDisabledState=o,this._submitted=wn(()=>this.submittedReactive()),this.submittedReactive=nt(!1),this._directives=new Set,this.ngSubmit=new J,this.form=new xs({},Yc(r),Zc(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(r){ci.then(()=>{let i=this._findContainer(r.path);r.control=i.registerControl(r.name,r.control),Jc(r.control,r,this.callSetDisabledState),r.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(r)})}getControl(r){return this.form.get(r.path)}removeControl(r){ci.then(()=>{let i=this._findContainer(r.path);i&&i.removeControl(r.name),this._directives.delete(r)})}addFormGroup(r){ci.then(()=>{let i=this._findContainer(r.path),o=new xs({});o0(o,r),i.registerControl(r.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(r){ci.then(()=>{let i=this._findContainer(r.path);i&&i.removeControl(r.name)})}getFormGroup(r){return this.form.get(r.path)}updateModel(r,i){ci.then(()=>{this.form.get(r.path).setValue(i)})}setValue(r){this.control.setValue(r)}onSubmit(r){var i;return this.submittedReactive.set(!0),a0(this.form,this._directives),this.ngSubmit.emit(r),((i=r==null?void 0:r.target)==null?void 0:i.method)==="dialog"}onReset(){this.resetForm()}resetForm(r=void 0){this.form.reset(r),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(r){return r.pop(),r.length?this.form.get(r):this.form}};e.\u0275fac=function(i){return new(i||e)(A(Wc,10),A(qc,10),A(pi,8))},e.\u0275dir=F({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&lr("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[X([u0]),Se]});let t=e;return t})();function ug(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function cg(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var l0=class extends fi{constructor(e=null,n,r){super(Qc(n),Kc(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Os(n)&&(n.nonNullable||n.initialValueIsDefault)&&(cg(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ug(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ug(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){cg(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var d0={provide:Cn,useExisting:pt(()=>f0)},lg=Promise.resolve(),f0=(()=>{let e=class e extends Cn{constructor(r,i,o,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new l0,this._registered=!1,this.name="",this.update=new J,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Mg(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),_g(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(){Jc(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){lg.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&&Nc(i);lg.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?Xw(r,this._parent):[r]}};e.\u0275fac=function(i){return new(i||e)(A(mr,9),A(Wc,10),A(qc,10),A(hi,10),A(fr,8),A(pi,8))},e.\u0275dir=F({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[X([d0]),Se,yn]});let t=e;return t})(),PP=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var h0={provide:hi,useExisting:pt(()=>p0),multi:!0},p0=(()=>{let e=class e extends Gc{writeValue(r){this.setProperty("value",parseFloat(r))}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};e.\u0275fac=(()=>{let r;return function(o){return(r||(r=os(e)))(o||e)}})(),e.\u0275dir=F({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&lr("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[X([h0]),Se]});let t=e;return t})(),Tg=new m(""),g0={provide:Cn,useExisting:pt(()=>m0)},m0=(()=>{let e=class e extends Cn{set isDisabled(r){}constructor(r,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new J,this._ngModelWarningSent=!1,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Mg(this,o)}ngOnChanges(r){if(this._isControlChanged(r)){let i=r.form.previousValue;i&&ag(i,this,!1),Jc(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}_g(r,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ag(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_isControlChanged(r){return r.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(A(Wc,10),A(qc,10),A(hi,10),A(Tg,8),A(pi,8))},e.\u0275dir=F({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[X([g0]),Se,yn]});let t=e;return t})();var Ag=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=vn({type:e}),e.\u0275inj=mn({});let t=e;return t})(),dg=class extends fi{constructor(e,n,r){super(Qc(n),Kc(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),n&&(this.controls.splice(i,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){Ig(this,!1,e),e.forEach((r,i)=>{bg(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,i)=>{r.reset(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var kP=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:pi,useValue:r.callSetDisabledState??Fs}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=vn({type:e}),e.\u0275inj=mn({imports:[Ag]});let t=e;return t})(),LP=(()=>{let e=class e{static withConfig(r){return{ngModule:e,providers:[{provide:Tg,useValue:r.warnOnNgModelWithFormControl??"always"},{provide:pi,useValue:r.callSetDisabledState??Fs}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=vn({type:e}),e.\u0275inj=mn({imports:[Ag]});let t=e;return t})();function UP(t,e){return t.slice(0,Math.max(e,0)).concat(t.slice(Math.max(e+1,0)))}var HP=(t,e)=>t.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi,e);function q(t){return ce(()=>t)}function ce(t){return new m("",{factory:t})}function Xc(t){return typeof t=="string"}function v0(t,e,n,r={self:!0}){let i=gs(n)?n:nt(n),o=g(t,r),s=o[`${e.toString()}Change`],a;return ri(()=>{var c,l;let u=i();a!==u&&(gs(o[e])?o[e].set(u):o[e]=u,(c=o.ngOnChanges)==null||c.call(o,{}),(l=s==null?void 0:s.emit)==null||l.call(s,u),a=u)},{allowSignalWrites:!0}),i}function xg(t){let e=[];return t.find((n,r,i)=>(e=i,!0)),e}function $P(t){return typeof t=="number"}function el(t){return t!=null}function zP(t,e,n){return t===null?e===null:e===null?!1:n(t,e)}function tl(t,e,n=!1){return{provide:t,useExisting:e,multi:n}}function _n(t,e,n){return{provide:t,deps:[[new Gr,new Wr,t]],useFactory:r=>S(S({},r||n),e)}}function y0(t){let e=[],n=!1,r;return function(...o){return n&&e.length===o.length&&o.every((a,u)=>a===e[u])||(e=o,r=t.apply(this,o),n=!0),r}}function Sg(t,e,n=!0){return function(){let i=t.call(this);return Object.defineProperty(this,e,{enumerable:n,value:i}),i}}function D0(t,e,n){if(typeof t=="function"){let u=e;if(u.kind==="getter")return Sg(t,u.name);if(u.kind==="method")return y0(t);throw new Rs}let{get:r,enumerable:i,value:o}=n,s=e;if(r)return{configurable:!0,enumerable:i,get:Sg(r,s,i)};if(typeof o!="function")throw new Rs;let a=o;return{configurable:!0,enumerable:i,get(){let u=[],c=!1,l,d=(...h)=>(c&&u.length===h.length&&h.every((p,D)=>p===u[D])||(u=h,l=a.apply(this,h),c=!0),l);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var Rs=class extends Error{constructor(){super("")}};function GP(t){return`${t}px`}var E0=ce(()=>{let t=new Map;return g(He).onDestroy(()=>t.forEach(e=>e.destroy())),t});function ze(t){let e=g(E0),n=g(Te);e.has(t)||e.set(t,Hp(t,{environmentInjector:n}))}var Ng={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},ZP=new Ur,QP=[],KP=()=>{},JP=j(S({},Ng),{toJSON:()=>Ng}),XP=()=>!1,ek=()=>!0;function b0(t,e){return Array.isArray(t)&&Array.isArray(e)&&!t.length&&!e.length}var tk=(t,e)=>t===e||b0(t,e);var nk={acceptNode(t){return"ownerSVGElement"in t?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},gi="\xA0",Og="\u2013";var rk="-",ik="\u2212",ok="+";var sk="4.0.0-rc.7";function Mn(t,e,n){return Math.min(n,Math.max(e,t))}function mi(t,e,n){return t>=e&&t=n?n:Math.round(t)}var I0=292;function ks(t,e,n){if(t===1/0)return t;e=Math.min(e,I0);let r=`${t}e`.split("e"),o=`${n(+`${r[0]}e${Number(r[1])+e}`)}e`.split("e");return+`${o[0]}e${Number(o[1])-e}`}function w0(t,e=0){return ks(t,e,Math.round)}function C0(t,e=0){return ks(t,e,Math.ceil)}function _0(t,e=0){return ks(t,e,Math.floor)}function M0(t,e=0){return ks(t,e,Math.trunc)}function ck({value:t,precision:e,method:n}){switch(n){case"round":return w0(t,e);case"ceil":return C0(t,e);case"floor":return _0(t,e);default:return M0(t,e)}}function lk(...t){return t.reduce((e,n)=>e+n,0)}function pk(t,e,n){return n&&nt?e:t}var gk=7;var yr=12,Ls=1,nl=0,rl=11,il=0,ol=9999,Vs=`${gi}${Og}${gi}`,T0=1e3,A0=60,S0=60,x0=24,N0=T0*A0,O0=N0*S0,mk=O0*x0,sl=10,F0=2*sl+Vs.length,js={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},bt={January:0,February:1,March:2,April:3,May:4,June:5,July:6,August:7,September:8,October:9,November:10,December:11},Fe=class t{constructor(e){this.year=e}static isValidYear(e){return Number.isInteger(e)&&mi(e,il,ol+1)}static isLeapYear(e){return e%400===0||e%4===0&&e%100!==0}static getAbsoluteLeapYears(e){return Math.ceil(e/400)+(Math.ceil(e/4)-Math.ceil(e/100))}static lengthBetween(e,n){return n.year-e.year}static normalizeYearPart(e){return Ps(e,il,ol)}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:e}){return this.year=e}yearAfter({year:e}){return this.year>e}append({year:e=0}){let n=this.year+e;return new t(n)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](e){return Date.prototype[Symbol.toPrimitive].call(this,e)}toJSON(){return this.formattedYear}},we=class t extends Fe{constructor(e,n){super(e),this.month=n}static isValidMonth(e,n){return Fe.isValidYear(e)&&t.isValidMonthPart(n)}static getMonthDaysCount(e,n){switch(e){case bt.February:return n?29:28;case bt.April:case bt.June:case bt.September:case bt.November:return 30;default:return 31}}static currentLocal(){let e=new Date;return new t(e.getFullYear(),e.getMonth())}static currentUtc(){let e=new Date;return new t(e.getUTCFullYear(),e.getUTCMonth())}static lengthBetween(e,n){let r=e.month+e.year*12;return n.month+n.year*12-r}static normalizeMonthPart(e){return Ps(e,nl,rl)}static isValidMonthPart(e){return Number.isInteger(e)&&mi(e,nl,rl+1)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return t.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(e){return this.yearBefore(e)||this.yearSame(e)&&this.month=e.month}monthAfter(e){return this.yearAfter(e)||this.yearSame(e)&&this.month>e.month}append({year:e=0,month:n=0}){let r=(this.year+e)*yr+this.month+n;return new t(Math.floor(r/yr),r%yr)}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))}},Dr=class t extends we{constructor(e,n,r){super(e,n),this.day=r}static fromLocalNativeDate(e){return new t(e.getFullYear(),e.getMonth(),e.getDate())}static fromUtcNativeDate(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}static isValidDay(e,n,r){return we.isValidMonth(e,n)&&Number.isInteger(r)&&mi(r,Ls,we.getMonthDaysCount(n,Fe.isLeapYear(e))+1)}static currentLocal(){let e=new Date,n=e.getFullYear(),r=e.getMonth(),i=e.getDate();return new t(n,r,i)}static currentUtc(){let e=new Date,n=e.getUTCFullYear(),r=e.getUTCMonth(),i=e.getUTCDate();return new t(n,r,i)}static normalizeOf(e,n,r){let i=Fe.normalizeYearPart(e),o=we.normalizeMonthPart(n),s=t.normalizeDayPart(r,o,i);return new t(i,o,s)}static lengthBetween(e,n){return Math.round((n.toLocalNativeDate().getTime()-e.toLocalNativeDate().getTime())/(1e3*60*60*24))}static parseRawDateString(e,n="DMY"){switch(n){case"YMD":return{day:parseInt(e.slice(8,10),10),month:parseInt(e.slice(5,7),10)-1,year:parseInt(e.slice(0,4),10)};case"MDY":return{day:parseInt(e.slice(3,5),10),month:parseInt(e.slice(0,2),10)-1,year:parseInt(e.slice(6,10),10)};case"DMY":default:return{day:parseInt(e.slice(0,2),10),month:parseInt(e.slice(3,5),10)-1,year:parseInt(e.slice(6,10),10)}}}static normalizeParse(e,n="DMY"){let{day:r,month:i,year:o}=this.parseRawDateString(e,n);return t.normalizeOf(o,i,r)}static jsonParse(e){let{day:n,month:r,year:i}=this.parseRawDateString(e,"YMD");if(!we.isValidMonth(i,r)||!Number.isInteger(n)||!mi(n,Ls,we.getMonthDaysCount(r,Fe.isLeapYear(i))+1))throw new al(i,r,n);return new t(i,r,n)}static normalizeDayPart(e,n,r){let i=we.getMonthDaysCount(n,Fe.isLeapYear(r));return Ps(e,1,i)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let e=this.dayOfWeek(!1);return e===js.Saturday||e===js.Sunday}dayOfWeek(e=!0){let n=e?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return n<0?6:n}dayBefore(e){return this.monthBefore(e)||this.monthSame(e)&&this.day=e.day}dayAfter(e){return this.monthAfter(e)||this.monthSame(e)&&this.day>e.day}dayLimit(e,n){return e!==null&&this.dayBefore(e)?e:n!==null&&this.dayAfter(n)?n:this}append({year:e=0,month:n=0,day:r=0}){let i=(this.year+e)*yr+this.month+n,o=Math.floor(i/yr),s=i%yr,a=Math.min(this.day,we.getMonthDaysCount(s,Fe.isLeapYear(o)))+r;for(;a>we.getMonthDaysCount(s,Fe.isLeapYear(o));)a-=we.getMonthDaysCount(s,Fe.isLeapYear(o)),s===bt.December?(o++,s=bt.January):s++;for(;aRg}),kg=new m("[TUI_LANGUAGE]",{factory:()=>ke(g(Pg))}),B0=new m("[TUI_LANGUAGE_LOADER]"),U0=new m("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});var cl=new m("[WA_WINDOW]",{factory:()=>{let{defaultView:t}=g(Oe);if(!t)throw new Error("Window is not available");return t}}),le=cl,Sk=new m("[WA_ANIMATION_FRAME]",{factory:()=>{let{requestAnimationFrame:t,cancelAnimationFrame:e}=g(le);return new I(r=>{let i=NaN,o=s=>{r.next(s),i=t(o)};return i=t(o),()=>{e(i)}}).pipe(Xt())}});var xk=new m("[WA_CACHES]",{factory:()=>g(le).caches});var Nk=new m("[WA_CRYPTO]",{factory:()=>g(le).crypto});var Ok=new m("[WA_CSS]",{factory:()=>g(le).CSS??{escape:t=>t,supports:()=>!1}});var Fk=new m("[WA_HISTORY]",{factory:()=>g(le).history});var H0=new m("[WA_LOCAL_STORAGE]",{factory:()=>g(le).localStorage}),Rk=H0,Pk=new m("[WA_LOCATION]",{factory:()=>g(le).location});var Lg=new m("[WA_NAVIGATOR]",{factory:()=>g(le).navigator}),Vg=Lg,kk=new m("[WA_MEDIA_DEVICES]",{factory:()=>g(Vg).mediaDevices});var Lk=new m("[WA_NETWORK_INFORMATION]",{factory:()=>g(Lg).connection||null});var Vk=new m("[WA_PAGE_VISIBILITY]",{factory:()=>{let t=g(Oe);return at(t,"visibilitychange").pipe(Qt(0),B(()=>t.visibilityState!=="hidden"),Wi(),Zi({refCount:!1,bufferSize:1}))}});var jk=new m("[WA_PERFORMANCE]",{factory:()=>g(le).performance});var Bk=new m("[WA_SCREEN]",{factory:()=>g(le).screen});var Uk=new m("[WA_SESSION_STORAGE]",{factory:()=>g(le).sessionStorage});var Hk=new m("[WA_SPEECH_RECOGNITION]: [SPEECH_RECOGNITION]",{factory:()=>{let t=g(le);return t.speechRecognition||t.webkitSpeechRecognition||null}});var $k=new m("[WA_SPEECH_SYNTHESIS]",{factory:()=>g(le).speechSynthesis});var zk=new m("[WA_USER_AGENT]",{factory:()=>g(Vg).userAgent});function Tn(t){return()=>g(kg).pipe(B(e=>e[t]))}function r1(t){return new I(e=>{if(!(t!=null&&t.valueChanges))throw new ll;return t.valueChanges.pipe(Qt(t.value)).subscribe(e)})}var ll=class extends Error{constructor(){super("")}};function It(t,e,n={}){return at(t,e,n)}function i1(t,e=Boolean){return wr(At(n=>e(n)?t(n):Ce))}function o1(t){return t.changes.pipe(Qt(null),B(()=>xg(t)))}function s1(t){return It(t===t.ownerDocument.documentElement?t.ownerDocument:t,"scroll")}function a1(t){return wr(St(ca.pipe(si(t),Ar(()=>Ce),Mt(null))))}function u1(t){return Sr(()=>t.markForCheck())}function $0(t){return e=>new I(n=>e.subscribe({next:r=>t.run(()=>n.next(r)),error:r=>t.run(()=>n.error(r)),complete:()=>t.run(()=>n.complete())}))}function dl(t){return e=>new I(n=>t.runOutsideAngular(()=>e.subscribe(n)))}function c1(t){return wr(dl(t),$0(t))}var z0=ce(()=>{var t,e;return((e=(t=g(Oe).defaultView)==null?void 0:t.matchMedia)==null?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)??!1}),E1=ce(()=>g(z0)?0:1),G0=q("assets/taiga-ui/icons");var W0={check:"@tui.check",close:"@tui.x",error:"@tui.circle-alert",more:"@tui.chevron-right"},b1=q(W0);var q0={mode:"DMY",separator:"."},I1=q(ke(q0));var w1=q(t=>t.isWeekend?"weekend":"weekday"),C1=q(js.Monday),_1=ce(Tn("months")),M1=ce(Tn("close")),T1=ce(Tn("nothingFoundMessage")),A1=ce(Tn("defaultErrorMessage")),S1=ce(Tn("spinTexts")),x1=ce(Tn("shortWeekDays")),Bs=q(""),Us=q(""),Y0=q({});var Z0=ce(()=>{let t=g(G0);return e=>!e||e.includes("/")?e:`${t}/${e.replace("@tui.","").split(".").join("/")}.svg`});function Hs(){let t=g(Y0),e=g(Z0);return n=>t[n]||e(n)}var N1=q({mobile:768,desktopSmall:1024,desktopLarge:1280}),Bg={precision:NaN,decimalSeparator:",",thousandSeparator:gi,rounding:"truncate",decimalMode:"pad"},jg=q(ke(Bg));function O1(t){return{provide:jg,deps:[[new Gr,new Wr,jg]],useFactory:e=>(e||ke(Bg)).pipe(B(n=>S(S({},n),t)))}}var F1=ce(()=>new Q(g(Oe).documentElement)),R1=ce(()=>{let t=g(Oe);return Vn(It(t,"selectionchange"),It(t,"mouseup"),It(t,"mousedown").pipe(At(()=>It(t,"mousemove").pipe(St(It(t,"mouseup"))))),It(t,"keydown"),It(t,"keyup")).pipe(Xt())}),P1=q({decrement:"@tui.chevron-left",increment:"@tui.chevron-right"}),k1=q("Taiga UI"),L1=ce(()=>{let t=g(cl);return{type:"viewport",getClientRect(){let e={top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight,x:0,y:0};return j(S({},e),{toJSON:()=>JSON.stringify(e)})}}});var Ug=(()=>{let e=class e{constructor(){this.resolver=Hs(),this.icon=g(Bs,{self:!0,optional:!0})||g(Us,{self:!0,optional:!0})||"",this.background=""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=me({type:e,selectors:[["tui-icon"]],hostVars:4,hostBindings:function(i,o){i&2&&yt("--t-mask","url("+o.resolver(o.icon)+")")("--t-mask-bg",o.background?"url("+o.resolver(o.background)+")":null)},inputs:{icon:"icon",background:"background"},standalone:!0,features:[ye],decls:0,vars:0,template:function(i,o){},styles:[`tui-icon{position:relative;display:inline-block;width:1em;height:1em;font-size:1.5rem;flex-shrink:0;vertical-align:middle;box-sizing:border-box;-webkit-mask:var(--t-mask-bg) no-repeat center / contain;mask:var(--t-mask-bg) no-repeat center / contain}tui-icon:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";-webkit-mask:var(--t-mask) no-repeat center / contain;mask:var(--t-mask) no-repeat center / contain;background:currentColor} +`],encapsulation:2,changeDetection:0});let t=e;return t})();var yi=class{},zs=class{},wt=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.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"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let i=(e.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=e.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(e,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var hl=class{encodeKey(e){return Hg(e)}encodeValue(e){return Hg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Q0(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}var K0=/%(\d[a-f0-9])/gi,J0={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Hg(t){return encodeURIComponent(t).replace(K0,(e,n)=>J0[n]??e)}function $s(t){return`${t}`}var $t=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new hl,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Q0(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],i=Array.isArray(r)?r.map($s):[$s(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push($s(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],i=r.indexOf($s(e.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var pl=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function X0(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function $g(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function zg(t){return typeof Blob<"u"&&t instanceof Blob}function Gg(t){return typeof FormData<"u"&&t instanceof FormData}function eC(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var vi=class t{constructor(e,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(X0(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??(this.headers=new wt),this.context??(this.context=new pl),!this.params)this.params=new $t,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),u=a===-1?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(n,r,s,{params:l,headers:c,context:d,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},zt=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(zt||{}),Di=class{constructor(e,n=200,r="OK"){this.headers=e.headers||new wt,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Gs=class t extends Di{constructor(e={}){super(e),this.type=zt.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Ei=class t extends Di{constructor(e={}){super(e),this.type=zt.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Ht=class extends Di{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Zg=200,tC=204;function fl(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var nC=(()=>{let e=class e{constructor(r){this.handler=r}request(r,i,o={}){let s;if(r instanceof vi)s=r;else{let c;o.headers instanceof wt?c=o.headers:c=new wt(o.headers);let l;o.params&&(o.params instanceof $t?l=o.params:l=new $t({fromObject:o.params})),s=new vi(r,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=ke(s).pipe(la(c=>this.handler.handle(c)));if(r instanceof vi||o.observe==="events")return a;let u=a.pipe(We(c=>c instanceof Ei));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(B(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(B(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(r,i={}){return this.request("DELETE",r,i)}get(r,i={}){return this.request("GET",r,i)}head(r,i={}){return this.request("HEAD",r,i)}jsonp(r,i){return this.request("JSONP",r,{params:new $t().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(r,i={}){return this.request("OPTIONS",r,i)}patch(r,i,o={}){return this.request("PATCH",r,fl(o,i))}post(r,i,o={}){return this.request("POST",r,fl(o,i))}put(r,i,o={}){return this.request("PUT",r,fl(o,i))}};e.\u0275fac=function(i){return new(i||e)(H(yi))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),rC=/^\)\]\}',?\n/,iC="X-Request-URL";function Wg(t){if(t.url)return t.url;let e=iC.toLocaleLowerCase();return t.headers.get(e)}var oC=(()=>{let e=class e{constructor(){var r;this.fetchImpl=((r=g(gl,{optional:!0}))==null?void 0:r.fetch)??fetch.bind(globalThis),this.ngZone=g(Z)}handle(r){return new I(i=>{let o=new AbortController;return this.doRequest(r,o.signal,i).then(ml,s=>i.error(new Ht({error:s}))),()=>o.abort()})}doRequest(r,i,o){return Ir(this,null,function*(){let s=this.createRequestInit(r),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(r.urlWithParams,S({signal:i},s)));sC(p),o.next({type:zt.Sent}),a=yield p}catch(p){o.error(new Ht({error:p,status:p.status??0,statusText:p.statusText,url:r.urlWithParams,headers:p.headers}));return}let u=new wt(a.headers),c=a.statusText,l=Wg(a)??r.urlWithParams,d=a.status,h=null;if(r.reportProgress&&o.next(new Gs({headers:u,status:d,statusText:c,url:l})),a.body){let p=a.headers.get("content-length"),D=[],y=a.body.getReader(),v=0,L,Y,R=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Ir(this,null,function*(){for(;;){let{done:oe,value:de}=yield y.read();if(oe)break;if(D.push(de),v+=de.length,r.reportProgress){Y=r.responseType==="text"?(Y??"")+(L??(L=new TextDecoder)).decode(de,{stream:!0}):void 0;let it=()=>o.next({type:zt.DownloadProgress,total:p?+p:void 0,loaded:v,partialText:Y});R?R.run(it):it()}}}));let Ee=this.concatChunks(D,v);try{let oe=a.headers.get("Content-Type")??"";h=this.parseBody(r,Ee,oe)}catch(oe){o.error(new Ht({error:oe,headers:new wt(a.headers),status:a.status,statusText:a.statusText,url:Wg(a)??r.urlWithParams}));return}}d===0&&(d=h?Zg:0),d>=200&&d<300?(o.next(new Ei({body:h,headers:u,status:d,statusText:c,url:l})),o.complete()):o.error(new Ht({error:h,headers:u,status:d,statusText:c,url:l}))})}parseBody(r,i,o){switch(r.responseType){case"json":let s=new TextDecoder().decode(i).replace(rC,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(r){let i={},o=r.withCredentials?"include":void 0;if(r.headers.forEach((s,a)=>i[s]=a.join(",")),r.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!r.headers.has("Content-Type")){let s=r.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:r.serializeBody(),method:r.method,headers:i,credentials:o}}concatChunks(r,i){let o=new Uint8Array(i),s=0;for(let a of r)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),gl=class{};function ml(){}function sC(t){t.then(ml,ml)}function aC(t,e){return e(t)}function uC(t,e,n){return(r,i)=>zu(n,()=>e(r,o=>t(o,i)))}var Qg=new m(""),cC=new m(""),lC=new m("",{providedIn:"root",factory:()=>!0});var qg=(()=>{let e=class e extends yi{constructor(r,i){super(),this.backend=r,this.injector=i,this.chain=null,this.pendingTasks=g(En),this.contributeToStability=g(lC)}handle(r){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Qg),...this.injector.get(cC,[])]));this.chain=i.reduceRight((o,s)=>uC(o,s,this.injector),aC)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(r,o=>this.backend.handle(o)).pipe(Yi(()=>this.pendingTasks.remove(i)))}else return this.chain(r,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(H(zs),H(Te))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})();var dC=/^\)\]\}',?\n/;function fC(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Yg=(()=>{let e=class e{constructor(r){this.xhrFactory=r}handle(r){if(r.method==="JSONP")throw new M(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?se(i.\u0275loadImpl()):ke(null)).pipe(At(()=>new I(s=>{let a=i.build();if(a.open(r.method,r.urlWithParams),r.withCredentials&&(a.withCredentials=!0),r.headers.forEach((y,v)=>a.setRequestHeader(y,v.join(","))),r.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!r.headers.has("Content-Type")){let y=r.detectContentTypeHeader();y!==null&&a.setRequestHeader("Content-Type",y)}if(r.responseType){let y=r.responseType.toLowerCase();a.responseType=y!=="json"?y:"text"}let u=r.serializeBody(),c=null,l=()=>{if(c!==null)return c;let y=a.statusText||"OK",v=new wt(a.getAllResponseHeaders()),L=fC(a)||r.url;return c=new Gs({headers:v,status:a.status,statusText:y,url:L}),c},d=()=>{let{headers:y,status:v,statusText:L,url:Y}=l(),R=null;v!==tC&&(R=typeof a.response>"u"?a.responseText:a.response),v===0&&(v=R?Zg:0);let Ee=v>=200&&v<300;if(r.responseType==="json"&&typeof R=="string"){let oe=R;R=R.replace(dC,"");try{R=R!==""?JSON.parse(R):null}catch(de){R=oe,Ee&&(Ee=!1,R={error:de,text:R})}}Ee?(s.next(new Ei({body:R,headers:y,status:v,statusText:L,url:Y||void 0})),s.complete()):s.error(new Ht({error:R,headers:y,status:v,statusText:L,url:Y||void 0}))},h=y=>{let{url:v}=l(),L=new Ht({error:y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:v||void 0});s.error(L)},f=!1,p=y=>{f||(s.next(l()),f=!0);let v={type:zt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),r.responseType==="text"&&a.responseText&&(v.partialText=a.responseText),s.next(v)},D=y=>{let v={type:zt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(v.total=y.total),s.next(v)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),r.reportProgress&&(a.addEventListener("progress",p),u!==null&&a.upload&&a.upload.addEventListener("progress",D)),a.send(u),s.next({type:zt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),r.reportProgress&&(a.removeEventListener("progress",p),u!==null&&a.upload&&a.upload.removeEventListener("progress",D)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(H(Is))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),Kg=new m(""),hC="XSRF-TOKEN",pC=new m("",{providedIn:"root",factory:()=>hC}),gC="X-XSRF-TOKEN",mC=new m("",{providedIn:"root",factory:()=>gC}),Ws=class{},vC=(()=>{let e=class e{constructor(r,i,o){this.doc=r,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let r=this.doc.cookie||"";return r!==this.lastCookieString&&(this.parseCount++,this.lastToken=eg(r,this.cookieName),this.lastCookieString=r),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(H(Oe),H(Zr),H(pC))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})();function yC(t,e){let n=t.url.toLowerCase();if(!g(Kg)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=g(Ws).getToken(),i=g(mC);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),e(t)}function sL(...t){let e=[nC,Yg,qg,{provide:yi,useExisting:qg},{provide:zs,useFactory:()=>g(oC,{optional:!0})??g(Yg)},{provide:Qg,useValue:yC,multi:!0},{provide:Kg,useValue:!0},{provide:Ws,useClass:vC}];for(let n of t)e.push(...n.\u0275providers);return Hu(e)}function fL(t,e){try{return t.contains(e)||!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}catch{return!1}}function DC(t){return t.matches("input")}function EC(t){return t.matches("textarea")}function bC(t){return DC(t)||EC(t)}function hL(t){return!!t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function IC(t){return!!t&&t instanceof t.ownerDocument.defaultView.HTMLElement}function pL(t){return t.composedPath()[0]}function wC(t){return"getRootNode"in t&&t.isConnected?t.getRootNode():t.ownerDocument}function gL(t){let{ownerDocument:e}=t;if(!(e!=null&&e.defaultView)||!t.getBoundingClientRect)return null;let{innerWidth:n,innerHeight:r}=e.defaultView,i=wC(t),o=t.getBoundingClientRect();if(o.width===0&&o.height===0)return null;let s=Mn(Math.round(o.left)+2,0,n),a=Mn(Math.round(o.top)+2,0,r),u=Mn(Math.round(o.right)-2,0,n),c=Mn(Math.round(o.bottom)-2,0,r),l=Mn(Math.round(o.left+o.width/2),0,n),d=Mn(Math.round(o.top+o.height/2),0,r),f=[i.elementFromPoint(l,a),i.elementFromPoint(l,c),i.elementFromPoint(s,d),i.elementFromPoint(u,d)].filter(el);if(!f.length)return[];let p=f.filter(D=>!t.contains(D)&&!D.contains(t));return p.length===4?p:null}function mL(t,e){let{offsetTop:n,offsetLeft:r,offsetParent:i}=e;for(;IC(i)&&i!==t;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Jg(){return g(Q).nativeElement}function vL(t){return bC(t)&&!t.readOnly||!!t.isContentEditable}function yL(t=0,e=0){let n={x:t,y:e,left:t,right:t,top:e,bottom:e,width:0,height:0};return j(S({},n),{toJSON:()=>n})}function DL(t){return"explicitOriginalTarget"in t?(t==null?void 0:t.explicitOriginalTarget)!==t.target:"pointerId"in t?t.pointerId===-1:"detail"in t&&"webkitForce"in t?(t==null?void 0:t.detail)===0:!1}var CC={appearance:""},Xg=q(CC);function Er(t){return tl(Xg,t)}var _C=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=me({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-appearance"],standalone:!0,features:[ye],decls:0,vars:0,template:function(i,o){},styles:[`[tuiAppearance]{transition-property:color,background,opacity,box-shadow,border;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;-webkit-appearance:none;appearance:none;outline:.125rem solid transparent;outline-offset:-.125rem}[tuiAppearance]:focus-visible:not([data-focus=false]){outline-color:var(--tui-border-focus)}[tuiAppearance][data-focus=true]{outline-color:var(--tui-border-focus)}[tuiAppearance]:disabled:not([data-state]),[tuiAppearance][data-state=disabled]{pointer-events:none;opacity:var(--tui-disabled-opacity)} +`],encapsulation:2,changeDetection:0});let t=e;return t})(),MC=(()=>{let e=class e{constructor(){this.nothing=ze(_C),this.tuiAppearance=g(Xg).appearance,this.tuiAppearanceState=null,this.tuiAppearanceFocus=null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["","tuiAppearance",""]],hostAttrs:["tuiAppearance",""],hostVars:3,hostBindings:function(i,o){i&2&&xe("data-appearance",o.tuiAppearance)("data-state",o.tuiAppearanceState)("data-focus",o.tuiAppearanceFocus)},inputs:{tuiAppearance:"tuiAppearance",tuiAppearanceState:"tuiAppearanceState",tuiAppearanceFocus:"tuiAppearanceFocus"},standalone:!0});let t=e;return t})();var br=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,standalone:!0,features:[rt([{directive:MC,inputs:["tuiAppearance","appearance","tuiAppearanceState","tuiAppearanceState","tuiAppearanceFocus","tuiAppearanceFocus"]}])]});let t=e;return t})();var TC=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=me({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-icons"],standalone:!0,features:[ye],decls:0,vars:0,template:function(i,o){},styles:[`[tuiIcons]:before,[tuiIcons]:after{font-size:1.5rem}[tuiIcons]._icon-start:before,[tuiIcons]._icon-end:after{content:"";width:1em;height:1em;flex-shrink:0;background:currentColor;-webkit-mask:var(--t-mask-start) no-repeat center / contain;mask:var(--t-mask-start) no-repeat center / contain}[tuiIcons]._icon-end:after{-webkit-mask:var(--t-mask-end) no-repeat center / contain;mask:var(--t-mask-end) no-repeat center / contain} +`],encapsulation:2,changeDetection:0});let t=e;return t})(),AC=(()=>{let e=class e{constructor(){this.nothing=ze(TC),this.resolver=Hs(),this.iconStart=g(Bs,{self:!0,optional:!0})||"",this.iconEnd=g(Us,{self:!0,optional:!0})||""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,hostAttrs:["tuiIcons",""],hostVars:8,hostBindings:function(i,o){i&2&&(yt("--t-mask-start","url("+o.resolver(o.iconStart)+")")("--t-mask-end","url("+o.resolver(o.iconEnd)+")"),Ut("_icon-start",o.iconStart)("_icon-end",o.iconEnd))},inputs:{iconStart:"iconStart",iconEnd:"iconEnd"},standalone:!0});let t=e;return t})(),qs=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,standalone:!0,features:[rt([{directive:AC,inputs:["iconStart","iconStart","iconEnd","iconEnd"]}])]});let t=e;return t})();var tm={appearance:"primary",size:"l"},yl=q(tm);function WL(t){return _n(yl,t,tm)}var SC=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=me({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-button"],standalone:!0,features:[ye],decls:0,vars:0,template:function(i,o){},styles:[`[tuiButton],[tuiIconButton]{--t-gap: .125rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-width:100%;gap:calc(var(--t-gap) - 2 * var(--t-margin));height:var(--t-size);justify-content:center;border-radius:var(--t-radius);padding:var(--t-padding);-webkit-user-select:none;user-select:none;cursor:pointer}[tuiButton]>img,[tuiIconButton]>img,[tuiButton]>tui-svg,[tuiIconButton]>tui-svg,[tuiButton]>tui-icon,[tuiIconButton]>tui-icon,[tuiButton]>tui-avatar,[tuiIconButton]>tui-avatar,[tuiButton]>tui-badge,[tuiIconButton]>tui-badge,[tuiButton]>[tuiBadge],[tuiIconButton]>[tuiBadge],[tuiButton]>[tuiRadio],[tuiIconButton]>[tuiRadio],[tuiButton]>[tuiSwitch],[tuiIconButton]>[tuiSwitch],[tuiButton]>[tuiCheckbox],[tuiIconButton]>[tuiCheckbox],[tuiButton]._icon-start:before,[tuiIconButton]._icon-start:before,[tuiButton]._icon-end:after,[tuiIconButton]._icon-end:after{margin:var(--t-margin)}[tuiButton]>.t-loader,[tuiIconButton]>.t-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[tuiButton]>.t-loader .t-text,[tuiIconButton]>.t-loader .t-text{position:absolute}[tuiButton][data-size=xs],[tuiIconButton][data-size=xs]{--t-size: var(--tui-height-xs);--t-radius: var(--tui-radius-xs);--t-padding: 0 .375rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=xs] tui-svg,[tuiIconButton][data-size=xs] tui-svg,[tuiButton][data-size=xs] tui-icon,[tuiIconButton][data-size=xs] tui-icon,[tuiButton][data-size=xs]:before,[tuiIconButton][data-size=xs]:before{font-size:1rem}[tuiButton][data-size=s],[tuiIconButton][data-size=s]{--t-size: var(--tui-height-s);--t-radius: var(--tui-radius-s);--t-padding: 0 .625rem;--t-margin: -.125rem;font:var(--tui-font-text-s)}[tuiButton][data-size=s] tui-svg,[tuiIconButton][data-size=s] tui-svg,[tuiButton][data-size=s] tui-icon,[tuiIconButton][data-size=s] tui-icon,[tuiButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before,[tuiIconButton][data-size=s]:not([tuiIconButton][data-appearance=icon]):not([tuiIconButton][data-appearance=link]):before{font-size:1rem}[tuiButton][data-size=m],[tuiIconButton][data-size=m]{--t-size: var(--tui-height-m);--t-radius: var(--tui-radius-m);--t-padding: 0 1rem;--t-margin: -.375rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=m]:after,[tuiIconButton][data-size=m]:after{margin-inline-end:-.125rem}[tuiButton][data-size=l],[tuiIconButton][data-size=l]{--t-size: var(--tui-height-l);--t-radius: var(--tui-radius-l);--t-padding: 0 1.25rem;--t-gap: .25rem;--t-margin: -.25rem;font:var(--tui-font-text-m);font-weight:700}[tuiButton][data-size=l]:after,[tuiIconButton][data-size=l]:after{margin-inline-start:.25rem;margin-inline-end:-.25rem}[tuiButton]._loading,[tuiIconButton]._loading{--tui-disabled-opacity: 1;-webkit-text-fill-color:transparent}[tuiButton]._loading>*,[tuiIconButton]._loading>*,[tuiButton]._loading:before,[tuiIconButton]._loading:before,[tuiButton]._loading:after,[tuiIconButton]._loading:after{opacity:0}[tuiButton]._loading>.t-loader,[tuiIconButton]._loading>.t-loader{opacity:1}[tuiButton][tuiIcons]:after,[tuiIconButton][tuiIcons]:after{font-size:1rem}[tuiIconButton]{gap:0;width:var(--t-size);font-size:0!important;padding:0}[tuiIconButton][data-size=l]:after{margin:0}[tuiIconButton]._icon-start:after{display:none} +`],encapsulation:2,changeDetection:0});let t=e;return t})(),qL=(()=>{let e=class e{constructor(){this.options=g(yl),this.nothing=ze(SC),this.size=this.options.size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["a","tuiButton",""],["button","tuiButton",""],["a","tuiIconButton",""],["button","tuiIconButton",""]],hostVars:1,hostBindings:function(i,o){i&2&&xe("data-size",o.size)},inputs:{size:"size"},standalone:!0,features:[X([Er(yl)]),rt([br,qs])]});let t=e;return t})();var xC=typeof MutationObserver<"u"?MutationObserver:class{observe(){}disconnect(){}takeRecords(){return[]}},Dl=new m("[WA_MUTATION_OBSERVER_INIT]"),NC=Dl;var El=(()=>{let e=class e extends I{constructor(){let r=g(Q).nativeElement,i=g(NC);super(o=>{let s=new xC(a=>{o.next(a)});return s.observe(r,i),()=>{s.disconnect()}})}};Ge(e,"\u0275fac",function(i){return new(i||e)}),Ge(e,"\u0275prov",k({token:e,factory:e.\u0275fac}));let t=e;return t})();var OC=typeof ResizeObserver<"u"?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},FC="content-box",bl=FC,RC=new m("[WA_RESIZE_OPTION_BOX]",{providedIn:"root",factory:()=>bl}),nm=RC,bi=(()=>{let e=class e extends I{constructor(){let r=g(Q).nativeElement,i=g(nm);super(o=>{let s=new OC(a=>o.next(a));return s.observe(r,{box:i}),()=>{s.disconnect()}})}};Ge(e,"\u0275fac",function(i){return new(i||e)}),Ge(e,"\u0275prov",k({token:e,factory:e.\u0275fac}));let t=e;return t})(),cV=(()=>{let e=class e{constructor(){Ge(this,"waResizeObserver",g(bi));Ge(this,"box",bl)}};Ge(e,"\u0275fac",function(i){return new(i||e)}),Ge(e,"\u0275dir",F({type:e,selectors:[["","waResizeObserver",""]],inputs:{waResizeBox:[0,"box","waResizeBox"]},outputs:{waResizeObserver:"waResizeObserver"},standalone:!0,features:[X([bi,{provide:nm,useFactory:()=>g(Q).nativeElement.getAttribute("waResizeBox")||bl}])]}));let t=e;return t})();var lV=new m("[WA_RESIZE_OBSERVER_SUPPORT]",{providedIn:"root",factory:()=>!!g(le).ResizeObserver});var Il=1,PC=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=me({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-fade-styles"],standalone:!0,features:[ye],decls:0,vars:0,template:function(i,o){},styles:[`[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:-webkit-mask-position;transition-property:mask-position;transition-property:mask-position,-webkit-mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to left,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%));mask-size:calc(51% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),calc(50% + var(--fade-size) + var(--fade-offset)) var(--line-height, 100%),100% calc(100% - var(--line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--fade-size) + var(--fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--fade-size) - var(--fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset))),linear-gradient(to top,transparent var(--fade-offset),#000 calc(var(--fade-size) + var(--fade-offset)));-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left calc(100% + var(--fade-size) + var(--fade-offset));-webkit-mask-size:100% calc(51% + var(--fade-size) + var(--fade-offset));mask-size:100% calc(51% + var(--fade-size) + var(--fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset));mask-position:left top,left calc(100% + var(--fade-size) + var(--fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom;mask-position:left calc(-1 * var(--fade-size) - var(--fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom} +`],encapsulation:2,changeDetection:0});let t=e;return t})(),AV=(()=>{let e=class e{constructor(){this.lineHeight=null,this.size="1.5em",this.offset="0em",this.orientation="horizontal";let r=Jg();ze(PC),Vn(g(bi),g(El),at(r,"scroll")).pipe(dl(g(Z)),si()).subscribe(()=>{r.classList.toggle("_start",!!r.scrollLeft||!!r.scrollTop),r.classList.toggle("_end",this.isEnd(r))})}isEnd(r){return this.orientation==="vertical"?Math.round(r.scrollTop)r.clientHeight+4*Il}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["","tuiFade",""]],hostVars:9,hostBindings:function(i,o){i&2&&(xe("data-orientation",o.orientation),yt("line-height",o.lineHeight)("--line-height",o.lineHeight)("--fade-size",o.size)("--fade-offset",o.offset))},inputs:{lineHeight:[0,"tuiFadeHeight","lineHeight"],size:[0,"tuiFadeSize","size"],offset:[0,"tuiFadeOffset","offset"],orientation:[0,"tuiFade","orientation"]},standalone:!0,features:[X([bi,El,{provide:Dl,useValue:{characterData:!0,subtree:!0}}])]});let t=e;return t})();var kC=["*"];function LC(t,e){if(t&1&&ms(0,"img",5),t&2){let n=vs();Bt("src",n.value,ic)}}function VC(t,e){if(t&1&&ms(0,"tui-icon",6),t&2){let n=vs();Bt("icon",n.value.toString())}}function jC(t,e){if(t&1&&(ar(0),Np(1),ur()),t&2){let n=vs();Jr(),Tc(n.value)}}function BC(t,e){t&1&&(ar(0),xp(1),ur())}var rm={appearance:"",round:!0,size:"l"},wl=q(rm);function HV(t){return _n(wl,t,rm)}var $V=(()=>{let e=class e{constructor(){this.options=g(wl),this.size=this.options.size,this.round=this.options.round}get safeSrc(){var r;return((r=this.src)==null?void 0:r.toString())??""}get value(){return this.src||""}get svg(){return Xc(this.value)&&this.value.endsWith(".svg")}get type(){return this.value&&!Xc(this.value)?"img":this.value.startsWith("@tui.")?"icon":this.value.length>0&&this.value.length<3?"text":this.value.length?"img":"content"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=me({type:e,selectors:[["tui-avatar"],["button","tuiAvatar",""],["a","tuiAvatar",""]],hostVars:6,hostBindings:function(i,o){i&2&&(xe("data-size",o.size)("data-type",o.type),Ut("_round",o.round)("_svg",o.svg))},inputs:{size:"size",round:"round",src:"src"},standalone:!0,features:[X([Er(wl)]),rt([br]),ye],ngContentSelectors:kC,decls:5,vars:4,consts:[[3,"ngSwitch"],["alt","","loading","lazy",3,"src",4,"ngSwitchCase"],[3,"icon",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["alt","","loading","lazy",3,"src"],[3,"icon"]],template:function(i,o){i&1&&(Sp(),ar(0,0),Ic(1,LC,1,1,"img",1)(2,VC,1,1,"tui-icon",2)(3,jC,2,1,"ng-container",3)(4,BC,2,0,"ng-container",4),ur()),i&2&&(Bt("ngSwitch",o.type),Jr(),Bt("ngSwitchCase","img"),Jr(),Bt("ngSwitchCase","icon"),Jr(),Bt("ngSwitchCase","text"))},dependencies:[Cs,tg,ng,Ug],styles:['[_nghost-%COMP%]{--t-size: 3.5rem;--t-radius: .75rem;position:relative;display:inline-flex;flex-shrink:0;width:var(--t-size);height:var(--t-size);align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;border-radius:var(--t-radius);border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-secondary);vertical-align:middle;box-sizing:border-box;padding:.25rem;opacity:.999}[data-size=xs][_nghost-%COMP%]{--t-size: var(--tui-height-xs);--t-radius: .5rem;font:var(--tui-font-text-xs);font-weight:700}[data-size=xs][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-m);font-size:.5625rem}[data-size=s][_nghost-%COMP%]{--t-size: var(--tui-height-s);--t-radius: .5rem;font:var(--tui-font-text-s);font-weight:700}[data-size=s][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-xs);font-weight:700}[data-size=m][_nghost-%COMP%]{--t-size: calc(var(--tui-height-m) - .25rem);--t-radius: .75rem;font:var(--tui-font-text-l);font-weight:700}[data-size=m][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-m);font-weight:700}[data-size=l][_nghost-%COMP%]{--t-size: var(--tui-height-l);--t-radius: .75rem;font:var(--tui-font-heading-5)}[data-size=l][data-type=content][_nghost-%COMP%]{font:var(--tui-font-text-l);font-weight:700}[data-size=xl][_nghost-%COMP%]{--t-size: 5rem;--t-radius: .75rem;font:var(--tui-font-heading-3)}[data-size=xl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-4)}[data-size=xxl][_nghost-%COMP%]{--t-size: 6rem;--t-radius: 1rem;font:var(--tui-font-heading-3)}[data-size=xxl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-3)}[data-size=xxxl][_nghost-%COMP%]{--t-size: 8rem;--t-radius: 1.25rem;font:var(--tui-font-heading-2)}[data-size=xxxl][data-type=content][_nghost-%COMP%]{font:var(--tui-font-heading-3)}[data-type=img][_nghost-%COMP%]:not(._svg){background:transparent}[data-type=icon][_nghost-%COMP%]:before{content:""}._round[_nghost-%COMP%]{--t-radius: calc(var(--t-size) / 2)}._svg[_nghost-%COMP%] img[_ngcontent-%COMP%]{padding:20%}[_nghost-%COMP%] tui-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60%;height:60%}[_nghost-%COMP%] img, [_nghost-%COMP%] picture, [_nghost-%COMP%] video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;box-sizing:border-box}'],changeDetection:0});let t=e;return t})();var im={appearance:"",size:"l"},Cl=q(im);function ej(t){return _n(Cl,t,im)}var UC=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=me({type:e,selectors:[["ng-component"]],hostAttrs:[1,"tui-badge"],standalone:!0,features:[ye],decls:0,vars:0,template:function(i,o){},styles:[`tui-badge,[tuiBadge]{--t-gap: 0rem;--t-icon-size: 1rem;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:inline-flex;align-items:center;flex-shrink:0;box-sizing:border-box;white-space:nowrap;overflow:hidden;vertical-align:middle;max-width:100%;gap:calc(var(--t-gap) - 2 * var(--t-margin));border-radius:6rem;background:#959595;color:var(--tui-background-base);padding:var(--t-padding);height:var(--t-size);min-width:var(--t-size);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font:var(--tui-font-text-s)}tui-badge>img,[tuiBadge]>img,tui-badge>tui-svg,[tuiBadge]>tui-svg,tui-badge>tui-icon,[tuiBadge]>tui-icon,tui-badge>tui-avatar,[tuiBadge]>tui-avatar,tui-badge>tui-badge,[tuiBadge]>tui-badge,tui-badge>[tuiBadge],[tuiBadge]>[tuiBadge],tui-badge>[tuiRadio],[tuiBadge]>[tuiRadio],tui-badge>[tuiSwitch],[tuiBadge]>[tuiSwitch],tui-badge>[tuiCheckbox],[tuiBadge]>[tuiCheckbox],tui-badge._icon-start:before,[tuiBadge]._icon-start:before,tui-badge._icon-end:after,[tuiBadge]._icon-end:after{margin:var(--t-margin)}tui-badge[tuiStatus]:before,[tuiBadge][tuiStatus]:before{width:.375rem;height:.375rem}tui-badge>tui-icon,[tuiBadge]>tui-icon,tui-badge[tuiIcons]:before,[tuiBadge][tuiIcons]:before,tui-badge[tuiIcons]:after,[tuiBadge][tuiIcons]:after{font-size:var(--t-icon-size)!important}tui-badge[data-appearance=error],[tuiBadge][data-appearance=error]{--t-status: var(--tui-status-negative)}tui-badge[data-appearance=success],[tuiBadge][data-appearance=success]{--t-status: var(--tui-status-positive)}tui-badge[data-appearance=warning],[tuiBadge][data-appearance=warning]{--t-status: var(--tui-status-warning)}tui-badge[data-appearance=info],[tuiBadge][data-appearance=info]{--t-status: var(--tui-status-info)}tui-badge[data-appearance=neutral],[tuiBadge][data-appearance=neutral]{--t-status: var(--tui-status-neutral)}tui-badge[tuiStatus][data-appearance=error]:before,[tuiBadge][tuiStatus][data-appearance=error]:before,tui-badge[tuiStatus][data-appearance=success]:before,[tuiBadge][tuiStatus][data-appearance=success]:before,tui-badge[tuiStatus][data-appearance=warning]:before,[tuiBadge][tuiStatus][data-appearance=warning]:before,tui-badge[tuiStatus][data-appearance=info]:before,[tuiBadge][tuiStatus][data-appearance=info]:before,tui-badge[tuiStatus][data-appearance=neutral]:before,[tuiBadge][tuiStatus][data-appearance=neutral]:before{content:""}tui-badge[data-size=s],[tuiBadge][data-size=s]{--t-padding: 0 .3125rem;--t-size: 1rem;--t-icon-size: .625rem;--t-margin: -.125rem}tui-badge[data-size=s][tuiStatus]:before,[tuiBadge][data-size=s][tuiStatus]:before{width:.25rem;height:.25rem;margin-inline-end:-.125rem}tui-badge[data-size=m],[tuiBadge][data-size=m]{--t-padding: 0 .375rem;--t-size: 1.25rem;--t-icon-size: .75rem;--t-margin: -.125rem}tui-badge[data-size=l],[tuiBadge][data-size=l]{--t-padding: 0 .5rem;--t-size: var(--tui-height-xs);--t-margin: -.25rem}tui-badge[data-size=l][tuiStatus]:before,[tuiBadge][data-size=l][tuiStatus]:before{margin-inline-end:-.25rem}tui-badge[data-size=xl],[tuiBadge][data-size=xl]{--t-margin: -.25rem;--t-padding: 0 .75rem;--t-size: var(--tui-height-s);font:var(--tui-font-text-m)}tui-badge[data-size=xl][tuiStatus]:before,[tuiBadge][data-size=xl][tuiStatus]:before{width:.5rem;height:.5rem;margin-inline-end:-.125rem}tui-badge[tuiAppearance][data-appearance=error],[tuiBadge][tuiAppearance][data-appearance=error],tui-badge[tuiAppearance][data-appearance=success],[tuiBadge][tuiAppearance][data-appearance=success],tui-badge[tuiAppearance][data-appearance=warning],[tuiBadge][tuiAppearance][data-appearance=warning],tui-badge[tuiAppearance][data-appearance=info],[tuiBadge][tuiAppearance][data-appearance=info],tui-badge[tuiAppearance][data-appearance=neutral],[tuiBadge][tuiAppearance][data-appearance=neutral]{color:var(--tui-text-primary)}img[tuiBadge]{padding:0;width:var(--t-size)}tui-icon[tuiBadge]{--t-margin: 0 !important;-webkit-mask:none;mask:none;height:var(--t-size);width:var(--t-size)}tui-icon[tuiBadge][data-size=s]:after{-webkit-mask-size:.625rem;mask-size:.625rem}tui-icon[tuiBadge][data-size=m]:after{-webkit-mask-size:.75rem;mask-size:.75rem}tui-icon[tuiBadge][data-size=l]:after,tui-icon[tuiBadge][data-size=xl]:after{-webkit-mask-size:1rem;mask-size:1rem} +`],encapsulation:2,changeDetection:0});let t=e;return t})(),tj=(()=>{let e=class e{constructor(){this.nothing=ze(UC),this.size=g(Cl).size}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=F({type:e,selectors:[["tui-badge"],["","tuiBadge",""]],hostVars:1,hostBindings:function(i,o){i&2&&xe("data-size",o.size)},inputs:{size:"size"},standalone:!0,features:[X([Er(Cl)]),rt([br,qs])]});let t=e;return t})();export{G as a,K as b,wr as c,I as d,ia as e,oa as f,he as g,Pn as h,Im as i,wm as j,Ce as k,__ as l,se as m,ke as n,Cm as o,_m as p,Jt as q,B as r,Fm as s,Pe as t,Cr as u,Zt as v,Pm as w,at as x,ut as y,Vn as z,ca as A,We as B,Hm as C,Ar as D,la as E,$m as F,zm as G,Mt as H,Tt as I,da as J,Gm as K,Wi as L,Yi as M,td as N,ha as O,Ym as P,Zm as Q,nd as R,Qm as S,Xt as T,Zi as U,Km as V,Qt as W,At as X,St as Y,rd as Z,Sr as _,Jm as $,Xm as aa,M as ba,pt as ca,k as da,mn as ea,LF as fa,m as ga,P as ha,H as ia,g as ja,VF as ka,Gr as la,jF as ma,Wr as na,Cf as oa,kr as pa,me as qa,vn as ra,F as sa,Qo as ta,Hu as ua,Lf as va,Te as wa,zu as xa,yn as ya,BF as za,UF as Aa,HF as Ba,os as Ca,Gy as Da,Ue as Ea,He as Fa,En as Ga,J as Ha,Z as Ia,fn as Ja,$F as Ka,Q as La,zF as Ma,GF as Na,lD as Oa,Zr as Pa,WF as Qa,qF as Ra,YF as Sa,ic as Ta,ZF as Ua,QF as Va,KF as Wa,xo as Xa,Jr as Ya,A as Za,JF as _a,ft as $a,Ro as ab,sr as bb,$e as cb,rb as db,tt as eb,nt as fb,Se as gb,rt as hb,jb as ib,yu as jb,Bb as kb,Ic as lb,xe as mb,Bt as nb,yt as ob,Ut as pb,nR as qb,rR as rb,iR as sb,oR as tb,wc as ub,Cc as vb,ms as wb,ar as xb,ur as yb,vI as zb,sR as Ab,DI as Bb,EI as Cb,lr as Db,vs as Eb,Sp as Fb,xp as Gb,aR as Hb,uR as Ib,cR as Jb,lR as Kb,dR as Lb,Np as Mb,Tc as Nb,Ac as Ob,NI as Pb,OI as Qb,fR as Rb,FI as Sb,RI as Tb,hR as Ub,pR as Vb,X as Wb,ye as Xb,gR as Yb,mR as Zb,vR as _b,yR as $b,DR as ac,ER as bc,bR as cc,IR as dc,wR as ec,CR as fc,_R as gc,MR as hc,TR as ic,dr as jc,zI as kc,Vp as lc,ys as mc,AR as nc,SR as oc,fr as pc,xc as qc,xR as rc,NR as sc,Nc as tc,wn as uc,ri as vc,OR as wc,hr as xc,XR as yc,$p as zc,Oe as Ac,eP as Bc,ws as Cc,fw as Dc,tP as Ec,hw as Fc,eg as Gc,nP as Hc,rP as Ic,Tw as Jc,Aw as Kc,iP as Lc,oP as Mc,sP as Nc,aP as Oc,Fw as Pc,Pw as Qc,kw as Rc,uP as Sc,Is as Tc,nC as Uc,sL as Vc,si as Wc,jw as Xc,Bw as Yc,hi as Zc,$w as _c,hg as $c,Wc as ad,Cn as bd,OP as cd,FP as dd,c0 as ed,l0 as fd,f0 as gd,PP as hd,p0 as id,m0 as jd,dg as kd,kP as ld,LP as md,UP as nd,HP as od,q as pd,ce as qd,Xc as rd,v0 as sd,$P as td,el as ud,zP as vd,tl as wd,_n as xd,D0 as yd,GP as zd,ze as Ad,Mn as Bd,mi as Cd,w0 as Dd,ck as Ed,lk as Fd,fL as Gd,hL as Hd,IC as Id,pL as Jd,wC as Kd,gL as Ld,mL as Md,Jg as Nd,vL as Od,yL as Pd,DL as Qd,Er as Rd,MC as Sd,br as Td,ZP as Ud,QP as Vd,KP as Wd,JP as Xd,XP as Yd,ek as Zd,tk as _d,nk as $d,gi as ae,rk as be,ik as ce,ok as de,sk as ee,pk as fe,gk as ge,il as he,ol as ie,Vs as je,sl as ke,F0 as le,Fe as me,we as ne,Dr as oe,ul as pe,Fg as qe,vk as re,yk as se,cl as te,Sk as ue,Rk as ve,Lg as we,zk as xe,Tn as ye,r1 as ze,It as Ae,i1 as Be,o1 as Ce,s1 as De,a1 as Ee,u1 as Fe,dl as Ge,c1 as He,z0 as Ie,E1 as Je,b1 as Ke,q0 as Le,I1 as Me,w1 as Ne,C1 as Oe,_1 as Pe,T1 as Qe,S1 as Re,x1 as Se,Us as Te,Hs as Ue,N1 as Ve,Bg as We,jg as Xe,O1 as Ye,F1 as Ze,P1 as _e,k1 as $e,L1 as af,AC as bf,qs as cf,WL as df,qL as ef,Ug as ff,bi as gf,cV as hf,Dl as if,El as jf,AV as kf,HV as lf,$V as mf,ej as nf,tj as of}; diff --git a/index.html b/index.html index 0cdeb7093..6aefb8ce6 100644 --- a/index.html +++ b/index.html @@ -9,5 +9,5 @@ - + diff --git a/main-23FKBQDI.js b/main-23FKBQDI.js deleted file mode 100644 index 32d6ac0b7..000000000 --- a/main-23FKBQDI.js +++ /dev/null @@ -1,7 +0,0 @@ -import{a as me,b as ge,c as fe,d as kt,e as at,f as he,g as st,h as Be,i as ht,j as Le,k as Re,l as je,m as Ue,n as Rt,o as jt,p as U,q as Ut,r as Ve,s as $e,t as Ge,u as We,v as Qe,w as Z,x as qe,y as Ze}from"./chunk-N27FRY2N.js";import{$a as ie,$f as Xe,Aa as wt,Ab as _,Af as X,Bb as It,Bf as mt,Cb as Dt,Cc as de,Cf as Fe,Da as Kt,Db as tt,Dc as rt,Df as gt,Eb as et,Ec as x,Ef as ze,F as Yt,Fb as it,Fc as le,Fe as Te,Ff as He,Gb as l,Gc as S,Gf as ft,Hb as ae,Ib as Y,Ic as R,Ie as xe,If as Lt,Je as we,Kb as Nt,Ke as Ft,La as Mt,Lb as St,Mb as At,Md as Et,Od as be,Pa as Jt,Pc as pe,Qb as D,Qc as ut,Qf as vt,Rb as h,Rc as ve,Sa as d,Sd as j,Te as Me,Uc as _e,Uf as Ye,Va as Pt,Wa as te,Wc as ct,Xb as N,Xf as _t,Ya as ee,Yb as E,Zb as se,_ as L,_e as Pe,af as Ie,b as Wt,bb as G,bc as nt,cf as zt,da as J,df as pt,ea as r,ef as De,fb as m,ff as Ht,fg as yt,gb as k,gg as Ke,h as K,hb as c,ib as T,ic as ue,if as Bt,ig as Je,ja as Xt,jb as P,jc as ot,jg as ti,k as Qt,la as g,lb as ne,mb as oe,md as b,n as $,na as O,nb as re,nd as dt,ob as s,oc as ce,pb as u,pd as ye,pf as Ne,qb as f,r as A,rb as W,s as qt,sb as Q,sf as Se,tb as H,td as Ce,tf as Ae,ua as F,ub as q,uc as B,ud as lt,va as z,vf as ke,xb as C,xe as Oe,y as xt,yb as v,za as Zt,zb as I,zf as Ee}from"./chunk-HIUNHKUB.js";import{a as V,b as Ot,e as Tt}from"./chunk-HFDGAYQF.js";var bi={info:"@tui.info",success:"@tui.circle-check",error:"@tui.circle-x",warning:"@tui.circle-alert",neutral:"@tui.info"},Oi={status:"info",icon:({$implicit:e})=>bi[e],size:"m"},ei=b(Oi);function Ii(e,t){if(e&1&&(H(0,3),N(1,"tuiMapper")),e&2){let a=t.$implicit,n=v(2);c("ngComponentOutlet",a.component.component)("ngComponentOutletInjector",se(1,2,a,n.mapper))}}function Di(e,t){if(e&1&&(s(0,"div",1),m(1,Ii,2,5,"ng-container",2),u()),e&2){let a=t.$implicit;c("@tuiParentAnimation",void 0),d(),c("ngForOf",a)}}var Ni={autoClose:3e3,label:"",closeable:!0,data:void 0},Bn=dt(()=>V(V({},Ni),r(ei))),Ln=dt(()=>r(ft)?"1rem 1rem 0 auto":"2rem 3rem 0 auto"),Si=b(new K([])),Ai=dt(()=>qt([$(new Map),r(Si)]).pipe(A(([e,t])=>(e.forEach((a,n)=>e.set(n,[])),t.forEach(a=>{let n=a.component.component,i=e.get(n)||[];e.set(n,[...i,a])}),Array.from(e.values())))));var ni=(()=>{let t=class t{constructor(){this.injector=r(Xt),this.alerts$=r(Ai),this.trackBy=Wt,this.mapper=n=>Zt.create({providers:[{provide:Ht,useValue:n}],parent:this.injector})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["tui-alerts"]],standalone:!0,features:[h],decls:2,vars:4,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(i,o){i&1&&(m(0,Di,2,2,"div",0),N(1,"async")),i&2&&c("ngForOf",E(1,2,o.alerts$))("ngForTrackBy",o.trackBy)},dependencies:[R,de,rt,S,Be],styles:[`tui-alerts>.t-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none}tui-alerts>.t-wrapper>*{pointer-events:auto} -`],encapsulation:2,data:{animation:[ut]}});let e=t;return e})();var oi=(()=>{let t=class t{constructor(){this.doc=r(B),this.el=j(),this.activeElement=Se(this.doc),Promise.resolve().then(()=>this.el.focus())}ngOnDestroy(){Ae(this.doc),Promise.resolve().then(()=>{be(this.activeElement)&&this.activeElement.focus()})}onBlur(){this.el.removeAttribute("tabIndex")}onFocusIn(n){var i;Et(this.el,n)||(i=ke({initial:this.el,root:this.el}))==null||i.focus()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=O({type:t,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(i,o){i&1&&C("blur",function(){return o.onBlur()})("focusin.silent",function(M){return o.onFocusIn(M.target)},!1,Jt)},standalone:!0});let e=t;return e})();function ki(e,t){e&1&&H(0)}function Ei(e,t){if(e&1&&(s(0,"section",3),m(1,ki,1,0,"ng-container",4),f(2,"tui-scroll-controls",5),u()),e&2){let a=t.$implicit,n=v().ngIf;P("t-dialog_closing",!n.length),c("@tuiHost",void 0),k("aria-labelledby",a.id),d(),c("polymorpheusOutlet",a.component)("polymorpheusOutletContext",a)}}function Fi(e,t){if(e&1&&(W(0),m(1,Ei,3,6,"section",1),f(2,"div",2),Q()),e&2){let a=t.ngIf;d(),c("ngForOf",a),d(),T("opacity",a.length)}}var Vt=b(new K([])),zi={appearance:"",size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:"",data:void 0},Oo=b(Qt),To=b(zi);var xo=new Error("Required dialog was dismissed");var ri=(()=>{let t=class t{constructor(){this.el=j(),this.dialogs$=r(Vt)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["tui-dialogs"]],hostBindings:function(i,o){i&1&&C("keydown.silent",function(){return o.el.scrollTop=o.el.scrollHeight/2})},standalone:!0,features:[h],decls:2,vars:3,consts:[[4,"ngIf"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","","class","t-dialog",3,"t-dialog_closing",4,"ngFor","ngForOf"],[1,"t-overlay"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-scrollbars"]],template:function(i,o){i&1&&(m(0,Fi,3,3,"ng-container",0),N(1,"async")),i&2&&c("ngIf",E(1,1,o.dialogs$))},dependencies:[R,rt,x,S,Bt,oi,ht,Re],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:auto;overscroll-behavior:none}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}[_nghost-%COMP%]:has(section){pointer-events:auto}[_nghost-%COMP%]:before{content:"";display:block;height:1000%}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;height:100%;align-items:flex-start;outline:none;overflow:auto}.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{display:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-dialog[_ngcontent-%COMP%]{position:sticky;pointer-events:auto;overscroll-behavior:none}.t-overlay[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}'],data:{animation:[ve]}});let e=t;return e})();var Hi=["wrapper"],Bi=["*"];function Li(e,t){if(e&1&&(s(0,"tui-loader",4),H(1,5),u()),e&2){let a=v(2);c("overlay",!0)("showLoader",a.loading),d(),c("ngTemplateOutlet",a.content)}}function Ri(e,t){if(e&1&&(W(0),_(1),m(2,Li,2,3,"tui-loader",3),Q()),e&2){let a=v();d(2),c("ngIf",a.async)("ngIfElse",a.content)}}var ji=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=O({type:t,selectors:[["","tuiExpandContent",""]],standalone:!0});let e=t;return e})(),p={Idle:0,Loading:1,Prepared:2,Animated:3},Ui=48;var ai=(()=>{let t=class t{constructor(){this.cdr=r(ot),this.destroyRef=r(wt),this.state=p.Idle,this.content=null,this.expanded=null,this.async=!1}set expandedSetter(n){if(this.expanded===null){this.expanded=n;return}if(this.state!==p.Idle){this.expanded=n,this.state=p.Animated;return}this.expanded=n,this.retrigger(this.async&&n?p.Loading:p.Animated)}get contentVisible(){return this.expanded||this.state!==p.Idle}get overflow(){return this.state!==p.Idle}get loading(){return!!this.expanded&&this.async&&this.state===p.Loading}get height(){let{expanded:n,state:i,contentWrapper:o}=this;return n&&i===p.Prepared||!n&&i===p.Animated?0:o&&(!n&&i===p.Prepared||n&&i===p.Animated)?o.nativeElement.offsetHeight:o&&n&&i===p.Loading?Math.max(o.nativeElement.offsetHeight,Ui):null}onTransitionEnd({propertyName:n,pseudoElement:i}){n==="opacity"&&!i&&this.state===p.Animated&&(this.state=p.Idle)}onExpandLoaded(n){n.stopPropagation(),this.state===p.Loading&&this.retrigger(p.Animated)}retrigger(n){this.state=p.Prepared,xt(0).pipe(_e(this.destroyRef)).subscribe(()=>{this.state===p.Prepared&&(this.state=n,this.cdr.markForCheck())})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["tui-expand"]],contentQueries:function(i,o,y){if(i&1&&It(y,ji,5,Pt),i&2){let M;tt(M=et())&&(o.content=M.first)}},viewQuery:function(i,o){if(i&1&&Dt(Hi,5),i&2){let y;tt(y=et())&&(o.contentWrapper=y.first)}},hostVars:9,hostBindings:function(i,o){i&1&&C("transitionend.self",function(M){return o.onTransitionEnd(M)})("tui-expand-loaded",function(M){return o.onExpandLoaded(M)}),i&2&&(k("aria-expanded",o.expanded),T("height",o.height,"px"),P("_expanded",o.expanded)("_overflow",o.overflow)("_loading",o.loading))},inputs:{async:"async",expandedSetter:[0,"expanded","expandedSetter"]},standalone:!0,features:[h],ngContentSelectors:Bi,decls:3,vars:3,consts:[["wrapper",""],[1,"t-wrapper"],[4,"ngIf"],["size","l",3,"overlay","showLoader",4,"ngIf","ngIfElse"],["size","l",3,"overlay","showLoader"],[3,"ngTemplateOutlet"]],template:function(i,o){i&1&&(I(),s(0,"div",1,0),m(2,Ri,3,2,"ng-container",2),u()),i&2&&(c("@tuiParentAnimation",void 0)("@.disabled",o.overflow),d(2),c("ngIf",o.contentVisible))},dependencies:[qe,x,le],styles:['[_nghost-%COMP%]{transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;opacity:0;transition-delay:1ms}._overflow[_nghost-%COMP%]{overflow:hidden}._expanded[_nghost-%COMP%]{opacity:1;transform:translateZ(0)}._loading[_nghost-%COMP%]{opacity:.99}.t-wrapper[_ngcontent-%COMP%]:before, .t-wrapper[_ngcontent-%COMP%]:after{content:"";display:table}'],data:{animation:[ut]},changeDetection:0});let e=t;return e})();var si=(()=>{let t=class t{constructor(){this.tuiPlatform=r(Lt,{skipSelf:!0})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=O({type:t,selectors:[["","tuiPlatform",""]],hostVars:1,hostBindings:function(i,o){i&2&&k("data-platform",o.tuiPlatform)},inputs:{tuiPlatform:"tuiPlatform"},standalone:!0,features:[D([{provide:Lt,useFactory:()=>r(t).tuiPlatform}])]});let e=t;return e})();var $i=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverDropdowns"]],[["tuiOverHints"]]],Gi=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverDropdowns","tuiOverHints"];function Wi(e,t){e&1&&f(0,"tui-scroll-controls",2)}var ui=(()=>{let t=class t{constructor(){var n;this.reducedMotion=r(xe),this.duration=Ne(r(we)),this.isMobileRes=ct(r(vt).pipe(A(i=>i==="mobile"),Te(r(ot)))),this.scrollbars$=r(ft)?$(!1):r(Vt).pipe(A(({length:i})=>!i),Yt(0)),(n=r(B).defaultView)==null||n.document.documentElement.setAttribute("data-tui-theme",r(Pe).toLowerCase())}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","4.0.0-rc.7"],hostVars:6,hostBindings:function(i,o){i&1&&C("touchstart.passive.silent",function(){return 0}),i&2&&(T("--tui-duration",o.duration,"ms"),P("_reduced-motion",o.reducedMotion)("_mobile",o.isMobileRes()))},standalone:!0,features:[G([si]),h],ngContentSelectors:Gi,decls:13,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(i,o){i&1&&(I($i),m(0,Wi,1,0,"tui-scroll-controls",0),N(1,"async"),s(2,"tui-dropdowns")(3,"div",1),_(4),u(),_(5,1),f(6,"tui-dialogs"),_(7,2),f(8,"tui-alerts"),_(9,3),u(),_(10,4),f(11,"tui-hints"),_(12,5)),i&2&&c("ngIf",E(1,1,o.scrollbars$))},dependencies:[x,S,Ge,ri,ni,Xe,ht],styles:[`@keyframes tuiPresent{to{content:""}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html[data-tui-theme],.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html[data-tui-theme]::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html[data-tui-theme]::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{display:none}body,input{margin:0}tui-root{position:relative;display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);flex:1;-webkit-tap-highlight-color:transparent}tui-root:before{position:fixed;top:0;left:0;width:100%;height:100%;content:"";background:var(--tui-background-base)}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{position:relative;top:var(--t-root-top);height:100%;isolation:isolate}.t-root-content>*{--t-root-top: 0}[tuiDropdownButton][tuiDropdownButton]{display:none} -`],encapsulation:2});let e=t;return e})();var Qi=b("data-tui-theme"),Ct=(()=>{let t=class t{constructor(){this.storage=r(Oe),this.key=r(Qi),this.themes=["light","dark"]}get theme(){let n=this.storage.getItem(this.key);return n===null?(this.storage.setItem(this.key,"light"),"light"):n}set theme(n){this.storage.setItem(this.key,n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ci={size:"m"},qi=b(ci);function di(e){return lt(qi,e,ci)}var Xi=["tuiNavigationAside",""],Zi=[[["header"]],"*",[["footer"]]],Ki=["header","*","footer"];var $t=["*"];var Ji=["tuiNavigationHeader",""],tn=["tuiNavigationLogo",""],en=["tuiNavigationMain",""];var Gt=(()=>{let t=class t{constructor(){this.expanded=ie(!1)}set tuiNavigationAside(n){this.expanded.set(n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["aside","tuiNavigationAside",""]],hostAttrs:["tuiNavigationAside","","tuiTheme","dark"],hostVars:2,hostBindings:function(i,o){i&2&&P("_expanded",o.expanded())},inputs:{tuiNavigationAside:"tuiNavigationAside"},standalone:!0,features:[D([zt({size:"s",appearance:"flat"}),jt({appearance:"dropdown-navigation",align:"right",offset:12})]),h],attrs:Xi,ngContentSelectors:Ki,decls:5,vars:0,consts:[[1,"t-nav-scrollbar"],["tuiFade","vertical","tuiScrollable","",1,"t-nav-content"]],template:function(i,o){i&1&&(I(Zi),_(0),s(1,"tui-scrollbar",0)(2,"div",1),_(3,1),u()(),_(4,2))},dependencies:[Le,yt,je],styles:[`aside[tuiNavigationAside]{transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:sticky;top:3rem;display:flex;width:3rem;flex-direction:column;padding:.5rem .5rem .25rem;box-sizing:border-box;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}aside[tuiNavigationAside]._expanded{width:13.75rem}aside[tuiNavigationAside]._expanded+main[tuiNavigationMain]{max-width:calc(100% - 13.75rem)}aside[tuiNavigationAside] .t-nav-scrollbar{margin:0 -.25rem}aside[tuiNavigationAside] .t-nav-content{scrollbar-width:none;-ms-overflow-style:none;height:100%;padding:0 .25rem;overflow:auto}aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar,aside[tuiNavigationAside] .t-nav-content::-webkit-scrollbar-thumb{display:none}aside[tuiNavigationAside] tui-expand [tuiAsideItem]{padding-inline-start:2rem}aside[tuiNavigationAside] hr{background:var(--tui-border-normal);height:1px;margin:0 0 .25rem;border:none}aside[tuiNavigationAside] header{padding-bottom:.25rem;box-shadow:inset 0 -1px var(--tui-border-normal);margin-bottom:1rem}aside[tuiNavigationAside] footer{margin-top:auto;border-top:1.75rem solid transparent}aside[tuiNavigationAside]+main[tuiNavigationMain]{max-width:calc(100% - 3rem)}[tuiAsideItem]{width:100%;justify-content:flex-start;gap:.625rem;margin-bottom:.25rem;color:var(--tui-text-primary)!important}[tuiAsideItem]:after{border:none!important;margin-left:auto!important;color:var(--tui-text-tertiary)}[tuiAsideItem]._chevron-rotated,[tuiAsideItem]._active{background:var(--tui-background-neutral-1-hover)}tui-dropdown[data-appearance=dropdown-navigation]{border:none;background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]{justify-content:flex-start}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._active{background:transparent}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link:not(._custom):after{opacity:0}tui-dropdown[data-appearance=dropdown-navigation] [tuiAsideItem]._link._active:after{opacity:1} -`],encapsulation:2,changeDetection:0});let e=t;return e})();var nn=(()=>{let t=class t{constructor(){this.el=j(),this.aside=r(Gt),this.dropdown=r(U,{optional:!0}),this.binding=ye(_t,"tuiHint",ce(()=>{var n;return this.aside.expanded()||this.dropdown?"":(n=this.el.textContent)==null?void 0:n.trim()}))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=O({type:t,selectors:[["","tuiHintAside",""]],standalone:!0,features:[D([Ye({direction:"right"})]),G([_t])]});let e=t;return e})(),li=(()=>{let t=class t{constructor(){this.icon=r(Ft).check,this.icons=r(Ie),this.link=r(kt,{self:!0,optional:!0}),this.active=ct(r(at).isActiveChange),this.size="s"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=O({type:t,selectors:[["","tuiAsideItem",""]],hostAttrs:["tuiButton","","tuiOption",""],hostVars:6,hostBindings:function(i,o){i&2&&P("_link",o.link)("_active",o.active())("_custom",o.icon!==o.icons.iconEnd)},standalone:!0,features:[D([Ce(We,t),on(),rn()]),G([nn,Ve,$e,pt,{directive:at,inputs:["routerLinkActiveOptions","routerLinkActiveOptions"]}])]});let e=t;return e})();function on(){return{provide:Me,useFactory:()=>{let{check:e,more:t}=r(Ft),a=r(Z,{optional:!0})&&r(kt,{self:!0,optional:!0})?e:"";return r(U,{self:!0,optional:!0})?t:a}}}function rn(){return{provide:Rt,useFactory:()=>Ot(V({},r(Rt,{skipSelf:!0})),{offset:r(Z,{optional:!0})?8:12})}}var pi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["header","tuiNavigationHeader",""]],hostAttrs:["tuiTheme","dark"],standalone:!0,features:[D([Ke({size:"s",appearance:"secondary"}),di({size:"xs"}),Je({size:"m",appearance:"primary"}),zt({size:"s",appearance:"flat"}),jt({appearance:"dropdown-navigation"})]),h],attrs:Ji,ngContentSelectors:$t,decls:1,vars:0,template:function(i,o){i&1&&(I(),_(0))},styles:[`header[tuiNavigationHeader]{--tui-text-action: var(--tui-text-primary);--tui-text-action-hover: var(--tui-text-primary);position:sticky;top:0;z-index:1;display:flex;height:3rem;width:100%;align-items:center;gap:.25rem;padding:.5rem;box-sizing:border-box;font:var(--tui-font-text-s);line-height:1rem;background:var(--tui-theme-color, #000);color:var(--tui-text-primary)}header[tuiNavigationHeader] [tuiNavigationLogo]{padding:0 .5rem;margin-inline-start:.25rem}header[tuiNavigationHeader] [tuiNavigationLogo] tui-icon{font-size:1rem}header[tuiNavigationHeader] [tuiButton],header[tuiNavigationHeader] [tuiBadge],header[tuiNavigationHeader] [tuiChip],header[tuiNavigationHeader] tui-badge,header[tuiNavigationHeader] tui-chip{max-width:8rem}header[tuiNavigationHeader] hr{width:2rem;margin:0 0 0 auto;border:none;visibility:hidden;flex-shrink:0}header[tuiNavigationHeader] hr~[tuiButton]{margin-right:.5rem}tui-dropdown[data-appearance=dropdown-navigation]{--tui-text-primary: #fff;--tui-background-neutral-1: rgba(255, 255, 255, .16);border:none;color:var(--tui-text-primary);background:#323232;background:color-mix(in srgb,var(--tui-theme-color, #000) 80%,#fff)} -`],encapsulation:2,changeDetection:0});let e=t;return e})(),mi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["","tuiNavigationLogo",""]],standalone:!0,features:[h],attrs:tn,ngContentSelectors:$t,decls:1,vars:0,template:function(i,o){i&1&&(I(),_(0))},styles:[`[tuiNavigationLogo]{display:flex;align-items:center;gap:.5rem;overflow:hidden;white-space:nowrap;font-weight:700} -`],encapsulation:2,changeDetection:0});let e=t;return e})(),gi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["main","tuiNavigationMain",""]],hostAttrs:["tuiNavigationMain",""],standalone:!0,features:[h],attrs:en,ngContentSelectors:$t,decls:1,vars:0,template:function(i,o){i&1&&(I(),_(0))},styles:[`main[tuiNavigationMain]{transition-property:max-width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;flex:1;padding:0 1.25rem;isolation:isolate;box-sizing:border-box}main[tuiNavigationMain]:before{content:"";position:sticky;top:3rem;z-index:2;display:block;height:3rem;width:calc(100% + 2.5rem);pointer-events:none;margin:0 -1.25rem -3rem;border-radius:1.25rem 1.25rem 0 0;box-shadow:0 -1.25rem var(--tui-theme-color, #000)}main[tuiNavigationMain]>[tuiHeader]{margin:1rem 0 .5rem}main[tuiNavigationMain]>[tuiHeader][tuiCardLarge]{flex-direction:column;gap:1rem}main[tuiNavigationMain]>[tuiHeader][tuiCardLarge]>:last-child:not([tuiTitle]){margin-bottom:.25rem}main[tuiNavigationMain]>[tuiHeader]:not([tuiCardLarge]) [tuiTitle]{max-width:42rem;white-space:nowrap;gap:.375rem;overflow:hidden}main[tuiNavigationMain]>[tuiHeader]:not([tuiCardLarge]) [tuiSubtitle]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;word-break:break-word;font:var(--tui-font-text-s);overflow:hidden}main[tuiNavigationMain]>[tuiHeader] [tuiCaption]{scrollbar-width:none;-ms-overflow-style:none;display:flex;gap:1rem;color:var(--tui-text-tertiary);font:var(--tui-font-text-s);white-space:nowrap;text-transform:none;overflow:auto}main[tuiNavigationMain]>[tuiHeader] [tuiCaption]::-webkit-scrollbar,main[tuiNavigationMain]>[tuiHeader] [tuiCaption]::-webkit-scrollbar-thumb{display:none}main[tuiNavigationMain]>[tuiHeader] [tuiCaption] tui-icon{font-size:1rem;margin:.125rem 0;color:var(--tui-text-secondary)}main[tuiNavigationMain]>[tuiHeader] [tuiAccessories]{margin-inline-start:3rem;gap:.5rem!important}main[tuiNavigationMain]>a:first-child,main[tuiNavigationMain]>button:first-child,main[tuiNavigationMain]>tui-breadcrumbs:first-child{height:1.25rem;padding:0;margin-top:.875rem} -`],encapsulation:2,changeDetection:0});let e=t;return e})();function an(e,t){e&1&&f(0,"tui-icon",14),e&2&&T("font-size",1,"em")("margin-left",.5,"rem")}function sn(e,t){if(e&1){let a=q();s(0,"button",12),C("click",function(){let i=F(a).$implicit,o=v(2);return z(o.chooseTheme(i))}),l(1),m(2,an,1,4,"tui-icon",13),u()}if(e&2){let a=t.$implicit,n=v(2);c("value",a),d(),Y(" ",a," "),d(),c("ngIf",n.themeService.theme===a)}}function un(e,t){if(e&1&&(s(0,"tui-data-list",10),oe(1,sn,3,3,"button",11,ne),u()),e&2){let a=v();d(),re(a.themeService.themes)}}function cn(e,t){e&1&&(s(0,"tui-data-list",10)(1,"button",26),l(2,"Account"),u(),s(3,"button",26),l(4,"Notifications"),u(),s(5,"button",26),l(6,"Privacy"),u()())}function dn(e,t){if(e&1){let a=q();s(0,"aside",15)(1,"header")(2,"button",16)(3,"span",6),l(4,"A very very long product name"),u()()(),s(5,"button",17),l(6," Search "),u(),s(7,"a",18),l(8," Groups "),u(),s(9,"button",19),At("tuiDropdownOpenChange",function(i){F(a);let o=v();return St(o.open,i)||(o.open=i),z(i)}),C("click",function(){F(a);let i=v();return z(i.submenu=i.expanded&&!i.submenu)}),l(10," Settings "),m(11,cn,7,0,"ng-template",null,1,nt),u(),s(13,"tui-expand",20)(14,"button",21),l(15,"Account"),u(),s(16,"button",21),l(17,"Notifications"),u(),s(18,"button",21),l(19,"Privacy"),u()(),s(20,"button",22)(21,"span",6),l(22,"By default ellipsis is used but you can use fade too"),u()(),f(23,"hr"),s(24,"button",23),l(25," Add "),u(),s(26,"footer")(27,"button",24),l(28," Favorites "),u(),s(29,"button",25),C("click",function(){F(a);let i=v();return z(i.expanded=!i.expanded)}),l(30),u()()()}if(e&2){let a=it(12),n=v();c("tuiNavigationAside",n.expanded),d(9),c("tuiAppearanceState",n.open?"hover":null)("tuiChevron",n.expanded&&n.submenu)("tuiDropdown",a)("tuiDropdownEnabled",!n.expanded),Nt("tuiDropdownOpen",n.open),d(4),c("expanded",n.expanded&&n.submenu),d(16),c("iconStart",n.expanded?"@tui.chevron-left":"@tui.chevron-right"),d(),Y(" ",n.expanded?"Collapse":"Expand"," ")}}var fi=(()=>{let t=class t{constructor(){this.themeService=r(Ct),this.mobile$=r(vt).pipe(A(n=>n==="mobile")),this.open=!1,this.expanded=!1,this.submenu=!1,this.openTheme=!1}chooseTheme(n){this.themeService.theme=n,this.openTheme=!1}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["app-navigation"]],standalone:!0,features:[h],decls:20,vars:8,consts:[["products",""],["dropdown",""],["tuiNavigationHeader",""],["appearance","secondary","iconStart","@tui.layout-grid","tuiIconButton",""],["tuiNavigationLogo",""],["icon","@tui.home"],["tuiFade",""],["appearance","secondary","tuiButton","","tuiChevron","",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["class","aside-bar",3,"tuiNavigationAside",4,"ngIf"],["tuiNavigationMain",""],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],[1,"aside-bar",3,"tuiNavigationAside"],["iconStart","@tui.home","tuiAsideItem",""],["iconStart","@tui.search","tuiAsideItem",""],["iconStart","@tui.users","tuiAsideItem",""],["iconStart","@tui.settings","tuiAsideItem","",3,"tuiDropdownOpenChange","click","tuiAppearanceState","tuiChevron","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],[3,"expanded"],["tuiButton",""],["iconStart","@tui.heart","tuiAsideItem",""],["iconStart","@tui.plus","tuiAsideItem",""],["iconStart","@tui.star","tuiAsideItem",""],["tuiAsideItem","",3,"click","iconStart"],["tuiOption",""]],template:function(i,o){if(i&1){let y=q();s(0,"header",2)(1,"button",3),l(2," Menu "),u(),s(3,"span",4),f(4,"tui-icon",5),s(5,"span",6),l(6,"A very very long product name"),u(),s(7,"tui-badge"),l(8,"Test"),u()(),s(9,"button",7),At("tuiDropdownOpenChange",function(bt){return F(y),St(o.openTheme,bt)||(o.openTheme=bt),z(bt)}),s(10,"span",6),l(11),u(),m(12,un,3,0,"ng-template",null,0,nt),u(),f(14,"hr"),u(),s(15,"div"),m(16,dn,31,9,"aside",8),N(17,"async"),s(18,"main",9),f(19,"router-outlet"),u()()}if(i&2){let y=it(13);d(9),c("tuiDropdown",y),Nt("tuiDropdownOpen",o.openTheme),d(2),ae(o.themeService.theme),d(4),T("display","flex"),d(),c("ngIf",!E(17,6,o.mobile$))}},dependencies:[R,x,S,st,fe,ti,pt,Ze,Z,Qe,U,Ut,ai,yt,De,pi,mi,gi,Gt,li],styles:[".aside-bar[_ngcontent-%COMP%]{height:calc(100vh - 3rem)}"],changeDetection:0});let e=t;return e})();var hi=(()=>{let t=class t{constructor(){this.themeService=r(Ct),this.title="taiga-lumbermill"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["app-root"]],standalone:!0,features:[h],decls:2,vars:1,template:function(i,o){i&1&&(s(0,"tui-root"),f(1,"app-navigation"),u()),i&2&&k("tuiTheme",o.themeService.theme)},dependencies:[fi,st,ui],encapsulation:2,changeDetection:0});let e=t;return e})();var ln=(()=>{let t=class t extends gt{constructor(n,i,o){super(n,i,o)}ngOnDestroy(){this.flush()}};t.\u0275fac=function(i){return new(i||t)(J(B),J(X),J(mt))},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})();function pn(){return new Fe}function mn(e,t,a){return new He(e,t,a)}var vi=[{provide:mt,useFactory:pn},{provide:gt,useClass:ln},{provide:te,useFactory:mn,deps:[me,gt,Kt]}],gn=[{provide:X,useFactory:()=>new ze},{provide:Mt,useValue:"BrowserAnimations"},...vi],Va=[{provide:X,useClass:Ee},{provide:Mt,useValue:"NoopAnimations"},...vi];function _i(){return ee("NgEagerAnimations"),[...gn]}var yi=[{path:"dashboards/iot",loadComponent:()=>Tt(void 0,null,function*(){return import("./chunk-N5IFNO7J.js").then(e=>e.IotComponent)})},{path:"dashboards/crypto",loadComponent:()=>Tt(void 0,null,function*(){return import("./chunk-PD2JCDVB.js").then(e=>e.CryptoComponent)})},{path:"**",redirectTo:"dashboards"}];var Ci={providers:[_i(),ue({eventCoalescing:!0}),he(yi),pe(),Ue]};ge(hi,Ci).catch(e=>console.error(e)); diff --git a/main-N5LJK67X.js b/main-N5LJK67X.js new file mode 100644 index 000000000..800f15d76 --- /dev/null +++ b/main-N5LJK67X.js @@ -0,0 +1,3 @@ +import{a as se}from"./chunk-XEM5DNZU.js";import{a as fe,b as Oe,c as ye,d as be,e as Te,f as Me}from"./chunk-Q5TS7ZXN.js";import{a as J,d as le,i as ce,l as ue,n as pe,r as de,u as me,w as ge,z as _e}from"./chunk-MGNJSP4A.js";import"./chunk-BXPD2UYH.js";import{b as Rt,c as Lt,f as Ht,j as Ut,k as G}from"./chunk-DRE72XA7.js";import"./chunk-VQIVFWH7.js";import{A as ee,C as ie,G as ne,H as L,I as X,J as oe,K,L as re,M as ae,N as Z,P as gt,U as Q,a as jt,b as Vt,da as he,o as dt,r as mt,w as Qt,z as te}from"./chunk-P7BVBIJ3.js";import"./chunk-G2BQMJPO.js";import{$e as Kt,Aa as w,Ab as B,Ac as S,Db as f,Ea as bt,Eb as g,Fb as Et,Fe as Yt,G as Ot,Gb as D,Gd as pt,Ia as Tt,Ic as zt,Id as Wt,Ie as qt,Jc as W,Je as Xt,Kc as M,Lb as at,Mb as c,Mc as O,Nb as kt,Nd as q,Ob as R,Oc as N,Qa as nt,Qb as st,Rb as lt,Sb as ct,Va as Mt,Vc as Bt,Wb as $,Xb as _,Ya as p,Yc as $t,ab as Pt,b as _t,bc as C,cb as xt,cc as T,da as E,dc as At,ef as Zt,ff as Jt,h as H,hb as It,hc as ut,ia as U,ja as l,k as vt,kf as ve,lb as m,mb as A,n as z,nb as u,oa as yt,ob as b,oc as Nt,of as Ce,pb as j,pc as Ft,pd as v,qa as h,qd as Y,r as y,rb as wt,s as Ct,sa as k,sb as Dt,tb as St,ub as r,vb as a,ve as Gt,wb as d,xb as ot,yb as rt,za as I,zb as V}from"./chunk-ZFID6WDR.js";import{a as it,e as F}from"./chunk-HFDGAYQF.js";var Le={info:"@tui.info",success:"@tui.circle-check",error:"@tui.circle-x",warning:"@tui.circle-alert",neutral:"@tui.info"},He={status:"info",icon:({$implicit:t})=>Le[t],size:"m"},Pe=v(He);function Ge(t,e){if(t&1&&(V(0,3),C(1,"tuiMapper")),t&2){let s=e.$implicit,n=g(2);u("ngComponentOutlet",s.component.component)("ngComponentOutletInjector",At(1,2,s,n.mapper))}}function Ye(t,e){if(t&1&&(r(0,"div",1),m(1,Ge,2,5,"ng-container",2),a()),t&2){let s=e.$implicit;u("@tuiParentAnimation",void 0),p(),u("ngForOf",s)}}var qe={autoClose:3e3,label:"",closeable:!0,data:void 0},Ui=Y(()=>it(it({},qe),l(Pe))),ji=Y(()=>l(Z)?"1rem 1rem 0 auto":"2rem 3rem 0 auto"),Xe=v(new H([])),Ke=Y(()=>Ct([z(new Map),l(Xe)]).pipe(y(([t,e])=>(t.forEach((s,n)=>t.set(n,[])),e.forEach(s=>{let n=s.component.component,i=t.get(n)||[];t.set(n,[...i,s])}),Array.from(t.values())))));var Ie=(()=>{let e=class e{constructor(){this.injector=l(yt),this.alerts$=l(Ke),this.trackBy=_t,this.mapper=n=>bt.create({providers:[{provide:dt,useValue:n}],parent:this.injector})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-alerts"]],standalone:!0,features:[_],decls:2,vars:4,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(i,o){i&1&&(m(0,Ye,2,2,"div",0),C(1,"async")),i&2&&u("ngForOf",T(1,2,o.alerts$))("ngForTrackBy",o.trackBy)},dependencies:[N,zt,W,O,se],styles:[`tui-alerts>.t-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none}tui-alerts>.t-wrapper>*{pointer-events:auto} +`],encapsulation:2,data:{animation:[jt]}});let t=e;return t})();var we=(()=>{let e=class e{constructor(){this.doc=l(S),this.el=q(),this.activeElement=te(this.doc),Promise.resolve().then(()=>this.el.focus())}ngOnDestroy(){ee(this.doc),Promise.resolve().then(()=>{Wt(this.activeElement)&&this.activeElement.focus()})}onBlur(){this.el.removeAttribute("tabIndex")}onFocusIn(n){var i;pt(this.el,n)||(i=ie({initial:this.el,root:this.el}))==null||i.focus()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=k({type:e,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(i,o){i&1&&f("blur",function(){return o.onBlur()})("focusin.silent",function(ht){return o.onFocusIn(ht.target)},!1,Mt)},standalone:!0});let t=e;return t})();function Ze(t,e){t&1&&V(0)}function Je(t,e){if(t&1&&(r(0,"section",3),m(1,Ze,1,0,"ng-container",4),d(2,"tui-scroll-controls",5),a()),t&2){let s=e.$implicit,n=g().ngIf;j("t-dialog_closing",!n.length),u("@tuiHost",void 0),A("aria-labelledby",s.id),p(),u("polymorpheusOutlet",s.component)("polymorpheusOutletContext",s)}}function Qe(t,e){if(t&1&&(ot(0),m(1,Je,3,6,"section",1),d(2,"div",2),rt()),t&2){let s=e.ngIf;p(),u("ngForOf",s),p(),b("opacity",s.length)}}var ft=v(new H([])),ti={appearance:"",size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:"",data:void 0},Pn=v(vt),xn=v(ti);var In=new Error("Required dialog was dismissed");var De=(()=>{let e=class e{constructor(){this.el=q(),this.dialogs$=l(ft)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-dialogs"]],hostBindings:function(i,o){i&1&&f("keydown.silent",function(){return o.el.scrollTop=o.el.scrollHeight/2})},standalone:!0,features:[_],decls:2,vars:3,consts:[[4,"ngIf"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","","class","t-dialog",3,"t-dialog_closing",4,"ngFor","ngForOf"],[1,"t-overlay"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-scrollbars"]],template:function(i,o){i&1&&(m(0,Qe,3,3,"ng-container",0),C(1,"async")),i&2&&u("ngIf",T(1,1,o.dialogs$))},dependencies:[N,W,M,O,mt,we,J,le],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:auto;overscroll-behavior:none}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}[_nghost-%COMP%]:has(section){pointer-events:auto}[_nghost-%COMP%]:before{content:"";display:block;height:1000%}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;height:100%;align-items:flex-start;outline:none;overflow:auto}.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{display:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-dialog[_ngcontent-%COMP%]{position:sticky;pointer-events:auto;overscroll-behavior:none}.t-overlay[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}'],data:{animation:[Vt]}});let t=e;return t})();var Se=(()=>{let e=class e{constructor(){this.tuiPlatform=l(gt,{skipSelf:!0})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=k({type:e,selectors:[["","tuiPlatform",""]],hostVars:1,hostBindings:function(i,o){i&2&&A("data-platform",o.tuiPlatform)},inputs:{tuiPlatform:"tuiPlatform"},standalone:!0,features:[$([{provide:gt,useFactory:()=>l(e).tuiPlatform}])]});let t=e;return t})();var ii=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverDropdowns"]],[["tuiOverHints"]]],ni=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverDropdowns","tuiOverHints"];function oi(t,e){t&1&&d(0,"tui-scroll-controls",2)}var Ee=(()=>{let e=class e{constructor(){var n;this.reducedMotion=l(qt),this.duration=Qt(l(Xt)),this.isMobileRes=$t(l(Q).pipe(y(i=>i==="mobile"),Yt(l(Ft)))),this.scrollbars$=l(Z)?z(!1):l(ft).pipe(y(({length:i})=>!i),Ot(0)),(n=l(S).defaultView)==null||n.document.documentElement.setAttribute("data-tui-theme",l(Kt).toLowerCase())}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["tui-root"]],hostAttrs:["data-tui-version","4.0.0-rc.7"],hostVars:6,hostBindings:function(i,o){i&1&&f("touchstart.passive.silent",function(){return 0}),i&2&&(b("--tui-duration",o.duration,"ms"),j("_reduced-motion",o.reducedMotion)("_mobile",o.isMobileRes()))},standalone:!0,features:[It([Se]),_],ngContentSelectors:ni,decls:13,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(i,o){i&1&&(Et(ii),m(0,oi,1,0,"tui-scroll-controls",0),C(1,"async"),r(2,"tui-dropdowns")(3,"div",1),D(4),a(),D(5,1),d(6,"tui-dialogs"),D(7,2),d(8,"tui-alerts"),D(9,3),a(),D(10,4),d(11,"tui-hints"),D(12,5)),i&2&&u("ngIf",T(1,1,o.scrollbars$))},dependencies:[M,O,de,De,Ie,he,J],styles:[`@keyframes tuiPresent{to{content:""}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html[data-tui-theme],.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html[data-tui-theme]::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html[data-tui-theme]::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{display:none}body,input{margin:0}tui-root{position:relative;display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);flex:1;-webkit-tap-highlight-color:transparent}tui-root:before{position:fixed;top:0;left:0;width:100%;height:100%;content:"";background:var(--tui-background-base)}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{position:relative;top:var(--t-root-top);height:100%;isolation:isolate}.t-root-content>*{--t-root-top: 0}[tuiDropdownButton][tuiDropdownButton]{display:none} +`],encapsulation:2});let t=e;return t})();var ri=v("data-tui-theme"),tt=(()=>{let e=class e{constructor(){this.storage=l(Gt),this.key=l(ri),this.themes=["light","dark"]}get theme(){let n=this.storage.getItem(this.key);return n===null?(this.storage.setItem(this.key,"light"),"light"):n}set theme(n){this.storage.setItem(this.key,n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ai(t,e){t&1&&d(0,"tui-icon",14),t&2&&b("font-size",1,"em")("margin-left",.5,"rem")}function si(t,e){if(t&1){let s=B();r(0,"button",12),f("click",function(){let i=I(s).$implicit,o=g(2);return w(o.chooseTheme(i))}),c(1),m(2,ai,1,4,"tui-icon",13),a()}if(t&2){let s=e.$implicit,n=g(2);u("value",s),p(),R(" ",s," "),p(),u("ngIf",n.themeService.theme===s)}}function li(t,e){if(t&1&&(r(0,"tui-data-list",10),Dt(1,si,3,3,"button",11,wt),a()),t&2){let s=g();p(),St(s.themeService.themes)}}function ci(t,e){t&1&&(r(0,"tui-data-list",10)(1,"button",26),c(2,"Account"),a(),r(3,"button",26),c(4,"Notifications"),a(),r(5,"button",26),c(6,"Privacy"),a()())}function ui(t,e){if(t&1){let s=B();r(0,"aside",15)(1,"header")(2,"button",16)(3,"span",6),c(4,"A very very long product name"),a()()(),r(5,"button",17),c(6," Search "),a(),r(7,"a",18),c(8," Groups "),a(),r(9,"button",19),ct("tuiDropdownOpenChange",function(i){I(s);let o=g();return lt(o.open,i)||(o.open=i),w(i)}),f("click",function(){I(s);let i=g();return w(i.submenu=i.expanded&&!i.submenu)}),c(10," Settings "),m(11,ci,7,0,"ng-template",null,1,ut),a(),r(13,"tui-expand",20)(14,"button",21),c(15,"Account"),a(),r(16,"button",21),c(17,"Notifications"),a(),r(18,"button",21),c(19,"Privacy"),a()(),r(20,"button",22)(21,"span",6),c(22,"By default ellipsis is used but you can use fade too"),a()(),d(23,"hr"),r(24,"button",23),c(25," Add "),a(),r(26,"footer")(27,"button",24),c(28," Favorites "),a(),r(29,"button",25),f("click",function(){I(s);let i=g();return w(i.expanded=!i.expanded)}),c(30),a()()()}if(t&2){let s=at(12),n=g();u("tuiNavigationAside",n.expanded),p(9),u("tuiAppearanceState",n.open?"hover":null)("tuiChevron",n.expanded&&n.submenu)("tuiDropdown",s)("tuiDropdownEnabled",!n.expanded),st("tuiDropdownOpen",n.open),p(4),u("expanded",n.expanded&&n.submenu),p(16),u("iconStart",n.expanded?"@tui.chevron-left":"@tui.chevron-right"),p(),R(" ",n.expanded?"Collapse":"Expand"," ")}}var ke=(()=>{let e=class e{constructor(){this.themeService=l(tt),this.mobile$=l(Q).pipe(y(n=>n==="mobile")),this.open=!1,this.expanded=!1,this.submenu=!1,this.openTheme=!1}chooseTheme(n){this.themeService.theme=n,this.openTheme=!1}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-navigation"]],standalone:!0,features:[_],decls:20,vars:8,consts:[["products",""],["dropdown",""],["tuiNavigationHeader",""],["appearance","secondary","iconStart","@tui.layout-grid","tuiIconButton",""],["tuiNavigationLogo",""],["icon","@tui.home"],["tuiFade",""],["appearance","secondary","tuiButton","","tuiChevron","",3,"tuiDropdownOpenChange","tuiDropdown","tuiDropdownOpen"],["class","aside-bar",3,"tuiNavigationAside",4,"ngIf"],["tuiNavigationMain",""],["size","s"],["tuiOption","",3,"value"],["tuiOption","",3,"click","value"],["icon","@tui.check",3,"font-size","margin-left",4,"ngIf"],["icon","@tui.check"],[1,"aside-bar",3,"tuiNavigationAside"],["iconStart","@tui.home","tuiAsideItem",""],["iconStart","@tui.search","tuiAsideItem",""],["iconStart","@tui.users","tuiAsideItem",""],["iconStart","@tui.settings","tuiAsideItem","",3,"tuiDropdownOpenChange","click","tuiAppearanceState","tuiChevron","tuiDropdown","tuiDropdownEnabled","tuiDropdownOpen"],[3,"expanded"],["tuiButton",""],["iconStart","@tui.heart","tuiAsideItem",""],["iconStart","@tui.plus","tuiAsideItem",""],["iconStart","@tui.star","tuiAsideItem",""],["tuiAsideItem","",3,"click","iconStart"],["tuiOption",""]],template:function(i,o){if(i&1){let x=B();r(0,"header",2)(1,"button",3),c(2," Menu "),a(),r(3,"span",4),d(4,"tui-icon",5),r(5,"span",6),c(6,"A very very long product name"),a(),r(7,"tui-badge"),c(8,"Test"),a()(),r(9,"button",7),ct("tuiDropdownOpenChange",function(et){return I(x),lt(o.openTheme,et)||(o.openTheme=et),w(et)}),r(10,"span",6),c(11),a(),m(12,li,3,0,"ng-template",null,0,ut),a(),d(14,"hr"),a(),r(15,"div"),m(16,ui,31,9,"aside",8),C(17,"async"),r(18,"main",9),d(19,"router-outlet"),a()()}if(i&2){let x=at(13);p(9),u("tuiDropdown",x),st("tuiDropdownOpen",o.openTheme),p(2),kt(o.themeService.theme),p(4),b("display","flex"),p(),u("ngIf",!T(17,6,o.mobile$))}},dependencies:[N,M,O,G,Ht,Ce,Zt,_e,ge,me,ue,pe,fe,ve,Jt,be,Te,Me,Oe,ye],styles:[".aside-bar[_ngcontent-%COMP%]{height:calc(100vh - 3rem)}"],changeDetection:0});let t=e;return t})();var Ae=(()=>{let e=class e{constructor(){this.themeService=l(tt),this.title="taiga-lumbermill"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=h({type:e,selectors:[["app-root"]],standalone:!0,features:[_],decls:2,vars:1,template:function(i,o){i&1&&(r(0,"tui-root"),d(1,"app-navigation"),a()),i&2&&A("tuiTheme",o.themeService.theme)},dependencies:[ke,G,Ee],encapsulation:2,changeDetection:0});let t=e;return t})();var pi=(()=>{let e=class e extends K{constructor(n,i,o){super(n,i,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(U(S),U(L),U(X))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function di(){return new oe}function mi(t,e,s){return new ae(t,e,s)}var Ne=[{provide:X,useFactory:di},{provide:K,useClass:pi},{provide:Pt,useFactory:mi,deps:[Rt,K,Tt]}],gi=[{provide:L,useFactory:()=>new re},{provide:nt,useValue:"BrowserAnimations"},...Ne],Xo=[{provide:L,useClass:ne},{provide:nt,useValue:"NoopAnimations"},...Ne];function Fe(){return xt("NgEagerAnimations"),[...gi]}var ze=[{path:"dashboards",loadComponent:()=>F(void 0,null,function*(){return import("./chunk-YB636DNS.js").then(t=>t.DashboardsComponent)}),children:[{path:"",loadComponent:()=>F(void 0,null,function*(){return import("./chunk-3KXZLJ4I.js").then(t=>t.DashboardsListComponent)}),data:{title:""}},{path:"iot",loadComponent:()=>F(void 0,null,function*(){return import("./chunk-T5IT4JHE.js").then(t=>t.IotComponent)}),data:{title:"Iot"}},{path:"crypto",loadComponent:()=>F(void 0,null,function*(){return import("./chunk-BWBFGBYY.js").then(t=>t.CryptoComponent)}),data:{title:"Crypto"}}]},{path:"**",redirectTo:"dashboards"}];var Be={providers:[Fe(),Nt({eventCoalescing:!0}),Ut(ze),Bt(),ce]};Lt(Ae,Be).catch(t=>console.error(t));