PageSourceSearch

https://reiseservice-henkel.de/wp-content/plugins/smg-customer-portal/scripts/notification-center.js?ver=7.1

js reiseservice-henkel.de collected 2026-10-07 04:34:13 UTC 510,464 bytes, 46 lines download raw bytes

vendor: 5,934 bytes, line 1
1var AC=Object.create;var mu=Object.defineProperty,kC=Object.defineProperties,OC=Object.getOwnPropertyDescriptor,RC=Object.getOwnPropertyDescriptors,PC=Object.getOwnPropertyNames,ya=Object.getOwnPropertySymbols,FC=Object.getPrototypeOf,gu=Object.prototype.hasOwnProperty,wg=Object.prototype.propertyIsEnumerable;var bg=(t,e,n)=>e in t?mu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,m=(t,e)=>{for(var n in e||={})gu.call(e,n)&&bg(t,n,e[n]);if(ya)for(var n of ya(e))wg.call(e,n)&&bg(t,n,e[n]);return t},w=(t,e)=>kC(t,RC(e));var Be=(t,e)=>{var n={};for(var r in t)gu.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&ya)for(var r of ya(t))e.indexOf(r)<0&&wg.call(t,r)&&(n[r]=t[r]);return n};var Ir=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var LC=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of PC(e))!gu.call(t,i)&&i!==n&&mu(t,i,{get:()=>e[i],enumerable:!(r=OC(e,i))||r.enumerable});return t};var an=(t,e,n)=>(n=t!=null?AC(FC(t)):{},LC(e||!t||!t.__esModule?mu(n,"default",{value:t,enumerable:!0}):n,t));var Co=Ir((vm,_m)=>{"use strict";(function(t,e){typeof vm=="object"&&typeof _m<"u"?_m.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(vm,function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",l="week",c="month",u="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var M=["th","st","nd","rd"],x=L%100;return"["+L+(M[(x-20)%10]||M[x]||M[0])+"]"}},E=function(L,M,x){var R=String(L);return!R||R.length>=M?L:""+Array(M+1-R.length).join(x)+L},k={s:E,z:function(L){var M=-L.utcOffset(),x=Math.abs(M),R=Math.floor(x/60),v=x%60;return(M<=0?"+":"-")+E(R,2,"0")+":"+E(v,2,"0")},m:function L(M,x){if(M.date()<x.date())return-L(x,M);var R=12*(x.year()-M.year())+(x.month()-M.month()),v=M.clone().add(R,c),D=x-v<0,S=M.clone().add(R+(D?-1:1),c);return+(-(R+(x-v)/(D?v-S:S-v))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:c,y:f,w:l,d:a,D:h,h:s,m:o,s:i,ms:r,Q:u}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},N="en",V={};V[N]=b;var Q="$isDayjsObject",te=function(L){return L instanceof Fe||!(!L||!L[Q])},ne=function L(M,x,R){var v;if(!M)return N;if(typeof M=="string"){var D=M.toLowerCase();V[D]&&(v=D),x&&(V[D]=x,v=D);var S=M.split("-");if(!v&&S.length>1)return L(S[0])}else{var O=M.name;V[O]=M,v=O}return!R&&v&&(N=v),v||!R&&N},B=function(L,M){if(te(L))return L.clone();var x=typeof M=="object"?M:{};return x.date=L,x.args=arguments,new Fe(x)},j=k;j.l=ne,j.i=te,j.w=function(L,M){return B(L,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var Fe=function(){function L(x){this.$L=ne(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[Q]=!0}var M=L.prototype;return M.parse=function(x){this.$d=function(R){var v=R.date,D=R.utc;if(v===null)return new Date(NaN);if(j.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var S=v.match(p);if(S){var O=S[2]-1||0,K=(S[7]||"0").substring(0,3);return D?new Date(Date.UTC(S[1],O,S[3]||1,S[4]||0,S[5]||0,S[6]||0,K)):new Date(S[1],O,S[3]||1,S[4]||0,S[5]||0,S[6]||0,K)}}return new Date(v)}(x),this.init()},M.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},M.$utils=function(){return j},M.isValid=function(){return this.$d.toString()!==d},M.isSame=function(x,R){var v=B(x);return this.startOf(R)<=v&&v<=this.endOf(R)},M.isAfter=function(x,R){return B(x)<this.startOf(R)},M.isBefore=function(x,R){return this.endOf(R)<B(x)},M.$g=function(x,R,v){return j.u(x)?this[R]:this.set(v,x)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(x,R){var v=this,D=!!j.u(R)||R,S=j.p(x),O=function(ve,Se){var Ie=j.w(v.$u?Date.UTC(v.$y,Se,ve):new Date(v.$y,Se,ve),v);return D?Ie:Ie.endOf(a)},K=function(ve,Se){return j.w(v.toDate()[ve].apply(v.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(Se)),v)},he=this.$W,ce=this.$M,Le=this.$D,ue="set"+(this.$u?"UTC":"");switch(S){case f:return D?O(1,0):O(31,11);case c:return D?O(1,ce):O(0,ce+1);case l:var kt=this.$locale().weekStart||0,sn=(he<kt?he+7:he)-kt;return O(D?Le-sn:Le+(6-sn),ce);case a:case h:return K(ue+"Hours",0);case s:return K(ue+"Minutes",1);case o:return K(ue+"Seconds",2);case i:return K(ue+"Milliseconds",3);default:return this.clone()}},M.endOf=function(x){return this.startOf(x,!1)},M.$set=function(x,R){var v,D=j.p(x),S="set"+(this.$u?"UTC":""),O=(v={},v[a]=S+"Date",v[h]=S+"Date",v[c]=S+"Month",v[f]=S+"FullYear",v[s]=S+"Hours",v[o]=S+"Minutes",v[i]=S+"Seconds",v[r]=S+"Milliseconds",v)[D],K=D===a?this.$D+(R-this.$W):R;if(D===c||D===f){var he=this.clone().set(h,1);he.$d[O](K),he.init(),this.$d=he.set(h,Math.min(this.$D,he.daysInMonth())).$d}else O&&this.$d[O](K);return this.init(),this},M.set=function(x,R){return this.clone().$set(x,R)},M.get=function(x){return this[j.p(x)]()},M.add=function(x,R){var v,D=this;x=Number(x);var S=j.p(R),O=function(ce){var Le=B(D);return j.w(Le.date(Le.date()+Math.round(ce*x)),D)};if(S===c)return this.set(c,this.$M+x);if(S===f)return this.set(f,this.$y+x);if(S===a)return O(1);if(S===l)return O(7);var K=(v={},v[o]=e,v[s]=n,v[i]=t,v)[S]||1,he=this.$d.getTime()+x*K;return j.w(he,this)},M.subtract=function(x,R){return this.add(-1*x,R)},M.format=function(x){var R=this,v=this.$locale();
vendor: 4,836 bytes, line 1
1if(!this.isValid())return v.invalidDate||d;var D=x||"YYYY-MM-DDTHH:mm:ssZ",S=j.z(this),O=this.$H,K=this.$m,he=this.$M,ce=v.weekdays,Le=v.months,ue=v.meridiem,kt=function(Se,Ie,bt,Ht){return Se&&(Se[Ie]||Se(R,D))||bt[Ie].slice(0,Ht)},sn=function(Se){return j.s(O%12||12,Se,"0")},ve=ue||function(Se,Ie,bt){var Ht=Se<12?"AM":"PM";return bt?Ht.toLowerCase():Ht};return D.replace(g,function(Se,Ie){return Ie||function(bt){switch(bt){case"YY":return String(R.$y).slice(-2);case"YYYY":return j.s(R.$y,4,"0");case"M":return he+1;case"MM":return j.s(he+1,2,"0");case"MMM":return kt(v.monthsShort,he,Le,3);case"MMMM":return kt(Le,he);case"D":return R.$D;case"DD":return j.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return kt(v.weekdaysMin,R.$W,ce,2);case"ddd":return kt(v.weekdaysShort,R.$W,ce,3);case"dddd":return ce[R.$W];case"H":return String(O);case"HH":return j.s(O,2,"0");case"h":return sn(1);case"hh":return sn(2);case"a":return ve(O,K,!0);case"A":return ve(O,K,!1);case"m":return String(K);case"mm":return j.s(K,2,"0");case"s":return String(R.$s);case"ss":return j.s(R.$s,2,"0");case"SSS":return j.s(R.$ms,3,"0");case"Z":return S}return null}(Se)||S.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(x,R,v){var D,S=this,O=j.p(R),K=B(x),he=(K.utcOffset()-this.utcOffset())*e,ce=this-K,Le=function(){return j.m(S,K)};switch(O){case f:D=Le()/12;break;case c:D=Le();break;case u:D=Le()/3;break;case l:D=(ce-he)/6048e5;break;case a:D=(ce-he)/864e5;break;case s:D=ce/n;break;case o:D=ce/e;break;case i:D=ce/t;break;default:D=ce}return v?D:j.a(D)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return V[this.$L]},M.locale=function(x,R){if(!x)return this.$L;var v=this.clone(),D=ne(x,R,!0);return D&&(v.$L=D),v},M.clone=function(){return j.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},L}(),_t=Fe.prototype;return B.prototype=_t,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",c],["$y",f],["$D",h]].forEach(function(L){_t[L[1]]=function(M){return this.$g(M,L[0],L[1])}}),B.extend=function(L,M){return L.$i||(L(M,Fe,B),L.$i=!0),B},B.locale=ne,B.isDayjs=te,B.unix=function(L){return B(1e3*L)},B.en=V[N],B.Ls=V,B.p={},B})});var F0=Ir((bm,wm)=>{"use strict";(function(t,e){typeof bm=="object"&&typeof wm<"u"?wm.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_relativeTime=e()})(bm,function(){"use strict";return function(t,e,n){t=t||{};var r=e.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(a,l,c,u){return r.fromToBase(a,l,c,u)}n.en.relativeTime=i,r.fromToBase=function(a,l,c,u,f){for(var h,d,p,g=c.$locale().relativeTime||i,b=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=b.length,k=0;k<E;k+=1){var N=b[k];N.d&&(h=u?n(a).diff(c,N.d,!0):c.diff(a,N.d,!0));var V=(t.rounding||Math.round)(Math.abs(h));if(p=h>0,V<=N.r||!N.r){V<=1&&k>0&&(N=b[k-1]);var Q=g[N.l];f&&(V=f(""+V)),d=typeof Q=="string"?Q.replace("%d",V):Q(V,l,N.l,p);break}}if(l)return d;var te=p?g.future:g.past;return typeof te=="function"?te(d):te.replace("%s",d)},r.to=function(a,l){return o(a,l,this,!0)},r.from=function(a,l){return o(a,l,this)};var s=function(a){return a.$u?n.utc():n()};r.toNow=function(a){return this.to(s(this),a)},r.fromNow=function(a){return this.from(s(this),a)}}})});var L0=Ir((Dm,Em)=>{"use strict";(function(t,e){typeof Dm=="object"&&typeof Em<"u"?Em.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_timezone=e()})(Dm,function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,i){var o,s=function(u,f,h){h===void 0&&(h={});var d=new Date(u),p=function(g,b){b===void 0&&(b={});var E=b.timeZoneName||"short",k=g+"|"+E,N=e[k];return N||(N=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:g,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),e[k]=N),N}(f,h);return p.formatToParts(d)},a=function(u,f){for(var h=s(u,f),d=[],p=0;p<h.length;p+=1){var g=h[p],b=g.type,E=g.value,k=t[b];k>=0&&(d[k]=parseInt(E,10))}var N=d[3],V=N===24?0:N,Q=d[0]+"-"+d[1]+"-"+d[2]+" "+V+":"+d[4]+":"+d[5]+":000",te=+u;return(i.utc(Q).valueOf()-(te-=te%1e3))/6e4},l=r.prototype;l.tz=function(u,f){u===void 0&&(u=o);
vendor: 4,188 bytes, line 1
1var h=this.utcOffset(),d=this.toDate(),p=d.toLocaleString("en-US",{timeZone:u}),g=Math.round((d-new Date(p))/1e3/60),b=i(p,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(d.getTimezoneOffset()/15)-g,!0);if(f){var E=b.utcOffset();b=b.add(h-E,"minute")}return b.$x.$timezone=u,b},l.offsetName=function(u){var f=this.$x.$timezone||i.tz.guess(),h=s(this.valueOf(),f,{timeZoneName:u}).find(function(d){return d.type.toLowerCase()==="timezonename"});return h&&h.value};var c=l.startOf;l.startOf=function(u,f){if(!this.$x||!this.$x.$timezone)return c.call(this,u,f);var h=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(h,u,f).tz(this.$x.$timezone,!0)},i.tz=function(u,f,h){var d=h&&f,p=h||f||o,g=a(+i(),p);if(typeof u!="string")return i(u).tz(p);var b=function(V,Q,te){var ne=V-60*Q*1e3,B=a(ne,te);if(Q===B)return[ne,Q];var j=a(ne-=60*(B-Q)*1e3,te);return B===j?[ne,B]:[V-60*Math.min(B,j)*1e3,Math.max(B,j)]}(i.utc(u,d).valueOf(),g,p),E=b[0],k=b[1],N=i(E).utcOffset(k);return N.$x.$timezone=p,N},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(u){o=u}}})});var V0=Ir((Cm,Sm)=>{"use strict";(function(t,e){typeof Cm=="object"&&typeof Sm<"u"?Sm.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_utc=e()})(Cm,function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var s=i.prototype;o.utc=function(d){var p={date:d,utc:!0,args:arguments};return new i(p)},s.utc=function(d){var p=o(this.toDate(),{locale:this.$L,utc:!0});return d?p.add(this.utcOffset(),t):p},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),a.call(this,d)};var l=s.init;s.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else l.call(this)};var c=s.utcOffset;s.utcOffset=function(d,p){var g=this.$utils().u;if(g(d))return this.$u?0:g(this.$offset)?c.call(this):this.$offset;if(typeof d=="string"&&(d=function(N){N===void 0&&(N="");var V=N.match(e);if(!V)return null;var Q=(""+V[0]).match(n)||["-",0,0],te=Q[0],ne=60*+Q[1]+ +Q[2];return ne===0?0:te==="+"?ne:-ne}(d),d===null))return this;var b=Math.abs(d)<=16?60*d:d,E=this;if(p)return E.$offset=b,E.$u=d===0,E;if(d!==0){var k=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(b+k,t)).$offset=b,E.$x.$localOffset=k}else E=this.utc();return E};var u=s.format;s.format=function(d){var p=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,p)},s.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var f=s.toDate;s.toDate=function(d){return d==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=s.diff;s.diff=function(d,p,g){if(d&&this.$u===d.$u)return h.call(this,d,p,g);var b=this.local(),E=o(d).local();return h.call(b,E,p,g)}}})});var $m=Ir((Lm,Vm)=>{"use strict";(function(t,e){typeof Lm=="object"&&typeof Vm<"u"?Vm.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(Lm,function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(d){return(d=+d)+(d>68?1900:2e3)},a=function(d){return function(p){this[d]=+p}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(d){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var g=p.match(/([+-]|\d\d)/g),b=60*g[1]+(+g[2]||0);
1return b===0?0:g[0]==="+"?-b:b}(d)}],c=function(d){var p=o[d];return p&&(p.indexOf?p:p.s.concat(p.f))},u=function(d,p){var g,b=o.meridiem;if(b){for(var E=1;E<=24;E+=1)if(d.indexOf(b(E,0,p))>-1){g=E>12;break}}else g=d===(p?"pm":"PM");return g},f={A:[i,function(d){this.afternoon=u(d,!1)}],a:[i,function(d){this.afternoon=u(d,!0)}],S:[/\d/,function(d){this.milliseconds=100*+d}],SS:[n,function(d){this.milliseconds=10*+d}],SSS:[/\d{3}/,function(d){this.milliseconds=+d}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(d){var p=o.ordinal,g=d.match(/\d+/);if(this.day=g[0],p)for(var b=1;b<=31;b+=1)p(b).replace(/\[|\]/g,"")===d&&(this.day=b)}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(d){var p=c("months"),g=(c("monthsShort")||p.map(function(b){return b.slice(0,3)})).indexOf(d)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(d){var p=c("months").indexOf(d)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(d){this.year=s(d)}],YYYY:[/\d{4}/,a("year")],Z:l,ZZ:l};function h(d){var p,g;p=d,g=o&&o.formats;for(var b=(d=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(ne,B,j){var Fe=j&&j.toUpperCase();return B||g[j]||t[j]||g[Fe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_t,L,M){return L||M.slice(1)})})).match(e),E=b.length,k=0;k<E;k+=1){var N=b[k],V=f[N],Q=V&&V[0],te=V&&V[1];b[k]=te?{regex:Q,parser:te}:N.replace(/^\[|\]$/g,"")}return function(ne){for(var B={},j=0,Fe=0;j<E;j+=1){var _t=b[j];if(typeof _t=="string")Fe+=_t.length;else{var L=_t.regex,M=_t.parser,x=ne.slice(Fe),R=L.exec(x)[0];M.call(B,R),ne=ne.replace(R,"")}}return function(v){var D=v.afternoon;if(D!==void 0){var S=v.hours;D?S<12&&(v.hours+=12):S===12&&(v.hours=0),delete v.afternoon}}(B),B}}return function(d,p,g){g.p.customParseFormat=!0,d&&d.parseTwoDigitYear&&(s=d.parseTwoDigitYear);var b=p.prototype,E=b.parse;b.parse=function(k){var N=k.date,V=k.utc,Q=k.args;this.$u=V;var te=Q[1];if(typeof te=="string"){var ne=Q[2]===!0,B=Q[3]===!0,j=ne||B,Fe=Q[2];B&&(Fe=Q[2]),o=this.$locale(),!ne&&Fe&&(o=g.Ls[Fe]),this.$d=function(x,R,v){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*x);var D=h(R)(x),S=D.year,O=D.month,K=D.day,he=D.hours,ce=D.minutes,Le=D.seconds,ue=D.milliseconds,kt=D.zone,sn=new Date,ve=K||(S||O?1:sn.getDate()),Se=S||sn.getFullYear(),Ie=0;S&&!O||(Ie=O>0?O-1:sn.getMonth());var bt=he||0,Ht=ce||0,hu=Le||0,pu=ue||0;return kt?new Date(Date.UTC(Se,Ie,ve,bt,Ht,hu,pu+60*kt.offset*1e3)):v?new Date(Date.UTC(Se,Ie,ve,bt,Ht,hu,pu)):new Date(Se,Ie,ve,bt,Ht,hu,pu)}catch{return new Date("")}}(N,te,V),this.init(),Fe&&Fe!==!0&&(this.$L=this.locale(Fe).$L),j&&N!=this.format(te)&&(this.$d=new Date("")),o={}}else if(te instanceof Array)for(var _t=te.length,L=1;L<=_t;L+=1){Q[1]=te[L-1];var M=g.apply(this,Q);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}L===_t&&(this.$d=new Date(""))}else E.call(this,k)}}})});var zE=Ir((Um,zm)=>{"use strict";(function(t,e){typeof Um=="object"&&typeof zm<"u"?zm.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_en=e()})(Um,function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}}})});var HE=Ir((Hm,qm)=>{"use strict";(function(t,e){typeof Hm=="object"&&typeof qm<"u"?qm.exports=e(Co()):typeof define=="function"&&define.amd?define(["dayjs"],e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_locale_de=e(t.dayjs)})(Hm,function(t){"use strict";function e(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var n=e(t),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(s,a,l){var c=r[l];return Array.isArray(c)&&(c=c[a?0:1]),c.replace("%d",s)}var o={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(s){return s+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(o,null,!0),o})});function bu(t,e){return Object.is(t,e)}var Ye=null,va=!1,wu=1,Ot=Symbol("SIGNAL");function G(t){let e=Ye;return Ye=t,e}function Du(){return Ye}var li={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,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ci(t){if(va)throw new Error("");
1if(Ye===null)return;Ye.consumerOnSignalRead(t);let e=Ye.nextProducerIndex++;if(Ea(Ye),e<Ye.producerNode.length&&Ye.producerNode[e]!==t&&ko(Ye)){let n=Ye.producerNode[e];Da(n,Ye.producerIndexOfThis[e])}Ye.producerNode[e]!==t&&(Ye.producerNode[e]=t,Ye.producerIndexOfThis[e]=ko(Ye)?Eg(t,Ye,e):0),Ye.producerLastReadVersion[e]=t.version}function Dg(){wu++}function Eu(t){if(!(ko(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===wu)){if(!t.producerMustRecompute(t)&&!wa(t)){_u(t);return}t.producerRecomputeValue(t),_u(t)}}function Cu(t){if(t.liveConsumerNode===void 0)return;let e=va;va=!0;try{for(let n of t.liveConsumerNode)n.dirty||VC(n)}finally{va=e}}function Su(){return Ye?.consumerAllowSignalWrites!==!1}function VC(t){t.dirty=!0,Cu(t),t.consumerMarkedDirty?.(t)}function _u(t){t.dirty=!1,t.lastCleanEpoch=wu}function Oo(t){return t&&(t.nextProducerIndex=0),G(t)}function ba(t,e){if(G(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(ko(t))for(let n=t.nextProducerIndex;n<t.producerNode.length;n++)Da(t.producerNode[n],t.producerIndexOfThis[n]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function wa(t){Ea(t);for(let e=0;e<t.producerNode.length;e++){let n=t.producerNode[e],r=t.producerLastReadVersion[e];if(r!==n.version||(Eu(n),r!==n.version))return!0}return!1}function Ro(t){if(Ea(t),ko(t))for(let e=0;e<t.producerNode.length;e++)Da(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Eg(t,e,n){if(Cg(t),t.liveConsumerNode.length===0&&Sg(t))for(let r=0;r<t.producerNode.length;r++)t.producerIndexOfThis[r]=Eg(t.producerNode[r],t,r);return t.liveConsumerIndexOfThis.push(n),t.liveConsumerNode.push(e)-1}function Da(t,e){if(Cg(t),t.liveConsumerNode.length===1&&Sg(t))for(let r=0;r<t.producerNode.length;r++)Da(t.producerNode[r],t.producerIndexOfThis[r]);let n=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[n],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[n],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let r=t.liveConsumerIndexOfThis[e],i=t.liveConsumerNode[e];Ea(i),i.producerIndexOfThis[r]=e}}function ko(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Ea(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Cg(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Sg(t){return t.producerNode!==void 0}function Iu(t,e){let n=Object.create($C);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(Eu(n),ci(n),n.value===_a)throw n.error;return n.value};return r[Ot]=n,r}var yu=Symbol("UNSET"),vu=Symbol("COMPUTING"),_a=Symbol("ERRORED"),$C=w(m({},li),{value:yu,dirty:!0,error:null,equal:bu,kind:"computed",producerMustRecompute(t){return t.value===yu||t.value===vu},producerRecomputeValue(t){if(t.value===vu)throw new Error("Detected cycle in computations.");let e=t.value;t.value=vu;let n=Oo(t),r,i=!1;try{r=t.computation(),G(null),i=e!==yu&&e!==_a&&r!==_a&&t.equal(e,r)}catch(o){r=_a,t.error=o}finally{ba(t,n)}if(i){t.value=e;return}t.value=r,t.version++}});function jC(){throw new Error}var Ig=jC;function xg(t){Ig(t)}function xu(t){Ig=t}var BC=null;function Mu(t,e){let n=Object.create(Ca);n.value=t,e!==void 0&&(n.equal=e);let r=()=>(ci(n),n.value);return r[Ot]=n,r}function ui(t,e){Su()||xg(t),t.equal(t.value,e)||(t.value=e,UC(t))}function Tu(t,e){Su()||xg(t),ui(t,e(t.value))}var Ca=w(m({},li),{equal:bu,value:void 0,kind:"signal"});function UC(t){t.version++,Dg(),Cu(t),BC?.()}function Nu(t){let e=G(null);try{return t()}finally{G(e)}}var Au;function Po(){return Au}function Ln(t){let e=Au;return Au=t,e}var Sa=Symbol("NotFound");function z(t){return typeof t=="function"}function Ia(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 xa=Ia(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:
2${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
3  `)}`:"",this.name="UnsubscriptionError",this.errors=n});function xr(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Ne=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}
vendor: 10,184 bytes, line 3
3unsubscribe(){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(z(r))try{r()}catch(o){e=o instanceof xa?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Mg(o)}catch(s){e=e??[],s instanceof xa?e=[...e,...s.errors]:e.push(s)}}if(e)throw new xa(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Mg(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)&&xr(n,e)}remove(e){let{_finalizers:n}=this;n&&xr(n,e),e instanceof t&&e._removeParent(this)}};Ne.EMPTY=(()=>{let t=new Ne;return t.closed=!0,t})();var ku=Ne.EMPTY;function Ma(t){return t instanceof Ne||t&&"closed"in t&&z(t.remove)&&z(t.add)&&z(t.unsubscribe)}function Mg(t){z(t)?t():t.unsubscribe()}var ln={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var di={setTimeout(t,e,...n){let{delegate:r}=di;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=di;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ta(t){di.setTimeout(()=>{let{onUnhandledError:e}=ln;if(e)e(t);else throw t})}function Fo(){}var Tg=Ou("C",void 0,void 0);function Ng(t){return Ou("E",void 0,t)}function Ag(t){return Ou("N",t,void 0)}function Ou(t,e,n){return{kind:t,value:e,error:n}}var Mr=null;function fi(t){if(ln.useDeprecatedSynchronousErrorHandling){let e=!Mr;if(e&&(Mr={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=Mr;if(Mr=null,n)throw r}}else t()}function kg(t){ln.useDeprecatedSynchronousErrorHandling&&Mr&&(Mr.errorThrown=!0,Mr.error=t)}var Tr=class extends Ne{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ma(e)&&e.add(this)):this.destination=WC}static create(e,n,r){return new hi(e,n,r)}next(e){this.isStopped?Pu(Ag(e),this):this._next(e)}error(e){this.isStopped?Pu(Ng(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Pu(Tg,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()}}},KC=Function.prototype.bind;function Ru(t,e){return KC.call(t,e)}var Fu=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Na(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Na(r)}else Na(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Na(n)}}},hi=class extends Tr{constructor(e,n,r){super();let i;if(z(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&ln.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Ru(e.next,o),error:e.error&&Ru(e.error,o),complete:e.complete&&Ru(e.complete,o)}):i=e}this.destination=new Fu(i)}};function Na(t){ln.useDeprecatedSynchronousErrorHandling?kg(t):Ta(t)}function GC(t){throw t}function Pu(t,e){let{onStoppedNotification:n}=ln;n&&di.setTimeout(()=>n(t,e))}var WC={closed:!0,next:Fo,error:GC,complete:Fo};var pi=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Vn(t){return t}function Og(t){return t.length===0?Vn:t.length===1?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}var re=(()=>{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=ZC(n)?n:new hi(n,r,i);return fi(()=>{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=Rg(r),new r((i,o)=>{let s=new hi({next:a=>{try{n(a)}catch(l){o(l),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)}[pi](){return this}pipe(...n){return Og(n)(this)}toPromise(n){return n=Rg(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 Rg(t){var e;return(e=t??ln.Promise)!==null&&e!==void 0?e:Promise}function YC(t){return t&&z(t.next)&&z(t.error)&&z(t.complete)}function ZC(t){return t&&t instanceof Tr||YC(t)&&Ma(t)}function QC(t){return z(t?.lift)}function _e(t){return e=>{if(QC(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 me(t,e,n,r,i){return new Lu(t,e,n,r,i)}var Lu=class extends Tr{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}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))}}};var Pg=Ia(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var de=(()=>{class t extends re{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Aa(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Pg}next(n){fi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){fi(()=>{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(){fi(()=>{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?ku:(this.currentObservers=null,o.push(n),new Ne(()=>{this.currentObservers=null,xr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new re;return n.source=this,n}}return t.create=(e,n)=>new Aa(e,n),t})(),Aa=class extends de{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:ku}};var Lo=class extends de{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 Vo={now(){return(Vo.delegate||Date).now()},delegate:void 0};var Nr=class extends de{constructor(e=1/0,n=1/0,r=Vo){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;s<o.length&&!e.closed;s+=r?1:2)e.next(o[s]);return this._checkFinalizedStatuses(e),n}_trimBuffer(){let{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){let s=n.now(),a=0;for(let l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}};var ka=class extends Ne{constructor(e,n){super()}schedule(e,n=0){return this}};var $o={setInterval(t,e,...n){let{delegate:r}=$o;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=$o;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Oa=class extends ka{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(e,n,r=0){return $o.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&$o.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r=!1,i;try{this.work(e)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;
vendor: 4,188 bytes, line 3
3this.work=this.state=this.scheduler=null,this.pending=!1,xr(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var mi=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)}};mi.now=Vo.now;var Ra=class extends mi{constructor(e,n=mi.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 jo=new Ra(Oa),Fg=jo;var Pa=new re(t=>t.complete());function Fa(t){return t&&z(t.schedule)}function Vu(t){return t[t.length-1]}function La(t){return z(Vu(t))?t.pop():void 0}function wn(t){return Fa(Vu(t))?t.pop():void 0}function Lg(t,e){return typeof Vu(t)=="number"?t.pop():e}function $g(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(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})}function Vg(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 Ar(t){return this instanceof Ar?(this.v=t,this):new Ar(t)}function jg(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(h){r[h]&&(i[h]=function(d){return new Promise(function(p,g){o.push([h,d,p,g])>1||a(h,d)})})}function a(h,d){try{l(r[h](d))}catch(p){f(o[0][3],p)}}function l(h){h.value instanceof Ar?Promise.resolve(h.value.v).then(c,u):f(o[0][2],h)}function c(h){a("next",h)}function u(h){a("throw",h)}function f(h,d){h(d),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Bg(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 Vg=="function"?Vg(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,l){s=t[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var gi=t=>t&&typeof t.length=="number"&&typeof t!="function";function Va(t){return z(t?.then)}function $a(t){return z(t[pi])}function ja(t){return Symbol.asyncIterator&&z(t?.[Symbol.asyncIterator])}function Ba(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 JC(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ua=JC();function za(t){return z(t?.[Ua])}function Ha(t){return jg(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:i}=yield Ar(n.read());if(i)return yield Ar(void 0);yield yield Ar(r)}}finally{n.releaseLock()}})}function qa(t){return z(t?.getReader)}function $e(t){if(t instanceof re)return t;if(t!=null){if($a(t))return XC(t);if(gi(t))return eS(t);if(Va(t))return tS(t);if(ja(t))return Ug(t);if(za(t))return nS(t);if(qa(t))return rS(t)}throw Ba(t)}function XC(t){return new re(e=>{let n=t[pi]();if(z(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function eS(t){return new re(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function tS(t){return new re(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Ta)})}function nS(t){return new re(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function Ug(t){return new re(e=>{iS(t,e).catch(n=>e.error(n))})}
vendor: 4,726 bytes, line 3
3function rS(t){return Ug(Ha(t))}function iS(t,e){var n,r,i,o;return $g(this,void 0,void 0,function*(){try{for(n=Bg(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 wt(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 Ka(t,e=0){return _e((n,r)=>{n.subscribe(me(r,i=>wt(r,t,()=>r.next(i),e),()=>wt(r,t,()=>r.complete(),e),i=>wt(r,t,()=>r.error(i),e)))})}function Ga(t,e=0){return _e((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function zg(t,e){return $e(t).pipe(Ga(e),Ka(e))}function Hg(t,e){return $e(t).pipe(Ga(e),Ka(e))}function qg(t,e){return new re(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Kg(t,e){return new re(n=>{let r;return wt(n,e,()=>{r=t[Ua](),wt(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)}),()=>z(r?.return)&&r.return()})}function Wa(t,e){if(!t)throw new Error("Iterable cannot be null");return new re(n=>{wt(n,e,()=>{let r=t[Symbol.asyncIterator]();wt(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Gg(t,e){return Wa(Ha(t),e)}function Wg(t,e){if(t!=null){if($a(t))return zg(t,e);if(gi(t))return qg(t,e);if(Va(t))return Hg(t,e);if(ja(t))return Wa(t,e);if(za(t))return Kg(t,e);if(qa(t))return Gg(t,e)}throw Ba(t)}function Dt(t,e){return e?Wg(t,e):$e(t)}function sr(...t){let e=wn(t);return Dt(t,e)}function Yg(t){return t instanceof Date&&!isNaN(t)}function je(t,e){return _e((n,r)=>{let i=0;n.subscribe(me(r,o=>{r.next(t.call(e,o,i++))}))})}var{isArray:oS}=Array;function sS(t,e){return oS(e)?t(...e):t(e)}function yi(t){return je(e=>sS(t,e))}var{isArray:aS}=Array,{getPrototypeOf:lS,prototype:cS,keys:uS}=Object;function Ya(t){if(t.length===1){let e=t[0];if(aS(e))return{args:e,keys:null};if(dS(e)){let n=uS(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function dS(t){return t&&typeof t=="object"&&lS(t)===cS}function Za(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function $u(...t){let e=wn(t),n=La(t),{args:r,keys:i}=Ya(t);if(r.length===0)return Dt([],e);let o=new re(fS(r,e,i?s=>Za(i,s):Vn));return n?o.pipe(yi(n)):o}function fS(t,e,n=Vn){return r=>{Zg(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let l=0;l<i;l++)Zg(e,()=>{let c=Dt(t[l],e),u=!1;c.subscribe(me(r,f=>{o[l]=f,u||(u=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Zg(t,e,n){t?wt(n,t,e):e()}function Qg(t,e,n,r,i,o,s,a){let l=[],c=0,u=0,f=!1,h=()=>{f&&!l.length&&!c&&e.complete()},d=g=>c<r?p(g):l.push(g),p=g=>{o&&e.next(g),c++;let b=!1;$e(n(g,u++)).subscribe(me(e,E=>{i?.(E),o?d(E):e.next(E)},()=>{b=!0},void 0,()=>{if(b)try{for(c--;l.length&&c<r;){let E=l.shift();s?wt(e,s,()=>p(E)):p(E)}h()}catch(E){e.error(E)}}))};return t.subscribe(me(e,d,()=>{f=!0,h()})),()=>{a?.()}}function cn(t,e,n=1/0){return z(e)?cn((r,i)=>je((o,s)=>e(r,o,i,s))($e(t(r,i))),n):(typeof e=="number"&&(n=e),_e((r,i)=>Qg(r,i,t,n)))}function Qa(t=1/0){return cn(Vn,t)}function Jg(){return Qa(1)}function vi(...t){return Jg()(Dt(t,wn(t)))}function ju(...t){let e=La(t),{args:n,keys:r}=Ya(t),i=new re(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let f=!1;$e(n[u]).subscribe(me(o,h=>{f||(f=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!f)&&(c||o.next(r?Za(r,a):a),o.complete())}))}});return e?i.pipe(yi(e)):i}var hS=["addListener","removeListener"],pS=["addEventListener","removeEventListener"],mS=["on","off"];function kr(t,e,n,r){if(z(n)&&(r=n,n=void 0),r)return kr(t,e,n).pipe(yi(r));let[i,o]=vS(t)?pS.map(s=>a=>t[s](e,a,n)):gS(t)?hS.map(Xg(t,e)):yS(t)?mS.map(Xg(t,e)):[];if(!i&&gi(t))return cn(s=>kr(s,e,n))($e(t));if(!i)throw new TypeError("Invalid event target");return new re(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return i(a),()=>o(a)})}function Xg(t,e){return n=>r=>t[n](e,r)}function gS(t){return z(t.addListener)&&z(t.removeListener)}function yS(t){return z(t.on)&&z(t.off)}function vS(t){return z(t.addEventListener)&&z(t.removeEventListener)}function ey(t=0,e,n=Fg){let r=-1;return e!=null&&(Fa(e)?n=e:r=e),new re(i=>{let o=Yg(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 Bo(...t){let e=wn(t),n=Lg(t,1/0),r=t;return r.length?r.length===1?$e(r[0]):Qa(n)(Dt(r,e)):Pa}function qt(t,e){return _e((n,r)=>{let i=0;n.subscribe(me(r,o=>t.call(e,o,i++)&&r.next(o)))})}function ty(t){return _e((e,n)=>{let r=!1,i=null,o=null,s=!1,a=()=>
vendor: 4,431 bytes, lines 3-4
3{if(o?.unsubscribe(),o=null,r){r=!1;let c=i;i=null,n.next(c)}s&&n.complete()},l=()=>{o=null,s&&n.complete()};e.subscribe(me(n,c=>{r=!0,i=c,o||$e(t(c)).subscribe(o=me(n,a,l))},()=>{s=!0,(!r||!o||o.closed)&&n.complete()}))})}function Ja(t,e=jo){return ty(()=>ey(t,e))}function Bu(t,e){return z(e)?cn(t,e,1):cn(t,1)}function Uu(t,e=jo){return _e((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 l(){let c=s+t,u=e.now();if(u<c){i=this.schedule(void 0,c-u),r.add(i);return}a()}n.subscribe(me(r,c=>{o=c,s=e.now(),i||(i=e.schedule(l,t),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function zu(t){return t<=0?()=>Pa:_e((e,n)=>{let r=0;e.subscribe(me(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function Hu(t){return _e((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function qu(t){return qt((e,n)=>t<=n)}function Xa(...t){let e=wn(t);return _e((n,r)=>{(e?vi(t,n,e):vi(t,n)).subscribe(r)})}function _i(t,e){return _e((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(me(r,l=>{i?.unsubscribe();let c=0,u=o++;$e(t(l,u)).subscribe(i=me(r,f=>r.next(e?e(l,f,u,c++):f),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function $n(t){return _e((e,n)=>{$e(t).subscribe(me(n,()=>n.complete(),Fo)),!n.closed&&e.subscribe(n)})}function Ku(t,e=!1){return _e((n,r)=>{let i=0;n.subscribe(me(r,o=>{let s=t(o,i++);(s||e)&&r.next(o),!s&&r.complete()}))})}function Gu(t,e,n){let r=z(t)||e||n?{next:t,error:e,complete:n}:t;return r?_e((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(me(o,l=>{var c;(c=r.next)===null||c===void 0||c.call(r,l),o.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),o.complete()},l=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),o.error(l)},()=>{var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Vn}var _S="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",I=class extends Error{code;constructor(e,n){super(ts(e,n)),this.code=e}};function ts(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Al=Symbol("InputSignalNode#UNSET"),Uy=w(m({},Ca),{transformFn:void 0,applyValueToInputSignal(t,e){ui(t,e)}});function zy(t,e){let n=Object.create(Uy);n.value=t,n.transformFn=e?.transform;function r(){if(ci(n),n.value===Al){let i=null;throw new I(-950,i)}return n.value}return r[Ot]=n,r}function kl(t){return{toString:t}.toString()}function Ae(t){for(let e in t)if(t[e]===Ae)return e;throw Error("Could not find renamed property on target object.")}function bS(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Wt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Wt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
4`);return r>=0?n.slice(0,r):n}function ny(t,e){return t?e?`${t} ${e}`:t:e||""}var wS=Ae({__forward_ref__:Ae});function Hn(t){return t.__forward_ref__=Hn,t.toString=function(){return Wt(this())},t}function ht(t){return Hy(t)?t():t}function Hy(t){return typeof t=="function"&&t.hasOwnProperty(wS)&&t.__forward_ref__===Hn}function A(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function nt(t){return{providers:t.providers||[],imports:t.imports||[]}}function ef(t){return ry(t,qy)||ry(t,Ky)}function ry(t,e){return t.hasOwnProperty(e)?t[e]:null}function DS(t){let e=t&&(t[qy]||t[Ky]);return e||null}function iy(t){return t&&(t.hasOwnProperty(oy)||t.hasOwnProperty(ES))?t[oy]:null}var qy=Ae({\u0275prov:Ae}),oy=Ae({\u0275inj:Ae}),Ky=Ae({ngInjectableDef:Ae}),ES=Ae({ngInjectorDef:Ae}),P=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Gy(t){return t&&!!t.\u0275providers}var CS=Ae({\u0275cmp:Ae}),SS=Ae({\u0275dir:Ae}),IS=Ae({\u0275pipe:Ae});var al=Ae({\u0275fac:Ae}),qo=Ae({__NG_ELEMENT_ID__:Ae}),sy=Ae({__NG_ENV_ID__:Ae});function Wy(t){return typeof t=="string"?t:t==null?"":String(t)}function xS(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.n
4ame||t.type.toString():Wy(t)}function Yy(t,e){throw new I(-200,t)}function tf(t,e){throw new I(-201,!1)}var oe=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}(oe||{}),ld;function Zy(){return ld}function Kt(t){let e=ld;return ld=t,e}function Qy(t,e,n){let r=ef(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&oe.Optional)return null;if(e!==void 0)return e;tf(t,"Injector")}var MS={},Or=MS,TS="__NG_DI_FLAG__",ll=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=n;return this.injector.get(e,r.optional?Sa:Or,r)}},cl="ngTempTokenPath",NS="ngTokenPath",AS=/\n/gm,kS="\u0275",ay="__source";function OS(t,e=oe.Default){if(Po()===void 0)throw new I(-203,!1);if(Po()===null)return Qy(t,void 0,e);{let n=Po(),r;return n instanceof ll?r=n.injector:r=n,r.get(t,e&oe.Optional?null:void 0,e)}}function U(t,e=oe.Default){return(Zy()||OS)(ht(t),e)}function y(t,e=oe.Default){return U(t,Ol(e))}function Ol(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function cd(t){let e=[];for(let n=0;n<t.length;n++){let r=ht(t[n]);if(Array.isArray(r)){if(r.length===0)throw new I(900,!1);let i,o=oe.Default;for(let s=0;s<r.length;s++){let a=r[s],l=RS(a);typeof l=="number"?l===-1?i=a.token:o|=l:i=a}e.push(U(i,o))}else e.push(U(r))}return e}function RS(t){return t[TS]}function PS(t,e,n,r){let i=t[cl];throw e[ay]&&i.unshift(e[ay]),t.message=FS(`
5`+t.message,i,n,r),t[NS]=i,t[cl]=null,t}function FS(t,e,n,r=null){t=t&&t.charAt(0)===`
6`&&t.charAt(1)==kS?t.slice(2):t;let i=Wt(e);if(Array.isArray(e))i=e.map(Wt).join(" -> ");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):Wt(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(AS,`
7  `)}`}function Ii(t,e){let n=t.hasOwnProperty(al);return n?t[al]:null}function LS(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=e[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function VS(t){return t.flat(Number.POSITIVE_INFINITY)}function nf(t,e){t.forEach(n=>Array.isArray(n)?nf(n,e):e(n))}function Jy(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ul(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function $S(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function jS(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(i===1)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function BS(t,e,n){let r=ns(t,e);return r>=0?t[r|1]=n:(r=~r,jS(t,r,e,n)),r}function Wu(t,e){let n=ns(t,e);if(n>=0)return t[n|1]}function ns(t,e){return US(t,e,1)}function US(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<<n];if(e===s)return o<<n;s>e?i=o:r=o+1}return~(i<<n)}var Pr={},Gt=[],jn=new P(""),Xy=new P("",-1),ev=new P(""),dl=class{get(e,n=Or){if(n===Or){let r=new Error(`NullInjectorError: No provider for ${Wt(e)}!`);throw r.name="NullInjectorError",r}return n}};function xi(t){return t[CS]||null}function zS(t){return t[SS]||null}function HS(t){return t[IS]||null}function Li(t){return{\u0275providers:t}}function qS(...t){return{\u0275providers:tv(!0,t),\u0275fromNgModule:!0}}function tv(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return nf(e,s=>{let a=s;ud(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&nv(i,o),n}function nv(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:i}=t[n];rf(i,o=>{e(o,r)})}}function ud(t,e,n,r){if(t=ht(t),!t)return!1;let i=null,o=iy(t),s=!o&&xi(t);if(!o&&!s){let l=t.ngModule;if(o=iy(l),o)i=l;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 l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)ud(c,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{nf(o.imports,u=>{ud(u,e,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&nv(c,e)}if(!a){let c=Ii(i)||(()=>new i);e({provide:i,useFactory:c,deps:Gt},i),e({provide:ev,useValue:i,multi:!0},i),e({provide:jn,useValue:()=>U(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=t;rf(l,u=>{e(u,c)})}}else return!1;return i!==t&&t.providers!==void 0}function rf(t,e){for(let n of t)Gy(n)&&(n=n.\u0275providers),Array.isArray(n)?rf(n,e):e(n)}var KS=Ae({provide:String,useValue:Ae});function rv(t){return t!==null&&typeof t=="object"&&KS in t}function GS(t){return!!(t&&t.useExisting)}function WS(t){return!!(t&&t.useFactory)}function Mi(t){return typeof t=="function"}function YS(t){return!!t.useClass}var Rl=new P(""),tl={},ly={},Yu;function Pl(){return Yu===void 0&&(Yu=new dl),Yu}var at=class{},Ko=class extends at{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,fd(e,s=>this.processProvider(s)),this.records.set(Xy,bi(void 0,this)),i.has("environment")&&this.records.set(at,bi(void 0,this));let o=this.records.get(Rl);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ev,Gt,oe.Self))}retrieve(e,n){let r=n;return this.get(e,r.optional?Sa:Or,r)}destroy(){zo(this),this._destroyed=!0;let e=G(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(),G(e)}}onDestroy(e){return zo(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){zo(this);let n=Ln(this),r=Kt(void 0),i;try{return e()}finally{Ln(n),Kt(r)}}get(e,n=Or,r=oe.Default){if(zo(this),e.hasOwnProperty(sy))return e[sy](this);r=Ol(r);let i,o=Ln(this),s=Kt(void 0);try{if(!(r&oe.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=eI(e)&&ef(e);c&&this.injectableDefInScope(c)?l=bi(dd(e),tl):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=r&oe.Self?Pl():this.parent;return n=r&oe.Optional&&n===Or?null:n,a.get(e,n)}catch(a){if(a.name==="NullInjectorError"){if((a[cl]=a[cl]||[]).unshift(Wt(e)),o)throw a;return PS(a,e,"R3InjectorError",this.source)}else throw a}finally{Kt(s),Ln(o)}}
vendor: 4,819 bytes, line 7
7resolveInjectorInitializers(){let e=G(null),n=Ln(this),r=Kt(void 0),i;try{let o=this.get(jn,Gt,oe.Self);for(let s of o)s()}finally{Ln(n),Kt(r),G(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(Wt(r));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=ht(e);let n=Mi(e)?e:ht(e&&e.provide),r=QS(e);if(!Mi(e)&&e.multi===!0){let i=this.records.get(n);i||(i=bi(void 0,tl,!0),i.factory=()=>cd(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n){let r=G(null);try{return n.value===ly?Yy(Wt(e)):n.value===tl&&(n.value=ly,n.value=n.factory()),typeof n.value=="object"&&n.value&&XS(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{G(r)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=ht(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 dd(t){let e=ef(t),n=e!==null?e.factory:Ii(t);if(n!==null)return n;if(t instanceof P)throw new I(204,!1);if(t instanceof Function)return ZS(t);throw new I(204,!1)}function ZS(t){if(t.length>0)throw new I(204,!1);let n=DS(t);return n!==null?()=>n.factory(t):()=>new t}function QS(t){if(rv(t))return bi(void 0,t.useValue);{let e=iv(t);return bi(e,tl)}}function iv(t,e,n){let r;if(Mi(t)){let i=ht(t);return Ii(i)||dd(i)}else if(rv(t))r=()=>ht(t.useValue);else if(WS(t))r=()=>t.useFactory(...cd(t.deps||[]));else if(GS(t))r=()=>U(ht(t.useExisting));else{let i=ht(t&&(t.useClass||t.provide));if(JS(t))r=()=>new i(...cd(t.deps));else return Ii(i)||dd(i)}return r}function zo(t){if(t.destroyed)throw new I(205,!1)}function bi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function JS(t){return!!t.deps}function XS(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function eI(t){return typeof t=="function"||typeof t=="object"&&t instanceof P}function fd(t,e){for(let n of t)Array.isArray(n)?fd(n,e):n&&Gy(n)?fd(n.\u0275providers,e):e(n)}function xn(t,e){let n;t instanceof Ko?(zo(t),n=t):n=new ll(t);let r,i=Ln(n),o=Kt(void 0);try{return e()}finally{Ln(i),Kt(o)}}function ov(){return Zy()!==void 0||Po()!=null}function qn(t){if(!ov())throw new I(-203,!1)}function tI(t){return typeof t=="function"}var Mn=0,W=1,H=2,lt=3,dn=4,Et=5,Ti=6,fl=7,Ze=8,Ni=9,cr=10,tt=11,Go=12,cy=13,Vi=14,Rt=15,Fr=16,wi=17,Bn=18,Fl=19,sv=20,ar=21,Zu=22,Lr=23,Yt=24,Ci=25,ct=26,of=1;var Vr=7,hl=8,Ai=9,st=10;function lr(t){return Array.isArray(t)&&typeof t[of]=="object"}function Kn(t){return Array.isArray(t)&&t[of]===!0}function av(t){return(t.flags&4)!==0}function $i(t){return t.componentOffset>-1}function sf(t){return(t.flags&1)===1}function fn(t){return!!t.template}function pl(t){return(t[H]&512)!==0}function rs(t){return(t[H]&256)===256}var hd=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function lv(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var ur=(()=>{let t=()=>cv;return t.ngInherit=!0,t})();function cv(t){return t.type.prototype.ngOnChanges&&(t.setInput=rI),nI}function nI(){let t=dv(this),e=t?.current;if(e){let n=t.previous;if(n===Pr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function rI(t,e,n,r,i){let o=this.declaredInputs[r],s=dv(t)||iI(t,{previous:Pr,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new hd(c&&c.currentValue,n,l===Pr),lv(t,e,i,n)}var uv="__ngSimpleChanges__";function dv(t){return t[uv]||null}function iI(t,e){return t[uv]=e}var uy=null;var be=function(t,e=null,n){uy?.(t,e,n)},oI="svg",sI="math";function En(t){for(;Array.isArray(t);)t=t[Mn];return t}function aI(t){for(;Array.isArray(t);){if(typeof t[of]=="object")return t;t=t[Mn]}return null}function fv(t,e){return En(e[t])}function Gn(t,e){return En(e[t.index])}function af(t,e){return t.data[e]}function lI(t,e){return t[e]}function Cn(t,e){let n=e[t];return lr(n)?n:n[Mn]}function cI(t){return(t[H]&4)===4}function lf(t){return(t[H]&128)===128}function uI(t){return Kn(t[lt])}function ki(t,e){return e==null?null:t[e]}function hv(t){t[wi]=0}function cf(t){t[H]&1024||(t[H]|=1024,lf(t)&&ji(t))}function dI(t,e){for(;t>0;)e=e[Vi],t--;return e}function is(t){return!!(t[H]&9216||t[Yt]?.dirty)}function pd(t){t[cr].changeDetectionScheduler?.notify(8),t[H]&64&&(t[H]|=1024),is(t)&&ji(t)}function ji(t){t[cr].changeDetectionScheduler?.notify(0);let e=$r(t);for(;e!==null&&!(e[H]&8192||(e[H]|=8192,!lf(e)));)e=$r(e)}function pv(t,e){if(rs(t))throw new I(911,!1);t[ar]===null&&(t[ar]=[]),t[ar].push(e)}function fI(t,e){if(t[ar]===null)return;let n=t[ar].indexOf(e);n!==-1&&t[ar].splice(n,1)}function $r(t){let e=t[lt];return Kn(e)?e[lt]:e}function mv(t){return t[fl]??=[]}
vendor: 56,128 bytes, line 7
7function gv(t){return t.cleanup??=[]}function hI(t,e,n,r){let i=mv(e);i.push(n),t.firstCreatePass&&gv(t).push(r,i.length-1)}var J={lFrame:xv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var md=!1;function pI(){return J.lFrame.elementDepthCount}function mI(){J.lFrame.elementDepthCount++}function gI(){J.lFrame.elementDepthCount--}function yv(){return J.bindingsEnabled}function vv(){return J.skipHydrationRootTNode!==null}function yI(t){return J.skipHydrationRootTNode===t}function vI(){J.skipHydrationRootTNode=null}function ae(){return J.lFrame.lView}function ut(){return J.lFrame.tView}function Ue(t){return J.lFrame.contextLView=t,t[Ze]}function ze(t){return J.lFrame.contextLView=null,t}function Zt(){let t=_v();for(;t!==null&&t.type===64;)t=t.parent;return t}function _v(){return J.lFrame.currentTNode}function _I(){let t=J.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Bi(t,e){let n=J.lFrame;n.currentTNode=t,n.isParent=e}function bv(){return J.lFrame.isParent}function wv(){J.lFrame.isParent=!1}function bI(){return J.lFrame.contextLView}function Dv(){return md}function ml(t){let e=md;return md=t,e}function wI(){let t=J.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function DI(t){return J.lFrame.bindingIndex=t}function os(){return J.lFrame.bindingIndex++}function EI(t){let e=J.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function CI(){return J.lFrame.inI18n}function SI(t,e){let n=J.lFrame;n.bindingIndex=n.bindingRootIndex=t,gd(e)}function II(){return J.lFrame.currentDirectiveIndex}function gd(t){J.lFrame.currentDirectiveIndex=t}function Ev(t){let e=J.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Cv(){return J.lFrame.currentQueryIndex}function uf(t){J.lFrame.currentQueryIndex=t}function xI(t){let e=t[W];return e.type===2?e.declTNode:e.type===1?t[Et]:null}function Sv(t,e,n){if(n&oe.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(n&oe.Host);)if(i=xI(o),i===null||(o=o[Vi],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=J.lFrame=Iv();return r.currentTNode=e,r.lView=t,!0}function df(t){let e=Iv(),n=t[W];J.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Iv(){let t=J.lFrame,e=t===null?null:t.child;return e===null?xv(t):e}function xv(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 Mv(){let t=J.lFrame;return J.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Tv=Mv;function ff(){let t=Mv();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 MI(t){return(J.lFrame.contextLView=dI(t,J.lFrame.contextLView))[Ze]}function Hr(){return J.lFrame.selectedIndex}function jr(t){J.lFrame.selectedIndex=t}function Nv(){let t=J.lFrame;return af(t.tView,t.selectedIndex)}function TI(){return J.lFrame.currentNamespace}var Av=!0;function hf(){return Av}function pf(t){Av=t}function NI(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=cv(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}i&&(n.preOrderHooks??=[]).push(0-t,i),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function kv(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let o=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),l&&(t.viewHooks??=[]).push(-n,l),c&&((t.viewHooks??=[]).push(n,c),(t.viewCheckHooks??=[]).push(n,c)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function nl(t,e,n){Ov(t,e,3,n)}function rl(t,e,n,r){(t[H]&3)===n&&Ov(t,e,n,r)}function Qu(t,e){let n=t[H];(n&3)===e&&(n&=16383,n+=1,t[H]=n)}function Ov(t,e,n,r){let i=r!==void 0?t[wi]&65535:0,o=r??-1,s=e.length-1,a=0;for(let l=i;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],r!=null&&a>=r)break}else e[l]<0&&(t[wi]+=65536),(a<o||o==-1)&&(AI(t,n,e,l),t[wi]=(t[wi]&4294901760)+l+2),l++}function dy(t,e){be(4,t,e);let n=G(null);try{e.call(t)}finally{G(n),be(5,t,e)}}function AI(t,e,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=t[s];i?t[H]>>14<t[wi]>>16&&(t[H]&3)===e&&(t[H]+=16384,dy(a,o)):dy(a,o)}var Si=-1,Br=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r){this.factory=e,this.canSeeViewProviders=n,this.injectImpl=r}};function kI(t){return(t.flags&8)!==0}function OI(t){return(t.flags&16)!==0}function RI(t,e,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,o)}else{let o=i,s=n[++r];FI(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),r++}}return r}function PI(t){return t===3||t===4||t===6}function FI(t){return t.charCodeAt(0)===64}function Wo(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let i=e[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?fy(t,n,i,null,e[++r]):fy(t,n,i,null,null))}}return t}function fy(t,e,n,r,i){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===n){i!==null&&(t[o+1]=i);return}o++,i!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),i!==null&&t.splice(o++,0,i)}var Ju={},yd=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=Ol(r);let i=this.injector.get(e,Ju,r);return i!==Ju||n===Ju?i:this.parentInjector.get(e,n,r)}};function Rv(t){return t!==Si}function gl(t){return t&32767}function LI(t){return t>>16}function yl(t,e){let n=LI(t),r=e;for(;n>0;)r=r[Vi],n--;return r}var vd=!0;function hy(t){let e=vd;return vd=t,e}var VI=256,Pv=VI-1,Fv=5,$I=0,Dn={};function jI(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(qo)&&(r=n[qo]),r==null&&(r=n[qo]=$I++);let i=r&Pv,o=1<<i;e.data[t+(i>>Fv)]|=o}function vl(t,e){let n=Lv(t,e);if(n!==-1)return n;let r=e[W];r.firstCreatePass&&(t.injectorIndex=e.length,Xu(r.data,t),Xu(e,null),Xu(r.blueprint,null));let i=mf(t,e),o=t.injectorIndex;if(Rv(i)){let s=gl(i),a=yl(i,e),l=a[W].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=i,o}function Xu(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Lv(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function mf(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=Uv(i),r===null)return Si;if(n++,i=i[Vi],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Si}function _d(t,e,n){jI(t,e,n)}function Vv(t,e,n){if(n&oe.Optional||t!==void 0)return t;tf(e,"NodeInjector")}function $v(t,e,n,r){if(n&oe.Optional&&r===void 0&&(r=null),(n&(oe.Self|oe.Host))===0){let i=t[Ni],o=Kt(void 0);try{return i?i.get(e,r,n&oe.Optional):Qy(e,r,n&oe.Optional)}finally{Kt(o)}}return Vv(r,e,n)}function jv(t,e,n,r=oe.Default,i){if(t!==null){if(e[H]&2048&&!(r&oe.Self)){let s=HI(t,e,n,r,Dn);if(s!==Dn)return s}let o=Bv(t,e,n,r,Dn);if(o!==Dn)return o}return $v(e,n,r,i)}function Bv(t,e,n,r,i){let o=UI(n);if(typeof o=="function"){if(!Sv(e,t,r))return r&oe.Host?Vv(i,n,r):$v(e,n,r,i);try{let s;if(s=o(r),s==null&&!(r&oe.Optional))tf(n);else return s}finally{Tv()}}else if(typeof o=="number"){let s=null,a=Lv(t,e),l=Si,c=r&oe.Host?e[Rt][Et]:null;for((a===-1||r&oe.SkipSelf)&&(l=a===-1?mf(t,e):e[a+8],l===Si||!my(r,!1)?a=-1:(s=e[W],a=gl(l),e=yl(l,e)));a!==-1;){let u=e[W];if(py(o,a,u.data)){let f=BI(a,e,n,s,r,c);if(f!==Dn)return f}l=e[a+8],l!==Si&&my(r,e[W].data[a+8]===c)&&py(o,a,e)?(s=u,a=gl(l),e=yl(l,e)):a=-1}}return i}function BI(t,e,n,r,i,o){let s=e[W],a=s.data[t+8],l=r==null?$i(a)&&vd:r!=s&&(a.type&3)!==0,c=i&oe.Host&&o===a,u=il(a,s,n,l,c);return u!==null?Yo(e,s,u,a):Dn}function il(t,e,n,r,i){let o=t.providerIndexes,s=e.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,u=o>>20,f=r?a:a+u,h=i?a+u:c;for(let d=f;d<h;d++){let p=s[d];if(d<l&&n===p||d>=l&&p.type===n)return d}if(i){let d=s[l];if(d&&fn(d)&&d.type===n)return l}return null}function Yo(t,e,n,r){let i=t[n],o=e.data;if(i instanceof Br){let s=i;s.resolving&&Yy(xS(o[n]));let a=hy(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Kt(s.injectImpl):null,u=Sv(t,r,oe.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&NI(n,o[n],e)}finally{c!==null&&Kt(c),hy(a),s.resolving=!1,Tv()}}return i}function UI(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(qo)?t[qo]:void 0;return typeof e=="number"?e>=0?e&Pv:zI:e}function py(t,e,n){let r=1<<t;return!!(n[e+(t>>Fv)]&r)}function my(t,e){return!(t&oe.Self)&&!(t&oe.Host&&e)}var Rr=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return jv(this._tNode,this._lView,e,Ol(r),n)}};function zI(){return new Rr(Zt(),ae())}function qr(t){return kl(()=>{let e=t.prototype.constructor,n=e[al]||bd(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[al]||bd(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function bd(t){return Hy(t)?()=>{let e=bd(ht(t));return e&&e()}:Ii(t)}function HI(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[H]&2048&&!pl(s);){let a=Bv(o,s,n,r|oe.Self,Dn);if(a!==Dn)return a;let l=o.parent;if(!l){let c=s[sv];if(c){let u=c.get(n,Dn,r);if(u!==Dn)return u}l=Uv(s),s=s[Vi]}o=l}return i}function Uv(t){let e=t[W],n=e.type;return n===2?e.declTNode:n===1?t[Et]:null}function gy(t,e=null,n=null,r){let i=qI(t,e,n,r);return i.resolveInjectorInitializers(),i}function qI(t,e=null,n=null,r,i=new Set){let o=[n||Gt,qS(t)];return r=r||(typeof t=="object"?void 0:Wt(t)),new Ko(o,e||Pl(),r||null,i)}var xe=class t{static THROW_IF_NOT_FOUND=Or;static NULL=new dl;static create(e,n){if(Array.isArray(e))return gy({name:""},n,e,"");{let r=e.name??"";return gy({name:r},e.parent,e.providers,r)}}static \u0275prov=A({token:t,providedIn:"any",factory:()=>U(Xy)});static __NG_ELEMENT_ID__=-1};var KI=new P("");KI.__NG_ELEMENT_ID__=t=>{let e=Zt();if(e===null)throw new I(204,!1);if(e.type&2)return e.value;if(t&oe.Optional)return null;throw new I(204,!1)};var zv=!1,Qt=(()=>{class t{static __NG_ELEMENT_ID__=GI;static __NG_ENV_ID__=n=>n}return t})(),_l=class extends Qt{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return pv(this._lView,e),()=>fI(this._lView,e)}};function GI(){return new _l(ae())}var Sn=class{},Ll=new P("",{providedIn:"root",factory:()=>!1});var Hv=new P(""),gf=new P(""),Ui=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Lo(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=A({token:t,providedIn:"root",factory:()=>new t})}return t})();var wd=class extends de{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,ov()&&(this.destroyRef=y(Qt,{optional:!0})??void 0,this.pendingTasks=y(Ui,{optional:!0})??void 0)}emit(e){let n=G(null);try{super.next(e)}finally{G(n)}}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}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 Ne&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{e(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ke=wd;function Zo(...t){}function qv(t){let e,n;function r(){t=Zo;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 yy(t){return queueMicrotask(()=>t()),()=>{t=Zo}}var yf="isAngularZone",bl=yf+"_ID",WI=0,se=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ke(!1);onMicrotaskEmpty=new ke(!1);onStable=new ke(!1);onError=new ke(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=zv}=e;if(typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,QI(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(yf)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new I(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,YI,Zo,Zo);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)}},YI={};function vf(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 ZI(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){qv(()=>{t.callbackScheduled=!1,Dd(t),t.isCheckStableRunning=!0,vf(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Dd(t)}function QI(t){let e=()=>{ZI(t)},n=WI++;t._inner=t._inner.fork({name:"angular",properties:{[yf]:!0,[bl]:n,[bl+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(JI(l))return r.invokeTask(o,s,a,l);try{return vy(t),r.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),_y(t)}},onInvoke:(r,i,o,s,a,l,c)=>{try{return vy(t),r.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!XI(l)&&e(),_y(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Dd(t),vf(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Dd(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function vy(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _y(t){t._nesting--,vf(t)}var wl=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ke;onMicrotaskEmpty=new ke;onStable=new ke;onError=new ke;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 JI(t){return Kv(t,"__ignore_ng_zone__")}function XI(t){return Kv(t,"__scheduler_tick__")}function Kv(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var hn=class{_console=console;handleError(e){this._console.error("ERROR",e)}},ex=new P("",{providedIn:"root",factory:()=>{let t=y(se),e=y(hn);return n=>t.runOutsideAngular(()=>e.handleError(n))}}),Dl=class{destroyed=!1;listeners=null;errorHandler=y(hn,{optional:!0});destroyRef=y(Qt);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new I(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let n=this.listeners?.indexOf(e);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(e){if(this.destroyed){console.warn(ts(953,!1));return}if(this.listeners===null)return;let n=G(null);try{for(let r of this.listeners)try{r(e)}catch(i){this.errorHandler?.handleError(i)}}finally{G(n)}}};function rt(t){return new Dl}function by(t,e){return zy(t,e)}function tx(t){return zy(Al,t)}var Qe=(by.required=tx,by);function nx(){return zi(Zt(),ae())}function zi(t,e){return new Oe(Gn(t,e))}var Oe=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=nx}return t})();function rx(t){return t instanceof Oe?t.nativeElement:t}function _f(t){return typeof t=="function"&&t[Ot]!==void 0}function Ct(t,e){let n=Mu(t,e?.equal),r=n[Ot];return n.set=i=>ui(r,i),n.update=i=>Tu(r,i),n.asReadonly=Gv.bind(n),n}function Gv(){let t=this[Ot];if(t.readonlyFn===void 0){let e=()=>this();e[Ot]=t,t.readonlyFn=e}return t.readonlyFn}function ix(){return this._results[Symbol.iterator]()}var Ed=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new de}constructor(e=!1){this._emitDistinctChangesOnly=e}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=VS(e);(this._changesDetected=!LS(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=ix};function Wv(t){return(t.flags&128)===128}var Yv=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Yv||{}),Zv=new Map,ox=0;function sx(){return ox++}function ax(t){Zv.set(t[Fl],t)}function Cd(t){Zv.delete(t[Fl])}var wy="__ngContext__";function ss(t,e){lr(e)?(t[wy]=e[Fl],ax(e)):t[wy]=e}function Qv(t){return Xv(t[Go])}function Jv(t){return Xv(t[dn])}function Xv(t){for(;t!==null&&!Kn(t);)t=t[dn];return t}var Sd;function e_(t){Sd=t}function lx(){if(Sd!==void 0)return Sd;if(typeof document<"u")return document;throw new I(210,!1)}var as=new P("",{providedIn:"root",factory:()=>cx}),cx="ng",bf=new P(""),pn=new P("",{providedIn:"platform",factory:()=>"unknown"});var ls=new P(""),cs=new P("",{providedIn:"root",factory:()=>lx().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ux="h",dx="b";var t_=!1,fx=new P("",{providedIn:"root",factory:()=>t_});var wf=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(wf||{}),Hi=new P(""),Dy=new Set;function Tn(t){Dy.has(t)||(Dy.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Df=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=hx}return t})();function hx(){return new Df(ae(),Zt())}var Di=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Di||{}),n_=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=A({token:t,providedIn:"root",factory:()=>new t})}return t})(),px=[Di.EarlyRead,Di.Write,Di.MixedReadWrite,Di.Read],mx=(()=>{class t{ngZone=y(se);scheduler=y(Sn);errorHandler=y(hn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){y(Hi,{optional:!0})}execute(){let n=this.sequences.size>0;n&&be(16),this.executing=!0;for(let r of px)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&be(17)}register(n){let{view:r}=n;r!==void 0?((r[Ci]??=[]).push(n),ji(r),r[H]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(wf.AFTER_NEXT_RENDER,n):n()}static \u0275prov=A({token:t,providedIn:"root",factory:()=>new t})}return t})(),Id=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,n,r,i,o,s=null){this.impl=e,this.hooks=n,this.view=r,this.once=i,this.snapshot=s,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[Ci];e&&(this.view[Ci]=e.filter(n=>n!==this))}};function Ef(t,e){!e?.injector&&qn(Ef);let n=e?.injector??y(xe);return Tn("NgAfterRender"),r_(t,n,e,!1)}function qi(t,e){!e?.injector&&qn(qi);let n=e?.injector??y(xe);return Tn("NgAfterNextRender"),r_(t,n,e,!0)}function gx(t,e){if(t instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[e]=t,n}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function r_(t,e,n,r){let i=e.get(n_);i.impl??=e.get(mx);let o=e.get(Hi,null,{optional:!0}),s=n?.phase??Di.MixedReadWrite,a=n?.manualCleanup!==!0?e.get(Qt):null,l=e.get(Df,null,{optional:!0}),c=new Id(i.impl,gx(t,s),l?.view,r,a,o?.snapshot(null));return i.impl.register(c),c}var yx=()=>null;function i_(t,e,n=!1){return yx(t,e,n)}function o_(t,e){let n=t.contentQueries;if(n!==null){let r=G(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=t.data[s];uf(o),a.contentQueries(2,e[s],s)}}}finally{G(r)}}}function xd(t,e,n){uf(0);let r=G(null);try{e(t,n)}finally{G(r)}}function s_(t,e,n){if(av(e)){let r=G(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{G(r)}}}var In=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(In||{});var Md=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${_S})`}};function Cf(t){return t instanceof Md?t.changingThisBreaksApplicationSecurity:t}function vx(t,e,n){let r=t.length;for(;;){let i=t.indexOf(e,n);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}var a_="ng-template";function _x(t,e,n,r){let i=0;if(r){for(;i<e.length&&typeof e[i]=="string";i+=2)if(e[i]==="class"&&vx(e[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Sf(t))return!1;if(i=e.indexOf(1,i),i>-1){let o;for(;++i<e.length&&typeof(o=e[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Sf(t){return t.type===4&&t.value!==a_}function bx(t,e,n){let r=t.type===4&&!n?a_:t.value;return e===r}function wx(t,e,n){let r=4,i=t.attrs,o=i!==null?Cx(i):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!un(r)&&!un(l))return!1;if(s&&un(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!bx(t,l,n)||l===""&&e.length===1){if(un(r))return!1;s=!0}}else if(r&8){if(i===null||!_x(t,i,l,n)){if(un(r))return!1;s=!0}}else{let c=e[++a],u=Dx(l,i,Sf(t),n);if(u===-1){if(un(r))return!1;s=!0;continue}if(c!==""){let f;if(u>o?f="":f=i[u+1].toLowerCase(),r&2&&c!==f){if(un(r))return!1;s=!0}}}}return un(r)||s}function un(t){return(t&1)===0}function Dx(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){let s=e[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++i];for(;typeof a=="string";)a=e[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return Sx(e,t)}function l_(t,e,n=!1){for(let r=0;r<e.length;r++)if(wx(t,e[r],n))return!0;return!1}function Ex(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function Cx(t){for(let e=0;e<t.length;e++){let n=t[e];if(PI(n))return e}return t.length}function Sx(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function Ix(t,e){e:for(let n=0;n<e.length;n++){let r=e[n];if(t.length===r.length){for(let i=0;i<t.length;i++)if(t[i]!==r[i])continue e;return!0}}return!1}function Ey(t,e){return t?":not("+e.trim()+")":e}function xx(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!un(s)&&(e+=Ey(o,i),i=""),r=s,o=o||!un(r);n++}return i!==""&&(e+=Ey(o,i)),e}function Mx(t){return t.map(xx).join(",")}function Tx(t){let e=[],n=[],r=1,i=2;for(;r<t.length;){let o=t[r];if(typeof o=="string")i===2?o!==""&&e.push(o,t[++r]):i===8&&n.push(o);else{if(!un(i))break;i=o}r++}return n.length&&e.push(1,...n),e}var dr={};function Nx(t,e){return t.createText(e)}function Ax(t,e,n){t.setValue(e,n)}function c_(t,e,n){return t.createElement(e,n)}function El(t,e,n,r,i){t.insertBefore(e,n,r,i)}function u_(t,e,n){t.appendChild(e,n)}function Cy(t,e,n,r,i){r!==null?El(t,e,n,r,i):u_(t,e,n)}function kx(t,e,n){t.removeChild(null,e,n)}function Ox(t,e,n){t.setAttribute(e,"style",n)}function Rx(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function d_(t,e,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&RI(t,e,r),i!==null&&Rx(t,e,i),o!==null&&Ox(t,e,o)}function If(t,e,n,r,i,o,s,a,l,c,u){let f=ct+r,h=f+i,d=Px(f,h),p=typeof c=="function"?c():c;return d[W]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1,ssrId:u}}function Px(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:dr);return n}function Fx(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=If(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function xf(t,e,n,r,i,o,s,a,l,c,u){let f=e.blueprint.slice();return f[Mn]=i,f[H]=r|4|128|8|64|1024,(c!==null||t&&t[H]&2048)&&(f[H]|=2048),hv(f),f[lt]=f[Vi]=t,f[Ze]=n,f[cr]=s||t&&t[cr],f[tt]=a||t&&t[tt],f[Ni]=l||t&&t[Ni]||null,f[Et]=o,f[Fl]=sx(),f[Ti]=u,f[sv]=c,f[Rt]=e.type==2?t[Rt]:f,f}function Lx(t,e,n){let r=Gn(e,t),i=Fx(n),o=t[cr].rendererFactory,s=Mf(t,xf(t,i,null,f_(n),r,e,null,o.createRenderer(r,n),null,null,null));return t[e.index]=s}function f_(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function h_(t,e,n,r){if(n===0)return-1;let i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function Mf(t,e){return t[Go]?t[cy][dn]=e:t[Go]=e,t[cy]=e,e}function ge(t=1){p_(ut(),ae(),Hr()+t,!1)}function p_(t,e,n,r){if(!r)if((e[H]&3)===3){let o=t.preOrderCheckHooks;o!==null&&nl(e,o,n)}else{let o=t.preOrderHooks;o!==null&&rl(e,o,0,n)}jr(n)}var Vl=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Vl||{});function Td(t,e,n,r){let i=G(null);try{let[o,s,a]=t.inputs[n],l=null;(s&Vl.SignalBased)!==0&&(l=e[o][Ot]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,l,r,n,o):lv(e,l,o,r)}finally{G(i)}}function m_(t,e,n,r,i){let o=Hr(),s=r&2;try{jr(-1),s&&e.length>ct&&p_(t,e,ct,!1),be(s?2:0,i),n(r,i)}finally{jr(o),be(s?3:1,i)}}function Tf(t,e,n){zx(t,e,n),(n.flags&64)===64&&Hx(t,e,n)}function g_(t,e,n=Gn){let r=e.localNames;if(r!==null){let i=e.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(e,t):t[s];t[i++]=a}}}function Vx(t,e,n,r){let o=r.get(fx,t_)||n===In.ShadowDom,s=t.selectRootElement(e,o);return $x(s),s}function $x(t){jx(t)}var jx=()=>null;function Bx(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function y_(t,e,n,r,i,o,s,a){if(!a&&Nf(e,t,n,r,i)){$i(e)&&Ux(n,e.index);return}if(e.type&3){let l=Gn(e,n);r=Bx(r),i=s!=null?s(i,e.value||"",r):i,o.setProperty(l,r,i)}else e.type&12}function Ux(t,e){let n=Cn(e,t);n[H]&16||(n[H]|=64)}function zx(t,e,n){let r=n.directiveStart,i=n.directiveEnd;$i(n)&&Lx(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||vl(n,e);let o=n.initialInputs;for(let s=r;s<i;s++){let a=t.data[s],l=Yo(e,t,s,n);if(ss(l,e),o!==null&&Kx(e,s-r,l,a,n,o),fn(a)){let c=Cn(n.index,e);c[Ze]=Yo(e,t,s,n)}}}function Hx(t,e,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=II();try{jr(o);for(let a=r;a<i;a++){let l=t.data[a],c=e[a];gd(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&qx(l,c)}}finally{jr(-1),gd(s)}}function qx(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function v_(t,e){let n=t.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];l_(e,o.selectors,!1)&&(r??=[],fn(o)?r.unshift(o):r.push(o))}return r}function Kx(t,e,n,r,i,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];Td(r,n,l,c)}}function Gx(t,e,n){return(t===null||fn(t))&&(n=aI(n[e.index])),n[tt]}function Wx(t,e){let n=t[Ni],r=n?n.get(hn,null):null;r&&r.handleError(e)}function Nf(t,e,n,r,i){let o=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],u=s[l+1],f=e.data[c];Td(f,n[c],u,i),a=!0}if(o)for(let l of o){let c=n[l],u=e.data[l];Td(u,c,r,i),a=!0}return a}function Yx(t,e){let n=Cn(e,t),r=n[W];Zx(r,n);let i=n[Mn];i!==null&&n[Ti]===null&&(n[Ti]=i_(i,n[Ni])),be(18),Af(r,n,n[Ze]),be(19,n[Ze])}function Zx(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function Af(t,e,n){df(e);try{let r=t.viewQuery;r!==null&&xd(1,r,n);let i=t.template;i!==null&&m_(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Bn]?.finishViewCreation(t),t.staticContentQueries&&o_(t,e),t.staticViewQueries&&xd(2,t.viewQuery,n);let o=t.components;o!==null&&Qx(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[H]&=-5,ff()}}function Qx(t,e){for(let n=0;n<e.length;n++)Yx(t,e[n])}function us(t,e,n,r){let i=G(null);try{let o=e.tView,a=t[H]&4096?4096:16,l=xf(t,o,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=t[e.index];l[Fr]=c;let u=t[Bn];return u!==null&&(l[Bn]=u.createEmbeddedView(o)),Af(o,l,n),l}finally{G(i)}}function Oi(t,e){return!e||e.firstChild===null||Wv(t)}var Jx;function kf(t,e){return Jx(t,e)}var Un=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Un||{});function Of(t){return(t.flags&32)===32}function Ei(t,e,n,r,i){if(r!=null){let o,s=!1;Kn(r)?o=r:lr(r)&&(s=!0,r=r[Mn]);let a=En(r);t===0&&n!==null?i==null?u_(e,n,a):El(e,n,a,i||null,!0):t===1&&n!==null?El(e,n,a,i||null,!0):t===2?kx(e,a,s):t===3&&e.destroyNode(a),o!=null&&lM(e,t,o,n,i)}}function Xx(t,e){__(t,e),e[Mn]=null,e[Et]=null}function eM(t,e,n,r,i,o){r[Mn]=i,r[Et]=e,jl(t,r,n,1,i,o)}function __(t,e){e[cr].changeDetectionScheduler?.notify(9),jl(t,e,e[tt],2,null,null)}function tM(t){let e=t[Go];if(!e)return ed(t[W],t);for(;e;){let n=null;if(lr(e))n=e[Go];else{let r=e[st];r&&(n=r)}if(!n){for(;e&&!e[dn]&&e!==t;)lr(e)&&ed(e[W],e),e=e[lt];e===null&&(e=t),lr(e)&&ed(e[W],e),n=e&&e[dn]}e=n}}function Rf(t,e){let n=t[Ai],r=n.indexOf(e);n.splice(r,1)}function $l(t,e){if(rs(e))return;let n=e[tt];n.destroyNode&&jl(t,e,n,3,null,null),tM(e)}function ed(t,e){if(rs(e))return;let n=G(null);try{e[H]&=-129,e[H]|=256,e[Yt]&&Ro(e[Yt]),rM(t,e),nM(t,e),e[W].type===1&&e[tt].destroy();let r=e[Fr];if(r!==null&&Kn(e[lt])){r!==e[lt]&&Rf(r,e);let i=e[Bn];i!==null&&i.detachView(t)}Cd(e)}finally{G(n)}}function nM(t,e){let n=t.cleanup,r=e[fl];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(e[fl]=null);let i=e[ar];if(i!==null){e[ar]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=e[Lr];if(o!==null){e[Lr]=null;for(let s of o)s.destroy()}}function rM(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=e[n[r]];if(!(i instanceof Br)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];be(4,a,l);try{l.call(a)}finally{be(5,a,l)}}else{be(4,i,o);try{o.call(i)}finally{be(5,i,o)}}}}}function b_(t,e,n){return iM(t,e.parent,n)}function iM(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[Mn];if($i(r)){let{encapsulation:i}=t.data[r.directiveStart+r.componentOffset];if(i===In.None||i===In.Emulated)return null}return Gn(r,n)}function w_(t,e,n){return sM(t,e,n)}function oM(t,e,n){return t.type&40?Gn(t,n):null}var sM=oM,Sy;function Pf(t,e,n,r){let i=b_(t,r,e),o=e[tt],s=r.parent||e[Et],a=w_(s,r,e);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Cy(o,i,n[l],a,!1);else Cy(o,i,n,a,!1);Sy!==void 0&&Sy(o,r,e,n,i)}function Ho(t,e){if(e!==null){let n=e.type;if(n&3)return Gn(e,t);if(n&4)return Nd(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Ho(t,r);{let i=t[e.index];return Kn(i)?Nd(-1,i):En(i)}}else{if(n&128)return Ho(t,e.next);if(n&32)return kf(e,t)()||En(t[e.index]);{let r=D_(t,e);if(r!==null){if(Array.isArray(r))return r[0];let i=$r(t[Rt]);return Ho(i,r)}else return Ho(t,e.next)}}}return null}function D_(t,e){if(e!==null){let r=t[Rt][Et],i=e.projection;return r.projection[i]}return null}function Nd(t,e){let n=st+t+1;if(n<e.length){let r=e[n],i=r[W].firstChild;if(i!==null)return Ho(r,i)}return e[Vr]}function Ff(t,e,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&e===0&&(a&&ss(En(a),r),n.flags|=2),!Of(n))if(l&8)Ff(t,e,n.child,r,i,o,!1),Ei(e,t,i,a,o);else if(l&32){let c=kf(n,r),u;for(;u=c();)Ei(e,t,i,u,o);Ei(e,t,i,a,o)}else l&16?E_(t,e,r,n,i,o):Ei(e,t,i,a,o);n=s?n.projectionNext:n.next}}function jl(t,e,n,r,i,o){Ff(n,r,t.firstChild,e,i,o,!1)}function aM(t,e,n){let r=e[tt],i=b_(t,n,e),o=n.parent||e[Et],s=w_(o,n,e);E_(r,0,e,n,i,s)}function E_(t,e,n,r,i,o){let s=n[Rt],l=s[Et].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];Ei(e,t,i,u,o)}else{let c=l,u=s[lt];Wv(r)&&(c.flags|=128),Ff(t,e,c,u,i,o,!0)}}function lM(t,e,n,r,i){let o=n[Vr],s=En(n);o!==s&&Ei(e,t,r,o,i);for(let a=st;a<n.length;a++){let l=n[a];jl(l[W],l,t,e,r,o)}}function cM(t,e,n,r,i){if(e)i?t.addClass(n,r):t.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Un.DashCase;i==null?t.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Un.Important),t.setStyle(n,r,i,o))}}function Cl(t,e,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=e[n.index];o!==null&&r.push(En(o)),Kn(o)&&uM(o,r);let s=n.type;if(s&8)Cl(t,e,n.child,r);else if(s&32){let a=kf(n,e),l;for(;l=a();)r.push(l)}else if(s&16){let a=D_(e,n);if(Array.isArray(a))r.push(...a);else{let l=$r(e[Rt]);Cl(l[W],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function uM(t,e){for(let n=st;n<t.length;n++){let r=t[n],i=r[W].firstChild;i!==null&&Cl(r[W],r,i,e)}t[Vr]!==t[Mn]&&e.push(t[Vr])}function C_(t){if(t[Ci]!==null){for(let e of t[Ci])e.impl.addSequence(e);t[Ci].length=0}}var S_=[];function dM(t){return t[Yt]??fM(t)}function fM(t){let e=S_.pop()??Object.create(pM);return e.lView=t,e}function hM(t){t.lView[Yt]!==t&&(t.lView=null,S_.push(t))}var pM=w(m({},li),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{ji(t.lView)},consumerOnSignalRead(){this.lView[Yt]=this}});function mM(t){let e=t[Yt]??Object.create(gM);return e.lView=t,e}var gM=w(m({},li),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=$r(t.lView);for(;e&&!I_(e[W]);)e=$r(e);e&&cf(e)},consumerOnSignalRead(){this.lView[Yt]=this}});function I_(t){return t.type!==2}function x_(t){if(t[Lr]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Lr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[H]&8192)}}var yM=100;function M_(t,e=!0,n=0){let i=t[cr].rendererFactory,o=!1;o||i.begin?.();try{vM(t,n)}catch(s){throw e&&Wx(t,s),s}finally{o||i.end?.()}}function vM(t,e){let n=Dv();try{ml(!0),Ad(t,e);let r=0;for(;is(t);){if(r===yM)throw new I(103,!1);r++,Ad(t,1)}}finally{ml(n)}}function _M(t,e,n,r){if(rs(e))return;let i=e[H],o=!1,s=!1;df(e);let a=!0,l=null,c=null;o||(I_(t)?(c=dM(e),l=Oo(c)):Du()===null?(a=!1,c=mM(e),l=Oo(c)):e[Yt]&&(Ro(e[Yt]),e[Yt]=null));try{hv(e),DI(t.bindingStartIndex),n!==null&&m_(t,e,n,2,r);let u=(i&3)===3;if(!o)if(u){let d=t.preOrderCheckHooks;d!==null&&nl(e,d,null)}else{let d=t.preOrderHooks;d!==null&&rl(e,d,0,null),Qu(e,0)}if(s||bM(e),x_(e),T_(e,0),t.contentQueries!==null&&o_(t,e),!o)if(u){let d=t.contentCheckHooks;d!==null&&nl(e,d)}else{let d=t.contentHooks;d!==null&&rl(e,d,1),Qu(e,1)}DM(t,e);let f=t.components;f!==null&&A_(e,f,0);let h=t.viewQuery;if(h!==null&&xd(2,h,r),!o)if(u){let d=t.viewCheckHooks;d!==null&&nl(e,d)}else{let d=t.viewHooks;d!==null&&rl(e,d,2),Qu(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Zu]){for(let d of e[Zu])d();e[Zu]=null}o||(C_(e),e[H]&=-73)}catch(u){throw o||ji(e),u}finally{c!==null&&(ba(c,l),a&&hM(c)),ff()}}function T_(t,e){for(let n=Qv(t);n!==null;n=Jv(n))for(let r=st;r<n.length;r++){let i=n[r];N_(i,e)}}function bM(t){for(let e=Qv(t);e!==null;e=Jv(e)){if(!(e[H]&2))continue;let n=e[Ai];for(let r=0;r<n.length;r++){let i=n[r];cf(i)}}}function wM(t,e,n){be(18);let r=Cn(e,t);N_(r,n),be(19,r[Ze])}function N_(t,e){lf(t)&&Ad(t,e)}function Ad(t,e){let r=t[W],i=t[H],o=t[Yt],s=!!(e===0&&i&16);if(s||=!!(i&64&&e===0),s||=!!(i&1024),s||=!!(o?.dirty&&wa(o)),s||=!1,o&&(o.dirty=!1),t[H]&=-9217,s)_M(r,t,r.template,t[Ze]);else if(i&8192){x_(t),T_(t,1);let a=r.components;a!==null&&A_(t,a,1),C_(t)}}function A_(t,e,n){for(let r=0;r<e.length;r++)wM(t,e[r],n)}function DM(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)jr(~i);else{let o=i,s=n[++r],a=n[++r];SI(s,o);let l=e[o];be(24,l),a(2,l),be(25,l)}}}finally{jr(-1)}}function Lf(t,e){let n=Dv()?64:1088;for(t[cr].changeDetectionScheduler?.notify(e);t;){t[H]|=n;let r=$r(t);if(pl(t)&&!r)return t;t=r}return null}function k_(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function O_(t,e){let n=st+e;if(n<t.length)return t[n]}function ds(t,e,n,r=!0){let i=e[W];if(EM(i,e,t,n),r){let s=Nd(n,t),a=e[tt],l=a.parentNode(t[Vr]);l!==null&&eM(i,t[Et],a,e,l,s)}let o=e[Ti];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function R_(t,e){let n=Qo(t,e);return n!==void 0&&$l(n[W],n),n}function Qo(t,e){if(t.length<=st)return;let n=st+e,r=t[n];if(r){let i=r[Fr];i!==null&&i!==t&&Rf(i,r),e>0&&(t[n-1][dn]=r[dn]);let o=ul(t,st+e);Xx(r[W],r);let s=o[Bn];s!==null&&s.detachView(o[W]),r[lt]=null,r[dn]=null,r[H]&=-129}return r}function EM(t,e,n,r){let i=st+r,o=n.length;r>0&&(n[i-1][dn]=e),r<o-st?(e[dn]=n[i],Jy(n,st+r,e)):(n.push(e),e[dn]=null),e[lt]=n;let s=e[Fr];s!==null&&n!==s&&P_(s,e);let a=e[Bn];a!==null&&a.insertView(t),pd(e),e[H]|=128}function P_(t,e){let n=t[Ai],r=e[lt];if(lr(r))t[H]|=2;else{let i=r[lt][Rt];e[Rt]!==i&&(t[H]|=2)}n===null?t[Ai]=[e]:n.push(e)}var Jo=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,n=e[W];return Cl(n,e,n.firstChild,[])}constructor(e,n,r=!0){this._lView=e,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[Ze]}set context(e){this._lView[Ze]=e}get destroyed(){return rs(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[lt];if(Kn(e)){let n=e[hl],r=n?n.indexOf(this):-1;r>-1&&(Qo(e,r),ul(n,r))}this._attachedToViewContainer=!1}$l(this._lView[W],this._lView)}onDestroy(e){pv(this._lView,e)}markForCheck(){Lf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[H]&=-129}reattach(){pd(this._lView),this._lView[H]|=128}detectChanges(){this._lView[H]|=1024,M_(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=pl(this._lView),n=this._lView[Fr];n!==null&&!e&&Rf(n,this._lView),__(this._lView[W],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=e;let n=pl(this._lView),r=this._lView[Fr];r!==null&&!n&&P_(r,this._lView),pd(this._lView)}};function F_(t){return is(t._lView)||!!(t._lView[H]&64)}function L_(t){cf(t._cdRefInjectingView||t._lView)}var zn=(()=>{class t{static __NG_ELEMENT_ID__=IM}return t})(),CM=zn,SM=class extends CM{_declarationLView;_declarationTContainer;elementRef;constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,r){let i=us(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:r});return new Jo(i)}};function IM(){return Vf(Zt(),ae())}function Vf(t,e){return t.type&4?new SM(e,t,zi(t,e)):null}function fs(t,e,n,r,i){let o=t.data[e];if(o===null)o=xM(t,e,n,r,i),CI()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=_I();o.injectorIndex=s===null?-1:s.injectorIndex}return Bi(o,!0),o}function xM(t,e,n,r,i){let o=_v(),s=bv(),a=s?o:o&&o.parent,l=t.data[e]=TM(t,a,n,e,r,i);return MM(t,l,o,s),l}function MM(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function TM(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return vv()&&(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:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex: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}}var I3=new RegExp(`^(\\d+)*(${dx}|${ux})*(.*)`);var NM=()=>null;function Ri(t,e){return NM(t,e)}var AM=class{},V_=class{},kd=class{resolveComponentFactory(e){throw Error(`No component factory found for ${Wt(e)}.`)}},Ki=class{static NULL=new kd},pt=class{},Gi=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>kM()}return t})();function kM(){let t=ae(),e=Zt(),n=Cn(e.index,t);return(lr(n)?n:t)[tt]}var OM=(()=>{class t{static \u0275prov=A({token:t,providedIn:"root",factory:()=>null})}return t})();function Iy(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)i=ny(i,a);else if(o==2){let l=a,c=e[++s];r=ny(r,l+": "+c+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function He(t,e=oe.Default){let n=ae();if(n===null)return U(t,e);let r=Zt();return jv(r,n,ht(t),e)}function $_(t,e,n,r,i){let o=r===null?null:{"":-1},s=i(t,n);if(s!==null){let a,l=null,c=null,u=PM(s);u===null?a=s:[a,l,c]=u,VM(t,e,n,a,o,l,c)}o!==null&&r!==null&&RM(n,r,o)}function RM(t,e,n){let r=t.localNames=[];for(let i=0;i<e.length;i+=2){let o=n[e[i+1]];if(o==null)throw new I(-301,!1);r.push(e[i],o)}}function PM(t){let e=null,n=!1;for(let s=0;s<t.length;s++){let a=t[s];if(s===0&&fn(a)&&(e=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of t)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,FM(s,r,o,i)),s===e&&(r??=[],r.push(s));return r!==null?(r.push(...e===null?t:t.slice(1)),[r,i,o]):null}function FM(t,e,n,r){let i=e.length;t.findHostDirectiveDefs(t,e,r),n.set(t,[i,e.length-1])}function LM(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function VM(t,e,n,r,i,o,s){let a=r.length,l=!1;for(let h=0;h<a;h++){let d=r[h];!l&&fn(d)&&(l=!0,LM(t,n,h)),_d(vl(n,e),t,d.type)}HM(n,t.data.length,a);for(let h=0;h<a;h++){let d=r[h];d.providersResolver&&d.providersResolver(d)}let c=!1,u=!1,f=h_(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let d=r[h];if(n.mergedAttrs=Wo(n.mergedAttrs,d.hostAttrs),jM(t,n,e,f,d),zM(f,d,i),s!==null&&s.has(d)){let[g,b]=s.get(d);n.directiveToIndex.set(d.type,[f,g+n.directiveStart,b+n.directiveStart])}else(o===null||!o.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let p=d.type.prototype;!c&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),c=!0),!u&&(p.ngOnChanges||p.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),u=!0),f++}$M(t,n,o)}function $M(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let i=t.data[r];if(n===null||!n.has(i))xy(0,e,i,r),xy(1,e,i,r),Ty(e,r,!1);else{let o=n.get(i);My(0,e,o,r),My(1,e,o,r),Ty(e,r,!0)}}}function xy(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[o]??=[],s[o].push(r),j_(e,o)}}function My(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),j_(e,s)}}function j_(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function Ty(t,e,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=t;if(r===null||!n&&i===null||n&&o===null||Sf(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let c=i[l];for(let u of c)if(u===e){s??=[],s.push(l,r[a+1]);break}}else if(n&&o.hasOwnProperty(l)){let c=o[l];for(let u=0;u<c.length;u+=2)if(c[u]===e){s??=[],s.push(c[u+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function jM(t,e,n,r,i){t.data[r]=i;let o=i.factory||(i.factory=Ii(i.type,!0)),s=new Br(o,fn(i),He);t.blueprint[r]=s,n[r]=s,BM(t,e,r,h_(t,n,i.hostVars,dr),i)}function BM(t,e,n,r,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;UM(s)!=a&&s.push(a),s.push(n,r,o)}}function UM(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function zM(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;fn(e)&&(n[""]=t)}}function HM(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function B_(t,e,n,r,i,o,s,a){let l=e.consts,c=ki(l,s),u=fs(e,t,2,r,c);return o&&$_(e,n,u,ki(l,a),i),u.mergedAttrs=Wo(u.mergedAttrs,u.attrs),u.attrs!==null&&Iy(u,u.attrs,!1),u.mergedAttrs!==null&&Iy(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function U_(t,e){kv(t,e),av(e)&&t.queries.elementEnd(e)}var Od=class extends Ki{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let n=xi(e);return new Xo(n,this.ngModule)}};function qM(t){return Object.keys(t).map(e=>{let[n,r,i]=t[e],o={propName:n,templateName:e,isSignal:(r&Vl.SignalBased)!==0};return i&&(o.transform=i),o})}function KM(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function GM(t,e,n){let r=e instanceof at?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new yd(n,r):n}function WM(t){let e=t.get(pt,null);if(e===null)throw new I(407,!1);let n=t.get(OM,null),r=t.get(Sn,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r}}function YM(t,e){let n=(t.selectors[0][0]||"div").toLowerCase();return c_(e,n,n==="svg"?oI:n==="math"?sI:null)}var Xo=class extends V_{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=qM(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=KM(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=Mx(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,i){be(22);let o=G(null);try{let s=this.componentDef,a=r?["ng-version","19.2.4"]:Tx(this.componentDef.selectors[0]),l=If(0,null,null,1,0,null,null,null,null,[a],null),c=GM(s,i||this.ngModule,e),u=WM(c),f=u.rendererFactory.createRenderer(null,s),h=r?Vx(f,r,s.encapsulation,c):YM(s,f),d=xf(null,l,null,512|f_(s),null,null,u,f,c,null,i_(h,c,!0));d[ct]=h,df(d);let p=null;try{let g=B_(ct,l,d,"#host",()=>[this.componentDef],!0,0);h&&(d_(f,h,g),ss(h,d)),Tf(l,d,g),s_(l,g,d),U_(l,g),n!==void 0&&ZM(g,this.ngContentSelectors,n),p=Cn(g.index,d),d[Ze]=p[Ze],Af(l,d,null)}catch(g){throw p!==null&&Cd(p),Cd(d),g}finally{be(23),ff()}return new Rd(this.componentType,d)}finally{G(o)}}},Rd=class extends AM{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n){super(),this._rootLView=n,this._tNode=af(n[W],ct),this.location=zi(this._tNode,n),this.instance=Cn(this._tNode.index,n)[Ze],this.hostView=this.changeDetectorRef=new Jo(n,void 0,!1),this.componentType=e}setInput(e,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let i=this._rootLView,o=Nf(r,i[W],i,e,n);this.previousInputValues.set(e,n);let s=Cn(r.index,i);Lf(s,1)}get injector(){return new Rr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function ZM(t,e,n){let r=t.projection=[];for(let i=0;i<e.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var fr=(()=>{class t{static __NG_ELEMENT_ID__=QM}return t})();function QM(){let t=Zt();return H_(t,ae())}var JM=fr,z_=class extends JM{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return zi(this._hostTNode,this._hostLView)}get injector(){return new Rr(this._hostTNode,this._hostLView)}get parentInjector(){let e=mf(this._hostTNode,this._hostLView);if(Rv(e)){let n=yl(e,this._hostLView),r=gl(e),i=n[W].data[r+8];return new Rr(i,n)}else return new Rr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Ny(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-st}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Ri(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Oi(this._hostTNode,s)),a}createComponent(e,n,r,i,o){let s=e&&!tI(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 l=s?e:new Xo(xi(e)),c=r||this.parentInjector;if(!o&&l.ngModule==null){let g=(s?c:this.parentInjector).get(at,null);g&&(o=g)}let u=xi(l.componentType??{}),f=Ri(this._lContainer,u?.id??null),h=f?.firstChild??null,d=l.create(c,i,h,o);return this.insertImpl(d.hostView,a,Oi(this._hostTNode,f)),d}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(uI(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=i[lt],c=new z_(l,l[Et],l[lt]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return ds(s,i,o,r),e.attachToViewContainerRef(),Jy(td(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Ny(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=Qo(this._lContainer,n);r&&(ul(td(this._lContainer),n),$l(r[W],r))}detach(e){let n=this._adjustIndex(e,-1),r=Qo(this._lContainer,n);return r&&ul(td(this._lContainer),n)!=null?new Jo(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Ny(t){return t[hl]}function td(t){return t[hl]||(t[hl]=[])}function H_(t,e){let n,r=e[t.index];return Kn(r)?n=r:(n=k_(r,e,null,t),e[t.index]=n,Mf(e,n)),eT(n,e,t,r),new z_(n,t,e)}function XM(t,e){let n=t[tt],r=n.createComment(""),i=Gn(e,t),o=n.parentNode(i);return El(n,o,r,n.nextSibling(i),!1),r}var eT=rT,tT=()=>!1;function nT(t,e,n){return tT(t,e,n)}function rT(t,e,n,r){if(t[Vr])return;let i;n.type&8?i=En(r):i=XM(e,n),t[Vr]=i}var Pd=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Fd=class t{queries;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;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new t(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)$f(e,n).matches!==null&&this.queries[n].setDirty()}},Ld=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=dT(e):this.predicate=e}},Vd=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(e,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new t(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},$d=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,n=-1){this.metadata=e,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=e.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}
vendor: 4,587 bytes, line 7
7matchTNode(e,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(e,n,iT(n,o)),this.matchTNodeWithReadOption(e,n,il(n,e,o,!1,!1))}else r===zn?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,il(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Oe||i===fr||i===zn&&n.type&4)this.addMatch(n.index,-2);else{let o=il(n,e,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(e,n){this.matches===null?this.matches=[e,n]:this.matches.push(e,n)}};function iT(t,e){let n=t.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1]}return null}function oT(t,e){return t.type&11?zi(t,e):t.type&4?Vf(t,e):null}function sT(t,e,n,r){return n===-1?oT(e,t):n===-2?aT(t,e,r):Yo(t,t[W],n,e)}function aT(t,e,n){if(n===Oe)return zi(e,t);if(n===zn)return Vf(e,t);if(n===fr)return H_(e,t)}function q_(t,e,n,r){let i=e[Bn].queries[r];if(i.matches===null){let o=t.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let u=o[c];a.push(sT(e,u,s[l+1],n.metadata.read))}}i.matches=a}return i.matches}function jd(t,e,n,r){let i=t.queries.getByIndex(n),o=i.matches;if(o!==null){let s=q_(t,e,i,n);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)r.push(s[a/2]);else{let c=o[a+1],u=e[-l];for(let f=st;f<u.length;f++){let h=u[f];h[Fr]===h[lt]&&jd(h[W],h,c,r)}if(u[Ai]!==null){let f=u[Ai];for(let h=0;h<f.length;h++){let d=f[h];jd(d[W],d,c,r)}}}}}return r}function lT(t,e){return t[Bn].queries[e].queryList}function cT(t,e,n){let r=new Ed((n&4)===4);return hI(t,e,r,r.destroy),(e[Bn]??=new Fd).queries.push(new Pd(r))-1}function uT(t,e,n){let r=ut();return r.firstCreatePass&&(fT(r,new Ld(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),cT(r,ae(),e)}function dT(t){return t.split(",").map(e=>e.trim())}function fT(t,e,n){t.queries===null&&(t.queries=new Vd),t.queries.track(new $d(e,n))}function $f(t,e){return t.queries.getByIndex(e)}function hT(t,e){let n=t[W],r=$f(n,e);return r.crossesNgTemplate?jd(n,t,e,[]):q_(n,t,r,e)}function K_(t,e){let n=Object.create(Uy),r=new Dl;n.value=t;function i(){return ci(n),Ay(n.value),n.value}return i[Ot]=n,i.asReadonly=Gv.bind(i),i.set=o=>{n.equal(n.value,o)||(ui(n,o),r.emit(o))},i.update=o=>{Ay(n.value),i.set(o(n.value))},i.subscribe=r.subscribe.bind(r),i.destroyRef=r.destroyRef,i}function Ay(t){if(t===Al)throw new I(952,!1)}function ky(t,e){return K_(t,e)}function pT(t){return K_(Al,t)}var G_=(ky.required=pT,ky);var Pi=class{};var Sl=class extends Pi{injector;componentFactoryResolver=new Od(this);instance=null;constructor(e){super();let n=new Ko([...e.providers,{provide:Pi,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver}],e.parent||Pl(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function mT(t,e,n=null){return new Sl({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var gT=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=tv(!1,n.type),i=r.length>0?mT([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=A({token:t,providedIn:"environment",factory:()=>new t(U(at))})}return t})();function mt(t){return kl(()=>{let e=W_(t),n=w(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Yv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?i=>i.get(gT).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||In.Emulated,styles:t.styles||Gt,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&Tn("NgStandalone"),Y_(n);let r=t.dependencies;return n.directiveDefs=Oy(r,!1),n.pipeDefs=Oy(r,!0),n.id=wT(n),n})}function yT(t){return xi(t)||zS(t)}function vT(t){return t!==null}function it(t){return kl(()=>({type:t.type,bootstrap:t.bootstrap||Gt,declarations:t.declarations||Gt,imports:t.imports||Gt,exports:t.exports||Gt,transitiveCompileScopes:null,
vendor: 14,693 bytes, line 7
7schemas:t.schemas||null,id:t.id||null}))}function _T(t,e){if(t==null)return Pr;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a,l;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,l=i[3]||null):(o=i,s=i,a=Vl.None,l=null),n[o]=[r,a,l],e[o]=s}return n}function bT(t){if(t==null)return Pr;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function dt(t){return kl(()=>{let e=W_(t);return Y_(e),e})}function W_(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,inputConfig:t.inputs||Pr,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Gt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_T(t.inputs,e),outputs:bT(t.outputs),debugInfo:null}}function Y_(t){t.features?.forEach(e=>e(t))}function Oy(t,e){if(!t)return null;let n=e?HS:yT;return()=>(typeof t=="function"?t():t).map(r=>n(r)).filter(vT)}function wT(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,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];for(let o of r.join("|"))e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function DT(t){return Object.getPrototypeOf(t.prototype).constructor}function Wn(t){let e=DT(t.type),n=!0,r=[t];for(;e;){let i;if(fn(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new I(903,!1);i=e.\u0275dir}if(i){if(n){r.push(i);let s=t;s.inputs=nd(t.inputs),s.declaredInputs=nd(t.declaredInputs),s.outputs=nd(t.outputs);let a=i.hostBindings;a&&xT(t,a);let l=i.viewQuery,c=i.contentQueries;if(l&&ST(t,l),c&&IT(t,c),ET(t,i),bS(t.outputs,i.outputs),fn(i)&&i.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===Wn&&(n=!1)}}e=Object.getPrototypeOf(e)}CT(r)}function ET(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n])}}function CT(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Wo(i.hostAttrs,n=Wo(n,i.hostAttrs))}}function nd(t){return t===Pr?{}:t===Gt?[]:t}function ST(t,e){let n=t.viewQuery;n?t.viewQuery=(r,i)=>{e(r,i),n(r,i)}:t.viewQuery=e}function IT(t,e){let n=t.contentQueries;n?t.contentQueries=(r,i,o)=>{e(r,i,o),n(r,i,o)}:t.contentQueries=e}function xT(t,e){let n=t.hostBindings;n?t.hostBindings=(r,i)=>{e(r,i),n(r,i)}:t.hostBindings=e}function MT(t,e,n){return t[e]=n}function TT(t,e){return t[e]}function Wi(t,e,n){let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function NT(t,e,n,r,i,o,s,a,l){let c=e.consts,u=fs(e,t,4,s||null,a||null);yv()&&$_(e,n,u,ki(c,l),v_),u.mergedAttrs=Wo(u.mergedAttrs,u.attrs),kv(e,u);let f=u.tView=If(2,u,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,u),f.queries=e.queries.embeddedTView(u)),u}function Il(t,e,n,r,i,o,s,a,l,c){let u=n+ct,f=e.firstCreatePass?NT(u,e,t,r,i,o,s,a,l):e.data[u];Bi(f,!1);let h=AT(e,t,f,n);hf()&&Pf(e,t,h,f),ss(h,t);let d=k_(h,t,h,f);return t[u]=d,Mf(t,d),nT(d,f,t),sf(f)&&Tf(e,t,f),l!=null&&g_(t,f,c),f}function gt(t,e,n,r,i,o,s,a){let l=ae(),c=ut(),u=ki(c.consts,o);return Il(l,c,t,e,n,r,i,u,s,a),gt}var AT=kT;function kT(t,e,n,r){return pf(!0),e[tt].createComment("")}var Z_=new P("");var Q_=(()=>{class t{static \u0275prov=A({token:t,providedIn:"root",factory:()=>new Bd})}return t})(),Bd=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),this.queuedEffectCount--)}enqueue(e){let n=e.zone;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()}};function hs(t){return!!t&&typeof t.then=="function"}function J_(t){return!!t&&typeof t.subscribe=="function"}var OT=new P("");var X_=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=y(OT,{optional:!0})??[];injector=y(xe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=xn(this.injector,i);if(hs(o))n.push(o);else if(J_(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eb=new P("");function RT(){xu(()=>{throw new I(600,!1)})}function PT(t){return t.isBoundToModule}var FT=10;var Pt=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=y(ex);afterRenderManager=y(n_);zonelessEnabled=y(Ll);rootEffectScheduler=y(Q_);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new de;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=y(Ui).hasPendingTasks.pipe(je(n=>!n));constructor(){y(Hi,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=y(at);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){be(10);let i=n instanceof V_;if(!this._injector.get(X_).done){let h="";throw new I(405,h)}let s;i?s=n:s=this._injector.get(Ki).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=PT(s)?void 0:this._injector.get(Pi),l=r||s.selector,c=s.create(xe.NULL,[],l,a),u=c.location.nativeElement,f=c.injector.get(Z_,null);return f?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),ol(this.components,c),f?.unregisterApplication(u)}),this._loadComponent(c),be(11,c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){be(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(wf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new I(101,!1);let n=G(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,G(n),this.afterTick.next(),be(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(pt,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<FT;)be(14),this.synchronizeOnce(),be(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)LT(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>is(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ol(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(eb,[]).forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ol(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ol(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function LT(t,e,n,r){if(!n&&!is(t))return;M_(t,e,n&&!r?0:1)}function VT(t,e,n,r){return Wi(t,os(),n)?e+Wy(n)+r:dr}function el(t,e){return t<<17|e<<2}function Ur(t){return t>>17&32767}function $T(t){return(t&2)==2}function jT(t,e){return t&131071|e<<17}function Ud(t){return t|2}function Fi(t){return(t&131068)>>2}function rd(t,e){return t&-131069|e<<2}function BT(t){return(t&1)===1}function zd(t){return t|1}function UT(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Ur(s),l=Fi(s);t[r]=n;let c=!1,u;if(Array.isArray(n)){let f=n;u=f[1],(u===null||ns(f,u)>0)&&(c=!0)}else u=n;if(i)if(l!==0){let h=Ur(t[a+1]);t[r+1]=el(h,a),h!==0&&(t[h+1]=rd(t[h+1],r)),t[a+1]=jT(t[a+1],r)}else t[r+1]=el(a,0),a!==0&&(t[a+1]=rd(t[a+1],r)),a=r;else t[r+1]=el(l,0),a===0?a=r:t[l+1]=rd(t[l+1],r),l=r;c&&(t[r+1]=Ud(t[r+1])),Ry(t,u,r,!0),Ry(t,u,r,!1),zT(e,u,t,r,o),s=el(a,l),o?e.classBindings=s:e.styleBindings=s}function zT(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&ns(o,e)>=0&&(n[r+1]=zd(n[r+1]))}function Ry(t,e,n,r){let i=t[n+1],o=e===null,s=r?Ur(i):Fi(i),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];HT(l,e)&&(a=!0,t[s+1]=r?zd(c):Ud(c)),s=r?Ur(c):Fi(c)}a&&(t[n+1]=r?Ud(i):zd(i))}function HT(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?ns(t,e)>=0:!1}function St(t,e,n){let r=ae(),i=os();if(Wi(r,i,e)){let o=ut(),s=Nv();y_(o,s,r,t,e,r[tt],n,!1)}return St}function Py(t,e,n,r,i){Nf(e,t,n,i?"class":"style",r)}function Nn(t,e){return qT(t,e,null,!0),Nn}function qT(t,e,n,r){let i=ae(),o=ut(),s=EI(2);if(o.firstUpdatePass&&GT(o,t,s,r),e!==dr&&Wi(i,s,e)){let a=o.data[Hr()];JT(o,a,i,i[tt],t,i[s+1]=XT(e,n),r,s)}}function KT(t,e){return e>=t.expandoStartIndex}function GT(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[Hr()],s=KT(t,n);eN(o,r)&&e===null&&!s&&(e=!1),e=WT(i,o,e,r),UT(i,o,e,n,s,r)}}function WT(t,e,n,r){let i=Ev(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=id(null,t,e,n,r),n=es(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=id(i,t,e,n,r),o===null){let l=YT(t,e,r);l!==void 0&&Array.isArray(l)&&(l=id(null,t,e,l[1],r),l=es(l,e.attrs,r),ZT(t,e,r,l))}else o=QT(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function YT(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Fi(r)!==0)return t[Ur(r)]}function ZT(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[Ur(i)]=r}function QT(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;r=es(r,s,n)}return es(r,e.attrs,n)}function id(t,e,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=e[a],r=es(r,o.hostAttrs,i),o!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function es(t,e,n){let r=n?1:2,i=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?i=s:i===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),BS(t,s,n?!0:e[++o]))}return t===void 0?null:t}function JT(t,e,n,r,i,o,s,a){if(!(e.type&3))return;let l=t.data,c=l[a+1],u=BT(c)?Fy(l,e,n,i,Fi(c),s):void 0;if(!xl(u)){xl(o)||$T(c)&&(o=Fy(l,null,n,i,a,s));let f=fv(Hr(),n);cM(r,s,f,i,o)}}function Fy(t,e,n,r,i,o){let s=e===null,a;for(;i>0;){let l=t[i],c=Array.isArray(l),u=c?l[1]:l,f=u===null,h=n[i+1];h===dr&&(h=f?Gt:void 0);let d=f?Wu(h,r):u===r?h:void 0;if(c&&!xl(d)&&(d=Wu(l,r)),xl(d)&&(a=d,s))return a;let p=t[i+1];i=s?Ur(p):Fi(p)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=Wu(l,r))}return a}function xl(t){return t!==void 0}function XT(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Wt(Cf(t)))),t}function eN(t,e){return(t.flags&(e?8:16))!==0}var Hd=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 od(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function tN(t,e,n){let r,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;o<=s&&o<=l;){let c=t.at(o),u=e[o],f=od(o,c,o,u,n);if(f!==0){f<0&&t.updateValue(o,u),o++;continue}let h=t.at(s),d=e[l],p=od(s,h,l,d,n);if(p!==0){p<0&&t.updateValue(s,d),s--,l--;continue}let g=n(o,c),b=n(s,h),E=n(o,u);if(Object.is(E,b)){let k=n(l,d);Object.is(k,g)?(t.swap(o,s),t.updateValue(s,d),l--,s--):t.move(s,o),t.updateValue(o,u),o++;continue}if(r??=new Ml,i??=Vy(t,o,s,n),qd(t,r,o,E))t.updateValue(o,u),o++,s++;else if(i.has(E))r.set(g,t.detach(o)),s--;else{let k=t.create(o,e[o]);t.attach(o,k),o++,s++}}for(;o<=l;)Ly(t,r,n,o,e[o]),o++}else if(e!=null){let l=e[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let u=t.at(o),f=c.value,h=od(o,u,o,f,n);if(h!==0)h<0&&t.updateValue(o,f),o++,c=l.next();else{r??=new Ml,i??=Vy(t,o,s,n);let d=n(o,f);if(qd(t,r,o,d))t.updateValue(o,f),o++,s++,c=l.next();else if(!i.has(d))t.attach(o,t.create(o,f)),o++,s++,c=l.next();else{let p=n(o,u);r.set(p,t.detach(o)),s--}}}for(;!c.done;)Ly(t,r,n,t.length,c.value),c=l.next()}for(;o<=s;)t.destroy(t.detach(s--));r?.forEach(l=>{t.destroy(l)})}function qd(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function Ly(t,e,n,r,i){if(qd(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function Vy(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 Ml=class{kvMap=new Map;_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 Ft(t,e){Tn("NgControlFlow");
7let n=ae(),r=os(),i=n[r]!==dr?n[r]:-1,o=i!==-1?Tl(n,ct+i):void 0,s=0;if(Wi(n,r,t)){let a=G(null);try{if(o!==void 0&&R_(o,s),t!==-1){let l=ct+t,c=Tl(n,l),u=Yd(n[W],l),f=Ri(c,u.tView.ssrId),h=us(n,u,e,{dehydratedView:f});ds(c,h,s,Oi(u,f))}}finally{G(a)}}else if(o!==void 0){let a=O_(o,s);a!==void 0&&(a[Ze]=e)}}var Kd=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-st}};var Gd=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function tb(t,e,n,r,i,o,s,a,l,c,u,f,h){Tn("NgControlFlow");let d=ae(),p=ut(),g=l!==void 0,b=ae(),E=a?s.bind(b[Rt][Ze]):s,k=new Gd(g,E);b[ct+t]=k,Il(d,p,t+1,e,n,r,i,ki(p.consts,o)),g&&Il(d,p,t+2,l,c,u,f,ki(p.consts,h))}var Wd=class extends Hd{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-st}at(e){return this.getLView(e)[Ze].$implicit}attach(e,n){let r=n[Ti];this.needsIndexUpdate||=e!==this.length,ds(this.lContainer,n,e,Oi(this.templateTNode,r))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,nN(this.lContainer,e)}create(e,n){let r=Ri(this.lContainer,this.templateTNode.tView.ssrId),i=us(this.hostLView,this.templateTNode,new Kd(this.lContainer,n,e),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(e){$l(e[W],e),this.operationsCounter?.recordDestroy()}updateValue(e,n){this.getLView(e)[Ze].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Ze].$index=e}getLView(e){return rN(this.lContainer,e)}};function nb(t){let e=G(null),n=Hr();try{let r=ae(),i=r[W],o=r[n],s=n+1,a=Tl(r,s);if(o.liveCollection===void 0){let c=Yd(i,s);o.liveCollection=new Wd(a,r,c)}else o.liveCollection.reset();let l=o.liveCollection;if(tN(l,t,o.trackByFn),l.updateIndexes(),o.hasEmptyBlock){let c=os(),u=l.length===0;if(Wi(r,c,u)){let f=n+2,h=Tl(r,f);if(u){let d=Yd(i,f),p=Ri(h,d.tView.ssrId),g=us(r,d,void 0,{dehydratedView:p});ds(h,g,0,Oi(d,p))}else R_(h,0)}}}finally{G(e)}}function Tl(t,e){return t[e]}function nN(t,e){return Qo(t,e)}function rN(t,e){return O_(t,e)}function Yd(t,e){return af(t,e)}function we(t,e,n,r){let i=ae(),o=ut(),s=ct+t,a=i[tt],l=o.firstCreatePass?B_(s,o,i,e,v_,yv(),n,r):o.data[s],c=iN(o,i,l,a,e,t);i[s]=c;let u=sf(l);return Bi(l,!0),d_(a,c,l),!Of(l)&&hf()&&Pf(o,i,c,l),(pI()===0||u)&&ss(c,i),mI(),u&&(Tf(o,i,l),s_(o,l,i)),r!==null&&g_(i,l),we}function De(){let t=Zt();bv()?wv():(t=t.parent,Bi(t,!1));let e=t;yI(e)&&vI(),gI();let n=ut();return n.firstCreatePass&&U_(n,e),e.classesWithoutHost!=null&&kI(e)&&Py(n,e,ae(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&OI(e)&&Py(n,e,ae(),e.stylesWithoutHost,!1),De}function mn(t,e,n,r){return we(t,e,n,r),De(),mn}var iN=(t,e,n,r,i,o)=>(pf(!0),c_(r,i,TI()));function Jt(){return ae()}function jf(t,e,n){let r=ae(),i=os();if(Wi(r,i,e)){let o=ut(),s=Nv(),a=Ev(o.data),l=Gx(a,s,r);y_(o,s,r,t,e,l,n,!0)}return jf}var Nl="en-US";var oN=Nl;function sN(t){typeof t=="string"&&(oN=t.toLowerCase().replace(/_/g,"-"))}function $y(t,e,n,r){return function i(o){if(o===Function)return r;let s=$i(t)?Cn(t.index,e):e;Lf(s,5);let a=jy(e,n,r,o),l=i.__ngNextListenerFn__;for(;l;)a=jy(e,n,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function jy(t,e,n,r){let i=G(null);try{return be(6,e,n),n(r)!==!1}catch(o){return aN(t,o),!1}finally{be(7,e,n),G(i)}}function aN(t,e){let n=t[Ni],r=n?n.get(hn,null):null;r&&r.handleError(e)}function By(t,e,n,r,i,o,s,a,l){let c=n[r],f=e.data[r].outputs[i],d=c[f].subscribe(s),p=a.length;a.push(s,d),l&&l.push(o,t.index,p,-(p+1))}var lN=(t,e,n)=>{};function Ge(t,e,n,r){let i=ae(),o=ut(),s=Zt();return uN(o,i,i[tt],s,t,e,r),Ge}function cN(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=e[fl],l=i[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function uN(t,e,n,r,i,o,s){let a=sf(r),c=t.firstCreatePass?gv(t):null,u=e[Ze],f=mv(e),h=!0;
vendor: 10,348 bytes, line 7
7if(r.type&3||s){let d=Gn(r,e),p=s?s(d):d,g=f.length,b=s?k=>s(En(k[r.index])):r.index,E=null;if(!s&&a&&(E=cN(t,e,i,r.index)),E!==null){let k=E.__ngLastListenerFn__||E;k.__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,h=!1}else{o=$y(r,e,u,o),lN(p,i,o);let k=n.listen(p,i,o);f.push(o,k),c&&c.push(i,b,g,g+1)}}else o=$y(r,e,u,o);if(h){let d=r.outputs?.[i],p=r.hostDirectiveOutputs?.[i];if(p&&p.length)for(let g=0;g<p.length;g+=2){let b=p[g],E=p[g+1];By(r,t,e,b,E,i,o,f,c)}if(d&&d.length)for(let g of d)By(r,t,e,g,i,i,o,f,c)}}function Ve(t=1){return MI(t)}function dN(t,e){let n=null,r=Ex(t);for(let i=0;i<e.length;i++){let o=e[i];if(o==="*"){n=i;continue}if(r===null?l_(t,o,!0):Ix(r,o))return i}return n}function Bf(t){let e=ae()[Rt][Et];if(!e.projection){let n=t?t.length:1,r=e.projection=$S(n,null),i=r.slice(),o=e.child;for(;o!==null;){if(o.type!==128){let s=t?dN(o,t):0;s!==null&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o)}o=o.next}}}function Uf(t,e=0,n,r,i,o){let s=ae(),a=ut(),l=r?t+1:null;l!==null&&Il(s,a,l,r,i,o,null,n);let c=fs(a,ct+t,16,null,n||null);c.projection===null&&(c.projection=e),wv();let f=!s[Ti]||vv();s[Rt][Et].projection[c.projection]===null&&l!==null?fN(s,a,l):f&&!Of(c)&&aM(a,s,c)}function fN(t,e,n){let r=ct+n,i=e.data[r],o=t[r],s=Ri(o,i.tView.ssrId),a=us(t,i,void 0,{dehydratedView:s});ds(o,a,0,Oi(i,s))}function zf(t,e,n){uT(t,e,n)}function Hf(t){let e=ae(),n=ut(),r=Cv();uf(r+1);let i=$f(n,r);if(t.dirty&&cI(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=hT(e,r);t.reset(o,rx),t.notifyOnChanges()}return!0}return!1}function qf(){return lT(ae(),Cv())}function hN(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function rb(t){let e=bI();return lI(e,ct+t)}function gn(t,e=""){let n=ae(),r=ut(),i=t+ct,o=r.firstCreatePass?fs(r,i,1,e,null):r.data[i],s=pN(r,n,o,e,t);n[i]=s,hf()&&Pf(r,n,s,o),Bi(o,!1)}var pN=(t,e,n,r,i)=>(pf(!0),Nx(e[tt],r));function Kr(t){return Bl("",t,""),Kr}function Bl(t,e,n){let r=ae(),i=VT(r,t,e,n);return i!==dr&&mN(r,Hr(),i),Bl}function mN(t,e,n){let r=fv(e,t);Ax(t[tt],r,n)}var gN={};function ps(t){let e=ut(),n=ae(),r=t+ct,i=fs(e,r,128,null,null);return Bi(i,!1),hN(e,n,r,gN),ps}function yN(t,e,n){let r=ut();if(r.firstCreatePass){let i=fn(t);Zd(n,r.data,r.blueprint,i,!0),Zd(e,r.data,r.blueprint,i,!1)}}function Zd(t,e,n,r,i){if(t=ht(t),Array.isArray(t))for(let o=0;o<t.length;o++)Zd(t[o],e,n,r,i);else{let o=ut(),s=ae(),a=Zt(),l=Mi(t)?t:ht(t.provide),c=iv(t),u=a.providerIndexes&1048575,f=a.directiveStart,h=a.providerIndexes>>20;if(Mi(t)||!t.multi){let d=new Br(c,i,He),p=ad(l,e,i?u:u+h,f);p===-1?(_d(vl(a,s),o,l),sd(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(d),s.push(d)):(n[p]=d,s[p]=d)}else{let d=ad(l,e,u+h,f),p=ad(l,e,u,u+h),g=d>=0&&n[d],b=p>=0&&n[p];if(i&&!b||!i&&!g){_d(vl(a,s),o,l);let E=bN(i?_N:vN,n.length,i,r,c);!i&&b&&(n[p].providerFactory=E),sd(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(E),s.push(E)}else{let E=ib(n[i?p:d],c,!i&&r);sd(o,t,d>-1?d:p,E)}!i&&r&&b&&n[p].componentProviders++}}}function sd(t,e,n,r){let i=Mi(e),o=YS(e);if(i||o){let l=(o?ht(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function ib(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ad(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function vN(t,e,n,r){return Qd(this.multi,[])}function _N(t,e,n,r){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Yo(n,n[W],this.providerFactory.index,r);o=a.slice(0,s),Qd(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Qd(i,o);return o}function Qd(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function bN(t,e,n,r,i){let o=new Br(t,n,He);return o.multi=[],o.index=e,o.componentProviders=0,ib(o,i,r&&!n),o}function Gr(t,e=[]){return n=>{n.providersResolver=(r,i)=>yN(r,i?i(t):t,e)}}function ob(t,e,n){let r=wI()+t,i=ae();return i[r]===dr?MT(i,r,n?e.call(n):e()):TT(i,r)}var zr=class{full;major;minor;patch;constructor(e){this.full=e;let n=e.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},Kf=new zr("19.2.4");var wN=(()=>{class t{zone=y(se);changeDetectionScheduler=y(Sn);applicationRef=y(Pt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DN({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new se(w(m({},EN()),{scheduleInRootZone:n})),[{provide:se,useFactory:t},{provide:jn,multi:!0,useFactory:()=>{let r=y(wN,{optional:!0});return()=>r.initialize()}},{provide:jn,multi:!0,useFactory:()=>{let r=y(CN);return()=>{r.initialize()}}},e===!0?{provide:Hv,useValue:!0}:[],{provide:gf,useValue:n??zv}]}function EN(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var CN=(()=>{class t{subscription=new Ne;initialized=!1;zone=y(se);pendingTasks=y(Ui);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var sb=(()=>{class t{appRef=y(Pt);taskService=y(Ui);ngZone=y(se);zonelessEnabled=y(Ll);tracing=y(Hi,{optional:!0});disableScheduling=y(Hv,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ne;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(bl):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(y(gf,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof wl||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?yy:qv;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(bl+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,yy(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ab(){return Tn("NgZoneless"),Li([{provide:Sn,useExisting:sb},{provide:se,useClass:wl},{provide:Ll,useValue:!0},{provide:gf,useValue:!1},[]])}function SN(){return typeof $localize<"u"&&$localize.locale||Nl}var Gf=new P("",{providedIn:"root",factory:()=>y(Gf,oe.Optional|oe.SkipSelf)||SN()});var Jd=new P(""),IN=new P("");function Uo(t){return!t.moduleRef}function xN(t){let e=Uo(t)?t.r3Injector:t.moduleRef.injector,n=e.get(se);return n.run(()=>{Uo(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(hn,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Uo(t)){let o=()=>e.destroy(),s=t.platformInjector.get(Jd);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Jd);s.add(o),t.moduleRef.onDestroy(()=>{ol(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return TN(r,n,()=>{let o=e.get(X_);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(Gf,Nl);if(sN(s||Nl),!e.get(IN,!0))return Uo(t)?e.get(Pt):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Uo(t)){let l=e.get(Pt);return t.rootComponent!==void 0&&l.bootstrap(t.rootComponent),l}else return MN(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function MN(t,e){let n=t.injector.get(Pt);if(t._bootstrapComponents.length>
70)t._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new I(-403,!1);e.push(t)}function TN(t,e,n){try{let r=n();return hs(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}var sl=null;function NN(t=[],e){return xe.create({name:e,providers:[{provide:Rl,useValue:"platform"},{provide:Jd,useValue:new Set([()=>sl=null])},...t]})}function AN(t=[]){if(sl)return sl;let e=NN(t);return sl=e,RT(),kN(e),e}function kN(t){let e=t.get(bf,null);xn(t,()=>{e?.forEach(n=>n())})}var ms=(()=>{class t{static __NG_ELEMENT_ID__=ON}return t})();function ON(t){return RN(Zt(),ae(),(t&16)===16)}function RN(t,e,n){if($i(t)&&!n){let r=Cn(t.index,e);return new Jo(r,r)}else if(t.type&175){let r=e[Rt];return new Jo(r,e)}return null}function lb(t){be(8);try{let{rootComponent:e,appProviders:n,platformProviders:r}=t,i=AN(r),o=[DN({}),{provide:Sn,useExisting:sb},...n||[]],s=new Sl({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return xN({r3Injector:s.injector,platformInjector:i,rootComponent:e})}catch(e){return Promise.reject(e)}finally{be(9)}}function Lt(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function gs(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function yt(t){return Nu(t)}function qe(t,e){return Iu(t,e?.equal)}var Xd=class{[Ot];constructor(e){this[Ot]=e}destroy(){this[Ot].destroy()}};function Yn(t,e){!e?.injector&&qn(Yn);let n=e?.injector??y(xe),r=e?.manualCleanup!==!0?n.get(Qt):null,i,o=n.get(Df,null,{optional:!0}),s=n.get(Sn);return o!==null&&!e?.forceRoot?(i=LN(o.view,s,t),r instanceof _l&&r._lView===o.view&&(r=null)):i=VN(t,n.get(Q_),s),i.injector=n,r!==null&&(i.onDestroyFn=r.onDestroy(()=>i.destroy())),new Xd(i)}var cb=w(m({},li),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Zo,run(){if(this.dirty=!1,this.hasRun&&!wa(this))return;this.hasRun=!0;let t=r=>(this.cleanupFns??=[]).push(r),e=Oo(this),n=ml(!1);try{this.maybeCleanup(),this.fn(t)}finally{ml(n),ba(this,e)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),PN=w(m({},cb),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Ro(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),FN=w(m({},cb),{consumerMarkedDirty(){this.view[H]|=8192,ji(this.view),this.notifier.notify(13)},destroy(){Ro(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Lr]?.delete(this)}});function LN(t,e,n){let r=Object.create(FN);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=n,t[Lr]??=new Set,t[Lr].add(r),r.consumerMarkedDirty(r),r}function VN(t,e,n){let r=Object.create(PN);return r.fn=t,r.scheduler=e,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(12),r}function Ul(t,e){let n=xi(t),r=e.elementInjector||Pl();return new Xo(n).create(r,e.projectableNodes,e.hostElement,e.environmentInjector)}var $N={schedule(t,e){let n=setTimeout(t,e);return()=>clearTimeout(n)}};function jN(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function BN(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var Wf;function UN(t,e){if(!Wf){let n=Element.prototype;Wf=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?Wf.call(t,e):!1}function zN(t){let e={};return t.forEach(({propName:n,templateName:r,transform:i})=>{e[jN(r)]=[n,i]}),e}function HN(t,e){return e.get(Ki).resolveComponentFactory(t).inputs}function qN(t,e){let n=t.childNodes,r=e.map(()=>[]),i=-1;e.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],l=KN(a,e,i);l!==-1&&r[l].push(a)}return r}function KN(t,e,n){let r=n;return BN(t)&&e.some((i,o)=>i!=="*"&&UN(t,i)?(r=o,!0):!1),r}var GN=10,Yf=class{componentFactory;inputMap=new Map;constructor(e,n){this.componentFactory=n.get(Ki).resolveComponentFactory(e);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(e){return new Zf(this.componentFactory,e,this.inputMap)}},Zf=class{componentFactory;injector;inputMap;eventEmitters=new Nr(1);events=this.eventEmitters.pipe(_i(e=>Bo(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,n,r){this.componentFactory=e,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(se),this.appRef=this.injector.get(Pt),this.cdScheduler
7=n.get(Sn),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=$N.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},GN))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,n){if(this.componentRef===null){this.initialInputValues.set(e,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,n),F_(this.componentRef.hostView)&&(L_(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(e){let n=xe.create({providers:[],parent:this.injector}),r=qN(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,n]of this.initialInputValues)this.setInputValue(e,n);this.initialInputValues.clear()}initializeOutputs(e){let n=this.componentFactory.outputs.map(({propName:r,templateName:i})=>{let o=e.instance[r];return new re(s=>{let a=o.subscribe(l=>s.next({name:i,value:l}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Qf=class extends HTMLElement{ngElementEventsSubscription=null};function ub(t,e){let n=HN(t,e.injector),r=e.strategyFactory||new Yf(t,e.injector),i=zN(n);class o extends Qf{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||e.injector);n.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let u=this[l];delete this[l],a.setInputValue(l,u,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,u){let[f,h]=i[a];this.ngElementStrategy.setInputValue(f,c,h)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),o}var hb=null;function Zn(){return hb}function pb(t){hb??=t}var zl=class{};var pe=new P(""),mb=(()=>{class t{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:()=>y(QN),providedIn:"platform"})}return t})();var QN=(()=>{class t extends mb{_location;_history;_doc=y(pe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zn().getBaseHref(this._doc)}onPopState(n){let r=Zn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Zn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function gb(t,e){return t?e?t.endsWith("/")?e.startsWith("/")?t+e.slice(1):t+e:e.startsWith("/")?t+e:`${t}/${e}`:t:e}function db(t){let e=t.search(/#|\?|$/);return t[e-1]==="/"?t.slice(0,e-1)+t.slice(e):t}function Wr(t){return t&&t[0]!=="?"?`?${t}`:t}var Jf=(()=>{class t{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:()=>y(XN),providedIn:"root"})}return t})(),JN=new P(""),XN=(()=>{class t extends Jf{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??y(pe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.on
vendor: 9,956 bytes, lines 7-8
7HashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return gb(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Wr(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Wr(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Wr(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||t)(U(mb),U(JN,8))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Xf=(()=>{class t{_subject=new de;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=nA(db(fb(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Wr(r))}normalize(n){return t.stripTrailingSlash(tA(this._basePath,fb(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wr(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wr(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=Wr;static joinWithSlash=gb;static stripTrailingSlash=db;static \u0275fac=function(r){return new(r||t)(U(Jf))};static \u0275prov=A({token:t,factory:()=>eA(),providedIn:"root"})}return t})();function eA(){return new Xf(U(Jf))}function tA(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function fb(t){return t.replace(/\/index.html$/,"")}function nA(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}function Hl(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 eh=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=it({type:t});static \u0275inj=nt({})}return t})(),th="browser",rA="server";function yb(t){return t===th}function ys(t){return t===rA}var Yi=class{};var _s=class{},Kl=class{},Yr=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
8`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=n.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.addHeaderEntry(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}}addHeaderEntry(e,n){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}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 rh=class{encodeKey(e){return vb(e)}encodeValue(e){return vb(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function oA(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))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var sA=/%(\d[a-f0-9])/gi,aA={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vb(t){return encodeURIComponent(t).replace(sA,(e,n)=>aA[n]??e)}function ql(t){return`${t}`}var hr=class t{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new rh,e.fromString){if(e.fromObject)throw new I(2805,!1);this.map=oA(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(ql):[ql(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(ql(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(ql(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 ih=class{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 lA(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function _b(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function bb(t){return typeof Blob<"u"&&t instanceof Blob}function wb(t){return typeof FormData<"u"&&t instanceof FormData}function cA(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Db="Content-Type",Eb="Accept",Ib="X-Request-URL",xb="text/plain",Mb="application/json",uA=`${Mb}, ${xb}, */*`,vs=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,r,i){this.url=n,this.method=e.toUpperCase();let o;if(lA(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??=new Yr,this.context??=new ih,!this.params)this.params=new hr,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="str
8ing"||_b(this.body)||bb(this.body)||wb(this.body)||cA(this.body)?this.body:this.body instanceof hr?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||wb(this.body)?null:bb(this.body)?this.body.type||null:_b(this.body)?null:typeof this.body=="string"?xb:this.body instanceof hr?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Mb:null}clone(e={}){let n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,l=e.reportProgress??this.reportProgress,c=e.headers||this.headers,u=e.params||this.params,f=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((h,d)=>h.set(d,e.setHeaders[d]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,d)=>h.set(d,e.setParams[d]),u)),new t(n,r,s,{params:u,headers:c,context:f,reportProgress:l,responseType:i,withCredentials:a,transferCache:o})}},Zi=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}(Zi||{}),bs=class{headers;status;statusText;url;ok;type;constructor(e,n=200,r="OK"){this.headers=e.headers||new Yr,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}},oh=class t extends bs{constructor(e={}){super(e)}type=Zi.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})}},Gl=class t extends bs{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=Zi.Response;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})}},Wl=class extends bs{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),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}},dA=200,fA=204;function nh(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 ws=(()=>{class t{handler;constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof vs)o=n;else{let l;i.headers instanceof Yr?l=i.headers:l=new Yr(i.headers);let c;i.params&&(i.params instanceof hr?c=i.params:c=new hr({fromObject:i.params})),o=new vs(n,r,i.body!==void 0?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=sr(o).pipe(Bu(l=>this.handler.handle(l)));if(n instanceof vs||i.observe==="events")return s;let a=s.pipe(qt(l=>l instanceof Gl));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(je(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new I(2806,!1);return l.body}));case"blob":return a.pipe(je(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new I(2807,!1);return l.body}));case"text":return a.pipe(je(l=>{if(l.body!==null&&typeof l.body!="string")throw new I(2808,!1);return l.body}));case"json":default:return a.pipe(je(l=>l.body))}case"response":return a;default:throw new I(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new hr().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,nh(i,r))}post(n,r,i={}){return this.request("POST",n,nh(i,r))}put(n,r,i={}){return this.request("PUT",n,nh(i,r))}static \u0275fac=function(r){return new(r||t)(U(_s))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();var hA=new P("");function pA(t,e){return e(t)}function mA(t,e,n){return(r,i)=>xn(n,()=>e(r,o=>t(o,i)))}
vendor: 19,220 bytes, line 8
8var Tb=new P(""),gA=new P(""),yA=new P("",{providedIn:"root",factory:()=>!0});var Cb=(()=>{class t extends _s{backend;injector;chain=null;pendingTasks=y(Ui);contributeToStability=y(yA);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Tb),...this.injector.get(gA,[])]));this.chain=r.reduceRight((i,o)=>mA(i,o,this.injector),pA)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Hu(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(U(Kl),U(at))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();var vA=/^\)\]\}',?\n/,_A=RegExp(`^${Ib}:`,"m");function bA(t){return"responseURL"in t&&t.responseURL?t.responseURL:_A.test(t.getAllResponseHeaders())?t.getResponseHeader(Ib):null}var Sb=(()=>{class t{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new I(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Dt(r.\u0275loadImpl()):sr(null)).pipe(_i(()=>new re(o=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,b)=>s.setRequestHeader(g,b.join(","))),n.headers.has(Eb)||s.setRequestHeader(Eb,uA),!n.headers.has(Db)){let g=n.detectContentTypeHeader();g!==null&&s.setRequestHeader(Db,g)}if(n.responseType){let g=n.responseType.toLowerCase();s.responseType=g!=="json"?g:"text"}let a=n.serializeBody(),l=null,c=()=>{if(l!==null)return l;let g=s.statusText||"OK",b=new Yr(s.getAllResponseHeaders()),E=bA(s)||n.url;return l=new oh({headers:b,status:s.status,statusText:g,url:E}),l},u=()=>{let{headers:g,status:b,statusText:E,url:k}=c(),N=null;b!==fA&&(N=typeof s.response>"u"?s.responseText:s.response),b===0&&(b=N?dA:0);let V=b>=200&&b<300;if(n.responseType==="json"&&typeof N=="string"){let Q=N;N=N.replace(vA,"");try{N=N!==""?JSON.parse(N):null}catch(te){N=Q,V&&(V=!1,N={error:te,text:N})}}V?(o.next(new Gl({body:N,headers:g,status:b,statusText:E,url:k||void 0})),o.complete()):o.error(new Wl({error:N,headers:g,status:b,statusText:E,url:k||void 0}))},f=g=>{let{url:b}=c(),E=new Wl({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:b||void 0});o.error(E)},h=!1,d=g=>{h||(o.next(c()),h=!0);let b={type:Zi.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(b.total=g.total),n.responseType==="text"&&s.responseText&&(b.partialText=s.responseText),o.next(b)},p=g=>{let b={type:Zi.UploadProgress,loaded:g.loaded};g.lengthComputable&&(b.total=g.total),o.next(b)};return s.addEventListener("load",u),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),n.reportProgress&&(s.addEventListener("progress",d),a!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),o.next({type:Zi.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",u),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",d),a!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(U(Yi))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),Nb=new P(""),wA="XSRF-TOKEN",DA=new P("",{providedIn:"root",factory:()=>wA}),EA="X-XSRF-TOKEN",CA=new P("",{providedIn:"root",factory:()=>EA}),Yl=class{},SA=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hl(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||t)(U(pe),U(pn),U(DA))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();function IA(t,e){let n=t.url.toLowerCase();if(!y(Nb)||t.method==="GET"||t.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(t);let r=y(Yl).getToken(),i=y(CA);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),e(t)}function Ab(...t){let e=[ws,Sb,Cb,{provide:_s,useExisting:Cb},{provide:Kl,useFactory:()=>y(hA,{optional:!0})??y(Sb)},{provide:Tb,useValue:IA,multi:!0},{provide:Nb,useValue:!0},{provide:Yl,useClass:SA}];for(let n of t)e.push(...n.\u0275providers);return Li(e)}var ah=class extends zl{supportsDOMEvents=!0},lh=class t extends ah{static makeCurrent(){pb(new t)}onAndCancel(e,n,r,i){return e.addEventListener(n,r,i),()=>{e.removeEventListener(n,r,i)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.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,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=MA();return n==null?null:TA(n)}resetBaseElement(){Ds=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Hl(document.cookie,e)}},Ds=null;function MA(){return Ds=Ds||document.querySelector("base"),Ds?Ds.getAttribute("href"):null}function TA(t){return new URL(t,document.baseURI).pathname}var NA=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),ch=new P(""),Fb=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||t)(U(ch),U(se))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),Ql=class{_doc;constructor(e){this._doc=e}manager},Zl="ng-app-id";function kb(t){for(let e of t)e.remove()}function Ob(t,e){let n=e.createElement("style");return n.textContent=t,n}function AA(t,e,n,r){let i=t.head?.querySelectorAll(`style[${Zl}="${e}"],link[${Zl}="${e}"]`);if(i)for(let o of i)o.removeAttribute(Zl),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function uh(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n}var Lb=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=ys(o),AA(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,Ob);r?.forEach(i=>this.addUsage(i,this.external,uh))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(kb(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])kb(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,Ob(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,uh(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Zl,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||t)(U(pe),U(as),U(cs,8),U(pn))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),sh={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"},fh=/%COMP%/g;var Vb="%COMP%",kA=`_nghost-${Vb}`,OA=`_ngcontent-${Vb}`,RA=!0,PA=new P("",{providedIn:"root",factory:()=>RA});function FA(t){return OA.replace(fh,t)}function LA(t){return kA.replace(fh,t)}function $b(t,e){return e.map(n=>n.replace(fh,t))}var Jl=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,l,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.tracingService=u,this.platformIsServer=ys(a),this.defaultRenderer=new Es(n,s,l,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===In.ShadowDom&&(r=w(m({},r),{encapsulation:In.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Xl?i.applyToHost(n):i instanceof Cs&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case In.Emulated:o=new Xl(l,c,r,this.appId,u,s,a,f,h);break;case In.ShadowDom:return new dh(l,c,n,r,s,a,this.nonce,f,h);default:o=new Cs(l,c,r,u,s,a,f,h);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||t)(U(Fb),U(Lb),U(as),U(PA),U(pe),U(pn),U(se),U(cs),U(Hi,8))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),Es=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,n,r,i,o){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(e,n){return n?this.doc.createElementNS(sh[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(Rb(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(Rb(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new I(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;let o=sh[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let i=sh[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(Un.DashCase|Un.Important)?e.style.setProperty(n,r,i&Un.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Un.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r,i){if(typeof e=="string"&&(e=Zn().getGlobalEventTarget(this.doc,e),!e))throw new I(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(e,n,o)),this.eventManager.addEventListener(e,n,o,i)}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function Rb(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var dh=class extends Es{sharedStylesHost;hostEl;shadowRoot;constructor(e,n,r,i,o,s,a,l,c){super(e,o,s,l,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=i.styles;u=$b(i.id,u);for(let h of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=h,this.shadowRoot.appendChild(d)}let f=i.getExternalStyles?.();if(f)for(let h of f){let d=uh(h,o);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Cs=class extends Es{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,n,r,i,o,s,a,l,c){super(e,o,s,a,l),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i;let u=r.styles;this.styles=c?$b(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Xl=class extends Cs{contentAttr;hostAttr;constructor(e,n,r,i,o,s,a,l,c){let u=i+"-"+r.id;super(e,n,r,o,s,a,l,c,u),this.contentAttr=FA(u),this.hostAttr=LA(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}},VA=(()=>{class t extends Ql{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||t)(U(pe))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),Pb=["alt","control","meta","shift"],$A={"\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"},jA={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},BA=(()=>{class t extends Ql{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zn().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Pb.forEach(c=>{let u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=$A[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Pb.forEach(s=>{if(s!==i){let a=jA[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{t.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||t)(U(pe))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();function jb(t){return lb(UA(t))}function UA(t){return{appProviders:[...GA,...t?.providers??[]],platformProviders:KA}}function zA(){lh.makeCurrent()}function HA(){return new hn}function qA(){return e_(document),document}var KA=[{provide:pn,useValue:th},{provide:bf,useValue:zA,multi:!0},{provide:pe,useFactory:qA,deps:[]}];var GA=[{provide:Rl,useValue:"root"},{provide:hn,useFactory:HA,deps:[]},{provide:ch,useClass:VA,multi:!0,deps:[pe]},{provide:ch,useClass:BA,multi:!0,deps:[pe]},Jl,Lb,Fb,{provide:pt,useExisting:Jl},{provide:Yi,useClass:NA,deps:[]},[]];var Bb=(()=>{class t{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||t)(U(pe))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hh;try{hh=typeof Intl<"u"&&Intl.v8BreakIterator}catch{hh=!1}var Qn=(()=>{class t{_platformId=y(pn);isBrowser=this._platformId?yb(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||hh)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qi(t){return Array.isArray(t)?t:[t]}var Ub=new Set,Zr,Hb=(()=>{class t{_platform=y(Qn);_nonce=y(cs,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):YA}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&WA(n,this._nonce),this._matchMedia(n)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WA(t,e){if(!Ub.has(t))try{Zr||(Zr=document.createElement("style"),e&&Zr.setAttribute("nonce",e),Zr.setAttribute("type","text/css"),document.head.appendChild(Zr)),Zr.sheet&&(Zr.sheet.insertRule(`@media ${t} {body{ }}`,0),Ub.add(t))}catch(n){console.error(n)}}function YA(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ph=(()=>{class t{_mediaMatcher=y(Hb);_zone=y(se);_queries=new Map;_destroySubject=new de;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return zb(Qi(n)).some(i=>this._registerQuery(i).mql.matches)}observe(n){let i=zb(Qi(n)).map(s=>this._registerQuery(s).observable),o=$u(i);return o=vi(o.pipe(zu(1)),o.pipe(qu(1),Uu(0))),o.pipe(je(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),o={observable:new re(s=>{let a=l=>this._zone.run(()=>s.next(l));return r.addListener(a),()=>{r.removeListener(a)}}).pipe(Xa(r),je(({matches:s})=>({query:n,matches:s})),$n(this._destroySubject)),mql:r};return this._queries.set(n,o),o}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function zb(t){return t.map(e=>e.split(",")).reduce((e,n)=>e.concat(n)).map(e=>e.trim())}function Ss(t,e,n,r,i){let o=parseInt(Kf.major),s=parseInt(Kf.minor);return o>19||o===19&&s>
vendor: 45,355 bytes, line 8
80||o===0&&s===0?t.listen(e,n,r,i):(e.addEventListener(n,r,i),()=>{e.removeEventListener(n,r,i)})}function ec(t){return t.composedPath?t.composedPath()[0]:t.target}function mh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var tc=new WeakMap,gh=(()=>{class t{_appRef;_injector=y(xe);_environmentInjector=y(at);load(n){let r=this._appRef=this._appRef||this._injector.get(Pt),i=tc.get(r);i||(i={loaders:new Set,refs:[]},tc.set(r,i),r.onDestroy(()=>{tc.get(r)?.refs.forEach(o=>o.destroy()),tc.delete(r)})),i.loaders.has(n)||(i.loaders.add(n),i.refs.push(Ul(n,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ke(t){return t==null?"":typeof t=="string"?t:`${t}px`}function qb(t){return t instanceof Oe?t.nativeElement:t}var ZA=new P("cdk-dir-doc",{providedIn:"root",factory:QA});function QA(){return y(pe)}var JA=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function XA(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?JA.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var yh=(()=>{class t{value="ltr";change=new ke;constructor(){let n=y(ZA,{optional:!0});if(n){let r=n.body?n.body.dir:null,i=n.documentElement?n.documentElement.dir:null;this.value=XA(r||i||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qr;function Kb(){if(Qr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Qr=!1,Qr;if("scrollBehavior"in document.documentElement.style)Qr=!0;else{let t=Element.prototype.scrollTo;t?Qr=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Qr=!1}}return Qr}var Is=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=it({type:t});static \u0275inj=nt({})}return t})();var t1=20,Wb=(()=>{class t{_ngZone=y(se);_platform=y(Qn);_renderer=y(pt).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new de;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=t1){return this._platform.isBrowser?new re(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=n>0?this._scrolled.pipe(Ja(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):sr()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let i=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(qt(o=>!o||i.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((i,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_scrollableContainsElement(n,r){let i=qb(r),o=n.getElementRef().nativeElement;do if(i==o)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var n1=20,vh=(()=>{class t{_platform=y(Qn);_listeners;_viewportSize;_change=new de;_document=y(pe,{optional:!0});constructor(){let n=y(se),r=y(pt).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=o=>this._change.next(o);this._listeners=[r.listen("window","resize",i),r.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:i}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+i,right:n.left+r,height:i,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),i=n.documentElement,o=i.getBoundingClientRect(),s=-o.top||n.body.scrollTop||r.scrollY||i.scrollTop||0,a=-o.left||n.body.scrollLeft||r.scrollX||i.scrollLeft||0;return{top:s,left:a}}change(n=n1){return n>0?this._change.pipe(Ja(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Gb=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=it({type:t});static \u0275inj=nt({})}return t})(),_h=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=it({type:t});static \u0275inj=nt({imports:[Is,Gb,Is,Gb]})}return t})();var xs=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},bh=class extends xs{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(e,n,r,i,o){super(),this.component=e,this.viewContainerRef=n,this.injector=r,this.projectableNodes=o}},Ms=class extends xs{templateRef;viewContainerRef;context;injector;constructor(e,n,r,i){super(),this.templateRef=e,this.viewContainerRef=n,this.context=r,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,n=this.context){return this.context=n,super.attach(e)}detach(){return this.context=void 0,super.detach()}},wh=class extends xs{element;constructor(e){super(),this.element=e instanceof Oe?e.nativeElement:e}},Dh=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof bh)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ms)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof wh)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var nc=class extends Dh{outletElement;_appRef;_defaultInjector;_document;constructor(e,n,r,i,o){super(),this.outletElement=e,this._appRef=r,this._defaultInjector=i,this._document=o}attachComponentPortal(e){let n;if(e.viewContainerRef){let r=e.injector||e.viewContainerRef.injector,i=r.get(Pi,null,{optional:!0})||void 0;n=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:r,ngModuleRef:i,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>n.destroy())}else{let r=this._appRef,i=e.injector||this._defaultInjector||xe.NULL,o=i.get(at,r.injector);n=Ul(e.component,{elementInjector:i,environmentInjector:o,projectableNodes:e.projectableNodes||void 0}),r.attachView(n.hostView),this.setDisposeFn(()=>{r.viewCount>0&&r.detachView(n.hostView),n.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return r.rootNodes.forEach(i=>this.outletElement.appendChild(i)),r.detectChanges(),this.setDisposeFn(()=>{let i=n.indexOf(r);i!==-1&&n.remove(i)}),this._attachedPortal=e,r}attachDomPortal=e=>{let n=e.element;n.parentNode;let r=this._document.createComment("dom-portal");n.parentNode.insertBefore(r,n),this.outletElement.appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(n,r)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Yb=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=it({type:t});static \u0275inj=nt({})}return t})();var Eh={},Zb=(()=>{class t{_appId=y(as);getId(n){return this._appId!=="ng"&&(n+=this._appId),Eh.hasOwnProperty(n)||(Eh[n]=0),`${n}${Eh[n]++}`}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qb(t,...e){return e.length?e.some(n=>t[n]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Jb=Kb(),rc=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,n){this._viewportRuler=e,this._document=n}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Ke(-this._previousScrollPosition.left),e.style.top=Ke(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,n=this._document.body,r=e.style,i=n.style,o=r.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Jb&&(r.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Jb&&(r.scrollBehavior=o,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let n=this._document.body,r=this._viewportRuler.getViewportSize();return n.scrollHeight>r.height||n.scrollWidth>r.width}};var ic=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,n,r,i){this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=r,this._config=i}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(qt(n=>!n||!this._overlayRef.overlayElement.contains(n.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},Ts=class{enable(){}disable(){}attach(){}};function Ch(t,e){return e.some(n=>{let r=t.bottom<n.top,i=t.top>n.bottom,o=t.right<n.left,s=t.left>n.right;return r||i||o||s})}function Xb(t,e){return e.some(n=>{let r=t.top<n.top,i=t.bottom>n.bottom,o=t.left<n.left,s=t.right>n.right;return r||i||o||s})}var oc=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,n,r,i){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this._config=i}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:r,height:i}=this._viewportRuler.getViewportSize();Ch(n,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},ow=(()=>{class t{_scrollDispatcher=y(Wb);_viewportRuler=y(vh);_ngZone=y(se);_document=y(pe);constructor(){}noop=()=>new Ts;close=n=>new ic(this._scrollDispatcher,this._ngZone,this._viewportRuler,n);block=()=>new rc(this._viewportRuler,this._document);reposition=n=>new oc(this._scrollDispatcher,this._viewportRuler,this._ngZone,n);static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ns=class{positionStrategy;scrollStrategy=new Ts;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let n=Object.keys(e);for(let r of n)e[r]!==void 0&&(this[r]=e[r])}}};var sc=class{connectionPair;scrollableViewProperties;constructor(e,n){this.connectionPair=e,this.scrollableViewProperties=n}};var sw=(()=>{class t{_attachedOverlays=[];_document=y(pe);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aw=(()=>{class t extends sw{_ngZone=y(se);_renderer=y(pt).createRenderer(null,null);_cleanupKeydown;add(n){super.add(n),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=n=>{let r=this._attachedOverlays;for(let i=r.length-1;i>-1;i--)if(r[i]._keydownEvents.observers.length>0){this._ngZone.run(()=>r[i]._keydownEvents.next(n));break}};static \u0275fac=(()=>{let n;return function(i){return(n||(n=qr(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lw=(()=>{class t extends sw{_platform=y(Qn);_ngZone=y(se);_renderer=y(pt).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(n){if(super.add(n),!this._isAttached){let r=this._document.body,i={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[Ss(this._renderer,r,"pointerdown",this._pointerDownListener,i),Ss(this._renderer,r,"click",this._clickListener,i),Ss(this._renderer,r,"auxclick",this._clickListener,i),Ss(this._renderer,r,"contextmenu",this._clickListener,i)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(n=>n()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=n=>{this._pointerDownEventTarget=ec(n)};_clickListener=n=>{let r=ec(n),i=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){let a=o[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(ew(a.overlayElement,r)||ew(a.overlayElement,i))break;let l=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(n)):l.next(n)}};static \u0275fac=(()=>{let n;return function(i){return(n||(n=qr(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ew(t,e){let n=typeof ShadowRoot<"u"&&ShadowRoot,r=e;for(;r;){if(r===t)return!0;r=n&&r instanceof ShadowRoot?r.host:r.parentNode}return!1}var cw=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mt({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(r,i){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return t})(),Ih=(()=>{class t{_platform=y(Qn);_containerElement;_document=y(pe);_styleLoader=y(gh);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||mh()){let i=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;o<i.length;o++)i[o].remove()}let r=this._document.createElement("div");r.classList.add(n),mh()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}_loadStyles(){this._styleLoader.load(cw)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Sh=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,n,r,i){this._renderer=n,this._ngZone=r,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=n.listen(this.element,"click",i)}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},ac=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new de;_attachments=new de;_detachments=new de;_positionStrategy;_scrollStrategy;_locationChanges=Ne.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new de;_outsidePointerEvents=new de;_renders=new de;_afterRenderRef;_afterNextRenderRef;constructor(e,n,r,i,o,s,a,l,c,u=!1,f,h){this._portalOutlet=e,this._host=n,this._pane=r,this._config=i,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._injector=f,this._renderer=h,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=yt(()=>Ef(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let n=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=qi(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof n?.onDestroy=="function"&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=m(m({},this._config),e),this._updateElementSize()}setDirection(e){this._config=w(m({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=Ke(this._config.width),e.height=Ke(this._config.height),e.minWidth=Ke(this._config.minWidth),e.minHeight=Ke(this._config.minHeight),e.maxWidth=Ke(this._config.maxWidth),e.maxHeight=Ke(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Sh(this._document,this._renderer,this._ngZone,n=>{this._backdropClick.next(n)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e))}):this._backdropRef.element.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(e,n,r){let i=Qi(n||[]).filter(o=>!!o);i.length&&(r?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe($n(Bo(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.()}},tw="cdk-overlay-connected-position-bounding-box",r1=/([A-Za-z%]+)$/,lc=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new de;_resizeSubscription=Ne.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,n,r,i,o){this._viewportRuler=n,this._document=r,this._platform=i,this._overlayContainer=o,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(tw),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,n=this._overlayRect,r=this._viewportRect,i=this._containerRect,o=[],s;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,i,a),c=this._getOverlayPoint(l,n,a),u=this._getOverlayFit(c,n,r,a);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(u,c,r)){o.push({position:a,origin:l,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!s||s.overlayFit.visibleArea<u.visibleArea)&&(s={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:n})}if(o.length){let a=null,l=-1;for(let c of o){let u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Jr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tw),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,n)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,n,r){let i;if(r.originX=="center")i=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;i=r.originX=="start"?s:a}n.left<0&&(i-=n.left);let o;return r.originY=="center"?o=e.top+e.height/2:o=r.originY=="top"?e.top:e.bottom,n.top<0&&(o-=n.top),{x:i,y:o}}_getOverlayPoint(e,n,r){let i;r.overlayX=="center"?i=-n.width/2:r.overlayX==="start"?i=this._isRtl()?-n.width:0:i=this._isRtl()?0:-n.width;let o;return r.overlayY=="center"?o=-n.height/2:o=r.overlayY=="top"?0:-n.height,{x:e.x+i,y:e.y+o}}_getOverlayFit(e,n,r,i){let o=rw(n),{x:s,y:a}=e,l=this._getOffset(i,"x"),c=this._getOffset(i,"y");l&&(s+=l),c&&(a+=c);let u=0-s,f=s+o.width-r.width,h=0-a,d=a+o.height-r.height,p=this._subtractOverflows(o.width,u,f),g=this._subtractOverflows(o.height,h,d),b=p*g;return{visibleArea:b,isCompletelyWithinViewport:o.width*o.height===b,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(e,n,r){if(this._hasFlexibleDimensions){let i=r.bottom-n.y,o=r.right-n.x,s=nw(this._overlayRef.getConfig().minHeight),a=nw(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||s!=null&&s<=i,c=e.fitsInViewportHorizontally||a!=null&&a<=o;return l&&c}return!1}_pushOverlayOnScreen(e,n,r){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let i=rw(n),o=this._viewportRect,s=Math.max(e.x+i.width-o.width,0),a=Math.max(e.y+i.height-o.height,0),l=Math.max(o.top-r.top-e.y,0),c=Math.max(o.left-r.left-e.x,0),u=0,f=0;return i.width<=o.width?u=c||-s:u=e.x<this._viewportMargin?o.left-r.left-e.x:0,i.height<=o.height?f=l||-a:f=e.y<this._viewportMargin?o.top-r.top-e.y:0,this._previousPushAmount={x:u,y:f},{x:e.x+u,y:e.y+f}}_applyPosition(e,n){if(this._setTransformOrigin(e),this._setOverlayElementStyles(n,e),this._setBoundingBoxStyles(n,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let r=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!i1(this._lastScrollVisibility,r)){let i=new sc(e,r);this._positionChanges.next(i)}this._lastScrollVisibility=r}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r,i=e.overlayY;e.overlayX==="center"?r="center":this._isRtl()?r=e.overlayX==="start"?"right":"left":r=e.overlayX==="start"?"left":"right";for(let o=0;o<n.length;o++)n[o].style.transformOrigin=`${r} ${i}`}_calculateBoundingBoxRect(e,n){let r=this._viewportRect,i=this._isRtl(),o,s,a;if(n.overlayY==="top")s=e.y,o=r.height-s+this._viewportMargin;else if(n.overlayY==="bottom")a=r.height-e.y+this._viewportMargin*2,o=r.height-a+this._viewportMargin;else{let d=Math.min(r.bottom-e.y+r.top,e.y),p=this._lastBoundingBoxSize.height;o=d*2,s=e.y-d,o>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-p/2)}let l=n.overlayX==="start"&&!i||n.overlayX==="end"&&i,c=n.overlayX==="end"&&!i||n.overlayX==="start"&&i,u,f,h;if(c)h=r.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(l)f=e.x,u=r.right-e.x;else{let d=Math.min(r.right-e.x+r.left,e.x),p=this._lastBoundingBoxSize.width;u=d*2,f=e.x-d,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(f=e.x-p/2)}return{top:s,left:f,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(e,n){let r=this._calculateBoundingBoxRect(e,n);!this._isInitialRender&&!this._growAfterOpen&&(r.height=Math.min(r.height,this._lastBoundingBoxSize.height),r.width=Math.min(r.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Ke(r.height),i.top=Ke(r.top),i.bottom=Ke(r.bottom),i.width=Ke(r.width),i.left=Ke(r.left),i.right=Ke(r.right),n.overlayX==="center"?i.alignItems="center":i.alignItems=n.overlayX==="end"?"flex-end":"flex-start",n.overlayY==="center"?i.justifyContent="center":i.justifyContent=n.overlayY==="bottom"?"flex-end":"flex-start",o&&(i.maxHeight=Ke(o)),s&&(i.maxWidth=Ke(s))}this._lastBoundingBoxSize=r,Jr(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Jr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Jr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,n){let r={},i=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){let u=this._viewportRuler.getViewportScrollPosition();Jr(r,this._getExactOverlayY(n,e,u)),Jr(r,this._getExactOverlayX(n,e,u))}else r.position="static";let a="",l=this._getOffset(n,"x"),c=this._getOffset(n,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),r.transform=a.trim(),s.maxHeight&&(i?r.maxHeight=Ke(s.maxHeight):o&&(r.maxHeight="")),s.maxWidth&&(i?r.maxWidth=Ke(s.maxWidth):o&&(r.maxWidth="")),Jr(this._pane.style,r)}_getExactOverlayY(e,n,r){let i={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,r)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;i.bottom=`${s-(o.y+this._overlayRect.height)}px`}else i.top=Ke(o.y);return i}_getExactOverlayX(e,n,r){let i={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,r));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(o.x+this._overlayRect.width)}px`}else i.left=Ke(o.x);return i}_getScrollVisibility(){let e=this._getOriginRect(),n=this._pane.getBoundingClientRect(),r=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Xb(e,r),isOriginOutsideView:Ch(e,r),isOverlayClipped:Xb(n,r),isOverlayOutsideView:Ch(n,r)}}_subtractOverflows(e,...n){return n.reduce((r,i)=>r-Math.max(i,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,r=this._viewportRuler.getViewportScrollPosition();return{top:r.top+this._viewportMargin,left:r.left+this._viewportMargin,right:r.left+e-this._viewportMargin,bottom:r.top+n-this._viewportMargin,width:e-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,n){return n==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Qi(e).forEach(n=>{n!==""&&this._appliedPanelClasses.indexOf(n)===-1&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof Oe)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let n=e.width||0,r=e.height||0;return{top:e.y,bottom:e.y+r,left:e.x,right:e.x+n,height:r,width:n}}};function Jr(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function nw(t){if(typeof t!="number"&&t!=null){let[e,n]=t.split(r1);return!n||n==="px"?parseFloat(e):null}return t||null}function rw(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function i1(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var iw="cdk-global-overlay-wrapper",cc=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let n=e.getConfig();this._overlayRef=e,this._width&&!n.width&&e.updateSize({width:this._width}),this._height&&!n.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(iw),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:i,height:o,maxWidth:s,maxHeight:a}=r,l=(i==="100%"||i==="100vw")&&(!s||s==="100%"||s==="100vw"),c=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),u=this._xPosition,f=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",d="",p="",g="";l?g="flex-start":u==="center"?(g="center",h?p=f:d=f):h?u==="left"||u==="end"?(g="flex-end",d=f):(u==="right"||u==="start")&&(g="flex-start",p=f):u==="left"||u==="start"?(g="flex-start",d=f):(u==="right"||u==="end")&&(g="flex-end",p=f),e.position=this._cssPosition,e.marginLeft=l?"0":d,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":p,n.justifyContent=g,n.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,r=n.style;n.classList.remove(iw),r.justifyContent=r.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},uw=(()=>{class t{_viewportRuler=y(vh);_document=y(pe);_platform=y(Qn);_overlayContainer=y(Ih);constructor(){}global(){return new cc}flexibleConnectedTo(n){return new lc(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ks=(()=>{class t{scrollStrategies=y(ow);_overlayContainer=y(Ih);_positionBuilder=y(uw);_keyboardDispatcher=y(aw);_injector=y(xe);_ngZone=y(se);_document=y(pe);_directionality=y(yh);_location=y(Xf);_outsideClickDispatcher=y(lw);_animationsModuleType=y(ls,{optional:!0});_idGenerator=y(Zb);_renderer=y(pt).createRenderer(null,null);_appRef;_styleLoader=y(gh);constructor(){}create(n){this._styleLoader.load(cw);let r=this._createHostElement(),i=this._createPaneElement(r),o=this._createPortalOutlet(i),s=new Ns(n);return s.direction=s.direction||this._directionality.value,new ac(o,r,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(at),this._renderer)}position(){return this._positionBuilder}_createPaneElement(n){let r=this._document.createElement("div");return r.id=this._idGenerator.getId("cdk-overlay-"),r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(Pt)),new nc(n,null,this._appRef,this._injector,this._document)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),o1=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],dw=new P("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=y(ks);return()=>t.scrollStrategies.reposition()}}),As=(()=>{class t{elementRef=y(Oe);constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275dir=dt({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),xh=(()=>{class t{_overlay=y(ks);_dir=y(yh,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=Ne.EMPTY;_attachSubscription=Ne.EMPTY;_detachSubscription=Ne.EMPTY;_positionSubscription=Ne.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=y(dw);_disposeOnNavigation=!1;_ngZone=y(se);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(n){this._disposeOnNavigation=n}backdropClick=new ke;positionChange=new ke;attach=new ke;detach=new ke;overlayKeydown=new ke;overlayOutsideClick=new ke;constructor(){let n=y(zn),r=y(fr);this._templatePortal=new Ms(n,r),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=o1);let n=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=n.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=n.detachments().subscribe(()=>
8this.detach.emit()),n.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),r.keyCode===27&&!this.disableClose&&!Qb(r)&&(r.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{let i=this._getOriginElement(),o=ec(r);(!i||i!==o&&!i.contains(o))&&this.overlayOutsideClick.next(r)})}_buildConfig(){let n=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Ns({direction:this._dir||"ltr",positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(r.width=this.width),(this.height||this.height===0)&&(r.height=this.height),(this.minWidth||this.minWidth===0)&&(r.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(n){let r=this.positions.map(i=>({originX:i.originX,originY:i.originY,overlayX:i.overlayX,overlayY:i.overlayY,offsetX:i.offsetX||this.offsetX,offsetY:i.offsetY||this.offsetY,panelClass:i.panelClass||void 0}));return n.setOrigin(this._getOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let n=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(n),n}_getOrigin(){return this.origin instanceof As?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof As?this.origin.elementRef.nativeElement:this.origin instanceof Oe?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(n=>{this.backdropClick.emit(n)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Ku(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(r){return new(r||t)};static \u0275dir=dt({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Lt],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Lt],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Lt],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Lt],push:[2,"cdkConnectedOverlayPush","push",Lt],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Lt]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ur]})}return t})();function s1(t){return()=>t.scrollStrategies.reposition()}var a1={provide:dw,deps:[ks],useFactory:s1},Mh=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=it({type:t});static \u0275inj=nt({providers:[ks,a1],imports:[Is,Yb,_h,_h]})}return t})();function Th(t,e){let n=!e?.manualCleanup;n&&!e?.injector&&qn(Th);let r=n?e?.injector?.get(Qt)??y(Qt):null,i=c1(e?.equal),o;e?.requireSync?o=Ct({kind:0},{equal:i}):o=Ct({kind:1,value:e?.initialValue},{equal:i});let s=t.subscribe({next:a=>o.set({kind:1,value:a}),error:a=>{if(e?.rejectErrors)throw a;o.set({kind:2,error:a})}});if(e?.requireSync&&o().kind===0)throw new I(601,!1);return r?.onDestroy(s.unsubscribe.bind(s)),qe(()=>{let a=o();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new I(601,!1)}},{equal:e?.equal})}function c1(t=Object.is){return(e,n)=>e.kind===1&&n.kind===1&&t(e.value,n.value)}var Ji=t=>Array.isArray(t)?t:[t],fw=(t,e)=>{let n=[[],[]];for(let r of t)e(r)?n[0].push(r):n[1].push(r);return n},uc=Array,Jn=(t,e)=>t.includes(e),hw=(t,e=0)=>[...new Array(t)].map((n,r)=>r+e),ie=(t,e,n)=>t===void 0?e===void 0?[]:Array.isArray(e)?e:[e]:(n?.prepend?Array.isArray(e)?t.unshift(...e):t.unshift(e):Array.isArray(e)?t.push(...e):t.push(e),t),Xn=(t,e)=>e==null?t??[]:t==null?Ji(e):t.concat(e),pw=(...t)=>t.reduce(Xn,[]),An=(t,e,n)=>{if(t===void 0)return Array.isArray(e)?e:[e];let r=n?.isEqual??((i,o)=>i===o);return Ji(e).forEach(i=>
8{t.some(o=>r(o,i))||t.push(i)}),t},dc=(t,e)=>t.reduce((n,r)=>{let i=r[e];return n[i]=ie(n[i],r),n},{}),Xi=(t,e,n)=>t.length===e.length&&t.every(n?.isEqual?(r,i)=>n.isEqual(r,e[i]):(r,i)=>r===e[i]);var It=(t,e)=>Je(t)===e,Je=t=>{let e=typeof t;return e==="object"?t===null?"null":"object":e==="function"?"object":e},Xt={boolean:"boolean",null:"null",undefined:"undefined",bigint:"a bigint",number:"a number",object:"an object",string:"a string",symbol:"a symbol"},mw=w(m({},Xt),{function:"a function"});var Nh=class extends Error{},fe=t=>er(t,Nh),er=(t,e=Error)=>{throw new e(t)},Os=class extends Error{name="ParseError"},_=t=>er(t,Os),yn=t=>` ${t}`;var X=(t,e)=>{let n={},r=Array.isArray(t),i=!1;return Object.entries(t).forEach((o,s)=>{let a=r?e(s,o[1]):e(...o,s);i||=typeof a[0]=="number",(Array.isArray(a[0])||a.length===0?a:[a]).forEach(([c,u])=>{typeof c=="object"?n[c.group]=ie(n[c.group],u):n[c]=u})}),i?Object.values(n):n};var Ah=Object.entries;var Xe=(t,e)=>t in e,hc=(t,e)=>e in t;var fc=class{constructor(e){Object.assign(this,e)}},gw=class{},eo=class extends gw{},u1=(t,e)=>{let n={},r={},i;for(i in t)i in e?n[i]=t[i]:r[i]=t[i];return[n,r]};var yw=(t,e)=>u1(t,e)[1],kn=t=>Object.keys(t).length===0,Rs=t=>[...Object.entries(t),...Object.getOwnPropertySymbols(t).map(e=>[e,t[e]])],vw=(t,e)=>Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),_w=t=>{let e=Object.keys(t).sort(),n={};for(let r=0;r<e.length;r++)n[e[r]]=t[e[r]];return n};var Vt=yn("represents an uninitialized value");var kh={Array,Boolean,Date,Error,Function,Map,Number,Promise,RegExp,Set,String,WeakMap,WeakSet},Oh=globalThis.File??Blob,Rh={ArrayBuffer,Blob,File:Oh,FormData,Headers,Request,Response,URL},d1={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array},Xr=w(m(m(m({},kh),Rh),d1),{String,Number,Boolean}),Ps=t=>{let e=Object.getPrototypeOf(t);for(;e?.constructor&&(!Xe(e.constructor.name,Xr)||!(t instanceof Xr[e.constructor.name]));)e=Object.getPrototypeOf(e);let n=e?.constructor?.name;if(!(n===void 0||n==="Object"))return n},Fs=t=>typeof t=="object"&&t!==null?Ps(t)??"object":Je(t);var Ce=Array.isArray,f1={Array:"an array",Function:"a function",Date:"a Date",RegExp:"a RegExp",Error:"an Error",Map:"a Map",Set:"a Set",String:"a String object",Number:"a Number object",Boolean:"a Boolean object",Promise:"a Promise",WeakMap:"a WeakMap",WeakSet:"a WeakSet"},h1={ArrayBuffer:"an ArrayBuffer instance",Blob:"a Blob instance",File:"a File instance",FormData:"a FormData instance",Headers:"a Headers instance",Request:"a Request instance",Response:"a Response instance",URL:"a URL instance"},p1={Int8Array:"an Int8Array",Uint8Array:"a Uint8Array",Uint8ClampedArray:"a Uint8ClampedArray",Int16Array:"an Int16Array",Uint16Array:"a Uint16Array",Int32Array:"an Int32Array",Uint32Array:"a Uint32Array",Float32Array:"a Float32Array",Float64Array:"a Float64Array",BigInt64Array:"a BigInt64Array",BigUint64Array:"a BigUint64Array"},bw=m(m(m({},f1),h1),p1),Ls=t=>{let e=Object(t).name??null;return e&&Xe(e,Xr)&&Xr[e]===t?e:null};var Ph=(t,e)=>{let n=t.prototype;for(;n!==null;){if(n===e.prototype)return!0;n=Object.getPrototypeOf(n)}return!1};var ww=t=>Dw(t,new Map),Dw=(t,e)=>{if(typeof t!="object"||t===null)return t;if(e?.has(t))return e.get(t);let n=Ls(t.constructor);if(n==="Date")return new Date(t.getTime());if(n&&n!=="Array")return t;let r=Array.isArray(t)?t.slice():Object.create(Object.getPrototypeOf(t)),i=Object.getOwnPropertyDescriptors(t);if(e){e.set(t,r);for(let o in i){let s=i[o];"get"in s||"set"in s||(s.value=Dw(s.value,e))}}return Object.defineProperties(r,i),r};var m1=t=>{let e=Vt;return()=>e===Vt?e=t():e},pr=t=>typeof t=="function"&&t.length===0,Ew=(t,e)=>{try{return t()}catch(n){return e?.(n)}},Cw=class extends Function{constructor(...t){let e=t.slice(0,-1),n=t.at(-1);try{super(...e,n)}catch(r){return fe(`Encountered an unexpected error while compiling your definition:
9                Message: ${r} 
10                Source: (${t.slice(0,-1)}) => {
11                    ${t.at(-1)}
12                }`)}}}
12,en=class{constructor(e,...[n]){return Object.assign(Object.setPrototypeOf(e.bind(n?.bind??this),this.constructor.prototype),n?.attach)}},Sw=m1(()=>{try{return new Function("return false")()}catch{return!0}});var S8=yn("brand");var g1=yn("arkInferred");var M8=yn("args"),ot=class{constructor(){}};var Iw=t=>t[0].toUpperCase()+t.slice(1);var Fh=t=>new RegExp(y1(t),typeof t=="string"?"":t.flags);var y1=t=>`^(?:${typeof t=="string"?t:t.source})$`;var tr={negativeLookahead:t=>`(?!${t})`,nonCapturingGroup:t=>`(?:${t})`},Vs="\\",mr={" ":1,"\n":1,"	":1};var v1=/^-0\.?0*$/.source,Mw=/[1-9]\d*/.source,_1=/\.\d+/.source,b1=/\.\d*[1-9]/.source,Tw=t=>Fh(tr.negativeLookahead(v1)+tr.nonCapturingGroup("-?"+tr.nonCapturingGroup(tr.nonCapturingGroup("0|"+Mw)+tr.nonCapturingGroup(t.decimalPattern)+"?")+(t.allowDecimalOnly?"|"+t.decimalPattern:"")+"?")),xw=Tw({decimalPattern:b1,allowDecimalOnly:!1}),w1=xw.test.bind(xw),pc=Tw({decimalPattern:_1,allowDecimalOnly:!0}),R8=pc.test.bind(pc),D1=/^-?\d*\.?\d*$/,E1=t=>t.length!==0&&D1.test(t),$s=Fh(tr.negativeLookahead("^-0$")+"-?"+tr.nonCapturingGroup(tr.nonCapturingGroup("0|"+Mw))),C1=$s.test.bind($s),Lh=/^-?\d+$/,S1=Lh.test.bind(Lh),Nw={number:"a number",bigint:"a bigint",integer:"an integer"},Aw=(t,e)=>`'${t}' was parsed as ${Nw[e]} but could not be narrowed to a literal value. Avoid unnecessary leading or trailing zeros and other abnormal notation`,I1=(t,e)=>e==="number"?w1(t):C1(t),x1=(t,e)=>e==="number"?Number(t):Number.parseInt(t),M1=(t,e)=>e==="number"?E1(t):S1(t),kw=(t,e)=>Vh(t,"number",e),Ow=(t,e)=>Vh(t,"number",w(m({},e),{strict:!0})),Rw=(t,e)=>Vh(t,"integer",e),Vh=(t,e,n)=>{let r=x1(t,e);return!Number.isNaN(r)&&M1(t,e)?n?.strict?I1(t,e)?r:_(Aw(t,e)):r:n?.errorOnFail?_(n?.errorOnFail===!0?`Failed to parse ${Nw[e]} from '${t}'`:n?.errorOnFail):void 0},Pw=t=>{if(t[t.length-1]!=="n")return;let e=t.slice(0,-1),n;try{n=BigInt(e)}catch{return}if($s.test(e))return n;if(Lh.test(e))return _(Aw(t,"bigint"))};var T1="0.44.0",N1={version:T1,filename:Ew(()=>import.meta.filename??void 0,()=>globalThis.__filename??"unknown"),FileConstructor:Oh},ei=N1,Fw=new WeakMap,$h=Object.create(null),js=t=>{let e=Fw.get(t);if(e)return e;let n=A1(t);return $h[n]?n=`${n}${$h[n]++}`:$h[n]=1,ei[n]=t,Fw.set(t,n),n},to=t=>/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(t),A1=t=>{switch(typeof t){case"object":{if(t===null)break;let e=Ps(t)??"object";return e[0].toLowerCase()+e.slice(1)}case"function":return to(t.name)?t.name:"fn";case"symbol":return t.description&&to(t.description)?t.description:"symbol"}return fe(`Unexpected attempt to register serializable value of type ${Je(t)}`)};var mc=t=>typeof t=="string"?JSON.stringify(t):typeof t=="bigint"?`${t}n`:`${t}`;var Lw=(t,e={})=>Bs(t,m({onUndefined:"$ark.undefined",onBigInt:n=>`$ark.bigint-${n}`},e),[]);var Y=(t,e)=>{switch(Je(t)){case"object":let n=t,r=n.constructor.name;return r==="Object"||r==="Array"?JSON.stringify(Bs(n,gc,[]),null,e):n instanceof Date?ti(n):typeof n.expression=="string"?n.expression:r;case"symbol":return gc.onSymbol(t);default:return mc(t)}},gc={onCycle:()=>"(cycle)",onSymbol:t=>`Symbol(${js(t)})`,onFunction:t=>`Function(${js(t)})`},Bs=(t,e,n)=>{switch(Je(t)){case"object":{let r=t;if("toJSON"in r&&typeof r.toJSON=="function")return r.toJSON();if(typeof r=="function")return gc.onFunction(r);if(n.includes(r))return"(cycle)";let i=[...n,r];if(Array.isArray(r))return r.map(s=>Bs(s,e,i));if(r instanceof Date)return r.toDateString();let o={};for(let s in r)o[s]=Bs(r[s],e,i);for(let s of Object.getOwnPropertySymbols(r))o[e.onSymbol?.(s)??s.toString()]=Bs(r[s],e,i);return o}case"symbol":return gc.onSymbol(t);case"bigint":return e.onBigInt?.(t)??`${t}n`;case"undefined":return e.onUndefined??"undefined";case"string":return t.replaceAll("\\","\\\\");default:return t}},ti=t=>{let e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds(),a=t.getMilliseconds();if(n===0&&r===1&&i===0&&o===0&&s===0&&a===0)return`${e}`;let l=`${k1[n]} ${r}, ${e}`;if(i===0&&o===0&&s===0&&a===0)return l;let c=t.toLocaleTimeString(),u=c.endsWith(" AM")||c.endsWith(" PM")?c.slice(-3):"";return u&&(c=c.slice(0,-u.length)),a?c+=`.${R1(a,3)}`:O1.test(c)&&(c=c.slice(0,-3)),`${c+u}, ${l}`},k1=["January","February","March","April","May","June","July","August","September","October","November","December"],O1=/:\d\d:00$/,R1=(t,e)=>String(t).padStart(e,"0");var Vw=(t,e,...[n])=>{let r=n?.stringifySymbol??Y,i=t;switch(typeof e){case"string":i=to(e)?t===""?e:`${t}.${e}`:`${t}[${JSON.stringify(e)}]`;break;case"number":i=`${t}[${e}]`;break;case"symbol":i=`${t}[${r(e)}]`;break;default:n?.stringifyNonKey?i=`${t}[${n.stringifyNonKey(e)}]`:_(`${Y(e)} must be a PropertyKey or stringifyNonKey must be passed to options`)}return i},nr=(t,...e)=>t.reduce((n,r)=>Vw(n,r,...e),""),no=class extends uc{cache={};constructor(...e){super(),this.push(...e)}stringify(){return this.cache.stringify?this.cache.stringify:this.cache.stringify=nr(this)}stringifyAncestors(){if(this.cache.stringifyAncestors)return this.cache.stringifyAncestors;let e="",n=[e];return this.forEach(r=>{e=Vw(e,r),n.push(e)}),this.cache.stringifyAncestors=n}};var yc=class{chars;i;def;constructor(e){this.def=e,this.chars=[...e],this.i=0}shift(){return this.chars[this.i++]??""}get lookahead(){return this.chars[this.i]??""}get nextLookahead(){return this.chars[this.i+1]??""}get length(){return this.chars.length}shiftUntil(e){let n="";for(;this.lookahead;){if(e(this,n))if(n[n.length-1]===Vs)n=n.slice(0,-1);else break;n+=this.shift()}return n}shiftUntilLookahead(e){return typeof e=="string"?this.shiftUntil(n=>n.lookahead===e):this.shiftUntil(n=>n.lookahead in e)}shiftUntilNonWhitespace(){return this.shiftUntil(()=>!(this.lookahead in mr))}jumpToIndex(e){this.i=e<0?this.length+e:e}jumpForward(e){this.i+=e}get location(){return this.i}get unscanned(){return this.chars.slice(this.i,this.length).join("")}get scanned(){return this.chars.slice(0,this.i).join("")}
12sliceChars(e,n){return this.chars.slice(e,n).join("")}lookaheadIs(e){return this.lookahead===e}lookaheadIsIn(e){return this.lookahead in e}};var sz=yn("implementedTraits");var jh="$ark",Bh=2;for(;jh in globalThis;)jh=`$ark${Bh++}`;var $w=jh;globalThis[$w]=ei;var C=ei;if(Bh!==2){let t=globalThis,e=[t.$ark];for(let i=2;i<Bh;i++)t[`$ark${i}`]&&e.push(t[`$ark${i}`]);console.warn("Multiple @ark registries detected. This can lead to unexpected behavior.");let n=dc(e,"filename"),r=Object.keys(n);for(let i of r)n[i].length>1&&console.warn(`File ${i} was initialized multiple times, likely due to being imported from both CJS and ESM contexts.`);r.length>1&&console.warn("Registries were initialized at the following paths:"+r.map(i=>`	${i} (@ark/util version ${n[i][0].version})`).join(`
13`))}var P1=t=>`${$w}.${t}`,Re=t=>P1(js(t));var Us=class extends eo{argNames;body="";constructor(...e){super(),this.argNames=e;for(let n of e){if(n in this)throw new Error(`Arg name '${n}' would overwrite an existing property on FunctionBody`);this[n]=n}}indentation=0;indent(){return this.indentation+=4,this}dedent(){return this.indentation-=4,this}prop(e,n=!1){return Uh(e,n)}index(e,n=!1){return jw(`${e}`,n)}line(e){return this.body+=`${" ".repeat(this.indentation)}${e}
14`,this}const(e,n){return this.line(`const ${e} = ${n}`),this}let(e,n){return this.line(`let ${e} = ${n}`)}set(e,n){return this.line(`${e} = ${n}`)}if(e,n){return this.block(`if (${e})`,n)}elseIf(e,n){return this.block(`else if (${e})`,n)}else(e){return this.block("else",e)}for(e,n,r=0){return this.block(`for (let i = ${r}; ${e}; i++)`,n)}forIn(e,n){return this.block(`for (const k in ${e})`,n)}block(e,n,r=""){return this.line(`${e} {`),this.indent(),n(this),this.dedent(),this.line(`}${r}`)}return(e=""){return this.line(`return ${e}`)}write(e="anonymous"){return`${e}(${this.argNames.join(", ")}) {
15${this.body}}`}compile(){return new Cw(...this.argNames,this.body)}},rr=t=>It(t,"object")||typeof t=="symbol"?Re(t):mc(t),Uh=(t,e=!1)=>typeof t=="string"&&to(t)?`${e?"?":""}.${t}`:jw(F1(t),e),F1=t=>typeof t=="symbol"?Re(t):JSON.stringify(t),jw=(t,e=!1)=>`${e?"?.":""}[${t}]`,ro=class extends Us{traversalKind;optimistic;constructor(e){super("data","ctx"),this.traversalKind=e.kind,this.optimistic=e.optimistic===!0}invoke(e,n){let r=n?.arg??this.data,i=typeof e=="string"?!0:this.requiresContextFor(e),o=typeof e=="string"?e:e.id;return i?`${this.referenceToId(o,n)}(${r}, ${this.ctx})`:`${this.referenceToId(o,n)}(${r})`}referenceToId(e,n){let r=n?.kind??this.traversalKind,i=`this.${e}${r}`;return n?.bind?`${i}.bind(${n?.bind})`:i}requiresContextFor(e){return this.traversalKind==="Apply"||e.allowsRequiresContext}initializeErrorCount(){return this.const("errorCount","ctx.currentErrorCount")}returnIfFail(){return this.if("ctx.currentErrorCount > errorCount",()=>this.return())}returnIfFailFast(){return this.if("ctx.failFast && ctx.currentErrorCount > errorCount",()=>this.return())}traverseKey(e,n,r){let i=this.requiresContextFor(r);return i&&this.line(`${this.ctx}.path.push(${e})`),this.check(r,{arg:n}),i&&this.line(`${this.ctx}.path.pop()`),this}check(e,n){return this.traversalKind==="Allows"?this.if(`!${this.invoke(e,n)}`,()=>this.return(!1)):this.line(this.invoke(e,n))}};var vc=t=>X(t,(e,n)=>[e,Ce(n)?[...n]:n]),xt=yn("arkKind"),F=(t,e)=>t?.[xt]===e,Me=t=>F(t,"root")||F(t,"constraint");var Bw=["unit","proto","domain"],io=["required","optional","index","sequence"],zh=["pattern","divisor","exactLength","max","min","maxLength","minLength","before","after"],_c=[...zh,...io,"structure","predicate"],oo=["alias","union","morph","unit","intersection","proto","domain"],L1=[...oo,..._c],bc=X(_c,(t,e)=>[e,1]),Uw=X([...io,"undeclared"],(t,e)=>[e,1]),zw=X(L1,(t,e)=>[e,t]),so=t=>typeof t=="string"&&t in zw;var ao=t=>zw[t],wc=t=>oo.slice(ao(t)+1),Uz=[...wc("union"),"alias"],zz=[...wc("morph"),"alias"],tn=t=>typeof t=="string"||typeof t=="boolean"||t===null?t:typeof t=="number"?Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t:rr(t),gr=t=>{let e="{ ";for(let[n,r]of Object.entries(t))e+=`${n}: ${rr(r)}, `;return e+" }"},q=t=>{let e=t;return e.hasAssociatedError&&(e.defaults.expected??=n=>"description"in n?n.description:e.defaults.description(n),e.defaults.actual??=n=>Y(n),e.defaults.problem??=n=>`must be ${n.expected}${n.actual?` (was ${n.actual})`:""}`,e.defaults.message??=n=>{if(n.path.length===0)return n.problem;let r=`${n.propString} ${n.problem}`;return r[0]==="["?`value at ${r}`:r}),e};C.config??={};var zs=(t,e)=>{if(!e)return t;let n=m({},t),r;for(r in e)n[r]=so(r)?m(m({},t[r]),e[r]):e[r];return n};var yr=class t extends eo{[xt]="error";path;data;nodeConfig;input;ctx;constructor(e,n){super(),this.input=e,this.ctx=n,vw(this,e);let r=n.data;e.code==="union"&&(e.errors=e.errors.flatMap(o=>{let s=o.hasCode("union")?o.errors:[o];return!e.prefixPath&&!e.relativePath?s:s.map(a=>a.transform(l=>w(m({},l),{path:pw(e.prefixPath,l.path,e.relativePath)})))}
15)),this.nodeConfig=n.config[this.code];let i=[...e.path??n.path];e.relativePath&&i.push(...e.relativePath),e.prefixPath&&i.unshift(...e.prefixPath),this.path=new no(...i),this.data="data"in e?e.data:r}transform(e){let n=w(m({},this.input),{data:this.data,path:this.path,relativePath:[],prefixPath:[]});return new t(e(n),this.ctx)}hasCode(e){return this.code===e}get propString(){return nr(this.path)}get expected(){if(this.input.expected)return this.input.expected;let e=this.meta?.expected??this.nodeConfig.expected;return typeof e=="function"?e(this.input):e}get actual(){if(this.input.actual)return this.input.actual;let e=this.meta?.actual??this.nodeConfig.actual;return typeof e=="function"?e(this.data):e}get problem(){if(this.input.problem)return this.input.problem;let e=this.meta?.problem??this.nodeConfig.problem;return typeof e=="function"?e(this):e}get message(){if(this.input.message)return this.input.message;let e=this.meta?.message??this.nodeConfig.message;return typeof e=="function"?e(this):e}toString(){return this.message}throw(){throw this}},Mt=class t extends uc{ctx;constructor(e){super(),this.ctx=e}byPath=Object.create(null);byAncestorPath=Object.create(null);count=0;mutable=this;throw(){throw new AggregateError(this,this.summary)}add(e){this.includes(e)||this._add(e)}transform(e){let n=new t(this.ctx);return this.forEach(r=>n.add(e(r))),n}merge(e){e.forEach(n=>{this.includes(n)||this._add(new yr(w(m({},n),{path:[...this.ctx.path,...n.path]}),this.ctx))})}affectsPath(e){return this.length===0?!1:e.stringifyAncestors().some(n=>n in this.byPath)||e.stringify()in this.byAncestorPath}get summary(){return this.toString()}get message(){return this.toString()}get issues(){return this}toString(){return this.join(`
16`)}_add(e){let n=this.byPath[e.propString];if(n){let r=new yr({code:"intersection",errors:n.hasCode("intersection")?[...n.errors,e]:[n,e]},this.ctx),i=this.indexOf(n);this.mutable[i===-1?this.length:i]=r,this.byPath[e.propString]=r,this.addAncestorPaths(e)}else this.byPath[e.propString]=e,this.addAncestorPaths(e),this.mutable.push(e);this.count++}addAncestorPaths(e){e.path.stringifyAncestors().forEach(n=>{this.byAncestorPath[n]=ie(this.byAncestorPath[n],e)})}};var vn=class{path=[];errors=new Mt(this);root;config;queuedMorphs=[];branches=[];seen={};constructor(e,n){this.root=e,this.config=n}get data(){let e=this.root;for(let n of this.path)e=e?.[n];return e}get propString(){return nr(this.path)}reject(e){return this.error(e),!1}mustBe(e){return this.error(e),!1}error(e){let n=typeof e=="object"?e.code?e:w(m({},e),{code:"predicate"}):{code:"predicate",expected:e};return this.errorFromContext(n)}hasError(){return this.currentErrorCount!==0}get currentBranch(){return this.branches.at(-1)}queueMorphs(e){let n={path:new no(...this.path),morphs:e};this.currentBranch?this.currentBranch.queuedMorphs.push(n):this.queuedMorphs.push(n)}finalize(e){return this.queuedMorphs.length&&(typeof this.root=="object"&&this.root!==null&&this.config.clone&&(this.root=this.config.clone(this.root)),this.applyQueuedMorphs()),this.hasError()?e?e(this.errors):this.errors:this.root}get currentErrorCount(){return this.currentBranch?this.currentBranch.error?1:0:this.errors.count}get failFast(){return this.branches.length!==0}pushBranch(){this.branches.push({error:void 0,queuedMorphs:[]})}popBranch(){return this.branches.pop()}get external(){return this}errorFromNodeContext(e){return this.errorFromContext(e)}errorFromContext(e){let n=new yr(e,this);return this.currentBranch?this.currentBranch.error=n:this.errors.add(n),n}applyQueuedMorphs(){for(;this.queuedMorphs.length;){let e=this.queuedMorphs;this.queuedMorphs=[];for(let{path:n,morphs:r}of e)this.errors.affectsPath(n)||this.applyMorphsAtPath(n,r)}}applyMorphsAtPath(e,n){let r=e.at(-1),i;if(r!==void 0){i=this.root;for(let o=0;o<e.length-1;o++)i=i[e[o]]}this.path=[...e];for(let o of n){let s=Me(o),a=o(i===void 0?this.root:i[r],this);if(a instanceof yr){this.errors.add(a);break}if(a instanceof Mt){s||this.errors.merge(a);break}i===void 0?this.root=a:i[r]=a,this.applyQueuedMorphs()}}},Tt=(t,e,n)=>{if(!n)return e();n.path.push(t);let r=e();return n.path.pop(),r};var lo=class extends en{attachments;$;onFail;includesTransform;includesContextualPredicate;isCyclic;allowsRequiresContext;rootApplyStrategy;contextFreeMorph;rootApply;referencesById;shallowReferences;flatRefs;flatMorphs;allows;get shallowMorphs(){return[]}constructor(e,n){super((i,o,s=this.onFail)=>o?(this.traverseApply(i,o),o.hasError()?o.errors:o.data):this.rootApply(i,s),{attach:e}),this.attachments=e,this.$=n,this.onFail=this.meta.onFail??this.$.resolvedConfig.onFail,this.includesTransform=this.hasKind("morph")||this.hasKind("structure")&&this.structuralMorph!==void 0,this.includesContextualPredicate=this.hasKind("predicate")&&this.inner.predicate.length!==1,this.isCyclic=this.kind==="alias",this.referencesById={[this.id]:this},this.shallowReferences=this.hasKind("structure")?[this,...this.children]:this.children.reduce((i,o)=>$1(i,o.shallowReferences),[this]);
16let r=this.isStructural();this.flatRefs=[],this.flatMorphs=[];for(let i=0;i<this.children.length;i++){if(this.includesTransform||=this.children[i].includesTransform,this.includesContextualPredicate||=this.children[i].includesContextualPredicate,this.isCyclic||=this.children[i].isCyclic,!r){let o=this.children[i].flatRefs;for(let s=0;s<o.length;s++){let a=o[s];if(!this.flatRefs.some(l=>Hw(l,a))){this.flatRefs.push(a);for(let l of a.node.branches)l.hasKind("morph")&&this.flatMorphs.push({path:a.path,propString:a.propString,node:l})}}}Object.assign(this.referencesById,this.children[i].referencesById)}this.flatRefs.sort((i,o)=>i.path.length>o.path.length?1:i.path.length<o.path.length?-1:i.propString>o.propString?1:i.propString<o.propString||i.node.expression<o.node.expression?-1:1),this.allowsRequiresContext=this.includesContextualPredicate||this.isCyclic,this.rootApplyStrategy=!this.allowsRequiresContext&&this.flatMorphs.length===0?this.shallowMorphs.length===0?"allows":this.shallowMorphs.every(i=>i.length===1)?this.hasKind("union")?this.branches.some(i=>i.shallowMorphs.length>1)?"contextual":"branchedOptimistic":this.shallowMorphs.length>1?"contextual":"optimistic":"contextual":"contextual",this.rootApply=this.createRootApply(),this.allows=this.allowsRequiresContext?i=>this.traverseAllows(i,new vn(i,this.$.resolvedConfig)):i=>this.traverseAllows(i)}createRootApply(){switch(this.rootApplyStrategy){case"allows":return(e,n)=>{if(this.allows(e))return e;let r=new vn(e,this.$.resolvedConfig);return this.traverseApply(e,r),r.finalize(n)};case"contextual":return(e,n)=>{let r=new vn(e,this.$.resolvedConfig);return this.traverseApply(e,r),r.finalize(n)};case"optimistic":return this.contextFreeMorph=this.shallowMorphs[0],(e,n)=>{if(this.allows(e))return this.contextFreeMorph(e);let r=new vn(e,this.$.resolvedConfig);return this.traverseApply(e,r),r.finalize(n)};case"branchedOptimistic":return this.createBranchedOptimisticRootApply();default:return this.rootApplyStrategy,fe(`Unexpected rootApplyStrategy ${this.rootApplyStrategy}`)}}withMeta(e){return this.$.node(this.kind,w(m({},this.inner),{meta:typeof e=="function"?e(m({},this.meta)):e}))}compiledMeta=JSON.stringify(this.metaJson);cacheGetter(e,n){return Object.defineProperty(this,e,{value:n}),n}get description(){return this.cacheGetter("description",this.meta?.description??this.$.resolvedConfig[this.kind].description(this))}get references(){return Object.values(this.referencesById)}precedence=ao(this.kind);precompilation;assert=(e,n)=>this(e,n,r=>r.throw());traverse(e,n){return this(e,n,null)}get in(){return this.cacheGetter("in",this.getIo("in"))}get out(){return this.cacheGetter("out",this.getIo("out"))}getIo(e){if(!this.includesTransform)return this;let n={};for(let[r,i]of this.innerEntries){let o=this.impl.keys[r];if(o.reduceIo)o.reduceIo(e,n,i);else if(o.child){let s=i;n[r]=Ce(s)?s.map(a=>a[e]):s[e]}else n[r]=i}return this.$.node(this.kind,n)}toJSON(){return this.json}toString(){return`Type<${this.expression}>`}equals(e){let n=Me(e)?e:this.$.parseDefinition(e);return this.innerHash===n.innerHash}ifEquals(e){return this.equals(e)?this:void 0}hasKind(e){return this.kind===e}assertHasKind(e){return this.kind!==e&&er(`${this.kind} node was not of asserted kind ${e}`),this}hasKindIn(...e){return e.includes(this.kind)}assertHasKindIn(...e){return Jn(e,this.kind)||er(`${this.kind} node was not one of asserted kinds ${e}`),this}isBasis(){return Jn(Bw,this.kind)}isConstraint(){return Jn(_c,this.kind)}isStructural(){return Jn(io,this.kind)}isRefinement(){return Jn(zh,this.kind)}isRoot(){return Jn(oo,this.kind)}isUnknown(){return this.hasKind("intersection")&&this.children.length===0}isNever(){return this.hasKind("union")&&this.children.length===0}hasUnit(e){return this.hasKind("unit")&&this.allows(e)}hasOpenIntersection(){return this.impl.intersectionIsOpen}get nestableExpression(){return this.expression}firstReference(e){return this.references.find(n=>n!==this&&e(n))}firstReferenceOrThrow(e){return this.firstReference(e)??er(`${this.id} had no references matching predicate ${e}`)}firstReferenceOfKind(e){return this.firstReference(n=>n.hasKind(e))}firstReferenceOfKindOrThrow(e){return this.firstReference(n=>n.kind===e)??er(`${this.id} had no ${e} references`)}transform(e,n){return this._transform(e,w(m({},n),{seen:{},path:[],parseOptions:{prereduced:n?.prereduced??!1},undeclaredKeyHandling:void 0}))}_transform(e,n){let r=n.bindScope??this.$;if(n.seen[this.id])return this.$.lazilyResolve(n.seen[this.id]);if(n.shouldTransform?.(this,n)===!1)return this;let i;n.seen[this.id]=()=>i,this.hasKind("structure")&&this.undeclared!==n.undeclaredKeyHandling&&(n=w(m({},n),{undeclaredKeyHandling:this.undeclared}));let o=X(this.inner,(u,f)=>{if(!this.impl.keys[u].child)return[u,f];let h=f;
16if(!Ce(h)){let p=h._transform(e,n);return p?[u,p]:[]}if(h.length===0)return[u,f];let d=h.flatMap(p=>p._transform(e,n)??[]);return d.length?[u,d]:[]});delete n.seen[this.id];let s=Object.assign(o,{meta:this.meta}),a=e(this.kind,s,n);if(a===null)return null;if(Me(a))return i=a;let l=Object.keys(a);return(l.length===0||l.length===1&&l[0]==="meta")&&!kn(this.inner)?null:(this.kind==="required"||this.kind==="optional"||this.kind==="index")&&!("value"in a)?n.undeclaredKeyHandling?w(m({},a),{value:C.intrinsic.unknown}):null:(this.kind==="morph"&&(a.in??=C.intrinsic.unknown),i=r.node(this.kind,a,n.parseOptions))}configureShallowDescendants(e){let n=typeof e=="string"?{description:e}:e;return this.$.finalize(this.transform((r,i)=>w(m({},i),{meta:m(m({},i.meta),n)}),{shouldTransform:r=>r.kind!=="structure"}))}},V1=t=>nr(t,{stringifyNonKey:e=>e.expression}),_n=(t,e)=>({path:t,node:e,propString:V1(t)}),Hw=(t,e)=>t.propString===e.propString&&t.node.equals(e.node),Hh=(t,e)=>An(t,e,{isEqual:Hw}),$1=(t,e)=>An(t,e,{isEqual:(n,r)=>n.equals(r)});var T=class t extends Array{static init(e,n,r,i){return new t({kind:e,l:n,r,path:i?.path??[],optional:i?.optional??!1})}add(e,n,r,i){return this.push({kind:e,l:n,r,path:i?.path??[],optional:i?.optional??!1}),this}get summary(){return this.describeReasons()}describeReasons(){if(this.length===1){let{path:e,l:n,r}=this[0],i=nr(e);return Kh(`Intersection${i&&` at ${i}`} of ${qw(n,r)}`)}return`The following intersections result in unsatisfiable types:
17\u2022 ${this.map(({path:e,l:n,r})=>`${e}: ${qw(n,r)}`).join(`
18\u2022 `)}`}throw(){return _(this.describeReasons())}invert(){let e=this.map(n=>w(m({},n),{l:n.r,r:n.l}));return e instanceof t?e:new t(...e)}withPrefixKey(e,n){return this.map(r=>w(m({},r),{path:[e,...r.path],optional:r.optional||n==="optional"}))}toNeverIfDisjoint(){return C.intrinsic.never}},qw=(t,e)=>`${qh(t)} and ${qh(e)}`,qh=t=>Me(t)?t.expression:Ce(t)?t.map(qh).join(" | ")||"never":String(t),Kh=t=>`${t} results in an unsatisfiable type`;var co={},$t=(t,e,n)=>Te(t,e,{$:n,invert:!1,pipe:!1}),Wh=(t,e,n)=>Te(t,e,{$:n,invert:!1,pipe:!0}),Te=(t,e,n)=>{let r=n.pipe?"|>":"&",i=`${t.hash}${r}${e.hash}`;if(co[i]!==void 0)return co[i];if(!n.pipe){let a=`${e.hash}${r}${t.hash}`;if(co[a]!==void 0){let l=co[a],c=l instanceof T?l.invert():l;return co[i]=c,c}}let o=!n.pipe||!t.includesTransform&&!e.includesTransform;if(o&&t.equals(e))return t;let s=o?Gh(t,e,n):t.hasKindIn(...oo)?j1(t,e,n):Gh(t,e,n);return Me(s)&&(t.equals(s)?s=t:e.equals(s)&&(s=e)),co[i]=s,s},Gh=(t,e,n)=>{let r=t.precedence<e.precedence?t.kind:e.kind,i=t.impl.intersections[e.kind]??e.impl.intersections[t.kind];if(i===void 0)return null;if(r===t.kind)return i(t,e,n);{let o=i(e,t,w(m({},n),{invert:!n.invert}));return o instanceof T&&(o=o.invert()),o}},j1=(t,e,n)=>t.includesTransform||e.includesTransform?n.invert?Kw(e,t,n):Kw(t,e,n):Gh(t,e,n),Kw=(t,e,n)=>t.distribute(r=>B1(r,e,n),r=>{let i=r.filter(Me);if(i.length===0)return T.init("union",t.branches,e.branches);if(i.length<t.branches.length||!t.branches.every((a,l)=>a.in.equals(i[l].in)))return n.$.parseSchema(i);let o;if(i.length===1){let a=i[0];return o?n.$.node("morph",w(m({},a.inner),{in:a.in.withMeta(o)})):a}let s={branches:i};return o&&(s.meta=o),n.$.parseSchema(s)}),B1=(t,e,n)=>{if(t.hasKind("morph")){let i=[...t.morphs];if(t.lastMorphIfNode){let o=Te(t.lastMorphIfNode,e,n);if(o instanceof T)return o;i[i.length-1]=o}else i.push(e);return n.$.node("morph",{morphs:i,in:t.inner.in})}if(e.hasKind("morph")){let i=Te(t,e.in,n);return i instanceof T?i:n.$.node("morph",{morphs:[e],in:i})}return n.$.node("morph",{morphs:[e],in:t})};var jt=class extends lo{constructor(e,n){super(e,n),Object.defineProperty(this,xt,{value:"constraint",enumerable:!1})}impliedSiblings;intersect(e){return $t(this,e,this.$)}},On=class extends jt{traverseApply=(e,n)=>{this.traverseAllows(e,n)||n.errorFromNodeContext(this.errorContext)};compile(e){e.traversalKind==="Allows"?e.return(this.compiledCondition):e.if(this.compiledNegation,()=>e.line(`${e.ctx}.errorFromNodeContext(${this.compiledErrorContext})`))}get errorContext(){return m({code:this.kind,description:this.description,meta:this.meta},this.inner)}get compiledErrorContext(){return gr(this.errorContext)}},ft=t=>
18(e,n)=>{if(Ce(e)){if(e.length===0)return;let i=e.map(o=>n.$.node(t,o));return t==="predicate"?i:i.sort((o,s)=>o.hash<s.hash?-1:1)}let r=n.$.node(t,e);return r.hasOpenIntersection()?[r]:r},uo=t=>{let e=t.r.shift();if(!e){let r=t.l.length===0&&t.kind==="structure"?C.intrinsic.unknown.internal:t.ctx.$.node(t.kind,Object.assign(t.baseInner,U1(t.l)),{prereduced:!0});for(let i of t.roots){if(r instanceof T)return r;r=Te(i,r,t.ctx)}return r}let n=!1;for(let r=0;r<t.l.length;r++){let i=Te(t.l[r],e,t.ctx);if(i!==null){if(i instanceof T)return i;if(n){if(!t.l.includes(i))return fe(`Unexpectedly encountered multiple distinct intersection results for refinement ${i}`)}else{if(i.isRoot())return t.roots.push(i),t.l.splice(r),uo(t);t.l[r]=i,n=!0}}}return n||t.l.push(e),t.kind==="intersection"&&e.impliedSiblings?.forEach(r=>An(t.r,r)),uo(t)},fo=t=>Object.entries(t).flatMap(([n,r])=>n in bc?r:[]).sort((n,r)=>n.precedence<r.precedence?-1:n.precedence>r.precedence?1:n.kind==="predicate"&&r.kind==="predicate"?0:n.hash<r.hash?-1:1),U1=t=>{let e={};for(let n of t)if(n.hasOpenIntersection())e[n.kind]=ie(e[n.kind],n);else{if(e[n.kind])return fe(`Unexpected intersection of closed refinements of kind ${n.kind}`);e[n.kind]=n}return e},Gw=(...t)=>_(Ww(...t)),Ww=(t,e,n)=>{let r=n.hasKind("morph")?n.shortDescription:n.isUnknown()?"unknown":n.exclude(e).shortDescription;return`${Iw(t)} operand must be ${e.description} (was ${r})`};var Yw=(t,e,n)=>new ir(t,e,n,n,null),Hs=class extends en{},ir=class extends en{[xt]="generic";paramDefs;bodyDef;$;arg$;baseInstantiation;hkt;description;constructor(e,n,r,i,o){super((...s)=>{let a=X(this.names,(l,c)=>{let u=this.arg$.parse(s[l]);return u.extends(this.constraints[l])||_(z1(c,this.constraints[l].expression,u.expression)),[c,u]});if(this.defIsLazy()){let l=this.bodyDef(a);return this.$.parse(l)}return this.$.parse(n,{args:a})}),this.paramDefs=e,this.bodyDef=n,this.$=r,this.arg$=i,this.hkt=o,this.description=o?new o().description??`a generic type for ${o.constructor.name}`:"a generic type",this.baseInstantiation=this(...this.constraints)}defIsLazy(){return this.bodyDef instanceof Hs}cacheGetter(e,n){return Object.defineProperty(this,e,{value:n}),n}get json(){return this.cacheGetter("json",{params:this.params.map(e=>e[1].isUnknown()?e[0]:[e[0],e[1].json]),body:Lw(this.bodyDef)})}get params(){return this.cacheGetter("params",this.paramDefs.map(e=>typeof e=="string"?[e,C.intrinsic.unknown]:[e[0],this.$.parse(e[1])]))}get names(){return this.cacheGetter("names",this.params.map(e=>e[0]))}get constraints(){return this.cacheGetter("constraints",this.params.map(e=>e[1]))}get internal(){return this}get referencesById(){return this.baseInstantiation.internal.referencesById}get references(){return this.baseInstantiation.internal.references}},z1=(t,e,n)=>`${t} must be assignable to ${e} (was ${n})`;var Zw={morph:"it represents a transformation, while JSON Schema only allows validation. Consider creating a Schema from one of its endpoints using `.in` or `.out`.",cyclic:"cyclic types are not yet convertible to JSON Schema. If this feature is important to you, please add your feedback at https://github.com/arktypeio/arktype/issues/1087"},Qw=(t,e)=>{let n=`${t} is not convertible to JSON Schema`;if(e){let r=Xe(e,Zw)?Zw[e]:e;n+=` because ${r}`}return n},le={writeUnjsonifiableMessage:Qw,UnjsonifiableError:class extends Error{},throwUnjsonifiableError:(...t)=>er(Qw(...t)),throwInternalOperandError:(t,e)=>fe(`Unexpected JSON Schema input for ${t}: ${Y(e)}`)};
18var H1=q({kind:"predicate",hasAssociatedError:!0,collapsibleKey:"predicate",keys:{predicate:{}},normalize:t=>typeof t=="function"?{predicate:t}:t,defaults:{description:t=>`valid according to ${t.predicate.name||"an anonymous predicate"}`},intersectionIsOpen:!0,intersections:{predicate:()=>null}}),Yh=class extends jt{serializedPredicate=Re(this.predicate);compiledCondition=`${this.serializedPredicate}(data, ctx)`;compiledNegation=`!${this.compiledCondition}`;impliedBasis=null;expression=this.serializedPredicate;traverseAllows=this.predicate;errorContext={code:"predicate",description:this.description,meta:this.meta};compiledErrorContext=gr(this.errorContext);traverseApply=(e,n)=>{!this.predicate(e,n.external)&&!n.hasError()&&n.errorFromNodeContext(this.errorContext)};compile(e){if(e.traversalKind==="Allows"){e.return(this.compiledCondition);return}e.if(`${this.compiledNegation} && !ctx.hasError()`,()=>e.line(`ctx.errorFromNodeContext(${this.compiledErrorContext})`))}reduceJsonSchema(){return le.throwUnjsonifiableError(`Predicate ${this.expression}`)}},Zh={implementation:H1,Node:Yh};var q1=q({kind:"divisor",collapsibleKey:"rule",keys:{rule:{}},normalize:t=>typeof t=="number"?{rule:t}:t,hasAssociatedError:!0,defaults:{description:t=>t.rule===1?"an integer":t.rule===2?"even":`a multiple of ${t.rule}`},intersections:{divisor:(t,e,n)=>n.$.node("divisor",{rule:Math.abs(t.rule*e.rule/K1(t.rule,e.rule))})},obviatesBasisDescription:!0}),Qh=class extends On{traverseAllows=e=>e%this.rule===0;compiledCondition=`data % ${this.rule} === 0`;compiledNegation=`data % ${this.rule} !== 0`;impliedBasis=C.intrinsic.number.internal;expression=`% ${this.rule}`;reduceJsonSchema(e){return e.type="integer",this.rule===1||(e.multipleOf=this.rule),e}},Jh={implementation:q1,Node:Qh};var K1=(t,e)=>{let n,r=t,i=e;for(;i!==0;)n=i,i=r%i,r=n;return r};var Nt=class extends On{boundOperandKind=Z1[this.kind];compiledActual=this.boundOperandKind==="value"?"data":this.boundOperandKind==="length"?"data.length":"data.valueOf()";comparator=Q1(this.kind,this.exclusive);numericLimit=this.rule.valueOf();expression=`${this.comparator} ${this.rule}`;compiledCondition=`${this.compiledActual} ${this.comparator} ${this.numericLimit}`;compiledNegation=`${this.compiledActual} ${G1[this.comparator]} ${this.numericLimit}`;stringLimit=this.boundOperandKind==="date"?J1(this.numericLimit):`${this.numericLimit}`;limitKind=this.comparator[0]==="<"?"upper":"lower";isStricterThan(e){return(this.limitKind==="upper"?this.numericLimit<e.numericLimit:this.numericLimit>e.numericLimit)||this.numericLimit===e.numericLimit&&this.exclusive===!0&&!e.exclusive}overlapsRange(e){return!(this.isStricterThan(e)||this.numericLimit===e.numericLimit&&(this.exclusive||e.exclusive))}overlapIsUnit(e){return this.numericLimit===e.numericLimit&&!this.exclusive&&!e.exclusive}},G1={"<":">=","<=":">",">":"<=",">=":"<"},W1={min:"max",minLength:"maxLength",after:"before"},Dc={parse:t=>t||void 0},Ec=t=>e=>{if(typeof e=="number")return{rule:e};let i=e,{exclusive:n}=i,r=Be(i,["exclusive"]);return n?w(m({},r),{rule:t==="minLength"?r.rule+1:r.rule-1}):r},Cc=t=>e=>{if(typeof e=="number"||typeof e=="string"||e instanceof Date)return{rule:e};let o=e,{exclusive:n}=o,r=Be(o,["exclusive"]);if(!n)return r;let i=typeof r.rule=="number"?r.rule:typeof r.rule=="string"?new Date(r.rule).valueOf():r.rule.valueOf();return n?w(m({},r),{rule:t==="after"?i+1:i-1}):r},Sc=t=>typeof t=="string"||typeof t=="number"?new Date(t):t,Y1=(t,e)=>`${t} bound must be a positive integer (was ${e})`,ho=t=>e=>((!Number.isInteger(e)||e<0)&&_(Y1(t,e)),e),Z1={min:"value",max:"value",minLength:"length",maxLength:"length",after:"date",before:"date"},Q1=(t,e)=>`${Xe(t,W1)?">":"<"}${e?"":"="}`,J1=t=>typeof t=="string"?t:new Date(t).toLocaleString(),Jw=t=>`Bounded expression ${t} must be exactly one of number, string, Array, or Date`;var X1=q({kind:"after",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{parse:Sc,serialize:t=>t.toISOString()}},normalize:Cc("after"),defaults:{description:t=>`${t.collapsibleLimitString} or later`,actual:ti},intersections:{after:(t,e)=>t.isStricterThan(e)?t:e}}),Xh=class extends Nt{impliedBasis=C.intrinsic.Date.internal;collapsibleLimitString=ti(this.rule);traverseAllows=e=>e>=this.rule;reduceJsonSchema(){return le.throwUnjsonifiableError("Date instance")}},ep={implementation:X1,Node:Xh};var ek=q({kind:"before",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{parse:Sc,serialize:t=>t.toISOString()}},normalize:Cc("before"),defaults:{description:t=>`${t.collapsibleLimitString} or earlier`,actual:ti},intersections:{before:(t,e)=>t.isStricterThan(e)?t:e,after:(t,e,n)=>t.overlapsRange(e)?t.overlapIsUnit(e)?n.$.node("unit",{unit:t.rule}):null:T.init("range",t,e)}}),tp=class extends Nt{collapsibleLimitString=ti(this.rule);traverseAllows=e=>e<=this.rule;impliedBasis=C.intrinsic.Date.internal;reduceJsonSchema(){return le.throwUnjsonifiableError("Date instance")}},np={implementation:ek,Node:tp};var tk=q({kind:"exactLength",collapsibleKey:"rule",keys:{rule:{parse:ho("exactLength")}},normalize:t=>typeof t=="number"?{rule:t}:t,hasAssociatedError:!0,defaults:{description:t=>`exactly length ${t.rule}`,actual:t=>`${t.length}`},intersections:{exactLength:(t,e,n)=>T.init("unit",n.$.node("unit",{unit:t.rule}),n.$.node("unit",{unit:e.rule}),{path:["length"]}),minLength:(t,e)=>t.rule>=e.rule?t:T.init("range",t,e),maxLength:(t,e)=>t.rule<=e.rule?t:T.init("range",t,e)}}),rp=class extends On{traverseAllows=e=>e.length===this.rule;compiledCondition=`data.length === ${this.rule}`;compiledNegation=`data.length !== ${this.rule}`;impliedBasis=C.intrinsic.lengthBoundable.internal;expression=`== ${this.rule}`;reduceJsonSchema(e){switch(e.type){case"string":return e.minLength=this.rule,e.maxLength=this.rule,e;case"array":return e.minItems=this.rule,e.maxItems=this.rule,e;default:return le.throwInternalOperandError("exactLength",e)}}},ip={implementation:tk,Node:rp};var nk=q({kind:"max",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{},exclusive:Dc},normalize:t=>typeof t=="number"?{rule:t}:t,defaults:{description:t=>t.rule===0?t.exclusive?"negative":"non-positive":`${t.exclusive?"less than":"at most"} ${t.rule}`},intersections:{max:(t,e)=>t.isStricterThan(e)?t:e,min:(t,e,n)=>t.overlapsRange(e)?t.overlapIsUnit(e)?n.$.node("unit",{unit:t.rule}):null:T.init("range",t,e)}
18,obviatesBasisDescription:!0}),op=class extends Nt{impliedBasis=C.intrinsic.number.internal;traverseAllows=this.exclusive?e=>e<this.rule:e=>e<=this.rule;reduceJsonSchema(e){return this.exclusive?e.exclusiveMaximum=this.rule:e.maximum=this.rule,e}},sp={implementation:nk,Node:op};var rk=q({kind:"maxLength",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{parse:ho("maxLength")}},reduce:(t,e)=>t.rule===0?e.node("exactLength",t):void 0,normalize:Ec("maxLength"),defaults:{description:t=>`at most length ${t.rule}`,actual:t=>`${t.length}`},intersections:{maxLength:(t,e)=>t.isStricterThan(e)?t:e,minLength:(t,e,n)=>t.overlapsRange(e)?t.overlapIsUnit(e)?n.$.node("exactLength",{rule:t.rule}):null:T.init("range",t,e)}}),ap=class extends Nt{impliedBasis=C.intrinsic.lengthBoundable.internal;traverseAllows=e=>e.length<=this.rule;reduceJsonSchema(e){switch(e.type){case"string":return e.maxLength=this.rule,e;case"array":return e.maxItems=this.rule,e;default:return le.throwInternalOperandError("maxLength",e)}}},lp={implementation:rk,Node:ap};var ik=q({kind:"min",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{},exclusive:Dc},normalize:t=>typeof t=="number"?{rule:t}:t,defaults:{description:t=>t.rule===0?t.exclusive?"positive":"non-negative":`${t.exclusive?"more than":"at least"} ${t.rule}`},intersections:{min:(t,e)=>t.isStricterThan(e)?t:e},obviatesBasisDescription:!0}),cp=class extends Nt{impliedBasis=C.intrinsic.number.internal;traverseAllows=this.exclusive?e=>e>this.rule:e=>e>=this.rule;reduceJsonSchema(e){return this.exclusive?e.exclusiveMinimum=this.rule:e.minimum=this.rule,e}},up={implementation:ik,Node:cp};var ok=q({kind:"minLength",collapsibleKey:"rule",hasAssociatedError:!0,keys:{rule:{parse:ho("minLength")}},reduce:t=>t.rule===0?C.intrinsic.unknown:void 0,normalize:Ec("minLength"),defaults:{description:t=>t.rule===1?"non-empty":`at least length ${t.rule}`,actual:t=>t.length===0?"":`${t.length}`},intersections:{minLength:(t,e)=>t.isStricterThan(e)?t:e}}),dp=class extends Nt{impliedBasis=C.intrinsic.lengthBoundable.internal;traverseAllows=e=>e.length>=this.rule;reduceJsonSchema(e){switch(e.type){case"string":return e.minLength=this.rule,e;case"array":return e.minItems=this.rule,e;default:return le.throwInternalOperandError("minLength",e)}}},fp={implementation:ok,Node:dp};var Xw={min:up.implementation,max:sp.implementation,minLength:fp.implementation,maxLength:lp.implementation,exactLength:ip.implementation,after:ep.implementation,before:np.implementation},eD={min:up.Node,max:sp.Node,minLength:fp.Node,maxLength:lp.Node,exactLength:ip.Node,after:ep.Node,before:np.Node};var sk=q({kind:"pattern",collapsibleKey:"rule",keys:{rule:{},flags:{}},normalize:t=>typeof t=="string"?{rule:t}:t instanceof RegExp?t.flags?{rule:t.source,flags:t.flags}:{rule:t.source}:t,obviatesBasisDescription:!0,hasAssociatedError:!0,intersectionIsOpen:!0,defaults:{description:t=>`matched by ${t.rule}`},intersections:{pattern:()=>null}}),hp=class extends On{instance=new RegExp(this.rule,this.flags);expression=`${this.instance}`;traverseAllows=this.instance.test.bind(this.instance);compiledCondition=`${this.expression}.test(data)`;compiledNegation=`!${this.compiledCondition}`;impliedBasis=C.intrinsic.string.internal;reduceJsonSchema(e){return e.pattern?le.throwUnjsonifiableError(`Intersection of patterns ${e.pattern} & ${this.rule}`):(e.pattern=this.rule,e)}},pp={implementation:sk,Node:hp};var qs=(t,e)=>{let n=ak(t);return e&&!e.includes(n)?_(`Root of kind ${n} should be one of ${e}`):n},ak=t=>{if(F(t,"root"))return t.kind;if(typeof t=="string")return t[0]==="$"?"alias":"domain";if(typeof t=="function")return"proto";if(typeof t!="object"||t===null)return _(tD(t));if("morphs"in t)return"morph";if("branches"in t||Ce(t))return"union";if("unit"in t)return"unit";if("reference"in t)return"alias";let e=Object.keys(t);return e.length===0||e.some(n=>n in bc)?"intersection":"proto"in t?"proto":"domain"in t?"domain":_(tD(t))},tD=t=>`${Y(t)} is not a valid type schema`,nD={},lk=t=>Ce(t)?t.map(e=>e.collapsibleJson):t.collapsibleJson,vt={};C.nodesByRegisteredId=vt;var mp=t=>(nD[t]??=0,`${t}${++nD[t]}`),gp=t=>{let e=po[t.kind],n=e.applyConfig?.(t.def,t.$.resolvedConfig)??t.def,r={},c=n,{meta:i}=c,o=Be(c,["meta"]),s=i===void 0?{}:typeof i=="string"?{description:i}:i,a=Ah(o).sort(([u],[f])=>so(u)?so(f)?ao(u)-ao(f):1:so(f)||u<f?-1:1).filter(([u,f])=>
18{if(u.startsWith("meta.")){let h=u.slice(5);return s[h]=f,!1}return!0});for(let u of a){let f=u[0],h=e.keys[f];if(!h)return _(`Key ${f} is not valid on ${t.kind} schema`);let d=h.parse?h.parse(u[1],t):u[1];d!==Vt&&(d!==void 0||h.preserveUndefined)&&(r[f]=d)}if(e.reduce&&!t.prereduced){let u=e.reduce(r,t.$);if(u)return u instanceof T?u.throw():ck(u,s)}return yp({id:t.id,kind:t.kind,inner:r,meta:s,$:t.$})},yp=({id:t,kind:e,inner:n,meta:r,$:i,ignoreCache:o})=>{let s=po[e],a=Ah(n),l=[],c={};a.forEach(([E,k])=>{let N=s.keys[E],V=N.serialize??(N.child?lk:tn);if(c[E]=V(k),N.child===!0){let Q=k;Ce(Q)?l.push(...Q):l.push(Q)}else typeof N.child=="function"&&l.push(...N.child(k))}),s.finalizeInnerJson&&(c=s.finalizeInnerJson(c));let u=m({},c),f={};kn(r)||(f=X(r,(E,k)=>[E,E==="examples"?k:tn(k)]),u.meta=Ic(f,"description",!0)),c=Ic(c,s.collapsibleKey,!1);let h=JSON.stringify(m({kind:e},c));u=Ic(u,s.collapsibleKey,!1);let d=Ic(u,s.collapsibleKey,!0),p=JSON.stringify(m({kind:e},u));if(i.nodesByHash[p]&&!o)return i.nodesByHash[p];let g={id:t,kind:e,impl:s,inner:n,innerEntries:a,innerJson:c,innerHash:h,meta:r,metaJson:f,json:u,hash:p,c
18ollapsibleJson:d,children:l};if(e!=="intersection")for(let E in n)E!=="in"&&E!=="out"&&(g[E]=n[E]);let b=new iD[e](g,i);return i.nodesByHash[p]=b},rD=(t,e)=>t.id===e?t:(Me(vt[e])&&fe(`Unexpected attempt to overwrite node id ${e}`),yp({id:e,kind:t.kind,inner:t.inner,meta:t.meta,$:t.$,ignoreCache:!0})),ck=(t,e,n)=>(n&&Me(vt[n])&&fe(`Unexpected attempt to overwrite node id ${n}`),yp({id:n??mp(e.alias??t.kind),kind:t.kind,inner:t.inner,meta:e,$:t.$})),Ic=(t,e,n)=>{let r=Object.keys(t);if(r.length===1&&r[0]===e){let i=t[e];if(n||It(i,"object")&&(Object.keys(i).length===1||Array.isArray(i)))return i}return t};var Ks=(t,e,n)=>{if(t.key!==e.key)return null;let r=t.key,i=Te(t.value,e.value,n),o=t.required||e.required?"required":"optional";if(i instanceof T)if(o==="optional")i=C.intrinsic.never.internal;else return i.withPrefixKey(t.key,t.required&&e.required?"required":"optional");if(o==="required")return n.$.node("required",{key:r,value:i});let s=t.hasDefault()?e.hasDefault()?t.default===e.default?t.default:_(vp(t.default,e.default)):t.default:e.hasDefault()?e.default:Vt;return n.$.node("optional",{key:r,value:i,default:s})},mo=class extends jt{required=this.kind==="required";optional=this.kind==="optional";impliedBasis=C.intrinsic.object.internal;serializedKey=rr(this.key);compiledKey=typeof this.key=="string"?this.key:this.serializedKey;flatRefs=ie(this.value.flatRefs.map(e=>_n([this.key,...e.path],e.node)),_n([this.key],this.value));_transform(e,n){n.path.push(this.key);let r=super._transform(e,n);return n.path.pop(),r}hasDefault(){return"default"in this.inner}traverseAllows=(e,n)=>this.key in e?Tt(this.key,()=>this.value.traverseAllows(e[this.key],n),n):this.optional;traverseApply=(e,n)=>{this.key in e?Tt(this.key,()=>this.value.traverseApply(e[this.key],n),n):this.hasKind("required")&&n.errorFromNodeContext(this.errorContext)};compile(e){e.if(`${this.serializedKey} in data`,()=>e.traverseKey(this.serializedKey,`data${e.prop(this.key)}`,this.value)),this.hasKind("required")&&e.else(()=>e.traversalKind==="Apply"?e.line(`ctx.errorFromNodeContext(${this.compiledErrorContext})`):e.return(!1)),e.traversalKind==="Allows"&&e.return(!0)}},vp=(t,e)=>`Invalid intersection of default values ${Y(t)} & ${Y(e)}`;var uk=q({kind:"optional",hasAssociatedError:!1,intersectionIsOpen:!0,keys:{key:{},value:{child:!0,parse:(t,e)=>e.$.parseSchema(t)},default:{preserveUndefined:!0}},normalize:t=>t,defaults:{description:t=>`${t.compiledKey}?: ${t.value.description}`},intersections:{optional:Ks}}),_p=class extends mo{constructor(...e){super(...e),"default"in this.inner&&Ws(this.value,this.inner.default,this.key)}get outProp(){if(!this.hasDefault())return this;let r=this.inner,{default:e}=r,n=Be(r,["default"]);return this.cacheGetter("outProp",this.$.node("required",n,{prereduced:!0}))}expression=this.hasDefault()?`${this.compiledKey}: ${this.value.expression} = ${Y(this.inner.default)}`:`${this.compiledKey}?: ${this.value.expression}`;defaultValueMorph=fk(this);defaultValueMorphRef=this.defaultValueMorph&&Re(this.defaultValueMorph)},Gs={implementation:uk,Node:_p},dk={},fk=t=>{if(!t.hasDefault())return;let e=`{${t.compiledKey}: ${t.value.id} = ${tn(t.default)}}`;return dk[e]??=bp(t.key,t.value,t.default)},bp=(t,e,n)=>{if(typeof n=="function")return e.includesTransform?(i,o)=>(Tt(t,()=>e(i[t]=n(),o),o),i):i=>(i[t]=n(),i);let r=e.includesTransform?e.assert(n):n;return It(r,"object")?(i,o)=>(Tt(t,()=>e(i[t]=n,o),o),i):i=>(i[t]=r,i)},Ws=(t,e,n)=>{let r=pr(e);It(e,"object")&&!r&&_(hk(n));let i=t.in(r?e():e);if(i instanceof Mt){n===null&&_(`Default ${i.summary}`);let o=i.transform(s=>s.transform(a=>w(m({},a),{prefixPath:[n]})));_(`Default for ${o.summary}`)}return e},hk=t=>`Non-primitive default ${t===null?"":typeof t=="number"?`for value at [${t}] `:`for ${rr(t)} `}must be specified as a function like () => ({my: 'object'})`;var Bt=class extends lo{constructor(e,n){super(e,n),Object.defineProperty(this,xt,{value:"root",enumerable:!1})}get internal(){return this}get"~standard"(){return{vendor:"arktype",version:1,validate:e=>{let n=this(e);return n instanceof Mt?n:{value:n}}}}as(){return this}brand(e){return e===""?_(pk):this}readonly(){return this}branches=this.hasKind("union")?this.inner.branches:[this];distribute(e,n){let r=this.branches.map(e);return n?.(r)??r}toJsonSchema(){let e=this.innerToJsonSchema();return Object.assign(e,this.metaJson)}intersect(e){let n=this.$.parseDefinition(e),r=this.rawIntersect(n);return r instanceof T?r:this.$.finalize(r)}rawIntersect(e){return $t(this,e,this.$)}
18toNeverIfDisjoint(){return this}and(e){let n=this.intersect(e);return n instanceof T?n.throw():n}rawAnd(e){let n=this.rawIntersect(e);return n instanceof T?n.throw():n}or(e){let n=this.$.parseDefinition(e);return this.$.finalize(this.rawOr(n))}rawOr(e){let n=[...this.branches,...e.branches];return this.$.node("union",n)}map(e){return this.$.schema(this.applyStructuralOperation("map",[e]))}pick(...e){return this.$.schema(this.applyStructuralOperation("pick",e))}omit(...e){return this.$.schema(this.applyStructuralOperation("omit",e))}required(){return this.$.schema(this.applyStructuralOperation("required",[]))}partial(){return this.$.schema(this.applyStructuralOperation("partial",[]))}_keyof;keyof(){if(this._keyof)return this._keyof;let e=this.applyStructuralOperation("keyof",[]).reduce((n,r)=>n.intersect(r).toNeverIfDisjoint(),C.intrinsic.unknown.internal);return e.branches.length===0&&_(Kh(`keyof ${this.expression}`)),this._keyof=this.$.finalize(e)}get props(){return this.branches.length!==1?_(mk(this.expression)):[...this.applyStructuralOperation("props",[])[0]]}merge(e){let n=this.$.parseDefinition(e);return this.$.schema(n.distribute(r=>this.applyStructuralOperation("merge",[oD(r)??_(sD("merge",r.expression))])))}applyStructuralOperation(e,n){return this.distribute(r=>{if(r.equals(C.intrinsic.object)&&e!=="merge")return r;let i=oD(r);if(i||_(sD(e,r.expression)),e==="keyof")return i.keyof();if(e==="get")return i.get(...n);if(e==="props")return i.props;let o=e==="required"?"require":e==="partial"?"optionalize":e;return this.$.node("intersection",w(m({},r.inner),{structure:i[o](...n)}))})}get(...e){return e[0]===void 0?this:this.$.schema(this.applyStructuralOperation("get",e))}extract(e){let n=this.$.parseDefinition(e);return this.$.schema(this.branches.filter(r=>r.extends(n)))}exclude(e){let n=this.$.parseDefinition(e);return this.$.schema(this.branches.filter(r=>!r.extends(n)))}array(){return this.$.schema(this.isUnknown()?{proto:Array}:{proto:Array,sequence:this},{prereduced:!0})}overlaps(e){return!(this.intersect(e)instanceof T)}extends(e){let n=this.intersect(e);return!(n instanceof T)&&this.equals(n)}ifExtends(e){return this.extends(e)?this:void 0}subsumes(e){return this.$.parseDefinition(e).extends(this)}configure(e){return this.configureShallowDescendants(e)}describe(e){return this.configure({description:e})}optional(){return[this,"?"]}default(e){return Ws(this,e,null),[this,"=",e]}from(e){return this.assert(e)}_pipe(...e){let n=e.reduce((r,i)=>r.pipeOnce(i),this);return this.$.finalize(n)}tryPipe(...e){let n=e.reduce((r,i)=>r.pipeOnce(F(i,"root")?i:(o,s)=>{try{return i(o,s)}catch(a){return s.error({code:"predicate",predicate:i,actual:`aborted due to error:
19    ${a}
20`})}}),this);return this.$.finalize(n)}pipe=Object.assign(this._pipe.bind(this),{try:this.tryPipe.bind(this)});to(e){return this.$.finalize(this.toNode(this.$.parseDefinition(e)))}toNode(e){let n=Wh(this,e,this.$);return n instanceof T?n.throw():n}pipeOnce(e){return F(e,"root")?this.toNode(e):this.distribute(n=>n.hasKind("morph")?this.$.node("morph",{in:n.inner.in,morphs:[...n.morphs,e]}):this.$.node("morph",{in:n,morphs:[e]}),this.$.parseSchema)}narrow(e){return this.constrainOut("predicate",e)}constrain(e,n){return this._constrain("root",e,n)}constrainIn(e,n){return this._constrain("in",e,n)}constrainOut(e,n){return this._constrain("out",e,n)}_constrain(e,n,r){let i=this.$.node(n,r);if(i.isRoot())return i.isUnknown()?this:fe(`Unexpected constraint node ${i}`);let o=e==="root"?this:this[e];if(o.hasKind("morph")||i.impliedBasis&&!o.extends(i.impliedBasis))return Gw(n,i.impliedBasis,this);let s=this.$.node("intersection",{[i.kind]:i}),a=e==="out"?Wh(this,s,this.$):$t(this,s,this.$);return a instanceof T&&a.throw(),this.$.finalize(a)}onUndeclaredKey(e){let n=typeof e=="string"?e:e.rule,r=typeof e=="string"?!1:e.deep;return this.$.finalize(this.transform((i,o)=>i==="structure"?n==="ignore"?yw(o,{undeclared:1}):w(m({},o),{undeclared:n}):o,r?void 0:{shouldTransform:i=>!Jn(io,i.kind)}))}onDeepUndeclaredKey(e){return this.onUndeclaredKey({rule:e,deep:!0})}filter(e){return this.constrainIn("predicate",e)}divisibleBy(e){return this.constrain("divisor",e)}matching(e){return this.constrain("pattern",e)}atLeast(e){return this.constrain("min",e)}atMost(e){return this.constrain("max",e)}moreThan(e){return this.constrain("min",go(e))}lessThan(e){return this.constrain("max",go(e))}atLeastLength(e){return this.constrain("minLength",e)}atMostLength(e){return this.constrain("maxLength",e)}moreThanLength(e){return this.constrain("minLength",go(e))}lessThanLength(e){return this.constrain("maxLength",go(e))}exactlyLength(e){return this.constrain("exactLength",e)}atOrAfter(e){return this.constrain("after",e)}atOrBefore(e){return this.constrain("before",e)}laterThan(e){return this.constrain("after",go(e))}earlierThan(e){return this.constrain("before",go(e))}},pk="Expected a non-empty brand name after #",go=t=>typeof t=="object"&&!(t instanceof Date)?w(m({},t),{exclusive:!0}):{rule:t,exclusive:!0},Ys=(t,e)=>F(e,"root")?F(t,"root")?t.extends(e):e.allows(t):F(t,"root")?t.hasUnit(e):e===t,oD=t=>t.hasKind("morph")?null:t.hasKind("intersection")?t.inner.structure??(t.basis?.domain==="object"?t.$.bindReference(C.intrinsic.emptyStructure):null):t.isBasis()&&t.domain==="object"?t.$.bindReference(C.intrinsic.emptyStructure):null,mk=t=>`Props cannot be extracted from a union. Use .distribute to extract props from each branch instead. Received:
21${t}`,sD=(t,e)=>`${t} operand must be an object (was ${e})`;var Rn=(t,e)=>X(wc(t),(n,r)=>[r,e]);var gk=t=>typeof t=="string"?{reference:t}:t,aD=t=>t instanceof T?C.intrinsic.never.internal:t,yk=q({kind:"alias",hasAssociatedError:!1,collapsibleKey:"reference",keys:{reference:{serialize:t=>t.startsWith("$")?t:`$ark.${t}`},resolve:{}},normalize:gk,defaults:{description:t=>t.reference},intersections:m({alias:(t,e,n)=>n.$.lazilyResolve(()=>aD(Te(t.resolution,e.resolution,n)),`${t.reference}${n.pipe?"=>":"&"}${e.reference}`)},Rn("alias",(t,e,n)=>e.isUnknown()?t:e.isNever()?e:e.isBasis()&&!e.overlaps(C.intrinsic.object)?T.init("assignability",C.intrinsic.object,e):n.$.lazilyResolve(()=>aD(Te(t.resolution,e,n)),`${t.reference}${n.pipe?"=>":"&"}${e.id}`)))}),wp=class extends Bt{expression=this.reference;structure=void 0;get resolution(){let e=this._resolve();return vt[this.id]=e}_resolve(){if(this.resolve)return this.resolve();if(this.reference[0]==="$")return this.$.resolveRoot(this.reference.slice(1));let e=this.reference,n=vt[e],r=[];for(;F(n,"context");
21){if(r.includes(n.id))return _(vk(n.id,r));r.push(n.id),n=vt[n.id]}return F(n,"root")?n:fe(`Unexpected resolution for reference ${this.reference}
22Seen: [${r.join("->")}] 
23Resolution: ${Y(n)}`)}get resolutionId(){if(this.reference.includes("&")||this.reference.includes("=>"))return this.resolution.id;if(this.reference[0]!=="$")return this.reference;let e=this.reference.slice(1),n=this.$.resolutions[e];return typeof n=="string"?n:F(n,"root")?n.id:fe(`Unexpected resolution for reference ${this.reference}: ${Y(n)}`)}get shortDescription(){return Xt.object}innerToJsonSchema(){return le.throwUnjsonifiableError(this.expression,"cyclic")}traverseAllows=(e,n)=>{let r=n.seen[this.reference];return r?.includes(e)?!0:(n.seen[this.reference]=ie(r,e),this.resolution.traverseAllows(e,n))};traverseApply=(e,n)=>{let r=n.seen[this.reference];r?.includes(e)||(n.seen[this.reference]=ie(r,e),this.resolution.traverseApply(e,n))};compile(e){let n=this.resolutionId;e.if(`ctx.seen.${n} && ctx.seen.${n}.includes(data)`,()=>e.return(!0)),e.if(`!ctx.seen.${n}`,()=>e.line(`ctx.seen.${n} = []`)),e.line(`ctx.seen.${n}.push(data)`),e.return(e.invoke(n))}},vk=(t,e)=>`Alias '${t}' has a shallow resolution cycle: ${[...e,t].join("->")}`,Zs={implementation:yk,Node:wp};var vr=class extends Bt{traverseApply=(e,n)=>{this.traverseAllows(e,n)||n.errorFromNodeContext(this.errorContext)};get errorContext(){return m({code:this.kind,description:this.description,meta:this.meta},this.inner)}get compiledErrorContext(){return gr(this.errorContext)}compile(e){e.traversalKind==="Allows"?e.return(this.compiledCondition):e.if(this.compiledNegation,()=>e.line(`${e.ctx}.errorFromNodeContext(${this.compiledErrorContext})`))}};
23var _k=q({kind:"domain",hasAssociatedError:!0,collapsibleKey:"domain",keys:{domain:{},numberAllowsNaN:{}},normalize:t=>typeof t=="string"?{domain:t}:hc(t,"numberAllowsNaN")&&t.domain!=="number"?_(xc.writeBadAllowNanMessage(t.domain)):t,applyConfig:(t,e)=>t.numberAllowsNaN===void 0&&t.domain==="number"&&e.numberAllowsNaN?w(m({},t),{numberAllowsNaN:!0}):t,defaults:{description:t=>Xt[t.domain],actual:t=>Number.isNaN(t)?"NaN":Xt[Je(t)]},intersections:{domain:(t,e)=>t.domain==="number"&&e.domain==="number"?t.numberAllowsNaN?e:t:T.init("domain",t,e)}}),Dp=class extends vr{requiresNaNCheck=this.domain==="number"&&!this.numberAllowsNaN;traverseAllows=this.requiresNaNCheck?e=>typeof e=="number"&&!Number.isNaN(e):e=>Je(e)===this.domain;compiledCondition=this.domain==="object"?'((typeof data === "object" && data !== null) || typeof data === "function")':`typeof data === "${this.domain}"${this.requiresNaNCheck?" && !Number.isNaN(data)":""}`;compiledNegation=this.domain==="object"?'((typeof data !== "object" || data === null) && typeof data !== "function")':`typeof data !== "${this.domain}"${this.requiresNaNCheck?" || Number.isNaN(data)":""}`;expression=this.numberAllowsNaN?"number | NaN":this.domain;get nestableExpression(){return this.numberAllowsNaN?`(${this.expression})`:this.expression}get shortDescription(){return Xt[this.domain]}innerToJsonSchema(){return this.domain==="bigint"||this.domain==="symbol"?le.throwUnjsonifiableError(this.domain):{type:this.domain}}},xc={implementation:_k,Node:Dp,writeBadAllowNanMessage:t=>`numberAllowsNaN may only be specified with domain "number" (was ${t})`};var bk=q({kind:"intersection",hasAssociatedError:!0,normalize:t=>{if(Me(t))return t;let s=t,{structure:e}=s,n=Be(s,["structure"]),r=!!e,i=e??{},o=X(n,(a,l)=>Xe(a,Uw)?(r&&_(`Flattened structure key ${a} cannot be specified alongside a root 'structure' key.`),i[a]=l,[]):[a,l]);return(F(i,"constraint")||!kn(i))&&(o.structure=i),o},finalizeInnerJson:n=>{var r=n,{structure:t}=r,e=Be(r,["structure"]);return It(t,"object")?m(m({},t),e):e},keys:{domain:{child:!0,parse:(t,e)=>e.$.node("domain",t)},proto:{child:!0,parse:(t,e)=>e.$.node("proto",t)},structure:{child:!0,parse:(t,e)=>e.$.node("structure",t),serialize:t=>{if(!t.sequence?.minLength)return t.collapsibleJson;let s=t.collapsibleJson,{sequence:e}=s,n=Be(s,["sequence"]),a=e,{minVariadicLength:r}=a,i=Be(a,["minVariadicLength"]),o=i.variadic&&Object.keys(i).length===1?i.variadic:i;return w(m({},n),{sequence:o})}},divisor:{child:!0,parse:ft("divisor")},max:{child:!0,parse:ft("max")},min:{child:!0,parse:ft("min")},maxLength:{child:!0,parse:ft("maxLength")},minLength:{child:!0,parse:ft("minLength")},exactLength:{child:!0,parse:ft("exactLength")},before:{child:!0,parse:ft("before")},after:{child:!0,parse:ft("after")},pattern:{child:!0,parse:ft("pattern")},predicate:{child:!0,parse:ft("predicate")}},reduce:(t,e)=>lD({},t,{$:e,invert:!1,pipe:!1}),defaults:{description:t=>{if(t.children.length===0)return"unknown";if(t.structure)return t.structure.description;let e=[];
23if(t.basis&&!t.refinements.some(n=>n.impl.obviatesBasisDescription)&&e.push(t.basis.description),t.refinements.length){let n=t.refinements.toSorted((r,i)=>r.kind==="min"&&i.kind==="max"?-1:0).map(r=>r.description);e.push(...n)}return t.inner.predicate&&e.push(...t.inner.predicate.map(n=>n.description)),e.join(" and ")},expected:t=>`  \u2022 ${t.errors.map(e=>e.expected).join(`
24  \u2022 `)}`,problem:t=>`(${t.actual}) must be...
25${t.expected}`},intersections:m({intersection:(t,e,n)=>lD(t.inner,e.inner,n)},Rn("intersection",(t,e,n)=>{if(t.children.length===0)return e;let l=t.inner,{domain:r,proto:i}=l,o=Be(l,["domain","proto"]),s=i??r,a=s?Te(s,e,n):e;return a instanceof T?a:t?.basis?.equals(a)?t:t.$.node("intersection",w(m({},o),{[a.kind]:a}),{prereduced:!0})}))}),Ep=class extends Bt{basis=this.inner.domain??this.inner.proto??null;refinements=this.children.filter(e=>e.isRefinement());structure=this.inner.structure;expression=wk(this);get shallowMorphs(){return this.inner.structure?.structuralMorph?[this.inner.structure.structuralMorph]:[]}get shortDescription(){return this.basis?.shortDescription??"present"}innerToJsonSchema(){return this.children.reduce((e,n)=>n.isBasis()?n.toJsonSchema():n.reduceJsonSchema(e),{})}traverseAllows=(e,n)=>this.children.every(r=>r.traverseAllows(e,n));traverseApply=(e,n)=>{let r=n.currentErrorCount;if(!(this.basis&&(this.basis.traverseApply(e,n),n.currentErrorCount>r))){if(this.refinements.length){for(let i=0;i<this.refinements.length-1;i++)if(this.refinements[i].traverseApply(e,n),n.failFast&&n.currentErrorCount>r)return;if(this.refinements.at(-1).traverseApply(e,n),n.currentErrorCount>r)return}if(!(this.structure&&(this.structure.traverseApply(e,n),n.currentErrorCount>r))&&this.inner.predicate){for(let i=0;i<this.inner.predicate.length-1;i++)if(this.inner.predicate[i].traverseApply(e,n),n.failFast&&n.currentErrorCount>r)return;this.inner.predicate.at(-1).traverseApply(e,n)}}};compile(e){if(e.traversalKind==="Allows"){this.children.forEach(n=>e.check(n)),e.return(!0);return}if(e.initializeErrorCount(),this.basis&&(e.check(this.basis),this.children.length>1&&e.returnIfFail()),this.refinements.length){for(let n=0;n<this.refinements.length-1;n++)e.check(this.refinements[n]),e.returnIfFailFast();e.check(this.refinements.at(-1)),(this.structure||this.inner.predicate)&&e.returnIfFail()}if(this.structure&&(e.check(this.structure),this.inner.predicate&&e.returnIfFail()),this.inner.predicate){for(let n=0;n<this.inner.predicate.length-1;n++)e.check(this.inner.predicate[n]),e.returnIfFail();e.check(this.inner.predicate.at(-1))}}},Cp={implementation:bk,Node:Ep},wk=t=>{let e=t.structure?.expression||`${t.basis?t.basis.nestableExpression+" ":""}${t.refinements.map(n=>n.expression).join(" & ")}`||"unknown";return e==="Array == 0"&&(e="[]"),e},lD=(t,e,n)=>{let r={},i=t.proto??t.domain,o=e.proto??e.domain,s=i?o?Te(i,o,n):i:o;return s instanceof T?s:(s&&(r[s.kind]=s),uo({kind:"intersection",baseInner:r,l:fo(t),r:fo(e),roots:[],ctx:n}))};var Dk=q({kind:"morph",hasAssociatedError:!1,keys:{in:{child:!0,parse:(t,e)=>e.$.parseSchema(t)},morphs:{parse:Ji,serialize:t=>t.map(e=>F(e,"root")?e.json:Re(e))},declaredIn:{child:!1,serialize:t=>t.json},declaredOut:{child:!1,serialize:t=>t.json}},normalize:t=>t,defaults:{description:t=>`a morph from ${t.in.description} to ${t.out?.description??"unknown"}`},intersections:m({morph:(t,e,n)=>
25{if(!t.hasEqualMorphs(e))return _(Ek(t.expression,e.expression));let r=Te(t.in,e.in,n);if(r instanceof T)return r;let i={morphs:t.morphs};if(t.declaredIn||e.declaredIn){let o=Te(t.in,e.in,n);if(o instanceof T)return o.throw();i.declaredIn=o}if(t.declaredOut||e.declaredOut){let o=Te(t.out,e.out,n);if(o instanceof T)return o.throw();i.declaredOut=o}return r.distribute(o=>n.$.node("morph",w(m({},i),{in:o})),n.$.parseSchema)}},Rn("morph",(t,e,n)=>{let r=t.inner.in?Te(t.inner.in,e,n):e;return r instanceof T?r:r.equals(t.inner.in)?t:n.$.node("morph",w(m({},t.inner),{in:r}))}))}),Sp=class extends Bt{serializedMorphs=this.morphs.map(Re);compiledMorphs=`[${this.serializedMorphs}]`;lastMorph=this.inner.morphs.at(-1);lastMorphIfNode=F(this.lastMorph,"root")?this.lastMorph:void 0;introspectableIn=this.inner.in;introspectableOut=this.lastMorphIfNode?Object.assign(this.referencesById,this.lastMorphIfNode.referencesById)&&this.lastMorphIfNode.out:void 0;get shallowMorphs(){return Array.isArray(this.inner.in?.shallowMorphs)?[...this.inner.in.shallowMorphs,...this.morphs]:this.morphs}get in(){return this.declaredIn??this.inner.in?.in??C.intrinsic.unknown.internal}get out(){return this.declaredOut??this.introspectableOut??C.intrinsic.unknown.internal}declareIn(e){return this.$.node("morph",w(m({},this.inner),{declaredIn:e}))}declareOut(e){return this.$.node("morph",w(m({},this.inner),{declaredOut:e}))}expression=`(In: ${this.in.expression}) => ${this.lastMorphIfNode?"To":"Out"}<${this.out.expression}>`;get shortDescription(){return"a morph"}innerToJsonSchema(){return le.throwUnjsonifiableError(this.expression,"morph")}compile(e){if(e.traversalKind==="Allows"){if(!this.introspectableIn)return;e.return(e.invoke(this.introspectableIn));return}this.introspectableIn&&e.line(e.invoke(this.introspectableIn)),e.line(`ctx.queueMorphs(${this.compiledMorphs})`)}traverseAllows=(e,n)=>!this.introspectableIn||this.introspectableIn.traverseAllows(e,n);traverseApply=(e,n)=>{this.introspectableIn&&this.introspectableIn.traverseApply(e,n),n.queueMorphs(this.morphs)};
25hasEqualMorphs(e){return Xi(this.morphs,e.morphs,{isEqual:(n,r)=>n===r||F(n,"root")&&F(r,"root")&&n.equals(r)})}},Ip={implementation:Dk,Node:Sp},Ek=(t,e)=>`The intersection of distinct morphs at a single path is indeterminate:
26Left: ${t}
27Right: ${e}`;var Ck=q({kind:"proto",hasAssociatedError:!0,collapsibleKey:"proto",keys:{proto:{serialize:t=>Ls(t)??tn(t)},dateAllowsInvalid:{}},normalize:t=>{let e=typeof t=="string"?{proto:Xr[t]}:typeof t=="function"?Me(t)?t:{proto:t}:typeof t.proto=="string"?w(m({},t),{proto:Xr[t.proto]}):t;return typeof e.proto!="function"&&_(Qs.writeInvalidSchemaMessage(e.proto)),hc(e,"dateAllowsInvalid")&&e.proto!==Date&&_(Qs.writeBadInvalidDateMessage(e.proto)),e},applyConfig:(t,e)=>t.dateAllowsInvalid===void 0&&t.proto===Date&&e.dateAllowsInvalid?w(m({},t),{dateAllowsInvalid:!0}):t,defaults:{description:t=>t.builtinName?bw[t.builtinName]:`an instance of ${t.proto.name}`,actual:t=>t instanceof Date&&t.toString()==="Invalid Date"?"an invalid Date":Fs(t)},intersections:{proto:(t,e)=>t.proto===Date&&e.proto===Date?t.dateAllowsInvalid?e:t:Ph(t.proto,e.proto)?t:Ph(e.proto,t.proto)?e:T.init("proto",t,e),domain:(t,e)=>e.domain==="object"?t:T.init("domain",C.intrinsic.object.internal,e)}}),xp=class extends vr{builtinName=Ls(this.proto);serializedConstructor=this.json.proto;requiresInvalidDateCheck=this.proto===Date&&!this.dateAllowsInvalid;traverseAllows=this.requiresInvalidDateCheck?e=>e instanceof Date&&e.toString()!=="Invalid Date":e=>e instanceof this.proto;compiledCondition=`data instanceof ${this.serializedConstructor}${this.requiresInvalidDateCheck?' && data.toString() !== "Invalid Date"':""}`;compiledNegation=`!(${this.compiledCondition})`;innerToJsonSchema(){switch(this.builtinName){case"Array":return{type:"array"};default:return le.throwUnjsonifiableError(this.description)}}expression=this.dateAllowsInvalid?"Date | InvalidDate":this.proto.name;get nestableExpression(){return this.dateAllowsInvalid?`(${this.expression})`:this.expression}domain="object";get shortDescription(){return this.description}},Qs={implementation:Ck,Node:xp,writeBadInvalidDateMessage:t=>`dateAllowsInvalid may only be specified with constructor Date (was ${t.name})`,writeInvalidSchemaMessage:t=>`instanceOf operand must be a function (was ${Je(t)})`};
27var Sk=q({kind:"union",hasAssociatedError:!0,collapsibleKey:"branches",keys:{ordered:{},branches:{child:!0,parse:(t,e)=>{let n=[];return t.forEach(r=>{(F(r,"root")?r.branches:e.$.parseSchema(r).branches).forEach(o=>{if(o.hasKind("morph")){let s=n.findIndex(a=>a.hasKind("morph")&&a.hasEqualMorphs(o));if(s===-1)n.push(o);else{let a=n[s];n[s]=e.$.node("morph",w(m({},a.inner),{in:a.in.rawOr(o.in)}))}}else n.push(o)})}),e.def.ordered||n.sort((r,i)=>r.hash<i.hash?-1:1),n}}},normalize:t=>Ce(t)?{branches:t}:t,reduce:(t,e)=>{let n=Pk(t);if(n.length===1)return n[0];if(n.length!==t.branches.length)return e.node("union",w(m({},t),{branches:n}),{prereduced:!0})},defaults:{description:t=>t.distribute(e=>e.description,yo),expected:t=>{let e=dc(t.errors,"propString"),n=Object.entries(e).map(([r,i])=>{let o=[];i.forEach(l=>An(o,l.expected));let s=yo(o),a=i.every(l=>l.actual===i[0].actual)?i[0].actual:Y(i[0].data);return`${r&&`${r} `}must be ${s}${a&&` (was ${a})`}`});return yo(n)},problem:t=>t.expected,message:t=>t.problem},intersections:m({union:(t,e,n)=>{if(t.isNever!==e.isNever)return T.init("presence",t,e);let r;return t.ordered?(e.ordered&&_(Lk(t.expression,e.expression)),r=Mp(e.branches,t.branches,n),r instanceof T&&r.invert()):r=Mp(t.branches,e.branches,n),r instanceof T?r:n.$.parseSchema(t.ordered||e.ordered?{branches:r,ordered:!0}
27:{branches:r})}},Rn("union",(t,e,n)=>{let r=Mp(t.branches,[e],n);return r instanceof T?r:r.length===1?r[0]:n.$.parseSchema(t.ordered?{branches:r,ordered:!0}:{branches:r})}))}),Tp=class extends Bt{isBoolean=this.branches.length===2&&this.branches[0].hasUnit(!1)&&this.branches[1].hasUnit(!0);get branchGroups(){let e=[],n=-1;return this.branches.forEach(r=>{if(r.hasKind("unit")&&r.domain==="boolean"){n===-1?(n=e.length,e.push(r)):e[n]=C.intrinsic.boolean;return}e.push(r)}),e}unitBranches=this.branches.filter(e=>e.in.hasKind("unit"));discriminant=this.discriminate();discriminantJson=this.discriminant?kk(this.discriminant):null;expression=this.distribute(e=>e.nestableExpression,Rk);createBranchedOptimisticRootApply(){return(e,n)=>{let r=this.traverseOptimistic(e);if(r!==Vt)return r;let i=new vn(e,this.$.resolvedConfig);return this.traverseApply(e,i),i.finalize(n)}}get shallowMorphs(){return this.branches.reduce((e,n)=>An(e,n.shallowMorphs),[])}get shortDescription(){return this.distribute(e=>e.shortDescription,yo)}innerToJsonSchema(){return{anyOf:this.branchGroups.map(e=>e.equals(C.intrinsic.boolean)?{type:"boolean"}:e.toJsonSchema())}}traverseAllows=(e,n)=>this.branches.some(r=>r.traverseAllows(e,n));traverseApply=(e,n)=>{let r=[];for(let i=0;i<this.branches.length;i++){if(n.pushBranch(),this.branches[i].traverseApply(e,n),!n.hasError())return this.branches[i].includesTransform?n.queuedMorphs.push(...n.popBranch().queuedMorphs):n.popBranch();r.push(n.popBranch().error)}n.errorFromNodeContext({code:"union",errors:r,meta:this.meta})};traverseOptimistic=e=>{for(let n=0;n<this.branches.length;n++){let r=this.branches[n];if(r.traverseAllows(e))return r.contextFreeMorph?r.contextFreeMorph(e):e}return Vt};compile(e){if(!this.discriminant||this.unitBranches.length===this.branches.length&&this.branches.length===2)return this.compileIndiscriminable(e);let n=this.discriminant.optionallyChainedPropString;this.discriminant.kind==="domain"&&(n=`typeof ${n} === "object" ? ${n} === null ? "null" : "object" : typeof ${n} === "function" ? "object" : typeof ${n}`);let r=this.discriminant.cases,i=Object.keys(r),{optimistic:o}=e;if(e.optimistic=!1,e.block(`switch(${n})`,()=>{for(let u in r){let f=r[u],h=u==="default"?u:`case ${u}`;e.line(`${h}: return ${f===!0?o?e.data:f:o?`${e.invoke(f)} ? ${f.contextFreeMorph?`${Re(f.contextFreeMorph)}(${e.data})`:e.data} : "${Vt}"`:e.invoke(f)}`)}return e}),e.traversalKind==="Allows"){e.return(o?`"${Vt}"`:!1);return}let s=yo(this.discriminant.kind==="domain"?i.map(u=>{let f=u.slice(1,-1);return f==="function"?Xt.object:Xt[f]}):i),a=this.discriminant.path.map(u=>typeof u=="symbol"?Re(u):JSON.stringify(u)),l=JSON.stringify(s),c=this.discriminant.kind==="domain"?`${Nk}[${n}]`:`${Ak}(${n})`;e.line(`ctx.errorFromNodeContext({
28	code: "predicate",
29	expected: ${l},
30	actual: ${c},
31	relativePath: [${a}],
32	meta: ${this.compiledMeta}
33})`)}compileIndiscriminable(e){if(e.traversalKind==="Apply")e.const("errors","[]"),this.branches.forEach(n=>e.line("ctx.pushBranch()").line(e.invoke(n)).if("!ctx.hasError()",()=>e.return(n.includesTransform?"ctx.queuedMorphs.push(...ctx.popBranch().queuedMorphs)":"ctx.popBranch()")).line("errors.push(ctx.popBranch().error)")),e.line(`ctx.errorFromNodeContext({ code: "union", errors, meta: ${this.compiledMeta} })`);else{let{optimistic:n}=e;e.optimistic=!1,this.branches.forEach(r=>e.if(`${e.invoke(r)}`,()=>e.return(n?r.contextFreeMorph?`${Re(r.contextFreeMorph)}(${e.data})`:e.data:!0))),e.return(n?`"${Vt}"`:!1)}}get nestableExpression(){return this.isBoolean?"boolean":`(${this.expression})`}discriminate(){if(this.branches.length<2)return null;if(this.unitBranches.length===this.branches.length){let o=X(this.unitBranches,(s,a)=>[`${a.in.serializedValue}`,a.hasKind("morph")?a:!0]);return{kind:"unit",path:[],optionallyChainedPropString:"data",cases:o}}let e=[];for(let o=0;o<this.branches.length-1;o++){let s=this.branches[o];for(let a=o+1;a<this.branches.length;a++){let l=this.branches[a],c=$t(s.in,l.in,s.$);if(c instanceof T)for(let u of c){if(!u.kind||u.optional)continue;let f,h;if(u.kind==="domain"){let p=u.l,g=u.r;f=`"${typeof p=="string"?p:p.domain}"`,h=`"${typeof g=="string"?g:g.domain}"`}else if(u.kind==="unit")f=u.l.serializedValue,h=u.r.serializedValue;else continue;let d=e.find(p=>Xi(p.path,u.path)&&p.kind===u.kind);d?(d.cases[f]?d.cases[f].branchIndices=An(d.cases[f].branchIndices,o):d.cases[f]??={branchIndices:[o],condition:u.l},d.cases[h]?d.cases[h].branchIndices=An(d.cases[h].branchIndices,a):d.cases[h]??={branchIndices:[a],c
33ondition:u.r}):e.push({kind:u.kind,cases:{[f]:{branchIndices:[o],condition:u.l},[h]:{branchIndices:[a],condition:u.r}},path:u.path})}}}let n=this.ordered?Mk(e,this.branches):e;if(!n.length)return null;let r=Ik(n,this),i={};for(let o in r.best.cases){let s=xk(r,o);if(s===null){i[o]=!0;continue}if(s.length===this.branches.length)return null;this.ordered&&s.sort((c,u)=>c.originalIndex-u.originalIndex);let a=s.map(c=>c.branch),l=a.length===1?a[0]:this.$.node("union",this.ordered?{branches:a,ordered:!0}:a);Object.assign(this.referencesById,l.referencesById),i[o]=l}if(r.defaultEntries.length){let o=r.defaultEntries.map(s=>s.branch);i.default=this.$.node("union",this.ordered?{branches:o,ordered:!0}:o,{prereduced:!0}),Object.assign(this.referencesById,i.default.referencesById)}return Object.assign(r.location,{cases:i})}},Ik=(t,e)=>{let n=t.sort((o,s)=>Object.keys(s.cases).length-Object.keys(o.cases).length)[0],r={kind:n.kind,path:n.path,optionallyChainedPropString:dD(n.path)},i=e.branches.map((o,s)=>({originalIndex:s,branch:o}));return{best:n,location:r,defaultEntries:i,node:e}},xk=(t,e)=>{let n=t.best.cases[e],r=Tk(n.condition,t.location.path,t.node.$),i=[],o=[];for(let s=0;s<t.defaultEntries.length;s++){let a=t.defaultEntries[s];if(n.branchIndices.includes(a.originalIndex)){let l=cD(t.node.branches[a.originalIndex],t.location);l===null?i=null:i?.push({originalIndex:a.originalIndex,branch:l})}else if(a.branch.hasKind("alias")&&r.hasKind("domain")&&r.domain==="object")i?.push(a);else{if(a.branch.in.overlaps(r)){let l=cD(a.branch,t.location);i?.push({originalIndex:a.originalIndex,branch:l})}o.push(a)}}return t.defaultEntries=o,i},Mk=(t,e)=>t.filter(r=>{let i=Object.values(r.cases).map(o=>o.branchIndices);for(let o=0;o<i.length-1;o++){let s=i[o];for(let a=o+1;a<i.length;a++){let l=i[a];for(let c of s)for(let u of l)if(c>u&&e[c].overlaps(e[u]))return!1}}return!0}),Tk=(t,e,n)=>{let r=t==="undefined"?n.node("unit",{unit:void 0}):t==="null"?n.node("unit",{unit:null}):t==="boolean"?n.units([!0,!1]):t;for(let i=e.length-1;i>=0;i--){let o=e[i];r=n.node("intersection",typeof o=="number"?{proto:"Array",sequence:[...hw(o).map(s=>({})),r]}:{domain:"object",required:[{key:o,value:r}]})}return r},dD=t=>t.reduce((e,n)=>e+Uh(n,!0),"data"),Nk=Re(mw),Ak=Re(Y),Np={implementation:Sk,Node:Tp},kk=t=>({kind:t.kind,path:t.path.map(e=>typeof e=="string"?e:rr(e)),cases:X(t.cases,(e,n)=>[e,n===!0?n:n.hasKind("union")&&n.discriminantJson?n.discriminantJson:n.json])}),Ok={delimiter:" | ",finalDelimiter:" | "},Rk=t=>yo(t,Ok),yo=(t,e)=>{let n=e?.delimiter??", ",r=e?.finalDelimiter??" or ";if(t.length===0)return"never";if(t.length===1)return t[0];if(t.length===2&&t[0]==="false"&&t[1]==="true"||t[0]==="true"&&t[1]==="false")return"boolean";let i={},o=t.filter(a=>i[a]?!1:i[a]=!0),s=o.pop();return`${o.join(n)}${o.length?r:""}${s}`},Mp=(t,e,n)=>{let r=e.map(()=>[]);for(let o=0;o<t.length;o++){let s={};for(let a=0;a<e.length;a++){if(r[a]===null)continue;if(t[o].equals(e[a])){r[a]=null,s={};break}let l=Te(t[o],e[a],n);if(!(l instanceof T)){if(l.equals(t[o])){r[a].push(t[o]),s={};break}l.equals(e[a])?r[a]=null:s[a]=l}}for(let a in s)r[a][o]=s[a]}let i=r.flatMap((o,s)=>o?.flatMap(a=>a.branches)??e[s]);return i.length===0?T.init("union",t,e):i},Pk=({branches:t,ordered:e})=>{if(t.length<2)return t;let n=t.map(()=>!0);for(let r=0;r<t.length;r++)for(let i=r+1;i<t.length&&n[r]&&n[i];i++){if(t[r].equals(t[i])){n[i]=!1;continue}let o=$t(t[r].in,t[i].in,t[0].$);o instanceof T||(e||Fk(t[r],t[i]),o.equals(t[r].in)?n[r]=!!e:o.equals(t[i].in)&&(n[i]=!1))}return t.filter((r,i)=>n[i])},Fk=(t,e)=>{!t.includesTransform&&!e.includesTransform||(Xi(t.shallowMorphs,e.shallowMorphs)||_(uD(t.expression,e.expression)),Xi(t.flatMorphs,e.flatMorphs,{isEqual:(n,r)=>
33n.propString===r.propString&&n.node.hasEqualMorphs(r.node)})||_(uD(t.expression,e.expression)))},cD=(t,e)=>t.transform((n,r)=>n==="domain"||n==="unit"?null:r,{shouldTransform:(n,r)=>{let i=dD(r.path);return e.optionallyChainedPropString.startsWith(i)?n.hasKind("domain")&&n.domain==="object"||(n.hasKind("domain")||e.kind==="unit")&&i===e.optionallyChainedPropString?!0:n.children.length!==0&&n.kind!=="index":!1}}),uD=(t,e)=>`An unordered union of a type including a morph and a type with overlapping input is indeterminate:
34Left: ${t}
35Right: ${e}`,Lk=(t,e)=>`The intersection of two ordered unions is indeterminate:
36Left: ${t}
37Right: ${e}`;var Vk=q({kind:"unit",hasAssociatedError:!0,keys:{unit:{preserveUndefined:!0,serialize:t=>t instanceof Date?t.toISOString():tn(t)}},normalize:t=>t,defaults:{description:t=>Y(t.unit),problem:({expected:t,actual:e})=>`${t===e?`must be reference equal to ${t} (serialized to the same value)`:`must be ${t} (was ${e})`}`},intersections:m({unit:(t,e)=>T.init("unit",t,e)},Rn("unit",(t,e)=>{if(e.allows(t.unit))return t;let n=e.hasKind("intersection")?e.basis:e;if(n){let r=n.hasKind("domain")?n:C.intrinsic.object;if(t.domain!==r.domain){let i=t.domain==="undefined"||t.domain==="null"||t.domain==="boolean"?t.domain:C.intrinsic[t.domain];return T.init("domain",i,r)}}return T.init("assignability",t,e.hasKind("intersection")?e.children.find(r=>!r.allows(t.unit)):e)}))}),Ap=class extends vr{compiledValue=this.json.unit;serializedValue=typeof this.unit=="string"||this.unit instanceof Date?JSON.stringify(this.compiledValue):`${this.compiledValue}`;compiledCondition=fD(this.unit,this.serializedValue);compiledNegation=fD(this.unit,this.serializedValue,"negated");expression=Y(this.unit);domain=Je(this.unit);get shortDescription(){return this.domain==="object"?Xt.object:this.description}innerToJsonSchema(){return C.intrinsic.jsonPrimitive.allows(this.unit)?{const:this.unit}:le.throwUnjsonifiableError(this.shortDescription)}traverseAllows=this.unit instanceof Date?e=>e instanceof Date&&e.toISOString()===this.compiledValue:Number.isNaN(this.unit)?e=>Number.isNaN(e):e=>e===this.unit},kp={implementation:Vk,Node:Ap},fD=(t,e,n)=>{if(t instanceof Date){let r=`data instanceof Date && data.toISOString() === ${e}`;return n?`!(${r})`:r}return Number.isNaN(t)?`${n?"!":""}Number.isNaN(data)`:`data ${n?"!":"="}== ${e}`};var $k=q({kind:"index",hasAssociatedError:!1,intersectionIsOpen:!0,keys:{signature:{child:!0,parse:(t,e)=>{let n=e.$.parseSchema(t);if(!n.extends(C.intrinsic.key))return _(Bk(n.expression));let r=n.branches.filter(i=>i.hasKind("unit"));return r.length?_(jk(r.map(i=>Y(i.unit)))):n}},value:{child:!0,parse:(t,e)=>e.$.parseSchema(t)}},normalize:t=>t,defaults:{description:t=>`[${t.signature.expression}]: ${t.value.description}`},intersections:{index:(t,e,n)=>{if(t.signature.equals(e.signature)){let r=Te(t.value,e.value,n),i=r instanceof T?C.intrinsic.never.internal:r;return n.$.node("index",{signature:t.signature,value:i})}return t.signature.extends(e.signature)&&t.value.subsumes(e.value)?e:e.signature.extends(t.signature)&&e.value.subsumes(t.value)?t:null}}}),Op=class extends jt{impliedBasis=C.intrinsic.object.internal;expression=`[${this.signature.expression}]: ${this.value.expression}`;flatRefs=ie(this.value.flatRefs.map(e=>_n([this.signature,...e.path],e.node)),_n([this.signature],this.value));traverseAllows=(e,n)=>Rs(e).every(r=>this.signature.traverseAllows(r[0],n)?Tt(r[0],()=>this.value.traverseAllows(r[1],n),n):!0);traverseApply=(e,n)=>Rs(e).forEach(r=>{this.signature.traverseAllows(r[0],n)&&Tt(r[0],()=>this.value.traverseApply(r[1],n),n)});_transform(e,n){n.path.push(this.signature);let r=super._transform(e,n);return n.path.pop(),r}compile(){}},Rp={implementation:$k,Node:Op},jk=t=>`Index keys ${t.join(", ")} should be specified as named props.`,Bk=t=>`Indexed key definition '${t}' must be a string or symbol`;var Uk=q({kind:"required",hasAssociatedError:!0,intersectionIsOpen:!0,keys:{key:{},value:{child:!0,parse:(t,e)=>e.$.parseSchema(t)}},normalize:t=>t,defaults:{description:t=>`${t.compiledKey}: ${t.value.description}`,expected:t=>t.missingValueDescription,actual:()=>"missing"},intersections:{required:Ks,optional:Ks}}),Pp=class extends mo{expression=`${this.compiledKey}: ${this.value.expression}`;errorContext=Object.freeze({code:"required",missingValueDescription:this.value.shortDe
37scription,relativePath:[this.key],meta:this.meta});compiledErrorContext=gr(this.errorContext)},Fp={implementation:Uk,Node:Pp};var zk=q({kind:"sequence",hasAssociatedError:!1,collapsibleKey:"variadic",keys:{prefix:{child:!0,parse:(t,e)=>{if(t.length!==0)return t.map(n=>e.$.parseSchema(n))}},optionals:{child:!0,parse:(t,e)=>{if(t.length!==0)return t.map(n=>e.$.parseSchema(n))}},defaultables:{child:t=>t.map(e=>e[0]),parse:(t,e)=>{if(t.length!==0)return t.map(n=>{let r=e.$.parseSchema(n[0]);return Ws(r,n[1],null),[r,n[1]]})},serialize:t=>t.map(e=>[e[0].collapsibleJson,tn(e[1])])},variadic:{child:!0,parse:(t,e)=>e.$.parseSchema(t,e)},minVariadicLength:{parse:t=>t===0?void 0:t},postfix:{child:!0,parse:(t,e)=>{if(t.length!==0)return t.map(n=>e.$.parseSchema(n))}}},normalize:t=>{if(typeof t=="string")return{variadic:t};if("variadic"in t||"prefix"in t||"defaultables"in t||"optionals"in t||"postfix"in t||"minVariadicLength"in t){if(t.postfix?.length){if(!t.variadic)return _(Gk);if(t.optionals?.length||t.defaultables?.length)return _($p)}return t.minVariadicLength&&!t.variadic?_("minVariadicLength may not be specified without a variadic element"):t}return{variadic:t}},reduce:(t,e)=>{let n=t.minVariadicLength??0,r=t.prefix?.slice()??[],i=t.defaultables?.slice()??[],o=t.optionals?.slice()??[],s=t.postfix?.slice()??[];if(t.variadic){for(;o.at(-1)?.equals(t.variadic);)o.pop();if(o.length===0&&i.length===0)for(;r.at(-1)?.equals(t.variadic);)r.pop(),n++;for(;s[0]?.equals(t.variadic);)s.shift(),n++}else o.length===0&&i.length===0&&r.push(...s.splice(0));if(n!==t.minVariadicLength||t.prefix&&t.prefix.length!==r.length)return e.node("sequence",w(m({},t),{prefix:r,defaultables:i,optionals:o,postfix:s,minVariadicLength:n}),{prereduced:!0})},defaults:{description:t=>t.isVariadicOnly?`${t.variadic.nestableExpression}[]`:`[${t.tuple.map(n=>n.kind==="defaultables"?`${n.node.nestableExpression} = ${Y(n.default)}`:n.kind==="optionals"?`${n.node.nestableExpression}?`:n.kind==="variadic"?`...${n.node.nestableExpression}[]`:n.node.expression).join(", ")}]`},intersections:{sequence:(t,e,n)=>{let r=Js({l:t.tuple,r:e.tuple,disjoint:new T,result:[],fixedVariants:[],ctx:n}),i=r.disjoint.length===0?[r,...r.fixedVariants]:r.fixedVariants;return i.length===0?r.disjoint:i.length===1?n.$.node("sequence",hD(i[0].result)):n.$.node("union",i.map(o=>({proto:Array,sequence:hD(o.result)})))}}}),Lp=class extends jt{impliedBasis=C.intrinsic.Array.internal;tuple=Kk(this.inner);prefixLength=this.prefix?.length??0;defaultablesLength=this.defaultables?.length??0;optionalsLength=this.optionals?.length??0;postfixLength=this.postfix?.length??0;defaultablesAndOptionals=[];prevariadic=this.tuple.filter(e=>e.kind==="defaultables"||e.kind==="optionals"?(this.defaultablesAndOptionals.push(e.node),!0):e.kind==="prefix");variadicOrPostfix=Xn(this.variadic&&[this.variadic],this.postfix);flatRefs=this.addFlatRefs();addFlatRefs(){return Hh(this.flatRefs,this.prevariadic.flatMap((e,n)=>ie(e.node.flatRefs.map(r=>_n([`${n}`,...r.path],r.node)),_n([`${n}`],e.node)))),Hh(this.flatRefs,this.variadicOrPostfix.flatMap(e=>ie(e.flatRefs.map(n=>_n([C.intrinsic.nonNegativeIntegerString.internal,...n.path],n.node)),_n([C.intrinsic.nonNegativeIntegerString.internal],e)))),this.flatRefs}isVariadicOnly=this.prevariadic.length+this.postfixLength===0;minVariadicLength=this.inner.minVariadicLength??0;minLength=this.prefixLength+this.minVariadicLength+this.postfixLength;minLengthNode=this.minLength===0?null:this.$.node("minLength",this.minLength);maxLength=this.variadic?null:this.tuple.length;maxLengthNode=this.maxLength===null?null:this.$.node("maxLength",this.maxLength);impliedSiblings=this.minLengthNode?this.maxLengthNode?[this.minLengthNode,this.maxLengthNode]:[this.minLengthNode]:this.maxLengthNode?[this.maxLengthNode]:[];defaultValueMorphs=qk(this);defaultValueMorphsReference=this.defaultValueMorphs.length?Re(this.defaultValueMorphs):void 0;elementAtIndex(e,n){if(n<this.prevariadic.length)return this.tuple[n];let r=e.length-this.postfixLength;return n>=r?{kind:"postfix",node:this.postfix[n-r]}:{kind:"variadic",node:this.variadic??fe(`Unexpected attempt to access index ${n} on ${this}`)}}traverseAllows=(e,n)=>{for(let r=0;r<e.length;r++)if(!this.elementAtIndex(e,r).node.traverseAllows(e[r],n))return!1;return!0};traverseApply=(e,n)=>{let r=0;for(;r<e.length;r++)Tt(r,()=>this.elementAtIndex(e,r).node.traverseApply(e[r],n),n)};
37get element(){return this.cacheGetter("element",this.$.node("union",this.children))}compile(e){this.prefix?.forEach((n,r)=>e.traverseKey(`${r}`,`data[${r}]`,n)),this.defaultablesAndOptionals.forEach((n,r)=>{let i=`${r+this.prefixLength}`;e.if(`${i} >= ${e.data}.length`,()=>e.traversalKind==="Allows"?e.return(!0):e.return()),e.traverseKey(i,`data[${i}]`,n)}),this.variadic&&(this.postfix&&e.const("firstPostfixIndex",`${e.data}.length${this.postfix?`- ${this.postfix.length}`:""}`),e.for(`i < ${this.postfix?"firstPostfixIndex":"data.length"}`,()=>e.traverseKey("i","data[i]",this.variadic),this.prevariadic.length),this.postfix?.forEach((n,r)=>{let i=`firstPostfixIndex + ${r}`;e.traverseKey(i,`data[${i}]`,n)})),e.traversalKind==="Allows"&&e.return(!0)}_transform(e,n){n.path.push(C.intrinsic.nonNegativeIntegerString.internal);let r=super._transform(e,n);return n.path.pop(),r}expression=this.description;reduceJsonSchema(e){return this.prefix&&(e.prefixItems=this.prefix.map(n=>n.toJsonSchema())),this.optionals?le.throwUnjsonifiableError(`Optional tuple element${this.optionalsLength>1?"s":""} ${this.optionals.join(", ")}`):(this.variadic?(e.items=this.variadic?.toJsonSchema(),this.minLength&&(e.minItems=this.minLength),this.maxLength&&(e.maxItems=this.maxLength)):(e.items=!1,delete e.minItems,delete e.maxItems),this.postfix?le.throwUnjsonifiableError(`Postfix tuple element${this.postfixLength>1?"s":""} ${this.postfix.join(", ")}`):e)}},Hk={},qk=t=>{if(!t.defaultables)return[];let e=[],n="[",r=t.prefixLength+t.defaultablesLength-1;for(let i=t.prefixLength;i<=r;i++){let[o,s]=t.defaultables[i-t.prefixLength];e.push(bp(i,o,s)),n+=`${i}: ${o.id} = ${tn(s)}, `}return n+="]",Hk[n]??=e},Vp={implementation:zk,Node:Lp},Kk=t=>{let e=[];return t.prefix?.forEach(n=>e.push({kind:"prefix",node:n})),t.defaultables?.forEach(([n,r])=>e.push({kind:"defaultables",node:n,default:r})),t.optionals?.forEach(n=>e.push({kind:"optionals",node:n})),t.variadic&&e.push({kind:"variadic",node:t.variadic}),t.postfix?.forEach(n=>e.push({kind:"postfix",node:n})),e},hD=t=>t.reduce((e,n)=>(n.kind==="variadic"?e.variadic=n.node:n.kind==="defaultables"?e.defaultables=ie(e.defaultables,[[n.node,n.default]]):e[n.kind]=ie(e[n.kind],n.node),e),{}),$p="A postfix required element cannot follow an optional or defaultable element",Gk="A postfix element requires a variadic element",Js=t=>{let[e,...n]=t.l,[r,...i]=t.r;if(!e||!r)return t;let o=n.at(-1)?.kind==="postfix",s=i.at(-1)?.kind==="postfix",a=e.kind==="prefix"||r.kind==="prefix"?"prefix":e.kind==="postfix"||r.kind==="postfix"?"postfix":e.kind==="variadic"&&r.kind==="variadic"?"variadic":o||s?"prefix":e.kind==="defaultables"||r.kind==="defaultables"?"defaultables":"optionals";if(e.kind==="prefix"&&r.kind==="variadic"&&s){let f=Js(w(m({},t),{fixedVariants:[],r:i.map(h=>w(m({},h),{kind:"prefix"}))}));f.disjoint.length===0&&t.fixedVariants.push(f)}else if(r.kind==="prefix"&&e.kind==="variadic"&&o){let f=Js(w(m({},t),{fixedVariants:[],l:n.map(h=>w(m({},h),{kind:"prefix"}))}));f.disjoint.length===0&&t.fixedVariants.push(f)}let l=Te(e.node,r.node,t.ctx);if(l instanceof T)if(a==="prefix"||a==="postfix")t.disjoint.push(...l.withPrefixKey(a==="prefix"?t.result.length:`-${n.length+1}`,"required")),t.result=[...t.result,{kind:a,node:C.intrinsic.never.internal}];else return a==="optionals"||a==="defaultables"?t:Js(w(m({},t),{fixedVariants:[],l:n.map(f=>w(m({},f),{kind:"prefix"})),r:n.map(f=>w(m({},f),{kind:"prefix"}))}));else a==="defaultables"?(e.kind==="defaultables"&&r.kind==="defaultables"&&e.default!==r.default&&_(vp(e.default,r.default)),t.result=[...t.result,{kind:a,node:l,default:e.kind==="defaultables"?e.default:r.kind==="defaultables"?r.default:fe(`Unexpected defaultable intersection from ${e.kind} and ${r.kind} elements.`)}]):t.result=[...t.result,{kind:a,node:l}];let c=t.l.length,u=t.r.length;return(e.kind!=="variadic"||c>=u&&(r.kind==="variadic"||u===1))&&(t.l=n),(r.kind!=="variadic"||u>=c&&(e.kind==="variadic"||c===1))&&(t.r=i),Js(t)};var mD=t=>e=>{if(e.props.length||e.index){let n=e.index?.map(i=>i[t])??[];e.props.forEach(i=>
37n.push(i[t])),e.undeclared&&n.push(`+ (undeclared): ${e.undeclared}`);let r=`{ ${n.join(", ")} }`;return e.sequence?`${r} & ${e.sequence.description}`:r}return e.sequence?.description??"{}"},Wk=mD("description"),Yk=mD("expression"),Zk=q({kind:"structure",hasAssociatedError:!1,normalize:t=>t,applyConfig:(t,e)=>!t.undeclared&&e.onUndeclaredKey!=="ignore"?w(m({},t),{undeclared:e.onUndeclaredKey}):t,keys:{required:{child:!0,parse:ft("required"),reduceIo:(t,e,n)=>{e.required=ie(e.required,n.map(r=>r[t]))}},optional:{child:!0,parse:ft("optional"),reduceIo:(t,e,n)=>{if(t==="in"){e.optional=n.map(r=>r.in);return}n.forEach(r=>e[r.outProp.kind]=ie(e[r.outProp.kind],r.outProp.out))}},index:{child:!0,parse:ft("index")},sequence:{child:!0,parse:ft("sequence")},undeclared:{parse:t=>t==="ignore"?void 0:t,reduceIo:(t,e,n)=>{n==="delete"&&(t==="in"?delete e.undeclared:e.undeclared="reject")}}},defaults:{description:Wk},intersections:{structure:(t,e,n)=>{let r=m({},t.inner),i=m({},e.inner),o=new T;if(t.undeclared){let l=t.keyof();e.requiredKeys.forEach(c=>{l.allows(c)||o.add("presence",C.intrinsic.never.internal,e.propsByKey[c].value,{path:[c]})}),i.optional&&(i.optional=i.optional.filter(c=>l.allows(c.key))),i.index&&(i.index=i.index.flatMap(c=>{if(c.signature.extends(l))return c;let u=$t(l,c.signature,n.$);if(u instanceof T)return[];let f=Mc(u,c.value,n.$);return f.required&&(i.required=Xn(i.required,f.required)),f.optional&&(i.optional=Xn(i.optional,f.optional)),f.index??[]}))}if(e.undeclared){let l=e.keyof();t.requiredKeys.forEach(c=>{l.allows(c)||o.add("presence",t.propsByKey[c].value,C.intrinsic.never.internal,{path:[c]})}),r.optional&&(r.optional=r.optional.filter(c=>l.allows(c.key))),r.index&&(r.index=r.index.flatMap(c=>{if(c.signature.extends(l))return c;let u=$t(l,c.signature,n.$);if(u instanceof T)return[];let f=Mc(u,c.value,n.$);return f.required&&(r.required=Xn(r.required,f.required)),f.optional&&(r.optional=Xn(r.optional,f.optional)),f.index??[]}))}let s={};(t.undeclared||e.undeclared)&&(s.undeclared=t.undeclared==="reject"||e.undeclared==="reject"?"reject":"delete");let a=uo({kind:"structure",baseInner:s,l:fo(r),r:fo(i),roots:[],ctx:n});return a instanceof T&&o.push(...a),o.length?o:a}}}),jp=class extends jt{impliedBasis=C.intrinsic.object.internal;impliedSiblings=this.children.flatMap(e=>e.impliedSiblings??[]);props=Xn(this.required,this.optional);propsByKey=X(this.props,(e,n)=>[n.key,n]);propsByKeyReference=Re(this.propsByKey);expression=Yk(this);requiredKeys=this.required?.map(e=>e.key)??[];optionalKeys=this.optional?.map(e=>e.key)??[];literalKeys=[...this.requiredKeys,...this.optionalKeys];_keyof;keyof(){if(this._keyof)return this._keyof;let e=this.$.units(this.literalKeys).branches;return this.index?.forEach(({signature:n})=>{e=e.concat(n.branches)}),this._keyof=this.$.node("union",e)}map(e){return this.$.node("structure",this.props.flatMap(e).reduce((n,r)=>{let i=this.propsByKey[r.key];if(Me(r))return r.kind!=="required"&&r.kind!=="optional"?_(`Map result must have kind "required" or "optional" (was ${r.kind})`):(n[r.kind]=ie(n[r.kind],r),n);let o=r.kind??i?.kind??"required",s=X(r,(a,l)=>a in Gs.implementation.keys?[a,l]:[]);return n[o]=ie(n[o],this.$.node(o,s)),n},{}))}assertHasKeys(e){let n=e.filter(r=>!Ys(r,this.keyof()));if(n.length)return _(pD(this.expression,n))}get(e,...n){let r,i=!1,o=Xk(e);if((typeof o=="string"||typeof o=="symbol")&&this.propsByKey[o]&&(r=this.propsByKey[o].value,i=this.propsByKey[o].required),this.index?.forEach(a=>{Ys(o,a.signature)&&(r=r?.and(a.value)??a.value)}),this.sequence&&Ys(o,C.intrinsic.nonNegativeIntegerString))if(F(o,"root"))this.sequence.variadic&&(r=r?.and(this.sequence.element)??this.sequence.element);else{let a=Number.parseInt(o);if(a<this.sequence.prevariadic.length){let l=this.sequence.prevariadic[a].node;r=r?.and(l)??l,i||=a<this.sequence.prefixLength}else if(this.sequence.variadic){let l=this.$.node("union",this.sequence.variadicOrPostfix);r=r?.and(l)??l}}if(!r)return this.sequence?.variadic&&F(o,"root")&&o.extends(C.intrinsic.number)?_(eO(o.expression,this.sequence.expression)):_(pD(this.expression,[o]));let s=r.get(...n);return i?s:s.or(C.intrinsic.undefined)}pick(...e){return this.assertHasKeys(e),this.$.node("structure",this.filterKeys("pick",e))}omit(...e){return this.assertHasKeys(e),this.$.node("structure",this.filterKeys("omit",e))}optionalize(){let r=this.inner,{required:e}=r,n=Be(r,["required"]);return this.$.node("structure",w(m({},n),{optional:this.props.map(i=>i.hasKind("required")?this.$.node("optional",i.inner):i)}))}require(){let r=this.inner,{optional:e}=r,n=Be(r,["optional"]);return this.$.node("structure",w(m({},n),{required:this.props.map(i=>i.hasKind("optional")?{key:i.key,value:i.value}:i)}))}merge(e){let n=this.filterKeys("omit",[e.keyof()]);return e.required&&(n.required=ie(n.required,e.required)),e.optional&&(n.optional=ie(n.optional,e.optional)),e.index&&(n.index=ie(n.index,e.index)),e.sequence&&(n.sequence=e.sequence),e.undeclared?n.undeclared=e.undeclared:delete n.undeclared,this.$.node("structure",n)}filterKeys(e,n){let r=vc(this.inner),i=o=>{let s=n.some(a=>Ys(o,a));return e==="pick"?s:!s};return r.required&&(r.required=r.required.filter(o=>i(o.key))),r.optional&&(r.optional=r.optional.filter(o=>i(o.key))),r.index&&(r.index=r.index.filter(o=>i(o.signature))),r}traverseAllows=(e,n)=>this._traverse("Allows",e,n);traverseApply=(e,n)=>this._traverse("Apply",e,n);_traverse=(e,n,r)=>{let i=r?.currentErrorCount??0;for(let o=0;o<this.props.length;o++)if(e==="Allows"){if(!this.props[o].traverseAllows(n,r))return!1}else if(this.props[o].traverseApply(n,r),r.failFast&&r.currentErrorCount>i)return!1;if(this.sequence){if(e==="Allows"){if(!this.sequence.traverseAllows(n,r))return!1}else if(this.sequence.traverseApply(n,r),r.failFast&&r.currentErrorCount>i)return!1}if(this.index||this.undeclared==="reject"){let o=Object.keys(n);o.push(...Object.getOwnPropertySymbols(n));for(let s=0;s<o.length;s++){let a=o[s];if(this.index){for(let l of this.index)if(l.signature.traverseAllows(a,r)){if(e==="Allows"){if(!Tt(a,()=>l.value.traverseAllows(n[a],r),r))return!1}else if(Tt(a,()=>l.value.traverseApply(n[a],r),r),r.failFast&&r.currentErrorCount>i)return!1}}if(this.undeclared==="reject"&&!this.declaresKey(a)&&(e==="Allows"||(r.errorFromNodeContext({code:"predicate",expected:"removed",actual:"",relativePath:[a],meta:this.meta}),r.failFast)))return!1}}return this.structuralMorph&&!r.hasError()&&r.queueMorphs([this.structuralMorph]),!0};get defaultable(){return this.cacheGetter("defaultable",this.optional?.filter(e=>e.hasDefault())??[])}declaresKey=e=>
37e in this.propsByKey||this.index?.some(n=>n.signature.allows(e))||this.sequence!==void 0&&C.intrinsic.nonNegativeIntegerString.allows(e);declaresKeyRef=Re(this.declaresKey);get structuralMorph(){return this.cacheGetter("structuralMorph",Jk(this))}structuralMorphRef=this.structuralMorph&&Re(this.structuralMorph);compile(e){if(e.traversalKind==="Apply"&&e.initializeErrorCount(),this.props.forEach(n=>{e.check(n),e.traversalKind==="Apply"&&e.returnIfFailFast()}),this.sequence&&(e.check(this.sequence),e.traversalKind==="Apply"&&e.returnIfFailFast()),(this.index||this.undeclared==="reject")&&(e.const("keys","Object.keys(data)"),e.line("keys.push(...Object.getOwnPropertySymbols(data))"),e.for("i < keys.length",()=>this.compileExhaustiveEntry(e))),e.traversalKind==="Allows")return e.return(!0);this.structuralMorphRef&&e.if("!ctx.hasError()",()=>e.line(`ctx.queueMorphs([${this.structuralMorphRef}])`))}compileExhaustiveEntry(e){return e.const("k","keys[i]"),this.index?.forEach(n=>{e.if(`${e.invoke(n.signature,{arg:"k",kind:"Allows"})}`,()=>e.traverseKey("k","data[k]",n.value))}),this.undeclared==="reject"&&e.if(`!${this.declaresKeyRef}(k)`,()=>e.traversalKind==="Allows"?e.return(!1):e.line(`ctx.errorFromNodeContext({ code: "predicate", expected: "removed", actual: "", relativePath: [k], meta: ${this.compiledMeta} })`).if("ctx.failFast",()=>e.return())),e}reduceJsonSchema(e){switch(e.type){case"object":return this.reduceObjectJsonSchema(e);case"array":return this.props.length||this.index?le.throwUnjsonifiableError(`Additional properties on array ${this.expression}`):this.sequence?.reduceJsonSchema(e)??e;default:return le.throwInternalOperandError("structure",e)}}reduceObjectJsonSchema(e){return this.props.length&&(e.properties={},this.props.forEach(n=>{if(typeof n.key=="symbol")return le.throwUnjsonifiableError(`Symbolic key ${n.serializedKey}`);e.properties[n.key]=n.value.toJsonSchema()}),this.requiredKeys.length&&(e.required=this.requiredKeys)),this.index?.forEach(n=>{if(n.signature.equals(C.intrinsic.string))return e.additionalProperties=n.value.toJsonSchema();if(!n.signature.extends(C.intrinsic.string))return le.throwUnjsonifiableError(`Symbolic index signature ${n.signature.exclude(C.intrinsic.string)}`);n.signature.branches.forEach(r=>{if(!r.hasKind("intersection")||r.inner.pattern?.length!==1)return le.throwUnjsonifiableError(`Index signature ${r}`);e.patternProperties??={},e.patternProperties[r.inner.pattern[0].rule]=n.value.toJsonSchema()})}),this.undeclared&&!e.additionalProperties&&(e.additionalProperties=!1),e}},Qk={},Jk=t=>{let e="";for(let n=0;n<t.defaultable.length;n++)e+=t.defaultable[n].defaultValueMorphRef;if(t.sequence?.defaultValueMorphsReference&&(e+=t.sequence?.defaultValueMorphsReference),t.undeclared==="delete"&&(e+="delete !(",t.required?.forEach(n=>e+=n.compiledKey+" | "),t.optional?.forEach(n=>e+=n.compiledKey+" | "),t.index?.forEach(n=>e+=n.signature.id+" | "),t.sequence&&(t.sequence.maxLength===null?e+=$.nonNegativeIntegerString.id:e+=t.sequence.tuple.forEach((n,r)=>e+=r+" | ")),e+=")"),!!e)return Qk[e]??=(n,r)=>{for(let i=0;i<t.defaultable.length;i++)t.defaultable[i].key in n||t.defaultable[i].defaultValueMorph(n,r);if(t.sequence?.defaultables)for(let i=n.length-t.sequence.prefixLength;i<t.sequence.defaultables.length;i++)t.sequence.defaultValueMorphs[i](n,r);if(t.undeclared==="delete")for(let i in n)t.declaresKey(i)||delete n[i];return n}},Bp={implementation:Zk,Node:jp},Xk=t=>(F(t,"root")&&t.hasKind("unit")&&(t=t.unit),typeof t=="number"&&(t=`${t}`),t),eO=(t,e)=>`${t} is not allowed as an array index on ${e}. Use the 'nonNegativeIntegerString' keyword instead.`,Mc=(t,e,n)=>{let[r,i]=fw(t.branches,s=>s.hasKind("unit"));if(!r.length)return{index:n.node("index",{signature:t,value:e})};let o={};return r.forEach(s=>{let a=n.node("required",{key:s.unit,value:e});o[a.kind]=ie(o[a.kind],a)}),i.length&&(o.index=n.node("index",{signature:i,value:e})),o},tO=t=>F(t,"root")?t.expression:Y(t),pD=(t,e)=>`Key${e.length===1?"":"s"} ${e.map(tO).join(", ")} ${e.length===1?"does":"do"} not exist on ${t}`;var po=w(m({},Xw),{alias:Zs.implementation,domain:xc.implementation,unit:kp.implementation,proto:Qs.implementation,union:Np.implementation,morph:Ip.implementation,intersection:Cp.implementation,divisor:Jh.implementation,pattern:pp.implementation,predicate:Zh.implementation,required:Fp.implementation,optional:Gs.implementation,index:Rp.implementation,sequence:Vp.implementation,structure:Bp.implementation});C.defaultConfig=_w(Object.assign(X(po,(t,e)=>[t,e.defaults]),{jitless:Sw(),clone:ww,onUndeclaredKey:"ignore",numberAllowsNaN:!1,dateAllowsInvalid:!1,onFail:null}));C.resolvedConfig=zs(C.defaultConfig,C.config);var iD=w(m({},eD),{alias:Zs.Node,domain:xc.Node,unit:kp.Node,proto:Qs.Node,union:Np.Node,morph:Ip.Node,intersection:Cp.Node,divisor:Jh.Node,pattern:pp.Node,predicate:Zh.Node,required:Fp.Node,optional:Gs.Node,index:Rp.Node,sequence:Vp.Node,structure:Bp.Node});var ni=class extends fc{get[xt](){return"module"}},Up=(t,e)=>new ni(X(t,(n,r)=>[n,F(r,"module")?Up(r,e):e.bindReference(r)]));var nO=t=>Ce(t)?t:"branches"in t&&Ce(t.branches)?t.branches:void 0,rO=(t,e)=>_(`Node of kind ${e}
37 is not valid as a ${t} definition`),gD=t=>`#${t} duplicates public alias ${t}`,zp={};C.ambient??={};var yD,iO=t=>_D(t,bD(t)),_D=(t,e)=>{let n=oO(e);for(let r of t)r.precompilation||(r.traverseAllows=n[`${r.id}Allows`].bind(n),r.isRoot()&&!r.allowsRequiresContext&&(r.allows=r.traverseAllows),r.traverseApply=n[`${r.id}Apply`].bind(n),n[`${r.id}Optimistic`]&&(r.traverseOptimistic=n[`${r.id}Optimistic`].bind(n)),r.precompilation=e)},oO=t=>new Us().return(t).compile()(),bD=t=>t.reduce((e,n)=>{let r=new ro({kind:"Allows"}).indent();n.compile(r);let i=r.write(`${n.id}Allows`),o=new ro({kind:"Apply"}).indent();n.compile(o);let s=o.write(`${n.id}Apply`),a=`${e}${i},
38${s},
39`;if(!n.hasKind("union"))return a;let l=new ro({kind:"Allows",optimistic:!0}).indent();n.compile(l);let c=l.write(`${n.id}Optimistic`);return`${a}${c},
40`},`{
41`)+"}",Xs=class{config;resolvedConfig;name;get[xt](){return"scope"}referencesById={};references=[];resolutions={};exportedNames=[];aliases={};resolved=!1;nodesByHash={};constructor(e,n){this.config=zs(C.config,n),this.resolvedConfig=zs(C.resolvedConfig,n),this.name=this.resolvedConfig.name??`anonymousScope${Object.keys(zp).length}`,this.name in zp&&_(`A Scope already named ${this.name} already exists`),zp[this.name]=this,Object.entries(e).map(i=>this.preparseOwnAliasEntry(...i)).forEach(([i,o])=>{let s=i;if(i[0]==="#"?(s=i.slice(1),s in this.aliases&&_(gD(s)),this.aliases[s]=o):(s in this.aliases&&_(gD(i)),this.aliases[s]=o,this.exportedNames.push(s)),!F(o,"module")&&!F(o,"generic")&&!pr(o)){let a=this.preparseOwnDefinitionFormat(o,{alias:s});F(a,"root")?this.resolutions[s]=this.bindReference(a):this.resolutions[s]=this.createParseContext(a).id}}),yD??=this.node("union",{branches:["string","number","object","bigint","symbol",{unit:!0},{unit:!1},{unit:void 0},{unit:null}]},{prereduced:!0}),this.nodesByHash[yD.hash]=this.node("intersection",{},{prereduced:!0})}cacheGetter(e,n){return Object.defineProperty(this,e,{value:n}),n}get internal(){return this}_json;get json(){return this._json||this.export(),this._json}defineSchema(e){return e}generic=(...e)=>{let n=this;return(r,i)=>new ir(e,i?new Hs(r):r,n,n,i??null)};units=(e,n)=>{let r=[];for(let o of e)r.includes(o)||r.push(o);let i=r.map(o=>this.node("unit",{unit:o},n));return this.node("union",i,w(m({},n),{prereduced:!0}))};lazyResolutions=[];lazilyResolve(e,n){let r=this.node("alias",{reference:n??"synthetic",resolve:e},{prereduced:!0});return this.resolved||this.lazyResolutions.push(r),r}schema=(e,n)=>this.finalize(this.parseSchema(e,n));parseSchema=(e,n)=>this.node(qs(e),e,n);preparseNode(e,n,r){let i=typeof e=="string"?e:qs(n,e);if(Me(n)&&n.kind===i)return n;if(i==="alias"&&!r?.prereduced){let{reference:a}=Zs.implementation.normalize(n,this);if(a.startsWith("$")){let l=this.resolveRoot(a.slice(1));n=l,i=l.kind}}else if(i==="union"&&It(n,"object")){let a=nO(n);a?.length===1&&(n=a[0],i=qs(n))}if(Me(n)&&n.kind===i)return n;let s=po[i].normalize?.(n,this)??n;return Me(s)?s.kind===i?s:rO(i,s.kind):w(m({},r),{$:this,kind:i,def:s,prefix:r.alias??i})}bindReference(e){let n;return Me(e)?n=e.$===this?e:new e.constructor(e.attachments,this):n=e.$===this?e:new ir(e.params,e.bodyDef,e.$,this,e.hkt),this.resolved||Object.assign(this.referencesById,n.referencesById),n}resolveRoot(e){return this.maybeResolveRoot(e)??_(qp(e))}maybeResolveRoot(e){let n=this.maybeResolve(e);if(!F(n,"generic"))return n}maybeResolveSubalias(e){return Hp(this.aliases,e)??Hp(this.ambient,e)}get ambient(){return C.ambient}maybeResolve(e){let n=this.resolutions[e];if(n){if(typeof n!="string")return this.bindReference(n);let i=vt[n];if(F(i,"root"))return this.resolutions[e]=i;if(F(i,"context")){if(i.phase==="resolving")return this.node("alias",{reference:`$${e}`},{prereduced:!0});if(i.phase==="resolved")return fe(`Unexpected resolved context for was uncached by its scope: ${Y(i)}`);i.phase="resolving";let o=this.bindReference(this.parseOwnDefinitionFormat(i.def,i));return i.phase="resolved",vt[o.id]=o,vt[i.id]=o,this.resolutions[e]=o}return fe(`Unexpected nodesById entry for ${n}: ${Y(i)}`)}let r=this.aliases[e]??this.ambient?.[e];return r?(r=this.normalizeRootScopeValue(r),F(r,"generic")?this.resolutions[e]=this.bindReference(r):F(r,"module")?r.root?this.resolutions[e]=this.bindReference(r.root):_(ED(e)):this.resolutions[e]=this.parse(r,{alias:e})):this.maybeResolveSubalias(e)}createParseContext(e){let n=e.id??mp(e.prefix);return vt[n]=Object.assign(e,{[xt]:"context",$:this,id:n,phase:"unresolved"})}traversal(e){return new vn(e,this.resolvedConfig)}import(...e){return new ni(X(this.export(...e),(n,r)=>[`#${n}`,r]))}precompilation;_exportedResolutions;_exports;
41export(...e){if(!this._exports){this._exports={};for(let r of this.exportedNames){let i=this.aliases[r];this._exports[r]=F(i,"module")?Up(i,this):vD(this.maybeResolve(r))}this.lazyResolutions.forEach(r=>r.resolution),this._exportedResolutions=DD(this,this._exports),this._json=wD(this._exportedResolutions),Object.assign(this.resolutions,this._exportedResolutions),this.references=Object.values(this.referencesById),this.resolvedConfig.jitless||(this.precompilation=bD(this.references),_D(this.references,this.precompilation)),this.resolved=!0}let n=e.length?e:this.exportedNames;return new ni(X(n,(r,i)=>[i,this._exports[i]]))}resolve(e){return this.export()[e]}node=(e,n,r={})=>{let i=this.preparseNode(e,n,r);if(Me(i))return this.bindReference(i);let o=this.createParseContext(i),s=gp(o),a=this.bindReference(s);return vt[o.id]=a};parse=(e,n={})=>this.finalize(this.parseDefinition(e,n));parseDefinition(e,n={}){if(F(e,"root"))return this.bindReference(e);let r=this.preparseOwnDefinitionFormat(e,n);if(F(r,"root"))return this.bindReference(r);let i=this.createParseContext(r);vt[i.id]=i;let o=this.bindReference(this.parseOwnDefinitionFormat(e,i));return o.isCyclic&&(o=rD(o,i.id)),vt[i.id]=o,o}finalize(e){return vD(e),!e.precompilation&&!this.resolvedConfig.jitless&&iO(e.references),e}},Tc=class extends Xs{parseOwnDefinitionFormat(e,n){return gp(n)}preparseOwnDefinitionFormat(e,n){return this.preparseNode(qs(e),e,n)}preparseOwnAliasEntry(e,n){return[e,n]}normalizeRootScopeValue(e){return e}},vD=t=>(t.references.filter(e=>e.hasKind("alias")).forEach(e=>{Object.assign(e.referencesById,e.resolution.referencesById),t.references.forEach(n=>{e.id in n.referencesById&&Object.assign(n.referencesById,e.referencesById)})}),t),wD=t=>X(t,(e,n)=>[e,F(n,"root")||F(n,"generic")?n.json:F(n,"module")?wD(n):fe(`Unexpected resolution ${Y(n)}`)]),Hp=(t,e)=>{let n=e.indexOf(".");if(n===-1)return;let r=e.slice(0,n),i=t[r];if(i===void 0)return;if(!F(i,"module"))return _(sO(r));let o=e.slice(n+1),s=i[o];if(s===void 0)return Hp(i,o);if(F(s,"root")||F(s,"generic"))return s;if(F(s,"module"))return s.root??_(ED(e));fe(`Unexpected resolution for alias '${e}': ${Y(s)}`)},Nc=(t,e)=>new Tc(t,e),ea=new Tc({});var DD=(t,e)=>{let n={};for(let r in e){let i=e[r];if(F(i,"module")){let o=DD(t,i),s=X(o,(a,l)=>[`${r}.${a}`,l]);Object.assign(n,s)}else F(i,"root")||F(i,"generic")?n[r]=i:fe(`Unexpected scope resolution ${Y(i)}`)}return n},qp=t=>`'${t}' is unresolvable`,sO=t=>`'${t}' must reference a module to be accessed using dot syntax`,ED=t=>`Reference to submodule '${t}' must specify an alias`;ea.export();var ye=ea.schema,vo=ea.node,EK=ea.defineSchema,nn=ea.generic;var Kp="^(?:0|[1-9]\\d*)$",aO=new RegExp(Kp),xK=Re(aO);var CD=Nc({bigint:"bigint",boolean:[{unit:!1},{unit:!0}],false:{unit:!1},never:[],null:{unit:null},number:"number",object:"object",string:"string",symbol:"symbol",true:{unit:!0},unknown:{},undefined:{unit:void 0},Array,Date},{prereducedAliases:!0}).export();C.intrinsic=m({},CD);var SD=Nc({integer:{domain:"number",divisor:1},lengthBoundable:["string",Array],key:["string","symbol"],nonNegativeIntegerString:{domain:"string",pattern:Kp}},{prereducedAliases:!0}).export();Object.assign(C.intrinsic,SD);var lO=Nc({jsonPrimitive:["string","number",{unit:!0},{unit:!1},{unit:null}],jsonObject:{domain:"object",index:{signature:"string",value:"$jsonData"}},jsonData:["$jsonPrimitive","$jsonObject"]},{prereducedAliases:!0}).export(),$=w(m(m(m({},CD),SD),lO),{emptyStructure:vo("structure",{},{prereduced:!0})});C.intrinsic=m({},$);var xD=t=>typeof t=="string"&&t[0]==="d"&&(t[1]==="'"||t[1]==='"')&&t.at(-1)===t[1],ID=t=>t.toString()!=="Invalid Date",MD=t=>t.slice(2,-1),Gp=t=>`'${t}' could not be parsed by the Date constructor`,TD=(t,e)=>cO(t,e),cO=(t,e)=>{let n=new Date(t);if(ID(n))return n;let r=kw(t);if(r!==void 0){let i=new Date(r);if(ID(i))return i}return e?_(e===!0?Gp(t):e):void 0};var Wp=(t,e)=>{let n=t.scanner.shiftUntil(uO[AD[e]]);if(t.scanner.lookahead==="")return t.error(fO(n,e));if(t.scanner.shift(),e==="/"){try{new RegExp(n)}catch(r){_(String(r))}t.root=t.ctx.$.node("intersection",{domain:"string",pattern:n},{prereduced:!0})}else if(Xe(e,Yp))t.root=t.ctx.$.node("unit",{unit:n});else{let r=TD(n,Gp(n));t.root=t.ctx.$.node("unit",{meta:n,unit:r})}},Yp={"'":1,'"':1},ND={"/":1,"'":1,'"':1},AD={"d'":"'",'d"':'"',"'":"'",'"':'"',"/":"/"},uO={"'":t=>t.lookahead==="'",'"':t=>t.lookahead==='"',"/":t=>t.lookahead==="/"},dO={'"':"double-quote","'":"single-quote","/":"forward slash"},fO=(t,e)=>`${e}${t} requires a closing ${dO[AD[e]]}`;var kD=t=>`Private type references should not include '#'. Use '${t}' instead.`,Ac="Optional definitions like 'string?' are only valid as properties in an object or tuple",kc="Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple";var OD={">":!0,">=":!0},RD={"<":!0,"<=":!0};var _o={"<":">",">":"<","<=":">=",">
41=":"<=","==":"=="},PD=t=>`Unmatched )${t===""?"":` before ${t}`}`,Oc=t=>`Missing ${t}`,FD=(t,e)=>`Left bounds are only valid when paired with right bounds (try ...${e}${t})`,Rc=t=>`Left-bounded expressions must specify their limits using < or <= (was ${t})`,LD=(t,e,n,r)=>`An expression may have at most one left bound (parsed ${t}${_o[e]}, ${n}${_o[r]})`;var VD=(t,e,n)=>$D(t,e,n,[]),$D=(t,e,n,r)=>{let i=n.parseUntilFinalizer();return r.push(i.root),i.finalizer===">"?r.length!==e.params.length?n.error(Zp(t,e.names,r.map(o=>o.expression))):r:i.finalizer===","?$D(t,e,n,r):i.error(Oc(">"))},Zp=(t,e,n)=>`${t}<${e.join(", ")}> requires exactly ${e.length} args (got ${n.length}${n.length===0?"":`: ${n.join(", ")}`})`;var Qp=t=>{let e=t.scanner.shiftUntilNextTerminator();e==="keyof"?t.addPrefix("keyof"):t.root=pO(t,e)},hO=(t,e,n)=>{if(n.scanner.shiftUntilNonWhitespace(),n.scanner.shift()!=="<")return n.error(Zp(t,e.names,[]));let i=VD(t,e,n);return e(...i)},pO=(t,e)=>mO(t,e)??gO(t,e)??t.error(e===""?t.scanner.lookahead==="#"?kD(t.shiftedByOne().scanner.shiftUntilNextTerminator()):Jp(t):qp(e)),mO=(t,e)=>{if(t.ctx.args?.[e]){let r=t.ctx.args[e];return typeof r!="string"?r:t.ctx.$.node("alias",{reference:r},{prereduced:!0})}let n=t.ctx.$.maybeResolve(e);if(F(n,"root"))return n;if(n!==void 0)return F(n,"generic")?hO(e,n,t):_(`Unexpected resolution ${Y(n)}`)},gO=(t,e)=>{let n=Ow(e);if(n!==void 0)return t.ctx.$.node("unit",{unit:n});let r=Pw(e);if(r!==void 0)return t.ctx.$.node("unit",{unit:r})},Jp=t=>{let e=t.previousOperator();return e?Xp(e,t.scanner.unscanned):yO(t.scanner.unscanned)},Xp=(t,e="")=>`Token '${t}' requires a right operand${e?` before '${e}'`:""}`,yO=t=>`Expected an expression${t?` before '${t}'`:""}`;var em=t=>t.scanner.lookahead===""?t.error(Jp(t)):t.scanner.lookahead==="("?t.shiftedByOne().reduceGroupOpen():t.scanner.lookaheadIsIn(ND)?Wp(t,t.scanner.shift()):t.scanner.lookaheadIsIn(mr)?em(t.shiftedByOne()):t.scanner.lookahead==="d"?t.scanner.nextLookahead in Yp?Wp(t,`${t.scanner.shift()}${t.scanner.shift()}`):Qp(t):Qp(t);var _r=class t extends yc{shiftUntilNextTerminator(){return this.shiftUntilNonWhitespace(),this.shiftUntil(()=>this.lookahead in t.terminatingChars)}static terminatingChars=m({"<":1,">":1,"=":1,"|":1,"&":1,")":1,"[":1,"%":1,",":1,":":1,"?":1,"#":1},mr);static finalizingLookaheads={">":1,",":1,"":1,"=":1,"?":1};static lookaheadIsFinalizing=(e,n)=>e===">"?n[0]==="="?n[1]==="=":n.trimStart()===""||Xe(n.trimStart()[0],t.terminatingChars):e==="="?n[0]!=="=":e===","||e==="?"};var BD=(t,e)=>{let n=vO(t,e);if(t.root.hasKind("unit")){if(typeof t.root.unit=="number"){t.reduceLeftBound(t.root.unit,n),t.unsetRoot();return}if(t.root.unit instanceof Date){let r=`d'${t.root.description??t.root.unit.toISOString()}'`;t.unsetRoot(),t.reduceLeftBound(r,n);return}}return bO(t,n)},UD={"<":1,">":1,"=":1},vO=(t,e)=>t.scanner.lookaheadIs("=")?`${e}${t.scanner.shift()}`:e;var jD=(t,e,n,r)=>n.extends(C.intrinsic.number)?typeof e!="number"?_(tm(t,e,r)):t==="=="?["min","max"]:t[0]===">"?["min"]:["max"]:n.extends(C.intrinsic.lengthBoundable)?typeof e!="number"?_(tm(t,e,r)):t==="=="?["exactLength"]:t[0]===">"?["minLength"]:["maxLength"]:n.extends(C.intrinsic.Date)?t==="=="?["after","before"]:t[0]===">"?["after"]:["before"]:_(Jw(n.expression)),_O=t=>({rule:xD(t.limit)?MD(t.limit):t.limit,exclusive:t.comparator.length===1}),bO=(t,e)=>{let n=t.unsetRoot(),r=t.scanner.location;t.parseOperand();let i=t.unsetRoot(),o=t.scanner.sliceChars(r,t.scanner.location);if(t.root=n,!i.hasKind("unit")||typeof i.unit!="number"&&!(i.unit instanceof Date))return t.error(tm(e,o,"right"));let s=i.unit,a=e.length===1,l=jD(e,typeof s=="number"?s:o,n,"right");for(let u of l)t.constrainRoot(u,e==="=="?{rule:s}:{rule:s,exclusive:a});if(!t.branches.leftBound)return;if(!Xe(e,RD))return t.error(Rc(e));let c=jD(t.branches.leftBound.comparator,t.branches.leftBound.limit,n,"left");t.constrainRoot(c[0],_O(t.branches.leftBound)),t.branches.leftBound=null},tm=(t,e,n)=>`Comparator ${n==="left"?_o[t]:t} must be ${n==="left"?"preceded":"followed"} by a corresponding literal (was ${e})`;var zD=t=>{t.scanner.shiftUntilNonWhitespace();let e=t.scanner.shiftUntilNextTerminator();t.root=t.root.brand(e)};var qD=t=>{let e=t.scanner.shiftUntilNextTerminator(),n=Rw(e,{errorOnFail:H
41D(e)});n===0&&t.error(HD(0)),t.root=t.root.constrain("divisor",n)},HD=t=>`% operator must be followed by a non-zero integer literal (was ${t})`;var nm=t=>{let e=t.scanner.shift();return e===""?t.finalize(""):e==="["?t.scanner.shift()==="]"?t.setRoot(t.root.array()):t.error(wO):e==="|"||e==="&"?t.pushRootToBranch(e):e===")"?t.finalizeGroup():_r.lookaheadIsFinalizing(e,t.scanner.unscanned)?t.finalize(e):Xe(e,UD)?BD(t,e):e==="%"?qD(t):e==="#"?zD(t):e in mr?nm(t):t.error(Pc(e))},Pc=(t,e="")=>`'${t}' is not allowed here${e&&` (should be ${e})`}`,wO="Missing expected ']'";var KD=t=>{let e=t.unsetRoot();t.parseOperand();let n=t.unsetRoot();if(!n.hasKind("unit"))return t.error(DO(n.expression));let r=n.unit instanceof Date?()=>new Date(n.unit):n.unit;return[e,"=",r]},DO=t=>`Default value '${t}' must a literal value`;var rm=(t,e)=>{let n=e.$.maybeResolveRoot(t);if(n)return n;if(t.endsWith("[]")){let o=e.$.maybeResolveRoot(t.slice(0,-2));if(o)return o.array()}let r=new bo(new _r(t),e),i=EO(r);return r.finalizer===">"&&_(Pc(">")),i},EO=t=>{t.parseOperand();let e=ta(t).root;return e?(t.finalizer==="="?e=KD(t):t.finalizer==="?"&&(e=[e,"?"]),t.scanner.shiftUntilNonWhitespace(),t.scanner.lookahead&&_(Pc(t.scanner.lookahead)),e):fe(`Root was unexpectedly unset after parsing string '${t.scanner.scanned}'`)},ta=t=>{for(;t.finalizer===void 0;)CO(t);return t},CO=t=>t.hasRoot()?t.parseOperator():t.parseOperand();var bo=class t{root;branches={prefixes:[],leftBound:null,intersection:null,union:null};finalizer;groups=[];scanner;ctx;constructor(e,n){this.scanner=e,this.ctx=n}error(e){return _(e)}hasRoot(){return this.root!==void 0}setRoot(e){this.root=e}unsetRoot(){let e=this.root;return this.root=void 0,e}constrainRoot(...e){this.root=this.root.constrain(e[0],e[1])}finalize(e){if(this.groups.length)return this.error(Oc(")"));this.finalizeBranches(),this.finalizer=e}reduceLeftBound(e,n){let r=_o[n];if(!Xe(r,OD))return this.error(Rc(n));if(this.branches.leftBound)return this.error(LD(this.branches.leftBound.limit,this.branches.leftBound.comparator,e,r));this.branches.leftBound={comparator:r,limit:e}}finalizeBranches(){this.assertRangeUnset(),this.branches.union?(this.pushRootToBranch("|"),this.root=this.branches.union):this.branches.intersection?(this.pushRootToBranch("&"),this.root=this.branches.intersection):this.applyPrefixes()}finalizeGroup(){this.finalizeBranches();let e=this.groups.pop();if(!e)return this.error(PD(this.scanner.unscanned));this.branches=e}addPrefix(e){this.branches.prefixes.push(e)}applyPrefixes(){for(;this.branches.prefixes.length;){let e=this.branches.prefixes.pop();this.root=e==="keyof"?this.root.keyof():fe(`Unexpected prefix '${e}'`)}}pushRootToBranch(e){this.assertRangeUnset(),this.applyPrefixes();let n=this.root;this.branches.intersection=this.branches.intersection?.rawAnd(n)??n,e==="|"&&(this.branches.union=this.branches.union?.rawOr(this.branches.intersection)??this.branches.intersection,this.branches.intersection=null),this.root=void 0}parseUntilFinalizer(){return ta(new t(this.scanner,this.ctx))}parseOperator(){return nm(this)}parseOperand(){return em(this)}assertRangeUnset(){if(this.branches.leftBound)return this.error(FD(this.branches.leftBound.limit,this.branches.leftBound.comparator))}reduceGroupOpen(){this.groups.push(this.branches),this.branches={prefixes:[],leftBound:null,union:null,intersection:null}}previousOperator(){return this.branches.leftBound?.comparator??this.branches.prefixes.at(-1)??(this.branches.intersection?"&":this.branches.union?"|":void 0)}shiftedByOne(){return this.scanner.shift(),this}};var SO="An empty string is not a valid generic parameter name",Fc=(t,e,n)=>{t.shiftUntilNonWhitespace();let r=t.shiftUntilNextTerminator();return r===""?t.lookahead===""&&e.length?e:_(SO):(t.shiftUntilNonWhitespace(),IO(t,r,e,n))},GD="extends ",IO=(t,e,n,r)=>{if(t.shiftUntilNonWhitespace(),t.unscanned.startsWith(GD))t.jumpForward(GD.length);else return t.lookahead===","&&t.shift(),n.push(e),Fc(t,n,r);let i=ta(new bo(t,r));return n.push([e,i.root]),Fc(t,n,r)};var Lc=class extends en{$;constructor(e){super((...n)=>new wo(e)(...n),{bind:e}),this.$=e}in(){return new wo(this.$)}at(e,n){return new wo(this.$).at(e,n)}case(e,n){return new wo(this.$).case(e,n)}},wo=class extends en{$;key;branches=[];constructor(e){super(n=>{let r=Object.entries(n);for(let i=0;i<r.length;i++){let[o,s]=r[i];if(o==="default")return i!==r.length-1&&_("default may only be specified as the last key of a switch definition"),this.default(s);if(typeof s!="function")return _(`Value for case "${o}" must be a function (was ${Je(s)})`);this.case(o,s)}return this}),this.$=e}at(e,n){return this.key&&_(TO),this.branches.length&&_(MO),this.key=e,n?this.match(n):this}case(e,n){let r=this.key?{[this.key]:e}:e,i=this.$.parse(r).pipe(n);return this.branches.push(i),this}match(e){return this(e)}default(e){typeof e=="function"&&this.case($.unknown,e);let n={branches:this.branches,ordered:!0}
41;return(e==="never"||e==="assert")&&(n.meta={onFail:xO}),this.$.finalize(this.$.node("union",n))}},xO=t=>t.throw(),MO="A key matcher must be specified before the first case i.e. match.at('foo') or match.in<object>().at('bar')",TO="At most one key matcher may be specified per expression";var Vc=(t,e)=>{if(Ce(t)){if(t[1]==="=")return[e.$.parseOwnDefinitionFormat(t[0],e),"=",t[2]];if(t[1]==="?")return[e.$.parseOwnDefinitionFormat(t[0],e),"?"]}return $c(t,e)},WD="Only required keys may make their values optional, e.g. { [mySymbol]: ['number', '?'] }",YD="Only required keys may specify default values, e.g. { value: 'number = 0' }";var ZD=(t,e)=>{let n,r={},i=Rs(t);for(let[s,a]of i){let l=kO(s);if(l.kind==="spread"){if(!kn(r))return _(AO);let d=e.$.parseOwnDefinitionFormat(a,e);if(d.equals($.object))continue;if(!d.hasKind("intersection")||!d.basis?.equals($.object))return _(OO(d.expression));n=d.structure;continue}if(l.kind==="undeclared"){a!=="reject"&&a!=="delete"&&a!=="ignore"&&_(NO(a)),r.undeclared=a;continue}let c=Vc(a,e),u=l;if(l.kind==="required"){Ce(c)?im(r,"optional",c[1]==="="?{key:l.normalized,value:c[0],default:c[2]}:{key:l.normalized,value:c[0]},e):im(r,"required",{key:l.normalized,value:c},e);continue}if(Ce(c)&&(c[1]==="?"&&_(WD),c[1]==="="&&_(YD)),l.kind==="optional"){im(r,"optional",{key:l.normalized,value:c},e);continue}let f=e.$.parseOwnDefinitionFormat(u.normalized,e),h=Mc(f,c,e.$);h.index&&(r.index=ie(r.index,h.index)),h.required&&(r.required=ie(r.required,h.required))}let o=e.$.node("structure",r);return e.$.parseSchema({domain:"object",structure:n?.merge(o)??o})},im=(t,e,n,r)=>{t[e]=ie(t[e],r.$.node(e,n))},NO=t=>`Value of '+' key must be 'reject', 'delete', or 'ignore' (was ${Y(t)})`,AO="Spread operator may only be used as the first key in an object",kO=t=>typeof t=="symbol"?{kind:"required",normalized:t}:t.at(-1)==="?"?t.at(-2)===Vs?{kind:"required",normalized:`${t.slice(0,-2)}?`}:{kind:"optional",normalized:t.slice(0,-1)}:t[0]==="["&&t.at(-1)==="]"?{kind:"index",normalized:t.slice(1,-1)}:t[0]===Vs&&t[1]==="["&&t.at(-1)==="]"?{kind:"required",normalized:t.slice(1)}:t==="..."?{kind:"spread"}:t==="+"?{kind:"undeclared"}:{kind:"required",normalized:t==="\\..."?"...":t==="\\+"?"+":t},OO=t=>`Spread operand must resolve to an object literal type (was ${t})`;var XD=(t,e)=>HO(t)?r0[t[0]](t,e):UO(t)?n0[t[1]](t,e):null,RO=(t,e)=>e.$.parseOwnDefinitionFormat(t[1],e).keyof(),QD=(t,e)=>{if(t[2]===void 0)return _(Xp(t[1],""));let n=e.$.parseOwnDefinitionFormat(t[0],e),r=e.$.parseOwnDefinitionFormat(t[2],e);if(t[1]==="|")return e.$.node("union",{branches:[n,r]});let i=$t(n,r,e.$);return i instanceof T?i.throw():i},PO=(t,e)=>e.$.parseOwnDefinitionFormat(t[0],e).array(),FO=(t,e)=>typeof t[2]!="function"?_(e0("=>",t[2])):e.$.parseOwnDefinitionFormat(t[0],e).pipe(t[2]),LO=(t,e)=>{let n=e.$.parseOwnDefinitionFormat(t[0],e),r=e.$.parseOwnDefinitionFormat(t[2],e);return n.to(r)},e0=(t,e)=>`${t===":"?"Narrow":"Morph"} expression requires a function following '${t}' (was ${typeof e})`,VO=(t,e)=>typeof t[2]!="function"?_(e0(":",t[2])):e.$.parseOwnDefinitionFormat(t[0],e).constrain("predicate",t[2]),$O=(t,e)=>e.$.parseOwnDefinitionFormat(t[0],e).configureShallowDescendants(t[2]),t0=t=>t,jO=t0({"[]":PO,"?":()=>_(Ac)}),BO=t0({"|":QD,"&":QD,":":VO,"=>":FO,"|>":LO,"@":$O,"=":()=>_(kc)}),n0=m(m({},jO),BO),UO=t=>n0[t[1]]!==void 0,zO=t=>t,r0=zO({keyof:RO,instanceof:(t,e)=>{if(typeof t[1]!="function")return _(JD(Fs(t[1])));let n=t.slice(1).map(r=>typeof r=="function"?e.$.node("proto",{proto:r}):_(JD(Fs(r))));return n.length===1?n[0]:e.$.node("union",{branches:n})},"===":(t,e)=>e.$.units(t.slice(1))}),HO=t=>r0[t[0]]!==void 0,JD=t=>`Expected a constructor following 'instanceof' operator (was ${t})`;var s0=(t,e)=>{let n=[{}],r=0;for(;r<t.length;){let i=!1;t[r]==="..."&&r<t.length-1&&(i=!0,r++);let o=Vc(t[r],e),[s,a,l]=Ce(o)?o:[o];if(r++,i){if(!s.extends(C.intrinsic.Array))return _(GO(s.expression));n=n.flatMap(c=>s.distribute(u=>KO(vc(c),u)))}else n=n.map(c=>a==="?"?a0(c,s):a==="="?qO(c,s,l):om(c,s))}return e.$.parseSchema(n.map(i=>kn(i)?{proto:Array,exactLength:0}:{proto:Array,sequence:i}))},om=(t,e)=>t.defaultables||t.optionals?_(t.variadic?$p:WO):(t.variadic?t.postfix=ie(t.postfix,e):t.prefix=ie(t.prefix,e),t),a0=(t,e)=>t.variadic?_(l0):(t.optionals=ie(t.optionals,e),t),qO=(t,e,n)=>t.variadic?_(l0):t.optionals?_(YO):(t.defaultables=ie(t.defaultables,[[e,n]]),t),i0=(t,e)=>(t.postfix&&_(o0),t.variadic?t.variadic.equals(e)||_(o0):t.variadic=e.internal,t),KO=(t,e)=>{let n=e.firstReferenceOfKind("sequence");return n?(n.prefix?.forEach(r=>om(t,r)),n.optionals?.forEach(r=>a0(t,r)),n.variadic&&i0(t,n.variadic),n.postfix?.forEach(r=>om(t,r)),t):i0(t,C.intrinsic.unknown)},GO=t=>`Spread element must be an array (was ${t})`,o0="A tuple may have at most one variadic element",WO="A required element may not follow an optional element",l0="An optional element may not follow a variadic element";var YO="A defaultable element may not follow an optional element without a default";var ZO={},$c=(t,e)=>{if(typeof t=="string"){if(e.args&&Object.keys(e.args).some(r=>t.includes(r)))return rm(t,e);let n=ZO[e.$.name]??={};return n[t]??=rm(t,e)}return It(t,"object")?QO(t,e):_(sm(Je(t)))},QO=(t,e)=>{let n=Ps(t);switch(n){case void 0:return F(t,"root")?t:ZD(t,e);case"Array":return JO(t,e);case"RegExp":return e.$.node("intersection",{domain:"string",pattern:t},{prereduced:!0});
41case"Function":{let r=pr(t)?t():t;return F(r,"root")?r:_(sm("Function"))}default:return _(sm(n??Y(t)))}},JO=(t,e)=>XD(t,e)??s0(t,e),sm=t=>`Type definitions must be strings or objects (was ${t})`;var jc=class extends en{constructor(e){let n=Object.assign({errors:Mt,hkt:ot,$:e,raw:e.parse,module:e.constructor.module,scope:e.constructor.scope,define:e.define,match:e.match,generic:e.generic,schema:e.schema,keywords:e.ambient,unit:e.unit,enumerated:e.enumerated,instanceOf:e.instanceOf},e.ambientAttachments);super((...r)=>{if(r.length===1)return e.parse(r[0]);if(r.length===2&&typeof r[0]=="string"&&r[0][0]==="<"&&r[0].at(-1)===">"){let i=r[0].slice(1,-1),o=e.parseGenericParams(i,{});return new ir(o,r[1],e,e,null)}return e.parse(r)},{bind:e,attach:n})}};var Do=C,c0=(()=>{class t extends Xs{get ambientAttachments(){if(Do.typeAttachments)return this.cacheGetter("ambientAttachments",X(Do.typeAttachments,(n,r)=>[n,this.bindReference(r)]))}preparseOwnAliasEntry(n,r){let i=n.indexOf("<");if(i===-1){if(F(r,"module")||F(r,"generic"))return[n,r];let a=this.name==="ark"?n:n==="root"?this.name:`${this.name}.${n}`,l=this.resolvedConfig.keywords?.[a];return l&&(r=[r,"@",l]),[n,r]}n.at(-1)!==">"&&_("'>' must be the last character of a generic declaration in a scope");let o=n.slice(0,i),s=n.slice(i+1,-1);return[o,()=>{let a=this.parseGenericParams(s,{alias:o});return Yw(a,r,this)}]}parseGenericParams(n,r){return Fc(new _r(n),[],this.createParseContext(w(m({},r),{def:n,prefix:"generic"})))}normalizeRootScopeValue(n){return pr(n)&&!F(n,"generic")?n():n}preparseOwnDefinitionFormat(n,r){return w(m({},r),{def:n,prefix:r.alias??"type"})}parseOwnDefinitionFormat(n,r){!(r.alias&&r.alias in this.aliases)&&!r.args&&(r.args={this:r.id});let o=$c(n,r);if(Ce(o)){if(o[1]==="=")return _(kc);if(o[1]==="?")return _(Ac)}return o}unit=n=>this.units([n]);enumerated=(...n)=>this.units(n);instanceOf=n=>this.node("proto",{proto:n},{prereduced:!0});match=new Lc(this);declare=()=>({type:this.type});define(n){return n}type=new jc(this);static scope=(n,r={})=>new t(n,r);static module=(n,r={})=>this.scope(n,r).export()}return t})(),am=Object.assign(c0.scope,{define:t=>t}),ee=c0;var lm=class extends ot{},XO=nn(["base",$.object],["props",$.object])(t=>t.base.merge(t.props),lm),u0=ee.module({Key:$.key,Merge:XO});var cm=class extends ot{},eR=nn("element")(t=>{let e=t.element.exclude($.Array),n=e.array();return e.rawOr(n).pipe(Ji).distribute(r=>r.assertHasKind("morph").declareOut(n),ye)},cm),d0=ee.module({root:$.Array,readonly:"root",index:$.nonNegativeIntegerString,liftFrom:eR},{name:"Array"});var um=ye(["string",ei.FileConstructor]),tR=um.rawOr(um.array()),f0=ye({meta:"an object representing parsed form data",domain:"object",index:{signature:"string",value:tR}}),h0=ee.module({root:["instanceof",FormData],value:um,parsed:f0,parse:ye({in:FormData,morphs:t=>{let e={};for(let[n,r]of t)if(n in e){let i=e[n];typeof i=="string"||i instanceof ei.FileConstructor?e[n]=[i,r]:i.push(r)}else e[n]=r;return e},declaredOut:f0})},{name:"FormData"});var p0=ee.module({Int8:["instanceof",Int8Array],Uint8:["instanceof",Uint8Array],Uint8Clamped:["instanceof",Uint8ClampedArray],Int16:["instanceof",Int16Array],Uint16:["instanceof",Uint16Array],Int32:["instanceof",Int32Array],Uint32:["instanceof",Uint32Array],Float32:["instanceof",Float32Array],Float64:["instanceof",Float64Array],BigInt64:["instanceof",BigInt64Array],BigUint64:["instanceof",BigUint64Array]},{name:"TypedArray"});var nR={Boolean:1,Number:1,String:1},m0=ee.module(w(m({},X(m(m({},kh),Rh),(t,e)=>t in nR?[]:[t,["instanceof",e]])),{Array:d0,TypedArray:p0,FormData:h0}));var rR=ye({domain:{domain:"number",meta:"a number representing a Unix timestamp"},divisor:{rule:1,meta:"an integer representing a Unix timestamp"},min:{rule:-864e13,meta:"a Unix timestamp after -8640000000000000"},max:{rule:864e13,meta:"a Unix timestamp before 8640000000000000"},meta:"an integer representing a safe Unix timestamp"}),iR=ye({domain:"number",divisor:1}),Bc=ee.module({root:$.number,integer:iR,epoch:rR,safe:ye({domain:{domain:"number",numberAllowsNaN:!1},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER}),NaN:["===",Number.NaN],Infinity:["===",Number.POSITIVE_INFINITY],NegativeInfinity:["===",Number.NEGATIVE_INFINITY]},{name:"number"});var Pe=(t,e)=>vo("intersection",{domain:"string",pattern:{rule:t.source,flags:t.flags,meta:e}}),g0=Pe($s,"a well-formed integer string"),x0=ee.module({root:g0,parse:ye({in:g0,morphs:(t,e)=>{let n=Number.parseInt(t);return Number.isSafeInteger(n)?n:e.error("an integer in the range Number.MIN_SAFE_INTEGER to Number.MAX_SAFE_INTEGER")},declaredOut:$.integer})},{name:"string.integer"}),oR=ee.module({root:Pe(/^(?:[A-Za-z0-9+/]{4}
41)*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,"base64-encoded"),url:Pe(/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==|%3D%3D)?|[A-Za-z0-9_-]{3}(?:=|%3D)?)?$/,"base64url-encoded")},{name:"string.base64"}),y0=Pe(/^[A-Z].*$/,"capitalized"),sR=ee.module({root:ye({in:"string",morphs:t=>t.charAt(0).toUpperCase()+t.slice(1),declaredOut:y0}),preformatted:y0},{name:"string.capitalize"}),aR=t=>{let e=t.replace(/[- ]+/g,""),n=0,r,i,o=!1;for(let s=e.length-1;s>=0;s--)r=e.substring(s,s+1),i=Number.parseInt(r,10),o?(i*=2,i>=10?n+=i%10+1:n+=i):n+=i,o=!o;return!!(n%10===0&&e)},lR=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/,cR=ye({domain:"string",pattern:{meta:"a credit card number",rule:lR.source},predicate:{meta:"a credit card number",predicate:aR}});var uR=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;var dR=t=>!Number.isNaN(new Date(t).valueOf()),v0=ye({domain:"string",predicate:{meta:"a parsable date",predicate:dR}}).assertHasKind("intersection"),_0=x0.root.internal.narrow((t,e)=>{let n=Number.parseInt(t),r=Bc.epoch(n);return r instanceof Mt?(e.errors.merge(r),!1):!0}).withMeta({description:"an integer string representing a safe Unix timestamp"}).assertHasKind("intersection"),fR=ee.module({root:_0,parse:ye({in:_0,morphs:t=>new Date(t),declaredOut:$.Date})},{name:"string.date.epoch"}),b0=Pe(uR,"an ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) date").internal.assertHasKind("intersection"),hR=ee.module({root:b0,parse:ye({in:b0,morphs:t=>new Date(t),declaredOut:$.Date})},{name:"string.date.iso"}),pR=ee.module({root:v0,parse:ye({declaredIn:v0,in:"string",morphs:(t,e)=>{let n=new Date(t);return Number.isNaN(n.valueOf())?e.error("a parsable date"):n},declaredOut:$.Date}),iso:hR,epoch:fR},{name:"string.date"}),mR=Pe(/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/,"an email address"),w0="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",br=`(${w0}[.]){3}${w0}`,gR=new RegExp(`^${br}$`),We="(?:[0-9a-fA-F]{1,4})",yR=new RegExp(`^((?:${We}:){7}(?:${We}|:)|(?:${We}:){6}(?:${br}|:${We}|:)|(?:${We}:){5}(?::${br}|(:${We}){1,2}|:)|(?:${We}:){4}(?:(:${We}){0,1}:${br}|(:${We}){1,3}|:)|(?:${We}:){3}(?:(:${We}){0,2}:${br}|(:${We}){1,4}|:)|(?:${We}:){2}(?:(:${We}){0,3}:${br}|(:${We}){1,5}|:)|(?:${We}:){1}(?:(:${We}){0,4}:${br}|(:${We}){1,6}|:)|(?::((?::${We}){0,5}:${br}|(?::${We}){1,7}|:)))(%[0-9a-zA-Z.]{1,})?$`),vR=ee.module({root:["v4 | v6","@","an IP address"],v4:Pe(gR,"an IPv4 address"),v6:Pe(yR,"an IPv6 address")},{name:"string.ip"}),Eo="a JSON string",M0=t=>{if(!(t instanceof SyntaxError))throw t;return`must be ${Eo} (${t})`},_R=ye({meta:Eo,domain:"string",predicate:{meta:Eo,predicate:(t,e)=>{try{return JSON.parse(t),!0}catch(n){return e.reject({code:"predicate",expected:Eo,problem:M0(n)})}}}}),bR=(t,e)=>{if(t.length===0)return e.error({code:"predicate",expected:Eo,actual:"empty"});try{return JSON.parse(t)}catch(n){return e.error({code:"predicate",expected:Eo,problem:M0(n)})}},wR=ee.module({root:_R,parse:ye({meta:"safe JSON string parser",in:"string",morphs:bR,declaredOut:$.jsonObject})},{name:"string.json"}),D0=Pe(/^[a-z]*$/,"only lowercase letters"),DR=ee.module({root:ye({in:"string",morphs:t=>t.toLowerCase(),declaredOut:D0}),preformatted:D0},{name:"string.lower"}),T0=["NFC","NFD","NFKC","NFKD"],na=X(T0,(t,e)=>[e,ye({domain:"string",predicate:n=>n.normalize(e)===n,meta:`${e}-normalized unicode`})]),Uc=X(T0,(t,e)=>[e,ye({in:"string",morphs:n=>n.normalize(e),declaredOut:na[e]})]),ER=ee.module({root:Uc.NFC,preformatted:na.NFC},{name:"string.normalize.NFC"}),CR=ee.module({root:Uc.NFD,preformatted:na.NFD},{name:"string.normalize.NFD"}),SR=ee.module({root:Uc.NFKC,preformatted:na.NFKC},{name:"string.normalize.NFKC"}),IR=ee.module({root:Uc.NFKD,preformatted:na.NFKD},{name:"string.normalize.NFKD"}),xR=ee.module({root:"NFC",NFC:ER,NFD:CR,NFKC:SR,NFKD:IR},{name:"string.normalize"}),E0=Pe(pc,"a well-formed numeric string"),MR=ee.module({root:E0,parse:ye({in:E0,morphs:t=>Number.parseFloat(t),declaredOut:$.number})},{name:"string.numeric"}),TR=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?
41:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,NR=Pe(TR,"a semantic version (see https://semver.org/)"),C0=Pe(/^\S.*\S$|^\S?$/,"trimmed"),AR=ee.module({root:ye({in:"string",morphs:t=>t.trim(),declaredOut:C0}),preformatted:C0},{name:"string.trim"}),S0=Pe(/^[A-Z]*$/,"only uppercase letters"),kR=ee.module({root:ye({in:"string",morphs:t=>t.toUpperCase(),declaredOut:S0}),preformatted:S0},{name:"string.upper"}),OR=t=>{if(URL.canParse)return URL.canParse(t);try{return new URL(t),!0}catch{return!1}},I0=ye({domain:"string",predicate:{meta:"a URL string",predicate:OR}}),RR=ee.module({root:I0,parse:ye({declaredIn:I0,in:"string",morphs:(t,e)=>{try{return new URL(t)}catch{return e.error("a URL string")}},declaredOut:ye(URL)})},{name:"string.url"}),PR=ee.module({root:["versioned | nil | max","@","a UUID"],"#nil":"'00000000-0000-0000-0000-000000000000'","#max":"'ffffffff-ffff-ffff-ffff-ffffffffffff'","#versioned":/[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i,v1:Pe(/^[0-9a-f]{8}-[0-9a-f]{4}-1[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv1"),v2:Pe(/^[0-9a-f]{8}-[0-9a-f]{4}-2[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv2"),v3:Pe(/^[0-9a-f]{8}-[0-9a-f]{4}-3[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv3"),v4:Pe(/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv4"),v5:Pe(/^[0-9a-f]{8}-[0-9a-f]{4}-5[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv5"),v6:Pe(/^[0-9a-f]{8}-[0-9a-f]{4}-6[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv6"),v7:Pe(/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv7"),v8:Pe(/^[0-9a-f]{8}-[0-9a-f]{4}-8[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,"a UUIDv8")},{name:"string.uuid"}),N0=ee.module({root:$.string,alpha:Pe(/^[A-Za-z]*$/,"only letters"),alphanumeric:Pe(/^[A-Za-z\d]*$/,"only letters and digits 0-9"),base64:oR,capitalize:sR,creditCard:cR,date:pR,digits:Pe(/^\d*$/,"only digits 0-9"),email:mR,integer:x0,ip:vR,json:wR,lower:DR,normalize:xR,numeric:MR,semver:NR,trim:AR,upper:kR,url:RR,uuid:PR},{name:"string"});var A0=ee.module({bigint:$.bigint,boolean:$.boolean,false:$.false,never:$.never,null:$.null,number:$.number,object:$.object,string:$.string,symbol:$.symbol,true:$.true,unknown:$.unknown,undefined:$.undefined}),k0=ee.module({root:$.unknown,any:$.unknown},{name:"unknown"}),FR=ee.module({root:$.jsonObject,stringify:vo("morph",{in:$.jsonObject,morphs:t=>JSON.stringify(t),declaredOut:$.string})},{name:"object.json"}),O0=ee.module({root:$.object,json:FR},{name:"object"}),dm=class extends ot{description="a generic type that instantiates an object from a single index signature and corresponding value type"},LR=nn(["K",$.key],"V")(t=>({domain:"object",index:{signature:t.K,value:t.V}}),dm),fm=class extends ot{},VR=nn(["T",$.object],["K",$.key])(t=>t.T.pick(t.K),fm),hm=class extends ot{},$R=nn(["T",$.object],["K",$.key])(t=>t.T.omit(t.K),hm),pm=class extends ot{},jR=nn(["T",$.object])(t=>t.T.partial(),pm),mm=class extends ot{},BR=nn(["T",$.object])(t=>t.T.required(),mm),gm=class extends ot{},UR=nn("T","U")(t=>t.T.exclude(t.U),gm),ym=class extends ot{},zR=nn("T","U")(t=>t.T.extract(t.U),ym),R0=ee.module({Exclude:UR,Extract:zR,Omit:$R,Partial:jR,Pick:VR,Record:LR,Required:BR});var wr=am(w(m(m(m(m({},A0),R0),m0),u0),{string:N0,number:Bc,object:O0,unknown:k0}),{prereducedAliases:!0,name:"ark"}),et=wr.export();Object.assign(Do.ambient,et);Do.typeAttachments={string:et.string.root,number:et.number.root,bigint:et.bigint,boolean:et.boolean,symbol:et.symbol,undefined:et.undefined,null:et.null,object:et.object.root,unknown:et.unknown.root,false:et.false,true:et.true,never:et.never,arrayIndex:et.Array.index,Key:et.Key,Record:et.Record,Array:et.Array.root,Date:et.Date};var P0=Object.assign(wr.type,Do.typeAttachments),HR=wr.match,qR=wr.generic,XY=wr.schema,KR=wr.define,GR=wr.declare;var ua=an(Co()),qE=an(F0()),KE=an(L0()),GE=an(V0());function zc(t,e,n){!e&&qn(t);let r=e??y(xe);return n?xn(r,n):r}function $0(t){return function(r={}){var i=r,{injector:e}=i,n=Be(i,["injector"]);return e=zc(this,e),xn(e,()=>y(t,n))}}function j0(t,e,n={}){let{deps:r=[],multi:i=!1,extraProviders:o=[],isFunctionValue:s=!1}=n;return(a,l=s)=>{let c;return typeof a<"u"?c={provide:t,useFactory:typeof a=="function"?l?()=>a:a:()=>a,multi:i}:c={provide:t,useFactory:e,deps:r,multi:i},[o,c]}}function B0(t,e){let n=t.name||t.toString(),r=e??{isRoot:!0};if(r.isRoot??=!0,r.multi&&(r.isRoot=!1),r.isRoot){if(r.token)throw new Error(`createInjectionToken is creating a root InjectionToken but an external token is passed in.
42`);let o=new P(`Token for ${n}`,{factory:()=>r.deps&&Array.isArray(r.deps)?t(...r.deps.map(a=>(a=Array.isArray(a)?a.at(-1):a,y(a)))):t()}),s=$0(o);return[s,j0(o,t,r),o,()=>({provide:jn,useValue:()=>s(),multi:!0})]}let i=r.token||new P(`Token for ${n}`);return[$0(i),j0(i,t,r),i,()=>[]]}var Im=t=>(t=zc(Im,t),xn(t,()=>{let e=y(Qt),n=new Nr(1);return e.onDestroy(()=>{n.next(),n.complete()}),Object.assign(n,{onDestroy:e.onDestroy.bind(e)}),n}));var[WR]=B0(()=>{let t=new de,[e,n]=[y(se),y(pe)];return e.runOutsideAngular(()=>{kr(n,"click").subscribe(t)}),t}),U0=(()=>{class t{constructor(){this.ngZone=y(se),this.elementRef=y(Oe),this.documentClick$=WR(),this.destroy$=Im(),this.clickOutside=new ke}ngOnInit(){this.documentClick$.pipe($n(this.destroy$),qt(n=>!this.elementRef.nativeElement.contains(n.target))).subscribe(n=>{this.ngZone.run(()=>this.clickOutside.emit(n))})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275dir=dt({type:t,selectors:[["","clickOutside",""]],outputs:{clickOutside:"clickOutside"}})}}return t})();var Mm=class{constructor(e){this.content=e,this.init=!1}},H0=(()=>{class t{constructor(n){this.svgMap=new Map,this.document=y(pe),n?.icons&&this.register(n.icons),n?.missingIconFallback&&this.register(n.missingIconFallback)}getAll(){return this.svgMap}get(n,r={}){let i=n&&this.svgMap.get(n);if(i){if(!i.init){let o=this.toElement(i.content);o.setAttribute("fit",""),o.setAttribute("height","100%"),o.setAttribute("width","100%"),o.setAttribute("preserveAspectRatio",r.preserveAspectRatio??"xMidYMid meet"),o.setAttribute("focusable","false"),i.content=o.outerHTML,i.init=!0}if(r.asDataUrl){let o=this.toElement(i.content).outerHTML;return`data:image/svg+xml;base64,${btoa(o)}`}return i.content}}register(n){for(let{name:r,data:i}of Array.isArray(n)?n:[n])this.svgMap.has(r)||this.svgMap.set(r,new Mm(i))}getSvgElement(n){let r=this.get(n);if(!r)return;let i=this.document.createElement("div");return i.innerHTML=r,i.querySelector("svg")}toElement(n){let r=this.document.createElement("div");return r.innerHTML=n,r.querySelector("svg")}}return t.\u0275fac=function(n){return new(n||t)(U(Hn(()=>q0)))},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"}),t}
42)(),q0=new P("SVG_ICONS_CONFIG",{providedIn:"root",factory(){return{}}}),UZ=new P("SVG_ICONS"),zZ=new P("SVG_MISSING_ICON_FALLBACK",{providedIn:"root",factory(){}});function K0(t){return Li([{provide:jn,multi:!0,useValue(){y(H0).register(t)}}])}var So=(()=>{class t{constructor(n,r,i){this.host=n,this.registry=r,this.config=i,this.noShrink=!1,this.init=!1,this.mergedConfig=this.createConfig()}get element(){return this.host.nativeElement}ngOnChanges(n){n.key&&this.setIcon(this.key),n.size?.currentValue&&this.setIconSize(this.mergedConfig.sizes[this.size]),n.fontSize?.currentValue&&this.setIconSize(xm(this.fontSize)),!this.init&&!n.size?.currentValue&&!n.fontSize?.currentValue&&this.setIconSize(this.mergedConfig.sizes[this.mergedConfig.defaultSize||"md"]),n.width?.currentValue&&(this.element.style.width=`var(--svg-icon-width, ${xm(this.width)})`),n.height?.currentValue&&(this.element.style.height=`var(--svg-icon-height, ${xm(this.height)})`),n.color?.currentValue&&(this.element.style.color=`var(--svg-icon-color, ${this.color})`),this.init=!0}createConfig(){let n={sizes:{xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.5rem",xl:"2rem",xxl:"2.5rem"}},r=m(m({},n),this.config);return r.sizes=Object.entries(m(m({},n.sizes),r.sizes)).reduce((i,[o,s])=>(i[o]=`var(--svg-icon-font-size-${o}, ${s})`,i),{}),r}setIconSize(n){this.element.style.fontSize=n,this.noShrink&&(this.element.style.minWidth=n)}setIcon(n){let r={preserveAspectRatio:this.preserveAspectRatio},i=this.registry.get(n,r)??this.registry.get(this.fallback??this.config.missingIconFallback?.name,r);i&&(this.element.setAttribute("aria-label",`${n}-icon`),this.element.classList.remove(z0(this.lastKey)),this.lastKey=n,this.element.classList.add(z0(n)),this.element.innerHTML=i)}}return t.\u0275fac=function(n){return new(n||t)(He(Oe),He(H0),He(q0))},t.\u0275cmp=mt({type:t,selectors:[["svg-icon"]],hostAttrs:["role","img","aria-hidden","true"],inputs:{key:"key",fallback:"fallback",size:"size",width:"width",height:"height",fontSize:"fontSize",color:"color",noShrink:"noShrink",preserveAspectRatio:"preserveAspectRatio"},features:[ur],decls:0,vars:0,template:function(n,r){},styles:["[_nghost-%COMP%]{display:inline-block;fill:currentColor;width:var(--svg-icon-width, 1em);height:var(--svg-icon-height, 1em)}"],changeDetection:0}),t})();function xm(t){return t==null?"":typeof t=="string"?t:`${t}px`}function z0(t){return`svg-icon-${t}`}var eE=(()=>{class t{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||t)(He(Gi),He(Oe))};static \u0275dir=dt({type:t})}return t})(),tE=(()=>{class t extends eE{static \u0275fac=(()=>{let n;return function(i){return(n||(n=qr(t)))(i||t)}})();static \u0275dir=dt({type:t,features:[Wn]})}return t})(),Om=new P(""),YR={provide:Om,useExisting:Hn(()=>Rm),multi:!0},Rm=(()=>{class t extends tE{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(i){return(n||(n=qr(t)))(i||t)}})();static \u0275dir=dt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){r&1&&Ge("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},standalone:!1,features:[Gr([YR]),Wn]})}return t})(),ZR={provide:Om,useExisting:Hn(()=>nE),multi:!0};function QR(){let t=Zn()?Zn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var JR=new P(""),nE=(()=>{class t extends eE{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!QR())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||t)(He(Gi),He(Oe),He(JR,8))};static \u0275dir=dt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&Ge("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[Gr([ZR]),Wn]})}return t})();var XR=new P(""),eP=new P("");function rE(t){return t!=null}function iE(t){return hs(t)?Dt(t):t}function oE(t){let e={};return t.forEach(n=>{e=n!=null?m(m({},e),n):e}),Object.keys(e).length===0?null:e}function sE(t,e){return e.map(n=>n(t))}function tP(t){return!t.validate}function aE(t){return t.map(e=>tP(e)?e:n=>e.validate(n))}function nP(t){if(!t)return null;let e=t.filter(rE);return e.length==0?null:function(n){return oE(sE(n,e))}}function lE(t){return t!=null?nP(aE(t)):null}function rP(t){if(!t)return null;let e=t.filter(rE);return e.length==0?null:function(n){let r=sE(n,e).map(iE);return ju(r).pipe(je(oE))}}function cE(t){return t!=null?rP(aE(t)):null}function G0(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function iP(t){return t._rawValidators}function oP(t){return t._rawAsyncValidators}function Tm(t){return t?Array.isArray(t)?t:[t]:[]}function qc(t,e){return Array.isArray(t)?t.includes(e):t===e}function W0(t,e){let n=Tm(e);return Tm(t).forEach(i=>
vendor: 15,027 bytes, line 42
42{qc(n,i)||n.push(i)}),n}function Y0(t,e){return Tm(e).filter(n=>!qc(t,n))}var Kc=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=lE(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=cE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_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}},Nm=class extends Kc{name;get formDirective(){return null}get path(){return null}},aa=class extends Kc{_parent=null;name=null;valueAccessor=null},Am=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},sP={"[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"},aQ=w(m({},sP),{"[class.ng-submitted]":"isSubmitted"}),uE=(()=>{class t extends Am{constructor(n){super(n)}static \u0275fac=function(r){return new(r||t)(He(aa,2))};static \u0275dir=dt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&Nn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[Wn]})}return t})();var ra="VALID",Hc="INVALID",Io="PENDING",ia="DISABLED",Mo=class{},Gc=class extends Mo{value;source;constructor(e,n){super(),this.value=e,this.source=n}},oa=class extends Mo{pristine;source;constructor(e,n){super(),this.pristine=e,this.source=n}},sa=class extends Mo{touched;source;constructor(e,n){super(),this.touched=e,this.source=n}},xo=class extends Mo{status;source;constructor(e,n){super(),this.status=e,this.source=n}};function aP(t){return(Wc(t)?t.validators:t)||null}function lP(t){return Array.isArray(t)?lE(t):t||null}function cP(t,e){return(Wc(e)?e.asyncValidators:t)||null}function uP(t){return Array.isArray(t)?cE(t):t||null}function Wc(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var km=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,n){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))}_status=qe(()=>this.statusReactive());statusReactive=Ct(void 0);get valid(){return this.status===ra}get invalid(){return this.status===Hc}get pending(){return this.status==Io}get disabled(){return this.status===ia}get enabled(){return this.status!==ia}errors;get pristine(){return yt(this.pristineReactive)}set pristine(e){yt(()=>this.pristineReactive.set(e))}_pristine=qe(()=>this.pristineReactive());pristineReactive=Ct(!0);get dirty(){return!this.pristine}get touched(){return yt(this.touchedReactive)}set touched(e){yt(()=>this.touchedReactive.set(e))}_touched=qe(()=>this.touchedReactive());touchedReactive=Ct(!1);get untouched(){return!this.touched}_events=new de;events=this._events.asObservable();valueChanges;statusChanges;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(W0(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(W0(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Y0(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Y0(e,this._rawAsyncValidators))}hasValidator(e){return qc(this._rawValidators,e)}hasAsyncValidator(e){return qc(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(w(m({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new sa(!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 sa(!1,r))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(w(m({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new oa(!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 oa(!0,r))}markAsPending(e={}){this.status=Io;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new xo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(w(m({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=ia,this.errors=null,this._forEachChild(i=>{i.disable(w(m({},e),{onlySelf:!0}))}),this._updateValue();let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Gc(this.value,r)),this._events.next(new xo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(w(m({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=ra,this._forEachChild(r=>{r.enable(w(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(w(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===ra||this.status===Io)&&this._runAsyncValidator(r,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Gc(this.value,n)),this._events.next(new xo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(w(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()?ia:ra}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=Io,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=iE(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}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 xo(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,r)}_initObservables(){this.valueChanges=new ke,this.statusChanges=new ke}_calculateStatus(){return this._allControlsDisabled()?ia:this.errors?Hc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Io)?Io:this._anyControlsHaveStatus(Hc)?Hc:ra}_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 oa(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new sa(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Wc(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=lP(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=uP(this._rawAsyncValidators)}};var dE=new P("",{providedIn:"root",factory:()=>Pm}),Pm="always";function dP(t,e){return[...e.path,t]}function fP(t,e,n=Pm){pP(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),mP(t,e),yP(t,e),gP(t,e),hP(t,e)}function Z0(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function hP(t,e){if(e.valueAccessor.setDisabledState){let n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function pP(t,e){let n=iP(t);e.validator!==null?t.setValidators(G0(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let r=oP(t);e.asyncValidator!==null?t.setAsyncValidators(G0(r,e.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();Z0(e._rawValidators,i),Z0(e._rawAsyncValidators,i)}function mP(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&fE(t,e)})}function gP(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&fE(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function fE(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function yP(t,e){let n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function vP(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function _P(t){return Object.getPrototypeOf(t.constructor)===tE}function bP(t,e){if(!e)return null;Array.isArray(e);let n,r,i;return e.forEach(o=>{o.constructor===nE?n=o:_P(o)?r=o:i=o}),i||r||n||null}function Q0(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function J0(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var wP=class extends km{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,n,r){super(aP(n),cP(r,n)),this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Wc(n)&&(n.nonNullable||n.initialValueIsDefault)&&(J0(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){Q0(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Q0(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pe
42ndingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){J0(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 DP={provide:aa,useExisting:Hn(()=>Fm)},X0=Promise.resolve(),Fm=(()=>{class t extends aa{_changeDetectorRef;callSetDisabledState;control=new wP;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ke;constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=bP(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),vP(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){fP(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){X0.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Lt(r);X0.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?dP(n,this._parent):[n]}static \u0275fac=function(r){return new(r||t)(He(Nm,9),He(XR,10),He(eP,10),He(Om,10),He(ms,8),He(dE,8))};static \u0275dir=dt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Gr([DP]),Wn,ur]})}return t})();var EP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=it({type:t});static \u0275inj=nt({})}return t})();var hE=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:dE,useValue:n.callSetDisabledState??Pm}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=it({type:t});static \u0275inj=nt({imports:[EP]})}return t})();var pE=new P("STORAGE_BACKEND",{providedIn:"root",factory:()=>window.localStorage}),mE=new P("STORAGE_PREFIX");var gE=(()=>{class t{_storageBackend=y(pE);_prefix=y(mE,{optional:!0});get(n){let r=this._storageBackend.getItem(this._key(n));return r?JSON.parse(r):null}set(n,r){let i=JSON.stringify(r);return this._storageBackend.setItem(this._key(n),i),r}remove(n){let r=this.get(n);return this._storageBackend.removeItem(this._key(n)),r}_key(n){return this._prefix?`${this._prefix}.${n}`:n}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yE=new P("An abstraction over global window object",{factory:()=>y(pe).defaultView});function vE(t){let e=yt(()=>t());return IP(e)?new Proxy(t,{get(n,r){return r in e?(_f(n[r])||Object.defineProperty(n,r,{value:qe(()=>n()[r]),configurable:!0}),vE(n[r])):n[r]}}):t}var SP=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function IP(t){if(t===null||typeof t!="object"||xP(t))return!1;let e=Object.getPrototypeOf(t);if(e===Object.prototype)return!0;for(;e&&e!==Object.prototype;){if(SP.includes(e.constructor))return!1;e=Object.getPrototypeOf(e)}return e===Object.prototype}function xP(t){return typeof t?.[Symbol.iterator]=="function"}
42var MP=new WeakMap,At=Symbol("STATE_SOURCE");function rn(t,...e){t[At].update(n=>e.reduce((r,i)=>m(m({},r),typeof i=="function"?i(r):i),n)),AP(t)}function TP(t){return t[At]()}function NP(t){return MP.get(t[At])||[]}function AP(t){let e=NP(t);for(let n of e){let r=yt(()=>TP(t));n(r)}}function _E(...t){let e=[...t],n=typeof e[0]=="function"?{}:e.shift(),r=e;return(()=>{class o{constructor(){let a=r.reduce((g,b)=>b(g),kP()),{stateSignals:l,props:c,methods:u,hooks:f}=a,h=m(m(m({},l),c),u);this[At]=a[At];for(let g in h)this[g]=h[g];let{onInit:d,onDestroy:p}=f;d&&d(),p&&y(Qt).onDestroy(p)}static \u0275fac=function(l){return new(l||o)};static \u0275prov=A({token:o,factory:o.\u0275fac,providedIn:n.providedIn||null})}return o})()}function kP(){return{[At]:Ct({}),stateSignals:{},props:{},methods:{},hooks:{}}}function OP(t){return e=>{let n=t(m(m(m({[At]:e[At]},e.stateSignals),e.props),e.methods));return Object.keys(n),w(m({},e),{props:m(m({},e.props),n)})}}function bE(t){return OP(t)}function wE(t){return e=>{let n=m(m(m({[At]:e[At]},e.stateSignals),e.props),e.methods),r=typeof t=="function"?t(n):t,i=o=>{let s=r[o],a=e.hooks[o];return s?()=>{a&&a(),s(n)}:a};return w(m({},e),{hooks:{onInit:i("onInit"),onDestroy:i("onDestroy")}})}}function DE(t){return e=>{let n=t(m(m(m({[At]:e[At]},e.stateSignals),e.props),e.methods));return Object.keys(n),w(m({},e),{methods:m(m({},e.methods),n)})}}function EE(t){return e=>{let n=typeof t=="function"?t():t,r=Object.keys(n);e[At].update(o=>m(m({},o),n));let i=r.reduce((o,s)=>{let a=qe(()=>e[At]()[s]);return w(m({},o),{[s]:vE(a)})},{});return w(m({},e),{stateSignals:m(m({},e.stateSignals),i)})}}var IE=Ct({}),CE=new Set,SE=!1;function RP(){Yn(()=>{if(!Yc)return;let t=IE(),e={};for(let i in t){let o=t[i];e[i]=o()}let n=Array.from(CE),r=n.length?n.join(", "):"Store Update";CE=new Set,Yc.send({type:r},e)})}function PP(t,e){if(typeof t=="object"&&t&&e in t)return t[e]}function FP(t){let[e]=Object.getOwnPropertySymbols(t);if(!e)throw new Error("Cannot find State Signal");return PP(t,e)}var Yc;function xE(t){return e=>{if(ys(y(pn)))return e;let r=window.__REDUX_DEVTOOLS_EXTENSION__;if(!r)return e;Yc||(Yc=r.connect({name:"NgRx Signal Store"}));let i=FP(e);return IE.update(o=>w(m({},o),{[t]:i})),SE||(RP(),SE=!0),e}}var Z=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Z||{}),Pn="*";function ME(t,e){return{type:Z.Trigger,name:t,definitions:e,options:{}}}function jm(t,e=null){return{type:Z.Animate,styles:e,timings:t}}function TE(t,e=null){return{type:Z.Sequence,steps:t,options:e}}function Er(t){return{type:Z.Style,styles:t,offset:null}}function Bm(t,e,n=null){return{type:Z.Transition,expr:t,animation:e,options:n}}var Dr=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,n=0){this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),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;
42n.forEach(r=>r()),n.length=0}},la=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){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}},Zc="!";var NE=(()=>{class t{#e=y(ws);#t=y(gE);getToken(n,r){let i=`security-agent-token:${n}:${r.join(",")}`,o=this.#n(i);return o?sr(o):this.#e.post("https://security-agent.vanessa-db.cluster.go-suite.rocks/api/tokens",{app_name:n,expiration:60*60,subscribe:r,publish:[]}).pipe(Gu(s=>this.#t.set(i,s)))}#n(n){let r=this.#t.get(n);return!r||!r.token||!r.expires_at||Date.parse(r.expires_at)<Date.now()?null:r}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var AE=(()=>{class t{securityAgentService;URL="https://mercure.vanessa-db.cluster.go-suite.rocks/.well-known/mercure";constructor(n){this.securityAgentService=n}getEventSource(n,r){return this.securityAgentService.getToken(n,r).pipe(cn(o=>{let s=new URLSearchParams;r.forEach(l=>{s.append("topic",l)}),s.append("authorization",o.token);let a=new EventSource(this.URL+"?"+s.toString());return new re(l=>(a.onmessage=c=>{l.next(JSON.parse(c.data))},()=>{a.close()}))}))}static \u0275fac=function(r){return new(r||t)(U(NE))};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var kE={name:"check_light",data:'<?xml version="1.0" encoding="utf-8"?><svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="13px" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="BGPattern" patternUnits="userSpaceOnUse" alignment="0 0" imageRepeat="None"/><mask fill="white" id="Clip13"><path d="M 7.081967213114771 12.968674698795175 L 7.065573770491806 12.95301204819277 C 6.721311475409836 12.95301204819277 6.39344262295082 12.82771084337349 6.131147540983612 12.57710843373494 L 0.3606557377049255 7.06385542168675 C 0.03278688524590909 6.7506024096385575 0.03278688524590909 6.265060240963855 0.3606557377049255 5.951807228915662 C 0.6885245901639419 5.63855421686747 1.1967213114754212 5.63855421686747 1.5245901639344375 5.951807228915662 L 7.081967213114762 11.261445783132526 L 18.50819672131148 0.3445783132530103 C 18.836065573770497 0.031325301204817496 19.34426229508198 0.031325301204817496 19.67213114754099 0.3445783132530103 C 20.000000000000007 0.657831325301203 20.000000000000007 1.1433734939759053 19.67213114754099 1.4566265060240982 L 8.016393442622965 12.592771084337345 C 7.754098360655749 12.843373493975903 7.426229508196732 12.968674698795175 7.081967213114771 12.968674698795175 Z" fill-rule="evenodd"/></mask></defs><g transform="matrix(1 0 0 1 -12 -9 )"><path d="M 7.081967213114771 12.968674698795175 L 7.065573770491806 12.95301204819277 C 6.721311475409836 12.95301204819277 6.39344262295082 12.82771084337349 6.131147540983612 12.57710843373494 L 0.3606557377049255 7.06385542168675 C 0.03278688524590909 6.7506024096385575 0.03278688524590909 6.265060240963855 0.3606557377049255 5.951807228915662 C 0.6885245901639419 5.63855421686747 1.1967213114754212 5.63855421686747 1.5245901639344375 5.951807228915662 L 7.081967213114762 11.261445783132526 L 18.50819672131148 0.3445783132530103 C 18.836065573770497 0.031325301204817496 19.34426229508198 0.031325301204817496 19.67213114754099 0.3445783132530103 C 20.000000000000007 0.657831325301203 20.000000000000007 1.1433734939759053 19.67213114754099 1.4566265060240982 L 8.016393442622965 12.592771084337345 C 7.754098360655749 12.843373493975903 7.426229508196732 12.968674698795175 7.081967213114771 12.968674698795175 Z" fill-rule="nonzero" fill="rgba(161, 161, 161, 1)" stroke="none" transform="matrix(1 0 0 1 12 9 )" class="fill"/><path d="M 7.081967213114771 12.968674698795175 L 7.065573770491806 12.95301204819277 C 6.721311475409836 12.95301204819277 6.39344262295082 12.82771084337349 6.131147540983612 12.57710843373494 L 0.3606557377049255 7.06385542168675 C 0.03278688524590909 6.7506024096385575 0.03278688524590909 6.265060240963855 0.3606557377049255 5.951807228915662 C 0.6885245901639419 5.63855421686747 1.1967213114754212 5.63855421686747 1.5245901639344375 5.951807228915662 L 7.081967213114762 11.261445783132526 L 18.50819672131148 0.3445783132530103 C 18.836065573770497 0.031325301204817496 19.34426229508198 0.031325301204817496 19.67213114754099 0.3445783132530103 C 20.000000000000007 0.657831325301203 20.000000000000007 1.1433734939759053 19.67213114754099 1.4566265060240982 L 8.016393442622965 12.592771084337345 C 7.754098360655749 12.843373493975903 7.426229508196732 12.968674698795175 7.081967213114771 12.968674698795175 Z" stroke-width="0" stroke-dasharray="0" stroke="rgba(255, 255, 255, 0)" fill="none" transform="matrix(1 0 0 1 12 9 )" class="stroke" mask="url(#Clip13)"/></g></svg>'};var OE={name:"check",data:'<svg viewBox="0 0 32 32">
42<path d="M12.042 25.36L.752 14.07l2.828-2.828 8.462 8.462L27.69 4.054l2.828 2.828z"/></svg>'};var RE={name:"chevron_left_bold",data:'<svg viewBox="0 0 32 32"><path d="M20.951 31.71L5.241 16 20.951.29l4.848 4.848L14.937 16l10.862 10.862z"/></svg>'};var PE=an(Co()),FE=an($m());PE.default.extend(FE.default);var To=(()=>{class t{#e=y(ws);apiUrl="";#t=new de;error$=this.#t.asObservable();#n=new de;action$=this.#n.asObservable();setApiUrl(n){this.apiUrl=n}publishError(n){this.#t.next(n)}publishAction(n){this.#n.next(n)}getNotifications(){return this.#e.get(`${this.apiUrl}/notifications?test=1&reader=%257B%2522agentId%2522%253A144549%252C%2522customerVersionId%2522%253A36%257D`).pipe(je(n=>n.notifications))}updateReadState(n,r,i){let o={id:n};r&&(o=w(m({},o),{viewer:Object.fromEntries(Object.entries(i).filter(([a,l])=>!!l))}));let s=r?"/view":"/retract";return this.#e.patch(`${this.apiUrl}${s}`,o,{headers:{"Content-Type":"application/json"}})}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $E=an(Co());var VP=()=>({standalone:!0});function $P(t,e){t&1&&mn(0,"svg-icon",3)}var LE=(()=>{class t{checked=G_(!1);label=qe(()=>this.checked()?"erledigt":"Neu");static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mt({type:t,selectors:[["gs-notification-item-checkbox"]],inputs:{checked:[1,"checked"]},outputs:{checked:"checkedChange"},decls:8,vars:5,consts:[["input",""],["title","als erledigt markieren",1,"wrapper"],[1,"faux-checkbox"],["key","check_light","size","lg"],[1,"label"],["type","checkbox",3,"ngModelChange","ngModel","ngModelOptions"]],template:function(r,i){if(r&1){let o=Jt();we(0,"label")(1,"div",1)(2,"div",2),gt(3,$P,1,0,"svg-icon",3),De(),we(4,"span",4),gn(5),De()(),we(6,"input",5,0),Ge("ngModelChange",function(a){return Ue(o),ze(i.checked.set(a))}),De()()}r&2&&(ge(3),Ft(i.checked()?3:-1),ge(2),Kr(i.label()),ge(),St("ngModel",i.checked())("ngModelOptions",ob(4,VP)))},dependencies:[hE,Rm,uE,Fm,So],styles:[`.wrapper{cursor:pointer;display:inline-flex;flex-direction:column;align-items:center;align-self:flex-end;gap:.25rem}.faux-checkbox{border-radius:50%;border:2px solid #0080ff;width:26px;height:26px;font-size:20px;display:flex;align-items:center;justify-content:center;color:var(--read-text-color, #a1a1a1)}.faux-checkbox svg-icon{font-size:20px!important;line-height:36px!important;position:relative}.label{font-size:10px;color:#333}:host:has(input:checked) .faux-checkbox{border-color:#a1a1a1}:host:has(input:checked) .label{color:#a1a1a1}input{visibility:hidden;height:0;padding:0;margin:0;position:absolute;z-index:-1}
43`],encapsulation:3,changeDetection:0})}return t})();var ca=an(Co()),VE=an($m());ca.default.extend(VE.default);var Cr=_E({providedIn:"root"},xE("notification-center.store"),EE({limit:99,activeFilter:"all",allNotifications:[],locale:"de",apiUrl:null,viewer:null,allowRetract:!1,showBadge:!1,agencyView:!1}),bE(t=>({notifications:qe(()=>t.activeFilter()==="all"?t.allNotifications():t.allNotifications().filter(n=>!n.viewed))})),DE(t=>{let e=y(To),n=r=>r.sort((i,o)=>(0,ca.default)(i.created).isBefore((0,ca.default)(o.created))?1:-1);return{setViewer:r=>{rn(t,{viewer:r})},setSettings:r=>{rn(t,m({},r))},setLocale:r=>{rn(t,{locale:r})},setAllowRetract:r=>{rn(t,{allowRetract:r})},setApiUrl:r=>{e.setApiUrl(r),rn(t,{apiUrl:r})},setAgencyView:r=>{rn(t,{agencyView:r})},updateNotificationReadStatus:(r,i)=>{let o=null,s=t.allNotifications().map(a=>a.id===r?(o=a,w(m({},a),{viewed:i?(0,ca.default)().format("YYYY-MM-DD HH:mm:ss"):void 0,viewer:i?t.viewer():void 0})):a);rn(t,{allNotifications:s}),e.updateReadState(r,i,t.viewer()).subscribe({error:a=>{let l=t.allNotifications().map(c=>c.id===r&&o?o:c);rn(t,{allNotifications:l}),e.publishError({code:"a5736c6c-8f06-4e63-beab-53f1272bfa29",message:"Fehler bei der Aktualisierung des Benachrichtigungszustands"})}})},updateFilter:r=>{rn(t,{activeFilter:r})},addNotifications:r=>{let i=[...t.allNotifications()];r.forEach(s=>{let a=i.findIndex(l=>l.id===s.id);a!==-1?i[a]=s:i.push(s)});let o=n(i).slice(0,t.limit());rn(t,{allNotifications:o})},fetchNotifications:()=>{e.getNotifications().subscribe(r=>{rn(t,{allNotifications:n(r).slice(0,t.limit())})})}}}),wE(t=>({onInit:()=>{Yn(()=>{let e=t.apiUrl();e&&t.setApiUrl(e)})}})));var jP=["input"];function BP(t,e){if(t&1&&(we(0,"div",4),mn(1,"svg-icon",10),De()),t&2){let n=Ve();ge(),St("key",n.getIconKey())}}function UP(t,e){t&1&&gn(0),t&2&&Bl(" Gelesen von ",e," ")}function zP(t,e){if(t&1&&gt(0,UP,1,1),t&2){let n,r=Ve(2);Ft((n=r.notificationReadBy())?0:-1,n)}}function HP(t,e){t&1&&gn(0," \xA0 ")}function qP(t,e){if(t&1&&(we(0,"span",7),gt(1,zP,1,1)(2,HP,1,0),De()),t&2){let n=Ve();ge(),Ft(n.checked()?1:2)}}function KP(t,e){if(t&1&&(we(0,"span",8),gn(1),De()),t&2){let n=Ve();ge(),Kr(n.getTimestampShort())}}function GP(t,e){if(t&1&&(we(0,"div",9),mn(1,"svg-icon",11),we(2,"span"),gn(3),De()()),t&2){let n=Ve();ge(),St("key",n.getIconKey()),ge(2),Kr(n.getTimestampShort())}}var jE=(()=>{class t{inputRef;#e=y(Cr);agencyView=this.#e.agencyView;notification=Qe.required();checked=qe(()=>typeof this.notification().viewed=="string");notificationText=qe(()=>{let n=this.#e.locale();switch(!0){case(this.notification().payload?.textTranslations&&n in this.notification().payload.textTranslations):return this.notification().payload?.textTranslations[n];case(this.notification().payload?.textTranslations&&"fallback"in this.notification().payload.textTranslations):return this.notification().payload?.textTranslations.fallback;default:return this.notification().payload?.text??""}});notificationReadBy=qe(()=>this.notification().viewer?.userName??"");changeReadStatus=rt();onClick=rt();
43iconMapping={creditCard:"notification_center_creditcard",document:"notification_center_document",documentSignature:"notification_center_document_signature",live:"notification_center_live",news:"notification_center_news",travel:"notification_center_travel"};updateNotificationReadStatus(n){this.changeReadStatus.emit({id:this.notification().id,read:n})}getTimestampShort(){let n=Intl.DateTimeFormat().resolvedOptions().timeZone;return $E.default.utc(this.notification().created,"YYYY-MM-DD HH:mm:ss").tz(n).fromNow()}getIconKey(){switch(this.notification().payload?.icon){case"creditCard":return"notifications_overview";case"document":return"notifications_overview";case"documentSignature":return"notifications_sign";case"live":return"notifications_consulting";case"travel":return"notifications_travel";default:return"notifications_overview"}}trigger(n){if(this.inputRef.nativeElement.isSameNode(n.target)){this.updateNotificationReadStatus(!this.checked()),!this.checked()&&this.notification().payload.action&&this.onClick.emit(this.notification().payload.action),n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation();return}this.notification().payload.action&&this.onClick.emit(this.notification().payload.action),this.checked()||this.updateNotificationReadStatus(!this.checked())}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mt({type:t,selectors:[["gs-notification-list-item"]],viewQuery:function(r,i){if(r&1&&zf(jP,5,Oe),r&2){let o;Hf(o=qf())&&(i.inputRef=o.first)}},inputs:{notification:[1,"notification"]},outputs:{changeReadStatus:"changeReadStatus",onClick:"onClick"},decls:12,vars:9,consts:[["input",""],[1,"notification-list-item",3,"click"],[1,"check"],[3,"checkedChange","checked"],[1,"notification-icon"],[1,"text-wrapper"],[1,"text"],[1,"readby-info"],[1,"time-info"],[1,"icon"],["fontSize","2.2rem",3,"key"],["size","lg",3,"key"]],template:function(r,i){if(r&1){let o=Jt();ps(0),we(1,"div",1),Ge("click",function(a){return Ue(o),ze(i.trigger(a))}),we(2,"div",2)(3,"gs-notification-item-checkbox",3,0),Ge("checkedChange",function(a){return Ue(o),ze(i.updateNotificationReadStatus(a))}),De()(),gt(5,BP,2,1,"div",4),we(6,"div",5)(7,"p",6),gn(8),De(),gt(9,qP,3,1,"span",7)(10,KP,2,1,"span",8),De(),gt(11,GP,4,2,"div",9),De()}if(r&2){let o=i.agencyView();ge(),Nn("read",i.checked())("agency-view",o),ge(2),St("checked",i.checked()),ge(2),Ft(o?-1:5),ge(3),Kr(i.notificationText()),ge(),Ft(o?9:10),ge(2),Ft(o?11:-1)}},dependencies:[LE,So],styles:['.notification-list-item[_ngcontent-%COMP%]{padding:10px;--text-color: #333;--read-text-color: var(--text-color);--unread-notification-color: #0068af;display:grid;grid-template-columns:min-content minmax(120px,auto);min-width:250px;gap:12px;color:var(--text-color)}.notification-list-item[_ngcontent-%COMP%]:hover{background-color:#ececec;cursor:pointer}.notification-list-item.agency-view[_ngcontent-%COMP%]{--read-text-color: #a1a1a1;grid-template-columns:50px 350px 50px}.notification-list-item[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]{display:none}.notification-list-item.agency-view[_ngcontent-%COMP%]   .check[_ngcontent-%COMP%]{display:block}.notification-list-item.agency-view.read[_ngcontent-%COMP%]     .text{font-weight:500!important}.notification-icon[_ngcontent-%COMP%]{padding-left:10px;position:relative;align-content:center}.notification-icon[_ngcontent-%COMP%]:before{content:" ";display:block;background-color:var(--unread-notification-color);width:5px;height:5px;border-radius:100%;position:absolute;left:0;top:calc(50% - 5px)}.notification-list-item.read[_ngcontent-%COMP%]   .notification-icon[_ngcontent-%COMP%]:before{display:none}.text-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-right:10px}.time-info[_ngcontent-%COMP%], .item-spacer[_ngcontent-%COMP%]{font-size:10px;text-align:right}.notification-list-item.agency-view[_ngcontent-%COMP%]   .text-wrapper[_ngcontent-%COMP%]{padding-right:0}.text[_ngcontent-%COMP%]{font-size:12px;min-height:2rem;padding:0;margin:0;align-content:center;color:var(--text-color)}.notification-list-item.read[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:var(--read-text-color)}.notification-list-item.agency-view.text[_ngcontent-%COMP%]{font-weight:700;align-content:start}.readby-info[_ngcontent-%COMP%]{font-size:10px;display:inline-block;font-weight:500}.icon[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;align-items:center;gap:.25rem}.icon[_ngcontent-%COMP%]   svg-icon[_ngcontent-%COMP%]{width:30px;height:30px}.icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:8px;text-align:center}@media only screen and (max-width: 430px){.notification-list-item[_ngcontent-%COMP%]{--read-text-color: #a1a1a1}}']})}return t})();var WP=(t,e)=>e.id;function YP(t,e){if(t&1){let n=Jt();we(0,"li")(1,"gs-notification-list-item",0),Ge("changeReadStatus",function(i){Ue(n);let o=Ve();return ze(o.updateNotificationReadStatus(i))})("onClick",function(i){Ue(n);let o=Ve();return ze(o.handleClick(i))}),De()()}if(t&2){let n=e.$implicit;ge(),St("notification",n)}}var BE=(()=>{class t{#e=y(To);#t=y(Cr);notifications=Qe.required();changeReadStatus=rt();updateNotificationReadStatus(n){(n.read||this.#t.allowRetract()&&!n.read)&&this.changeReadStatus.emit(n)}handleClick(n){this.#e.publishAction(n)}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mt({type:t,selectors:[["gs-notification-list"]],hostVars:1,hostBindings:function(r,i){r&2&&jf("@animation",!0)},inputs:{notifications:[1,"notifications"]},outputs:{changeReadStatus:"changeReadStatus"},decls:3,vars:0,consts:[[3,"changeReadStatus","onClick","notification"]],template:function(r,i){r&1&&(we(0,"ul"),tb(1,YP,2,1,"li",null,WP),De()),r&2&&(ge(),nb(i.notifications()))},dependencies:[jE],styles:[`@media only screen and (max-width: 430px){:host{height:100vh;background:#fff;display:block}}ul{list-style:none;padding:0;margin:0}li:not(:last-child):after{content:" ";display:block;border-bottom:1px solid #707070;height:1px;width:92%;margin-left:4%}
44`],encapsulation:3,data:{animation:[ME("animation",[Bm(":enter",[Er({opacity:0}
44),jm("0.15s ease-in-out",Er({opacity:1}))]),Bm(":leave",[Er({opacity:1}),jm("0.15s ease-in-out",Er({opacity:0}))])])]},changeDetection:0})}return t})();function ZP(t,e){if(t&1){let n=Jt();we(0,"div",1)(1,"button",3),Ge("click",function(){Ue(n);let i=Ve();return ze(i.changeFilter.emit("all"))}),gn(2,"Alle"),De(),we(3,"button",3),Ge("click",function(){Ue(n);let i=Ve();return ze(i.changeFilter.emit("unread"))}),gn(4,"Ungelesen"),De()()}if(t&2){let n=Ve();ge(),Nn("active",n.filter()==="all"),ge(2),Nn("active",n.filter()==="unread")}}var UE=(()=>{class t{#e=y(Cr);agencyView=this.#e.agencyView;notifications=Qe.required();filter=Qe("all");changeReadStatus=rt();changeFilter=rt();notificationClicked=rt();close=rt();updateNotificationReadStatus(n){this.changeReadStatus.emit(n)}closePanel(n){n.preventDefault(),this.close.emit()}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mt({type:t,selectors:[["gs-notification-list-panel"]],inputs:{notifications:[1,"notifications"],filter:[1,"filter"]},outputs:{changeReadStatus:"changeReadStatus",changeFilter:"changeFilter",notificationClicked:"notificationClicked",close:"close"},decls:7,vars:4,consts:[[1,"notification-list-panel"],[1,"buttons"],[1,"back"],[3,"click"],["key","chevron_left_bold"],[3,"changeReadStatus","notifications"]],template:function(r,i){if(r&1){let o=Jt();ps(0),we(1,"div",0),gt(2,ZP,5,4,"div",1),we(3,"div",2)(4,"button",3),Ge("click",function(a){return Ue(o),ze(i.closePanel(a))}),mn(5,"svg-icon",4),De()(),we(6,"gs-notification-list",5),Ge("changeReadStatus",function(a){return Ue(o),ze(i.updateNotificationReadStatus(a))}),De()()}if(r&2){let o=i.agencyView();ge(),Nn("agency-view",o),ge(),Ft(o?2:-1),ge(4),St("notifications",i.notifications())}},dependencies:[BE,So],styles:[`:host{font-family:Montserrat,sans-serif}.notification-list-panel::-webkit-scrollbar{display:none}.notification-list-panel{scrollbar-width:none;-ms-overflow-style:none}.notification-list-panel{display:block;background-color:#fff;max-height:70vh;border-radius:0 0 10px 10px;overflow:scroll;box-shadow:0 3px 6px #00000029}.notification-list-panel.agency-view{border:1px solid #ccc;padding:8px;border-radius:10px}.notification-list-panel:after{position:absolute;bottom:0;left:0;content:" ";width:100%;height:15px;background:linear-gradient(to top,white,transparent);border-bottom-right-radius:10px;border-bottom-left-radius:10px}.buttons{display:flex;margin-bottom:25px;gap:14px}button{font-size:12px;color:#333;width:110px;height:25px;outline:0;cursor:pointer;padding:2px;border-radius:10px;border:1px solid #a1a1a1;background-color:#a1a1a100;box-sizing:border-box}button.active{background-color:#0080ff;color:#fff;font-weight:700;border:none}.back{display:none}@media only screen and (max-width: 430px){:host{margin-top:110px}.notification-list-panel{display:block;background-color:#fff;height:100vh;width:100vw;box-shadow:none;position:relative;overflow:visible}.back{display:block;padding:0 20px}.back button{border:0;outline:0;background-color:#e6e6e6b3;border-radius:10px;width:auto;width:40px;height:40px}}
45`],encapsulation:3,changeDetection:0})}return t})();var KJ=an(zE()),GJ=an(HE());var QP=["*"];function JP(t,e){t&1&&mn(0,"span",2)}function XP(t,e){if(t&1){let n=Jt();we(0,"gs-notification-list-panel",4),Ge("clickOutside",function(){Ue(n);let i=Ve(2);return ze(i.closeOverlay())})("changeReadStatus",function(i){Ue(n);let o=Ve(2);return ze(o.updateNotificationReadStatus(i))})("changeFilter",function(i){Ue(n);let o=Ve(2);return ze(o.store.updateFilter(i))})("notificationClicked",function(i){Ue(n);let o=Ve(2);return ze(o.notificationClicked.emit(i))})("close",function(){Ue(n);let i=Ve(2);return ze(i.closeOverlay())}),De()}if(t&2){let n=Ve(2);St("notifications",n.store.notifications())("filter",n.store.activeFilter())}}function eF(t,e){if(t&1){let n=Jt();we(0,"button",1,0),Ge("click",function(){Ue(n);let i=Ve();return ze(i.openOverlay())}),gt(2,JP,1,0,"span",2),Uf(3),De(),gt(4,XP,1,2,"ng-template",3),Ge("detach",function(){Ue(n);let i=Ve();return ze(i.closeOverlay())})}if(t&2){let n=rb(1),r=Ve();ge(2),Ft(r.store.showBadge()&&r.unreadCount()>0?2:-1),ge(2),St("cdkConnectedOverlayOrigin",r.mobileView()?r.body:n)("cdkConnectedOverlayOpen",r.isOpen())}}ua.default.extend(qE.default);ua.default.extend(GE.default);ua.default.extend(KE.default);var WE=(()=>{class t{#e=y(ph);#t=y(yE);mobileView=Th(this.#e.observe("max-width: 430px").pipe(je(n=>n.matches)),{initialValue:!1});body=this.#t.document.body;agencyView=Qe(!1,{transform:Lt,alias:"agency-view"});test=Qe(!1,{alias:"test"});agent=Qe(0,{alias:"agent",transform:gs});user=Qe(null,{alias:"user",transform:n=>n==null||n===""?null:gs(n)});customer=Qe(null,{alias:"customer",transform:n=>n==null||n===""?null:gs(n)});username=Qe("",{alias:"username"});apiurl=Qe("",{alias:"apiurl"});appid=Qe("",{alias:"appid"});locale=Qe("de",{alias:"locale"});allowRetract=Qe(!1,{alias:"allow-retract"});showBadge=Qe(!1,{alias:"show-badge"});#n=0;notificationsFetched=rt();unread=rt();updateReadStatus=rt();notificationClicked=rt();onError=rt();onAction=rt();store=y(Cr);notificationService=y(To);sseService=y(AE);title=y(Bb);unreadCount=qe(()=>{let n=this.store.notifications().filter(i=>typeof i.viewed!="string").length;n!==this.#n&&(this.unread.emit(n),this.#n=n);let r=this.title.getTitle();return this.#r(r)&&(r=this.#i(r)),n>0?this.title.setTitle(`(${n}) ${r}`):this.title.setTitle(r),n});isOpen=Ct(!1);closeOverlay(){this.isOpen.set(!1)}openOverlay(){this.store.updateFilter("all"),this.isOpen.set(!0)}updateNotificationReadStatus(n){this.store.updateNotificationReadStatus(n.id,n.read),this.updateReadStatus.emit(n)}#r(n){return/^\([1-9]*\)/.test(n)}#i(n){return n.replace(/^\([1-9]*\)\s*/,"")}#o=kr(this.body,"open-notification-center").subscribe(()=>this.openOverlay());constructor(){qi(()=>
45{if(ua.default.locale(this.locale()),this.notificationService.error$.subscribe(n=>this.onError.emit(n)),this.notificationService.action$.subscribe(n=>this.onAction.emit(n)),this.user()||this.agent()||this.customer()){this.store.setAgencyView(this.agencyView()),this.store.setSettings({apiUrl:this.apiurl(),locale:this.locale(),viewer:{userName:this.username(),userId:this.user(),agentId:this.agent(),customerVersionId:this.customer()},allowRetract:this.allowRetract(),showBadge:this.showBadge()}),setTimeout(()=>this.store.fetchNotifications(),0);let n=[`https://api.go-suite.com/notification-center/v1/?app=${this.appid()}&agency=${this.agent()}&user=${this.user()??""}&customerVersionId=${this.customer()??""}`,`https://api.go-suite.com/notification-center/v1/?app=${this.appid()}&agency=&user=${this.user()??""}&customerVersionId=${this.customer()??""}`,`https://api.go-suite.com/notification-center/v1/?app=${this.appid()}&agency=${this.agent()??""}&user=&customerVersionId=${this.customer()??""}`];if(this.test()){let r=[...n];n.forEach(i=>r.push(i+"&test=1")),n=[...r]}this.sseService.getEventSource("notification-center",n).subscribe(r=>{this.store.addNotifications([r])})}}),Yn(()=>{let n=this.store.allNotifications();this.notificationsFetched.emit(n)})}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mt({type:t,selectors:[["gs-notification-center"]],inputs:{agencyView:[1,"agency-view","agencyView"],test:[1,"test"],agent:[1,"agent"],user:[1,"user"],customer:[1,"customer"],username:[1,"username"],apiurl:[1,"apiurl"],appid:[1,"appid"],locale:[1,"locale"],allowRetract:[1,"allow-retract","allowRetract"],showBadge:[1,"show-badge","showBadge"]},outputs:{notificationsFetched:"notificationsFetched",unread:"unread",updateReadStatus:"updateReadStatus",notificationClicked:"notificationClicked",onError:"onError",onAction:"onAction"},ngContentSelectors:QP,decls:1,vars:1,consts:[["trigger","cdkOverlayOrigin"],["cdkOverlayOrigin","",3,"click"],[1,"badge"],["cdkConnectedOverlay","",3,"detach","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],[3,"clickOutside","changeReadStatus","changeFilter","notificationClicked","close","notifications","filter"]],template:function(r,i){r&1&&(Bf(),gt(0,eF,5,3)),r&2&&Ft(i.user()||i.agent()?0:-1)},dependencies:[eh,Mh,xh,As,U0,UE],styles:[`:host{display:block;position:relative}:host button .badge{position:absolute;content:" ";top:2px;right:2px;width:6px;height:6px;background-color:#0080ff;border-radius:50%}button{border:0;padding:0;background-color:transparent}
46`],encapsulation:3,changeDetection:0})}return t})();var YE={name:"notifications_consulting",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 255.3 236.5"><path d="M243.7 82.6h-8.9c-6-22.4-19.1-42.6-37.2-57.4C177.8 8.9 152.7 0 127 0S76.7 8.8 57 24.7C38.6 39.5 25.3 60 19.2 82.6h-7.6C5.2 82.6.1 87.8.1 94.1V151c0 6.4 5.2 11.5 11.5 11.5h14.1c.6 0 1.3 0 1.9-.2 14 27.5 38.5 47.8 67.9 56.4v4.3c0 7.3 6 13.3 13.3 13.3h36.9c7.3 0 13.3-6 13.3-13.3v-9.9c0-7.3-6-13.3-13.3-13.3h-36.9c-5.7 0-10.6 3.6-12.4 8.7-26.3-8.3-48.2-26.9-60.5-52 .9-1.6 1.5-3.5 1.5-5.6V94c0-5.1-3.3-9.4-7.8-10.9C41.9 39.8 81.3 10 127 10s85.4 30.6 97.8 73.7c-3.9 1.8-6.7 5.8-6.7 10.5v56.9c0 6.4 5.2 11.5 11.5 11.5h14.1c6.4 0 11.5-5.2 11.5-11.5V94.2c0-6.4-5.2-11.5-11.5-11.5ZM105.5 213.3c0-1.8 1.5-3.3 3.3-3.3h36.9c1.8 0 3.3 1.5 3.3 3.3v9.9c0 1.8-1.5 3.3-3.3 3.3h-36.9c-1.8 0-3.3-1.5-3.3-3.3zm-79.9-60.7H11.5c-.9 0-1.5-.7-1.5-1.5V94.2c0-.9.7-1.5 1.5-1.5h14.1c.9 0 1.5.7 1.5 1.5v56.9c0 .9-.7 1.5-1.5 1.5m219.7-1.5c0 .9-.7 1.5-1.5 1.5h-14.1c-.9 0-1.5-.7-1.5-1.5V94.2c0-.9.7-1.5 1.5-1.5h14.1c.9 0 1.5.7 1.5 1.5z"/></svg>'};var ZE={name:"notifications_message",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 207 159.7"><path d="M197 0H10C4.5 0 0 4.5 0 10v112.4c0 5.5 4.5 10 10 10h17.5v17.1c0 4.1 2.5 7.8 6.3 9.4 1.3.5 2.6.8 3.9.8 2.6 0 5.2-1 7.2-3l24.3-24.3h127.9c5.5 0 10-4.5 10-10V10c0-5.5-4.5-10-10-10ZM65 122.4l-27.3 27.3s-.2 0-.2-.2v-27.1H10V10h187v112.4z"/><path d="M175.3 30.3h-143c-2.8 0-5 2.2-5 5s2.2 5 5 5h143c2.8 0 5-2.2 5-5s-2.2-5-5-5M175.3 91.3h-143c-2.8 0-5 2.2-5 5s2.2 5 5 5h143c2.8 0 5-2.2 5-5s-2.2-5-5-5M1
4675.3 61.1h-143c-2.8 0-5 2.2-5 5s2.2 5 5 5h143c2.8 0 5-2.2 5-5s-2.2-5-5-5"/></svg>'};var QE={name:"notifications_overview",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 132.2 184.2"><path d="M121.8 0H10.2C4.6 0 0 4.6 0 10.2v163.5c0 5.6 4.6 10.2 10.2 10.2h111.5c5.6 0 10.2-4.6 10.2-10.2V10.2c0-5.6-4.6-10.2-10.2-10.2Zm.2 173.8c0 .1-.1.2-.2.2H10.2c-.1 0-.2-.1-.2-.2V10.2c0-.1.1-.2.2-.2h111.5c.1 0 .2.1.2.2v163.5Z"/><path d="M103 41.5H50.5c-2.8 0-5 2.2-5 5s2.2 5 5 5H103c2.8 0 5-2.2 5-5s-2.2-5-5-5M103 102.5H50.5c-2.8 0-5 2.2-5 5s2.2 5 5 5H103c2.8 0 5-2.2 5-5s-2.2-5-5-5M103 72.2H50.5c-2.8 0-5 2.2-5 5s2.2 5 5 5H103c2.8 0 5-2.2 5-5s-2.2-5-5-5M30.2 41.5H30c-2.8 0-5 2.2-5 5s2.2 5 5 5h.2c2.8 0 5-2.2 5-5s-2.2-5-5-5M30.2 102.5H30c-2.8 0-5 2.2-5 5s2.2 5 5 5h.2c2.8 0 5-2.2 5-5s-2.2-5-5-5M30.2 72.2H30c-2.8 0-5 2.2-5 5s2.2 5 5 5h.2c2.8 0 5-2.2 5-5s-2.2-5-5-5"/></svg>'};var JE={name:"notifications_sign",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" version="1.1"><path d="M 90.071 44.752 C 88.185 45.713, 85.710 47.770, 84.571 49.323 L 82.500 52.147 82.500 249.823 C 82.500 436.922, 82.595 447.673, 84.267 450.733 C 87.947 457.467, 75.700 457, 248.500 457 C 421.306 457, 409.122 457.465, 412.671 450.733 C 414.206 447.820, 414.546 437.808, 416.104 349.500 C 417.055 295.600, 417.949 240.250, 418.090 226.500 L 418.348 201.500 447.924 166.176 C 464.191 146.747, 478.512 129.435, 479.750 127.704 C 481.941 124.639, 482.640 119.831, 481.374 116.533 C 480.712 114.806, 439.971 80.125, 436.292 78.156 C 433.920 76.887, 429.113 76.636, 426.486 77.644 C 425.563 77.998, 417.989 86.450, 409.654 96.427 C 401.319 106.403, 394.242 114.776, 393.926 115.033 C 393.610 115.290, 375.456 99.814, 353.584 80.643 C 331.712 61.472, 312.621 45.162, 311.158 44.399 C 308.940 43.242, 290.713 43.012, 201 43.008 C 100.624 43.003, 93.273 43.119, 90.071 44.752 M 109 250.500 L 109 431 248.500 431 L 388 431 387.996 427.250 C 387.994 425.188, 388.695 384.350, 389.554 336.500 C 390.414 288.650, 390.978 246.174, 390.808 242.110 L 390.500 234.719 336.131 299.753 C 306.228 335.522, 280.669 365.285, 279.334 365.894 C 277.998 366.502, 276.199 367, 275.335 367 C 274.471 367, 260.596 372.850, 244.500 380 C 226.836 387.847, 213.969 393, 212.041 393 C 207.751 393, 203 388.322, 203 384.098 C 203 382.417, 207.725 368.423, 213.500 353 C 219.275 337.577, 224 323.879, 224 322.561 C 224 321.242, 224.287 319.417, 224.637 318.504 C 224.987 317.592, 232.891 307.767, 242.202 296.673 L 259.130 276.500 204.988 276 L 150.845 275.500 147.423 271.765 C 144.571 268.653, 144 267.267, 144 263.465 C 144 257.997, 145.901 253.973, 149.699 251.398 C 152.359 249.595, 155.767 249.475, 217.496 249 L 282.492 248.500 322.224 201 L 361.955 153.500 333.447 152.760 C 302.278 151.951, 300.569 151.629, 297.087 145.903 C 295.162 142.738, 294.944 139.467, 293.372 90.250 L 292.726 70 200.863 70 L 109 70 109 250.500 M 320.660 106.193 C 320.999 116.812, 321.374 125.622, 321.492 125.770 C 321.611 125.919, 331.238 125.919, 342.886 125.770 L 364.064 125.500 350.782 113.878 C 343.477 107.485, 333.572 98.797, 328.771 94.571 L 320.042 86.886 320.660 106.193 M 342.979 210.153 C 293.766 268.973, 252.751 318.097, 251.836 319.317 C 250.196 321.503, 250.339 321.674, 261.741 331.126 L 273.310 340.716 275.991 337.608 C 277.465 335.899, 317.959 287.475, 365.979 230 C 413.999 172.525, 453.888 124.800, 454.622 123.945 C 455.782 122.594, 454.631 121.290, 445.795 113.945 C 440.206 109.300, 434.919 104.984, 434.046 104.354 C 432.694 103.378, 419.160 119.102, 342.979 210.153 M 151.418 200.969 C 147.296 202.636, 144 207.816, 144 212.626 C 144 218.854, 146.314 222.785, 151.316 225.057 C 155.282 226.857, 158.757 226.957, 218 226.972 C 257.417 226.983, 281.855 226.613, 284.168 225.970 C 289.507 224.487, 294 218.979, 294 213.916 C 294 208.734, 291.723 204.411, 287.701 201.960 C 284.609 200.074, 282.260 200.010, 219 200.067 C 182.975 200.100, 152.563 200.506, 151.418 200.969 M 151.418 299.969 C 150.274 300.432, 148.136 302.238, 146.668 303.982 C 141.950 309.590, 143.461 319.373, 149.699 323.602 C 153.743 326.342, 185.025 327.026, 191.594 324.517 C 199.309 321.571, 202.380 312.415, 198.040 305.299 C 194.539 299.556, 192.170 298.993, 171.800 299.063 C 161.735 299.098, 152.563 299.506, 151.418 299.969 M 235.097 352.096 C 232.804 358.237, 231.094 363.427, 23
461.296 363.629 C 231.702 364.035, 252.029 355.161, 253.292 354.027 C 253.728 353.635, 251.478 351.137, 248.292 348.474 C 245.107 345.811, 241.772 343.024, 240.883 342.281 C 239.436 341.073, 238.825 342.110, 235.097 352.096" stroke="none" fill="#000000" fill-rule="evenodd"/></svg>'};var XE={name:"notifications_travel",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210.1 158.5"><path d="M199.9 27.8h-44.3V10c0-5.5-4.5-10-10-10h-81c-5.5 0-10 4.5-10 10v17.8H10.1C4.5 27.8 0 32.4 0 38v110.4c0 5.6 4.6 10.1 10.2 10.2H200c5.6 0 10.1-4.6 10.2-10.2V38c0-5.6-4.6-10.1-10.2-10.2ZM64.6 10h81v17.8h-81zm135.3 138.4H10.2V88.6H200v59.8Zm0-70H10.1V38h189.8z"/></svg>'};var eC=[YE,ZE,QE,JE,XE];function tC(t){return new I(3e3,!1)}function tF(){return new I(3100,!1)}function nF(){return new I(3101,!1)}function rF(t){return new I(3001,!1)}function iF(t){return new I(3003,!1)}function oF(t){return new I(3004,!1)}function sF(t,e){return new I(3005,!1)}function aF(){return new I(3006,!1)}function lF(){return new I(3007,!1)}function cF(t,e){return new I(3008,!1)}function uF(t){return new I(3002,!1)}function dF(t,e,n,r,i){return new I(3010,!1)}function fF(){return new I(3011,!1)}function hF(){return new I(3012,!1)}function pF(){return new I(3200,!1)}function mF(){return new I(3202,!1)}function gF(){return new I(3013,!1)}function yF(t){return new I(3014,!1)}function vF(t){return new I(3015,!1)}function _F(t){return new I(3016,!1)}function bF(t,e){return new I(3404,!1)}function wF(t){return new I(3502,!1)}function DF(t){return new I(3503,!1)}function EF(){return new I(3300,!1)}function CF(t){return new I(3504,!1)}function SF(t){return new I(3301,!1)}function IF(t,e){return new I(3302,!1)}function xF(t){return new I(3303,!1)}function MF(t,e){return new I(3400,!1)}function TF(t){return new I(3401,!1)}function NF(t){return new I(3402,!1)}function AF(t,e){return new I(3505,!1)}function Sr(t){switch(t.length){case 0:return new Dr;case 1:return t[0];default:return new la(t)}}function mC(t,e,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==s,f=u&&a||new Map;l.forEach((h,d)=>{let p=d,g=h;if(d!=="offset")switch(p=t.normalizePropertyName(p,i),g){case Zc:g=n.get(d);break;case Pn:g=r.get(d);break;default:g=t.normalizeStyleValue(d,p,g,i);break}f.set(p,g)}),u||o.push(f),a=f,s=c}),i.length)throw wF(i);return o}function hg(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Km(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Km(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Km(n,"destroy",t)));break}}function Km(t,e,n){let r=n.totalTime,i=!!n.disabled,o=pg(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 pg(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function zt(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function nC(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var kF=typeof document>"u"?null:document.documentElement;function mg(t){let e=t.parentNode||t.host||null;return e===kF?null:e}function OF(t){return t.substring(1,6)=="ebkit"}var ri=null,rC=!1;function RF(t){ri||(ri=PF()||{},rC=ri.style?"WebkitAppearance"in ri.style:!1);let e=!0;return ri.style&&!OF(t)&&(e=t in ri.style,!e&&rC&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in ri.style)),e}function PF(){return typeof document<"u"?document.body:null}function gC(t,e){for(;e;){if(e===t)return!0;e=mg(e)}return!1}function yC(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var gg=(()=>{class t{validateStyleProperty(n){return RF(n)}containsElement(n,r){return gC(n,r)}getParentElement(n){return mg(n)}query(n,r,i){return yC(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,s,a=[],l){return new Dr(i,o)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})(),si=class{static NOOP=new gg},ai=class{};var FF=1e3,vC="{{",LF="}}",_C="ng-enter",Jm="ng-leave",Qc="ng-trigger",nu=".ng-trigger",iC="ng-animating",Xm=".ng-animating";function or(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:eg(parseFloat(e[1]),e[2])}function eg(t,e){switch(e){case"s":return t*FF;default:return t}}function ru(t,e,n){return t.hasOwnProperty("duration")?t:VF(t,e,n)}function VF(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(tC(t)),{duration:0,delay:0,easing:""};i=eg(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=eg(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else i=t;if(!n){let a=!1,l=e.length;i<0&&(e.push(tF()),a=!0),o<0&&(e.push(nF()),a=!0),a&&e.splice(l,0,tC(t))}return{duration:i,delay:o,easing:s}}
vendor: 54,036 bytes, line 46
46function $F(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Fn(t,e,n){e.forEach((r,i)=>{let o=yg(i);n&&!n.has(i)&&n.set(i,t.style[o]),t.style[o]=r})}function oi(t,e){e.forEach((n,r)=>{let i=yg(r);t.style[i]=""})}function da(t){return Array.isArray(t)?t.length==1?t[0]:TE(t):t}function jF(t,e,n){let r=e.params||{},i=bC(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(rF(o))})}var tg=new RegExp(`${vC}\\s*(.+?)\\s*${LF}`,"g");function bC(t){let e=[];if(typeof t=="string"){let n;for(;n=tg.exec(t);)e.push(n[1]);tg.lastIndex=0}return e}function ha(t,e,n){let r=`${t}`,i=r.replace(tg,(o,s)=>{let a=e[s];return a==null&&(n.push(iF(s)),a=""),a.toString()});return i==r?t:i}var BF=/-+([a-z0-9])/g;function yg(t){return t.replace(BF,(...e)=>e[1].toUpperCase())}function UF(t,e){return t===0||e===0}function zF(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;o<e.length;o++){let s=e[o];i.forEach(a=>s.set(a,vg(t,a)))}}return e}function Ut(t,e,n){switch(e.type){case Z.Trigger:return t.visitTrigger(e,n);case Z.State:return t.visitState(e,n);case Z.Transition:return t.visitTransition(e,n);case Z.Sequence:return t.visitSequence(e,n);case Z.Group:return t.visitGroup(e,n);case Z.Animate:return t.visitAnimate(e,n);case Z.Keyframes:return t.visitKeyframes(e,n);case Z.Style:return t.visitStyle(e,n);case Z.Reference:return t.visitReference(e,n);case Z.AnimateChild:return t.visitAnimateChild(e,n);case Z.AnimateRef:return t.visitAnimateRef(e,n);case Z.Query:return t.visitQuery(e,n);case Z.Stagger:return t.visitStagger(e,n);default:throw oF(e.type)}}function vg(t,e){return window.getComputedStyle(t)[e]}var HF=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"]),iu=class extends ai{normalizePropertyName(e,n){return yg(e)}normalizeStyleValue(e,n,r,i){let o="",s=r.toString().trim();if(HF.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(sF(e,r))}return s+o}};var ou="*";function qF(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>KF(r,n,e)):n.push(t),n}function KF(t,e,n){if(t[0]==":"){let l=GF(t,n);if(typeof l=="function"){e.push(l);return}t=l}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(vF(t)),e;let i=r[1],o=r[2],s=r[3];e.push(oC(i,s));let a=i==ou&&s==ou;o[0]=="<"&&!a&&e.push(oC(s,i))}function GF(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)<parseFloat(n);default:return e.push(_F(t)),"* => *"}}var Jc=new Set(["true","1"]),Xc=new Set(["false","0"]);function oC(t,e){let n=Jc.has(t)||Xc.has(t),r=Jc.has(e)||Xc.has(e);return(i,o)=>{let s=t==ou||t==i,a=e==ou||e==o;return!s&&n&&typeof i=="boolean"&&(s=i?Jc.has(t):Xc.has(t)),!a&&r&&typeof o=="boolean"&&(a=o?Jc.has(e):Xc.has(e)),s&&a}}var wC=":self",WF=new RegExp(`s*${wC}s*,?`,"g");function DC(t,e,n,r){return new ng(t).build(e,n,r)}var sC="",ng=class{_driver;constructor(e){this._driver=e}build(e,n,r){let i=new rg(n);return this._resetContextStyleTimingState(i),Ut(this,da(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=sC,e.collectedStyles=new Map,e.collectedStyles.set(sC,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(aF()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==Z.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,n))}),l.name=c}else if(a.type==Z.Transition){let l=this.visitTransition(a,n);r+=l.queryCount,i+=l.depCount,s.push(l)}else n.errors.push(lF())}),{type:Z.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(l=>{bC(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&n.errors.push(cF(e.name,[...o.values()]))}return{type:Z.State,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=Ut(this,da(e.animation),n),i=qF(e.expr,n.errors);return{type:Z.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:ii(e.options)}}visitSequence(e,n){return{type:Z.Sequence,steps:e.steps.map(r=>Ut(this,r,n)),options:ii(e.options)}}visitGroup(e,n){let r=n.currentTime,i=0,o=e.steps.map(s=>{n.currentTime=r;let a=Ut(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:Z.Group,steps:o,options:ii(e.options)}}visitAnimate(e,n){let r=JF(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:Er({});if(o.type==Z.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=Er(c)}n.currentTime+=r.duration+r.delay;let l=this.visitStyle(s,n);l.isEmptyStep=a,i=l}return n.currentAnimateTimings=null,{type:Z.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===Pn?r.push(a):n.errors.push(uF(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 l of a.values())if(l.toString().indexOf(vC)>=0){o=!0;break}}}),{type:Z.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,l)=>{let c=n.collectedStyles.get(n.currentQuerySelector),u=c.get(l),f=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(n.errors.push(dF(l,u.startTime,u.endTime,o,i)),f=!1),o=u.startTime),f&&c.set(l,{startTime:o,endTime:i}),n.options&&jF(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:Z.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(fF()),r;let i=1,o=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(E=>{let k=this._makeStyleAst(E,n),N=k.offset!=null?k.offset:QF(k.styles),V=0;return N!=null&&(o++,V=k.offset=N),l=l||V<0||V>1,a=a||V<c,c=V,s.push(V),k});l&&n.errors.push(hF()),a&&n.errors.push(pF());let f=e.steps.length,h=0;o>0&&o<f?n.errors.push(mF()):o==0&&(h=i/(f-1));let d=f-1,p=n.currentTime,g=n.currentAnimateTimings,b=g.duration;return u.forEach((E,k)=>{let N=h>0?k==d?1:h*k:s[k],V=N*b;n.currentTime=p+g.delay+V,g.duration=V,this._validateStyleAst(E,n),E.offset=N,r.styles.push(E)}),r}visitReference(e,n){return{type:Z.Reference,animation:Ut(this,da(e.animation),n),options:ii(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:Z.AnimateChild,options:ii(e.options)}}visitAnimateRef(e,n){return{type:Z.AnimateRef,animation:this.visitReference(e.animation,n),options:ii(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;let[o,s]=YF(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,zt(n.collectedStyles,n.currentQuerySelector,new Map);let a=Ut(this,da(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:Z.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:ii(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(gF());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ru(e.timings,n.errors,!0);return{type:Z.Stagger,animation:Ut(this,da(e.animation),n),timings:r,options:null}}};function YF(t){let e=!!t.split(/\s*,\s*/).find(n=>n==wC);return e&&(t=t.replace(WF,"")),t=t.replace(/@\*/g,nu).replace(/@\w+/g,n=>nu+"-"+n.slice(1)).replace(/:animating/g,Xm),[t,e]}function ZF(t){return t?m({},t):null}var rg=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function QF(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 JF(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=ru(t,e).duration;return Gm(o,0,"")}let n=t;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Gm(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=ru(n,e);return Gm(i.duration,i.delay,i.easing)}function ii(t){return t?(t=m({},t),t.params&&(t.params=ZF(t.params))):t={},t}function Gm(t,e,n){return{duration:t,delay:e,easing:n}}function _g(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 pa=class{_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()}},XF=1,eL=":enter",tL=new RegExp(eL,"g"),nL=":leave",rL=new RegExp(nL,"g");function EC(t,e,n,r,i,o=new Map,s=new Map,a,l,c=[]){return new ig().buildKeyframes(t,e,n,r,i,o,s,a,l,c)}var ig=class{buildKeyframes(e,n,r,i,o,s,a,l,c,u=[]){c=c||new pa;let f=new og(e,n,c,i,o,u,[]);f.options=l;let h=l.delay?or(l.delay):0;f.currentTimeline.delayNextStep(h),f.currentTimeline.setStyles([s],null,f.errors,l),Ut(this,r,f);let d=f.timelines.filter(p=>p.containsAnimation());if(d.length&&a.size){let p;for(let g=d.length-1;g>=0;g--){let b=d[g];if(b.element===n){p=b;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,f.errors,l)}return d.length?d.map(p=>p.buildKeyframes()):[_g(n,[],[],[],0,h,"",!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?.delay;if(o){let s=typeof o=="number"?o:or(ha(o,i?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?or(r.duration):null,a=r.delay!=null?or(r.delay):null;return s!==0&&e.forEach(l=>{let c=n.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),Ut(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==Z.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=su);let s=or(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Ut(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?or(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);o&&a.delayNextStep(o),Ut(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?ha(r,n.params,n.errors):r;return ru(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==Z.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(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.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?or(i.delay):0;o&&(n.previousNode.type===Z.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=su);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{n.currentQueryIndex=u;let f=n.createSubContext(e.options,c);o&&f.delayNextStep(o),c===n.element&&(l=f.currentTimeline),Ut(this,e.animation,f),f.currentTimeline.applyStylesToKeyframe();let h=f.currentTimeline.currentTime;s=Math.max(s,h)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),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),l=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime;break}let u=n.currentTimeline;l&&u.delayNextStep(l);let f=u.currentTime;Ut(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-f+(i.startTime-r.currentTimeline.startTime)}},su={},og=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=su;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,n,r,i,o,s,a,l){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=l||new au(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=or(r.duration)),r.delay!=null&&(i.delay=or(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]=ha(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=su,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 sg(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(tL,"."+this._enterClassName),e=e.replace(rL,"."+this._leaveClassName);let l=r!=1,c=this._driver.query(this.element,e,l);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(yF(n)),a}},au=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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+=XF,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||Pn),this._currentKeyframe.set(n,Pn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=iL(e,this._globalTimelineStyles);for(let[a,l]of s){let c=ha(l,o,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Pn),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,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,f)=>{u===Zc?e.add(f):u===Pn&&n.add(f)}),r||c.set("offset",l/this.duration),i.push(c)});let o=[...e.values()],s=[...n.values()];if(r){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return _g(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},sg=class extends au{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;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,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",aC(a)),o.push(c);let u=e.length-1;for(let f=1;f<=u;f++){let h=new Map(e[f]),d=h.get("offset"),p=n+d*r;h.set("offset",aC(p/s)),o.push(h)}r=s,n=0,i="",e=o}return _g(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function aC(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function iL(t,e){let n=new Map,r;return t.forEach(i=>{if(i==="*"){r??=e.keys();for(let o of r)n.set(o,Pn)}else for(let[o,s]of i)n.set(o,s)}),n}function lC(t,e,n,r,i,o,s,a,l,c,u,f,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:f,errors:h}}var Wm={},lu=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return oL(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?.toString())||i),i?i.buildStyles(n,r):new Map}build(e,n,r,i,o,s,a,l,c,u){let f=[],h=this.ast.options&&this.ast.options.params||Wm,d=a&&a.params||Wm,p=this.buildStyles(r,d,f),g=l&&l.params||Wm,b=this.buildStyles(i,g,f),E=new Set,k=new Map,N=new Map,V=i==="void",Q={params:CC(g,h),delay:this.ast.options?.delay},te=u?[]:EC(e,n,this.ast.animation,o,s,p,b,Q,c,f),ne=0;return te.forEach(B=>{ne=Math.max(B.duration+B.delay,ne)}),f.length?lC(n,this._triggerName,r,i,V,p,b,[],[],k,N,ne,f):(te.forEach(B=>{let j=B.element,Fe=zt(k,j,new Set);B.preStyleProps.forEach(L=>Fe.add(L));let _t=zt(N,j,new Set);B.postStyleProps.forEach(L=>_t.add(L)),j!==n&&E.add(j)}),lC(n,this._triggerName,r,i,V,p,b,te,[...E.values()],k,N,ne))}};function oL(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}function CC(t,e){let n=m({},e);return Object.entries(t).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var ag=class{styles;defaultParams;normalizer;constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,i=CC(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=ha(s,i,n));let l=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,l,s,n),r.set(a,s)})}),r}};function sL(t,e,n){return new lg(t,e,n)}var lg=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,n.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new ag(i.style,o,r))}),cC(this.states,"true","1"),cC(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new lu(e,i,this.states))}),this.fallbackTransition=aL(e,this.states)}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 aL(t,e,n){let r=[(s,a)=>!0],i={type:Z.Sequence,steps:[],options:null},o={type:Z.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new lu(t,o,e)}function cC(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 lL=new pa,cg=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r}register(e,n){let r=[],i=[],o=DC(this._driver,n,r,i);if(r.length)throw DF(r);this._animations.set(e,o)}_buildPlayer(e,n,r){let i=e.element,o=mC(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=EC(this._driver,n,o,_C,Jm,new Map,new Map,r,lL,i),s.forEach(u=>{let f=zt(a,u.element,new Map);u.postStyleProps.forEach(h=>f.set(h,null))})):(i.push(EF()),s=[]),i.length)throw CF(i);a.forEach((u,f)=>{u.forEach((h,d)=>{u.set(d,this._driver.computeStyle(f,d,Pn))})});let l=s.map(u=>{let f=a.get(u.element);return this._buildPlayer(u,new Map,f)}),c=Sr(l);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 SF(e);return n}listen(e,n,r,i){let o=pg(n,"","","");return hg(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}}},uC="ng-animate-queued",cL=".ng-animate-queued",Ym="ng-animate-disabled",uL=".ng-animate-disabled",dL="ng-star-inserted",fL=".ng-star-inserted",hL=[],SC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},pL={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},bn="__ng_removed",ma=class{namespaceId;value;options;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=gL(i),r){let o=e,{value:s}=o,a=Be(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])})}}},fa="void",Zm=new ma(fa),ug=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this._hostClassName="ng-tns-"+e,on(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.has(n))throw IF(r,n);if(r==null||r.length==0)throw xF(n);if(!yL(r))throw MF(r,n);let o=zt(this._elementListeners,e,[]),s={name:n,phase:r,callback:i};o.push(s);let a=zt(this._engine.statesByElement,e,new Map);return a.has(n)||(on(e,Qc),on(e,Qc+"-"+n),a.set(n,Zm)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,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 TF(e);return n}trigger(e,n,r,i=!0){let o=this._getTrigger(n),s=new ga(this.id,n,e),a=this._engine.statesByElement.get(e);a||(on(e,Qc),on(e,Qc+"-"+n),this._engine.statesByElement.set(e,a=new Map));let l=a.get(n),c=new ma(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(n,c),l||(l=Zm),!(c.value===fa)&&l.value===c.value){if(!bL(l.params,c.params)){let g=[],b=o.matchStyles(l.value,l.params,g),E=o.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{oi(e,b),Fn(e,E)})}return}let h=zt(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==n&&g.queued&&g.destroy()});let d=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!d){if(!i)return;d=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:d,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(on(e,uC),s.onStart(()=>{No(e,uC)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let E=b.indexOf(s);E>=0&&b.splice(E,1)}}),this.players.push(s),h.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,nu,!0);r.forEach(i=>{if(i[bn])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((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,fa,i);u&&a.push(u)}}),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 l=this._triggers.get(s).fallbackTransition,c=r.get(s)||Zm,u=new ma(fa),f=new ga(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:f,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[bn];(!o||o===SC)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){on(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 l=pg(o,r.triggerName,r.fromState.value,r.toState.value);l._data=e,hg(r.player,a.phase,l,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)}},dg=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,n)=>{};_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r}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 ug(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 l=i.get(a);if(l){let c=r.indexOf(l);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(eu(n)){let o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!eu(n))return;let o=n[bn];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),on(e,Ym)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),No(e,Ym))}removeNode(e,n,r){if(eu(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[bn]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return eu(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,nu,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,Xm,!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){let n=e[bn];if(n&&n.setForRemoval){if(e[bn]=SC,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Ym)&&this.markElementAsDisabled(e,!1),this.driver.query(e,uL,!0).forEach(r=>{this.markElementAsDisabled(r,!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;r<this.collectedEnterElements.length;r++){let i=this.collectedEnterElements[r];on(i,dL)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{n=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let i=this.collectedLeaveElements[r];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),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 NF(e)}_flushAnimations(e,n){let r=new pa,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(v=>{u.add(v);let D=this.driver.query(v,cL,!0);for(let S=0;S<D.length;S++)u.add(D[S])});let f=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=hC(h,this.collectedEnterElements),p=new Map,g=0;d.forEach((v,D)=>{let S=_C+g++;p.set(D,S),v.forEach(O=>on(O,S))});let b=[],E=new Set,k=new Set;for(let v=0;v<this.collectedLeaveElements.length;v++){let D=this.collectedLeaveElements[v],S=D[bn];S&&S.setForRemoval&&(b.push(D),E.add(D),S.hasAnimation?this.driver.query(D,fL,!0).forEach(O=>E.add(O)):k.add(D))}let N=new Map,V=hC(h,Array.from(E));V.forEach((v,D)=>{let S=Jm+g++;N.set(D,S),v.forEach(O=>on(O,S))}),e.push(()=>{d.forEach((v,D)=>{let S=p.get(D);v.forEach(O=>No(O,S))}),V.forEach((v,D)=>{let S=N.get(D);v.forEach(O=>No(O,S))}),b.forEach(v=>{this.processLeaveNode(v)})});let Q=[],te=[];for(let v=this._namespaceList.length-1;v>=0;v--)this._namespaceList[v].drainQueuedTransitions(n).forEach(S=>{let O=S.player,K=S.element;if(Q.push(O),this.collectedEnterElements.length){let ve=K[bn];if(ve&&ve.setForMove){if(ve.previousTriggersValues&&ve.previousTriggersValues.has(S.triggerName)){let Se=ve.previousTriggersValues.get(S.triggerName),Ie=this.statesByElement.get(S.element);if(Ie&&Ie.has(S.triggerName)){let bt=Ie.get(S.triggerName);bt.value=Se,Ie.set(S.triggerName,bt)}}O.destroy();return}}let he=!f||!this.driver.containsElement(f,K),ce=N.get(K),Le=p.get(K),ue=this._buildInstruction(S,r,Le,ce,he);if(ue.errors&&ue.errors.length){te.push(ue);return}if(he){O.onStart(()=>oi(K,ue.fromStyles)),O.onDestroy(()=>Fn(K,ue.toStyles)),i.push(O);return}if(S.isFallbackTransition){O.onStart(()=>oi(K,ue.fromStyles)),O.onDestroy(()=>Fn(K,ue.toStyles)),i.push(O);return}let kt=[];ue.timelines.forEach(ve=>{ve.stretchStartingKeyframe=!0,this.disabledNodes.has(ve.element)||kt.push(ve)}),ue.timelines=kt,r.append(K,ue.timelines);let sn={instruction:ue,player:O,element:K};s.push(sn),ue.queriedElements.forEach(ve=>zt(a,ve,[]).push(O)),ue.preStyleProps.forEach((ve,Se)=>{if(ve.size){let Ie=l.get(Se);Ie||l.set(Se,Ie=new Set),ve.forEach((bt,Ht)=>Ie.add(Ht))}}),ue.postStyleProps.forEach((ve,Se)=>{let Ie=c.get(Se);Ie||c.set(Se,Ie=new Set),ve.forEach((bt,Ht)=>Ie.add(Ht))})});if(te.length){let v=[];te.forEach(D=>{v.push(AF(D.triggerName,D.errors))}),Q.forEach(D=>D.destroy()),this.reportError(v)}let ne=new Map,B=new Map;s.forEach(v=>{let D=v.element;r.has(D)&&(B.set(D,D),this._beforeAnimationBuild(v.player.namespaceId,v.instruction,ne))}),i.forEach(v=>{let D=v.element;this._getPreviousPlayers(D,!1,v.namespaceId,v.triggerName,null).forEach(O=>{zt(ne,D,[]).push(O),O.destroy()})});let j=b.filter(v=>pC(v,l,c)),Fe=new Map;fC(Fe,this.driver,k,c,Pn).forEach(v=>{pC(v,l,c)&&j.push(v)});let L=new Map;d.forEach((v,D)=>{fC(L,this.driver,new Set(v),l,Zc)}),j.forEach(v=>{let D=Fe.get(v),S=L.get(v);Fe.set(v,new Map([...D?.entries()??[],...S?.entries()??[]]))});let M=[],x=[],R={};s.forEach(v=>{let{element:D,player:S,instruction:O}=v;if(r.has(D)){if(u.has(D)){S.onDestroy(()=>Fn(D,O.toStyles)),S.disabled=!0,S.overrideTotalTime(O.totalTime),i.push(S);return}let K=R;if(B.size>1){let ce=D,Le=[];for(;ce=ce.parentNode;){let ue=B.get(ce);if(ue){K=ue;break}Le.push(ce)}Le.forEach(ue=>B.set(ue,K))}let he=this._buildAnimation(S.namespaceId,O,ne,o,L,Fe);if(S.setRealPlayer(he),K===R)M.push(S);else{let ce=this.playersByElement.get(K);ce&&ce.length&&(S.parentPlayer=Sr(ce)),i.push(S)}}else oi(D,O.fromStyles),S.onDestroy(()=>Fn(D,O.toStyles)),x.push(S),u.has(D)&&i.push(S)}),x.forEach(v=>{let D=o.get(v.element);if(D&&D.length){let S=Sr(D);v.setRealPlayer(S)}}),i.forEach(v=>{v.parentPlayer?v.syncPlayerEvents(v.parentPlayer):v.destroy()});for(let v=0;v<b.length;v++){let D=b[v],S=D[bn];if(No(D,Jm),S&&S.hasAnimation)continue;let O=[];if(a.size){let he=a.get(D);he&&he.length&&O.push(...he);let ce=this.driver.query(D,Xm,!0);for(let Le=0;Le<ce.length;Le++){let ue=a.get(ce[Le]);ue&&ue.length&&O.push(...ue)}}let K=O.filter(he=>!he.destroyed);K.length?vL(this,D,K):this.processLeaveNode(D)}return b.length=0,M.forEach(v=>{this.players.push(v),v.onDone(()=>{v.destroy();let D=this.players.indexOf(v);this.players.splice(D,1)}),v.play()}),M}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 l=!o||o==fa;a.forEach(c=>{c.queued||!l&&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 l of n.timelines){let c=l.element,u=c!==o,f=zt(r,c,[]);this._getPreviousPlayers(c,u,s,a,n.toState).forEach(d=>{let p=d.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),d.destroy(),f.push(d)})}oi(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,s){let a=n.triggerName,l=n.element,c=[],u=new Set,f=new Set,h=n.timelines.map(p=>{let g=p.element;u.add(g);let b=g[bn];if(b&&b.removedBeforeQueried)return new Dr(p.duration,p.delay);let E=g!==l,k=_L((r.get(g)||hL).map(ne=>ne.getRealPlayer())).filter(ne=>{let B=ne;return B.element?B.element===g:!1}),N=o.get(g),V=s.get(g),Q=mC(this._normalizer,p.keyframes,N,V),te=this._buildPlayer(p,Q,k);if(p.subTimeline&&i&&f.add(g),E){let ne=new ga(e,a,g);ne.setRealPlayer(te),c.push(ne)}return te});c.forEach(p=>{zt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>mL(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>on(p,iC));let d=Sr(h);return d.onDestroy(()=>{u.forEach(p=>No(p,iC)),Fn(l,n.toStyles)}),f.forEach(p=>{zt(i,p,[]).push(d)}),d}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new Dr(e.duration,e.delay)}},ga=class{namespaceId;triggerName;element;_player=new Dr;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>hg(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){zt(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 mL(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 gL(t){return t??null}function eu(t){return t&&t.nodeType===1}function yL(t){return t=="start"||t=="done"}function dC(t,e){let n=t.style.display;return t.style.display=e??"none",n}function fC(t,e,n,r,i){let o=[];n.forEach(l=>o.push(dC(l)));let s=[];r.forEach((l,c)=>{let u=new Map;l.forEach(f=>{let h=e.computeStyle(c,f,i);u.set(f,h),(!h||h.length==0)&&(c[bn]=pL,s.push(c))}),t.set(c,u)});let a=0;return n.forEach(l=>dC(l,o[a++])),s}function hC(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 l=o.get(a);if(l)return l;let c=a.parentNode;return n.has(c)?l=c:i.has(c)?l=r:l=s(c),o.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==r&&n.get(l).push(a)}),n}function on(t,e){t.classList?.add(e)}function No(t,e){t.classList?.remove(e)}function vL(t,e,n){Sr(n).onDone(()=>t.processLeaveNode(e))}function _L(t){let e=[];return IC(t,e),e}function IC(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof la?IC(r.players,e):e.push(r)}}function bL(t,e){let n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){let o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}function pC(t,e,n){let r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(o=>i.add(o)):e.set(t,r),n.delete(t),!0}var Ao=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new dg(e.body,n,r),this._timelineEngine=new cg(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 l=[],c=[],u=DC(this._driver,o,l,c);if(l.length)throw bF(i,l);a=sL(i,u,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]=nC(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]=nC(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 wL(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Qm(e[0]),e.length>1&&(r=Qm(e[e.length-1]))):e instanceof Map&&(n=Qm(e)),n||r?new DL(t,n,r):null}var DL=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(n,r,i){this._element=n,this._startStyles=r,this._endStyles=i;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Fn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fn(this._element,this._initialStyles),this._endStyles&&(Fn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(oi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(oi(this._element,this._endStyles),this._endStyles=null),Fn(this._element,this._initialStyles),this._state=3)}}return t})();function Qm(t){let e=null;return t.forEach((n,r)=>{EL(r)&&(e=e||new Map,e.set(r,n))}),e}function EL(t){return t==="display"||t==="position"}var cu=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,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:vg(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},uu=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return gC(e,n)}getParentElement(e){return mg(e)}query(e,n,r){return yC(e,n,r)}computeStyle(e,n,r){return vg(e,n)}animate(e,n,r,i,o,s=[]){let a=i==0?"both":"forwards",l={duration:r,delay:i,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(d=>d instanceof cu);UF(r,i)&&u.forEach(d=>{d.currentSnapshot.forEach((p,g)=>c.set(g,p))});let f=$F(n).map(d=>new Map(d));f=zF(e,f,c);let h=wL(e,f);return new cu(e,f,l,h)}};var tu="@",xC="@.disabled",du=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,n,r,i){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,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.parentNode(n)&&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)==tu&&n==xC?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r,i){return this.delegate.listen(e,n,r,i)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}},fg=class extends du{factory;constructor(e,n,r,i,o){super(n,r,i,o),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==tu?n.charAt(1)=="."&&n==xC?(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,i){if(n.charAt(0)==tu){let o=CL(e),s=n.slice(1),a="";return s.charAt(0)!=tu&&([s,a]=SL(s)),this.engine.listen(this.namespaceId,o,s,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,r,l)})}return this.delegate.listen(e,n,r,i)}};function CL(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function SL(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var fu=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,n.onRemovalComplete=(i,o)=>{o?.removeChild(null,i)}}createRenderer(e,n){let r="",i=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let c=this._rendererCache,u=c.get(i);if(!u){let f=()=>c.delete(i);u=new du(r,i,this.engine,f),c.set(i,u)}return u}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>
46{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,e,c.name,c)};return n.data.animation.forEach(a),new fg(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&&e<this._microtaskId){this._zone.run(()=>n(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()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var xL=(()=>{class t extends Ao{constructor(n,r,i){super(n,r,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(r){return new(r||t)(U(pe),U(si),U(ai))};static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();function ML(){return new iu}function TL(t,e,n){return new fu(t,e,n)}var MC=[{provide:ai,useFactory:ML},{provide:Ao,useClass:xL},{provide:pt,useFactory:TL,deps:[Jl,Ao,se]}],vX=[{provide:si,useClass:gg},{provide:ls,useValue:"NoopAnimations"},...MC],NL=[{provide:si,useFactory:()=>new uu},{provide:ls,useFactory:()=>"BrowserAnimations"},...MC];function TC(){return Tn("NgEagerAnimations"),[...NL]}var NC={providers:[ab(),Ab(),TC(),K0([OE,kE,RE,...eC])]};jb(NC).then(t=>{let e=ub(WE,{injector:t.injector});customElements.define("gs-notification-center",e)}).catch(t=>console.error(t));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.