(self.webpackChunkroad_report=self.webpackChunkroad_report||[]).push([[792],{5471:(bt,Ae,O)=>{"use strict";O.d(Ae,{u:()=>le});var r=O(1626),P=O(3838),se=O(8699),oe=O(8185),Q=O(7552),Y=O(7110);let le=(()=>{class W{constructor(ue,re,Ue,ae){this.http=ue,this.router=re,this.jwtHelper=Ue,this.helpers=ae,this.token="access_token",this.jwtToken="access_jwt_token",this.authURL="/auth/login",this.logoutURL="/logout"}btoa(ue){return typeof window<"u"?this.btoaUtf8(ue):P.hp.from(ue,"binary").toString("base64")}btoaUtf8(ue){const re=encodeURIComponent(ue).replace(/%([0-9A-F]{2})/g,(Ue,ae)=>String.fromCharCode(parseInt(ae,16)));return window.btoa(re)}login({username:ue,password:re,remember_me:Ue}){const ae="Basic "+this.btoa(`${ue}:${re}`),J=(new r.Lr).append("Authorization",ae);return this.http.post(this.authURL,{remember_me:Ue},{headers:J})}setToken(ue){localStorage.setItem(this.token,ue)}getToken(){return localStorage.getItem(this.token)??""}setJwtToken(ue){localStorage.setItem(this.jwtToken,ue)}getJwtToken(){return localStorage.getItem(this.jwtToken)??""}removeToken(){localStorage.removeItem(this.token),localStorage.removeItem(this.jwtToken)}isAuthenticated(){return!this.jwtHelper.isTokenExpired(this.getJwtToken())}authRedirect(){this.removeToken(),this.router.navigate(["auth"],{queryParams:{url:this.router.url}}),this.helpers.toast("error","Silahkan login terlebih dahulu")}getLoggedUser(ue=null){if(!this.isAuthenticated())return this.authRedirect(),null;const re=ue??this.getJwtToken(),Ue=this.jwtHelper.decodeToken(re);return Ue?Ue.user:(this.authRedirect(),null)}logout(){this.http.post("https://api-roadreport.pisdev.my.id/auth/logout",{}).subscribe(()=>{this.getLoggedUser()&&(this.removeToken(),this.router.navigate(["auth"]))}),console.log("tes")}static{this.\u0275fac=function(re){return new(re||W)(se.KVO(r.Qq),se.KVO(oe.Ix),se.KVO(Q.X7),se.KVO(Y.V))}}static{this.\u0275prov=se.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}}return W})()},7110:(bt,Ae,O)=>{"use strict";O.d(Ae,{V:()=>ue});var r=O(1626),P=O(7374),oe=O(5164),W=(O(1275),O(8699)),Re=O(5794);let ue=(()=>{class re{constructor(ae){this.toastr=ae,P.locale("id")}toHttpParams(ae,J,fe){const Ne=Object.keys(ae);return Ne.length&&("filter"===fe?Ne.forEach(Qe=>{const it=Object.keys(ae[Qe]);it.length&&it.forEach(_t=>{J=J.set(`${Qe}[${_t}]`,ae[Qe][_t])})}):J=J.set(`search[${ae.fields}]`,ae.value)),ae.operation&&(J=J.set("operation",ae.operation)),J}generateParams(ae){const{page:J,limit:fe,sort:Ne,fields:Qe,embed:it,search:_t,filter:We,operation:_e,embedOptions:Be}=ae;let et=new r.Nl;return null!=J&&J>-1&&(et=et.set("page",J.toString())),null!=fe&&fe>-1&&(et=et.set("limit",fe.toString())),Ne&&(et=et.set("sort",Ne)),Qe&&(et=et.set("fields",Qe)),it&&(et=et.set("embed",it)),_t&&(et=this.toHttpParams(_t,et,"search")),We&&(et=this.toHttpParams(We,et,"filter")),_e&&(et=et.set("operation",_e)),Be&&"object"==typeof Be&&Be.forEach(ht=>{ht.embed&&(ht.fields&&(et=et.set(`${ht.embed}.fields`,ht.fields)),ht.sort&&(et=et.set(`${ht.embed}.sort`,ht.sort)))}),et}toast(ae,J){"success"===ae?this.toastr.success(J):"error"===ae?this.toastr.error(J):this.toastr.info(J)}isInvalid(ae,J){return ae.get(J)?.invalid&&(ae.get(J)?.dirty||ae.get(J)?.touched)||!1}hasError(ae,J,fe){return ae.get(J)?.invalid&&(ae.get(J)?.dirty||ae.get(J)?.touched)&&ae.get(J)?.hasError(fe)||!1}previousUrl(ae){const J=ae.url.split("/");return J.splice(0,J.length-1).join("/")}timeAgo(ae){return P.extend(oe),P(ae).fromNow()}static{this.\u0275fac=function(J){return new(J||re)(W.KVO(Re.tw))}}static{this.\u0275prov=W.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}}return re})()},1316:(bt,Ae,O)=>{"use strict";var r=O(345),P=O(8699),se=O(9969);function Q(B){return new P.wOt(3e3,!1)}function Te(B){switch(B.length){case 0:return new se.sf;case 1:return B[0];default:return new se.ui(B)}}function tt(B,f,_=new Map,T=new Map){const V=[],G=[];let he=-1,me=null;if(f.forEach(h=>{const I=h.get("offset"),E=I==he,A=E&&me||new Map;h.forEach((K,Se)=>{let ke=Se,dt=K;if("offset"!==Se)switch(ke=B.normalizePropertyName(ke,V),dt){case se.FX:dt=_.get(Se);break;case se.kp:dt=T.get(Se);break;default:dt=B.normalizeStyleValue(Se,ke,dt,V)}A.set(ke,dt)}),E||G.push(A),me=A,he=I}),V.length)throw function Fe(B){return new P.wOt(3502,!1)}();return G}function rt(B,f,_,T){switch(f){case"start":B.onStart(()=>T(_&&ct(_,"start",B)));break;case"done":B.onDone(()=>T(_&&ct(_,"done",B)));break;case"destroy":B.onDestroy(()=>T(_&&ct(_,"destroy",B)))}}function ct(B,f,_){const G=Pt(B.element,B.triggerName,B.fromState,B.toState,f||B.phaseName,_.totalTime??B.totalTime,!!_.disabled),he=B._data;return null!=he&&(G._data=he),G}function Pt(B,f,_,T,V="",G=0,he){return{element:B,triggerName:f,fromState:_,toState:T,phaseName:V,totalTime:G,disabled:!!he}}function ft(B,f,_){let T=B.get(f);return T||B.set(f,T=_),T}function tn(B){const f=B.indexOf(":");return[B.substring(1,f),B.slice(f+1)]}const Lt=(()=>typeof document>"u"?null:document.documentElement)();function Ft(B){const f=B.parentNode||B.host||null;return f===Lt?null:f}let Ee=null,F=!1;function Me(B,f){for(;f;){if(f===B)return!0;f=Ft(f)}return!1}function z(B,f,_){if(_)return Array.from(B.querySelectorAll(f));const T=B.querySelector(f);return T?[T]:[]}let Je=(()=>{class B{validateStyleProperty(_){return function w(B){Ee||(Ee=function $(){return typeof document<"u"?document.body:null}()||{},F=!!Ee.style&&"WebkitAppearance"in Ee.style);let f=!0;return Ee.style&&!function ge(B){return"ebkit"==B.substring(1,6)}(B)&&(f=B in Ee.style,!f&&F&&(f="Webkit"+B.charAt(0).toUpperCase()+B.slice(1)in Ee.style)),f}(_)}matchesElement(_,T){return!1}containsElement(_,T){return Me(_,T)}getParentElement(_){return Ft(_)}query(_,T,V){return z(_,T,V)}computeStyle(_,T,V){return V||""}animate(_,T,V,G,he,me=[],h){return new se.sf(V,G)}static{this.\u0275fac=function(T){return new(T||B)}}static{this.\u0275prov=P.jDH({token:B,factory:B.\u0275fac})}}return B})(),nt=(()=>{class B{static{this.NOOP=new Je}}return B})();const Vt=1e3,wn="ng-enter",rn="ng-leave",pn="ng-trigger",bn=".ng-trigger",Nn="ng-animating",vn=".ng-animating";function ki(B){if("number"==typeof B)return B;const f=B.match(/^(-?[\.\d]+)(m?s)/);return!f||f.length<2?0:Yt(parseFloat(f[1]),f[2])}function Yt(B,f){return"s"===f?B*Vt:B}function oi(B,f,_){return B.hasOwnProperty("duration")?B:function Mi(B,f,_){let V,G=0,he="";if("string"==typeof B){const me=B.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===me)return f.push(Q()),{duration:0,delay:0,easing:""};V=Yt(parseFloat(me[1]),me[2]);const h=me[3];null!=h&&(G=Yt(parseFloat(h),me[4]));const I=me[5];I&&(he=I)}else V=B;if(!_){let me=!1,h=f.length;V<0&&(f.push(function Y(){return new P.wOt(3100,!1)}()),me=!0),G<0&&(f.push(function le(){return new P.wOt(3101,!1)}()),me=!0),me&&f.splice(h,0,Q())}return{duration:V,delay:G,easing:he}}(B,f,_)}function Hn(B,f={}){return Object.keys(B).forEach(_=>{f[_]=B[_]}),f}function ai(B){const f=new Map;return Object.keys(B).forEach(_=>{f.set(_,B[_])}),f}function Un(B,f=new Map,_){if(_)for(let[T,V]of _)f.set(T,V);for(let[T,V]of B)f.set(T,V);return f}function li(B,f,_){f.forEach((T,V)=>{const G=Ct(V);_&&!_.has(V)&&_.set(V,B.style[G]),B.style[G]=T})}function yi(B,f){f.forEach((_,T)=>{const V=Ct(T);B.style[V]=""})}function Li(B){return Array.isArray(B)?1==B.length?B[0]:(0,se.K2)(B):B}const qe=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ge(B){let f=[];if("string"==typeof B){let _;for(;_=qe.exec(B);)f.push(_[1]);qe.lastIndex=0}return f}function ee(B,f,_){const T=B.toString(),V=T.replace(qe,(G,he)=>{let me=f[he];return null==me&&(_.push(function Re(B){return new P.wOt(3003,!1)}()),me=""),me.toString()});return V==T?B:V}function ve(B){const f=[];let _=B.next();for(;!_.done;)f.push(_.value),_=B.next();return f}const st=/-+([a-z0-9])/g;function Ct(B){return B.replace(st,(...f)=>f[1].toUpperCase())}function $t(B,f,_){switch(f.type){case 7:return B.visitTrigger(f,_);case 0:return B.visitState(f,_);case 1:return B.visitTransition(f,_);case 2:return B.visitSequence(f,_);case 3:return B.visitGroup(f,_);case 4:return B.visitAnimate(f,_);case 5:return B.visitKeyframes(f,_);case 6:return B.visitStyle(f,_);case 8:return B.visitReference(f,_);case 9:return B.visitAnimateChild(f,_);case 10:return B.visitAnimateRef(f,_);case 11:return B.visitQuery(f,_);case 12:return B.visitStagger(f,_);default:throw function ue(B){return new P.wOt(3004,!1)}()}}function ei(B,f){return window.getComputedStyle(B)[f]}const Tt="*";function Mt(B,f){const _=[];return"string"==typeof B?B.split(/\s*,\s*/).forEach(T=>function Fn(B,f,_){if(":"==B[0]){const h=function Gt(B,f){switch(B){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(_,T)=>parseFloat(T)>parseFloat(_);case":decrement":return(_,T)=>parseFloat(T) *"}}(B,_);if("function"==typeof h)return void f.push(h);B=h}const T=B.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==T||T.length<4)return _.push(function ht(B){return new P.wOt(3015,!1)}()),f;const V=T[1],G=T[2],he=T[3];f.push($n(V,he));"<"==G[0]&&!(V==Tt&&he==Tt)&&f.push($n(he,V))}(T,_,f)):_.push(B),_}const kn=new Set(["true","1"]),zn=new Set(["false","0"]);function $n(B,f){const _=kn.has(B)||zn.has(B),T=kn.has(f)||zn.has(f);return(V,G)=>{let he=B==Tt||B==V,me=f==Tt||f==G;return!he&&_&&"boolean"==typeof V&&(he=V?kn.has(B):zn.has(B)),!me&&T&&"boolean"==typeof G&&(me=G?kn.has(f):zn.has(f)),he&&me}}const Bi=new RegExp("s*:selfs*,?","g");function ci(B,f,_,T){return new Mn(B).build(f,_,T)}class Mn{constructor(f){this._driver=f}build(f,_,T){const V=new ti(_);return this._resetContextStyleTimingState(V),$t(this,Li(f),V)}_resetContextStyleTimingState(f){f.currentQuerySelector="",f.collectedStyles=new Map,f.collectedStyles.set("",new Map),f.currentTime=0}visitTrigger(f,_){let T=_.queryCount=0,V=_.depCount=0;const G=[],he=[];return"@"==f.name.charAt(0)&&_.errors.push(function Ue(){return new P.wOt(3006,!1)}()),f.definitions.forEach(me=>{if(this._resetContextStyleTimingState(_),0==me.type){const h=me,I=h.name;I.toString().split(/\s*,\s*/).forEach(E=>{h.name=E,G.push(this.visitState(h,_))}),h.name=I}else if(1==me.type){const h=this.visitTransition(me,_);T+=h.queryCount,V+=h.depCount,he.push(h)}else _.errors.push(function ae(){return new P.wOt(3007,!1)}())}),{type:7,name:f.name,states:G,transitions:he,queryCount:T,depCount:V,options:null}}visitState(f,_){const T=this.visitStyle(f.styles,_),V=f.options&&f.options.params||null;if(T.containsDynamicStyles){const G=new Set,he=V||{};T.styles.forEach(me=>{me instanceof Map&&me.forEach(h=>{Ge(h).forEach(I=>{he.hasOwnProperty(I)||G.add(I)})})}),G.size&&(ve(G.values()),_.errors.push(function J(B,f){return new P.wOt(3008,!1)}()))}return{type:0,name:f.name,style:T,options:V?{params:V}:null}}visitTransition(f,_){_.queryCount=0,_.depCount=0;const T=$t(this,Li(f.animation),_);return{type:1,matchers:Mt(f.expr,_.errors),animation:T,queryCount:_.queryCount,depCount:_.depCount,options:Si(f.options)}}visitSequence(f,_){return{type:2,steps:f.steps.map(T=>$t(this,T,_)),options:Si(f.options)}}visitGroup(f,_){const T=_.currentTime;let V=0;const G=f.steps.map(he=>{_.currentTime=T;const me=$t(this,he,_);return V=Math.max(V,_.currentTime),me});return _.currentTime=V,{type:3,steps:G,options:Si(f.options)}}visitAnimate(f,_){const T=function ni(B,f){if(B.hasOwnProperty("duration"))return B;if("number"==typeof B)return Ai(oi(B,f).duration,0,"");const _=B;if(_.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=Ai(0,0,"");return G.dynamic=!0,G.strValue=_,G}const V=oi(_,f);return Ai(V.duration,V.delay,V.easing)}(f.timings,_.errors);_.currentAnimateTimings=T;let V,G=f.styles?f.styles:(0,se.iF)({});if(5==G.type)V=this.visitKeyframes(G,_);else{let he=f.styles,me=!1;if(!he){me=!0;const I={};T.easing&&(I.easing=T.easing),he=(0,se.iF)(I)}_.currentTime+=T.duration+T.delay;const h=this.visitStyle(he,_);h.isEmptyStep=me,V=h}return _.currentAnimateTimings=null,{type:4,timings:T,style:V,options:null}}visitStyle(f,_){const T=this._makeStyleAst(f,_);return this._validateStyleAst(T,_),T}_makeStyleAst(f,_){const T=[],V=Array.isArray(f.styles)?f.styles:[f.styles];for(let me of V)"string"==typeof me?me===se.kp?T.push(me):_.errors.push(new P.wOt(3002,!1)):T.push(ai(me));let G=!1,he=null;return T.forEach(me=>{if(me instanceof Map&&(me.has("easing")&&(he=me.get("easing"),me.delete("easing")),!G))for(let h of me.values())if(h.toString().indexOf("{{")>=0){G=!0;break}}),{type:6,styles:T,easing:he,offset:f.offset,containsDynamicStyles:G,options:null}}_validateStyleAst(f,_){const T=_.currentAnimateTimings;let V=_.currentTime,G=_.currentTime;T&&G>0&&(G-=T.duration+T.delay),f.styles.forEach(he=>{"string"!=typeof he&&he.forEach((me,h)=>{const I=_.collectedStyles.get(_.currentQuerySelector),E=I.get(h);let A=!0;E&&(G!=V&&G>=E.startTime&&V<=E.endTime&&(_.errors.push(function Qe(B,f,_,T,V){return new P.wOt(3010,!1)}()),A=!1),G=E.startTime),A&&I.set(h,{startTime:G,endTime:V}),_.options&&function mr(B,f,_){const T=f.params||{},V=Ge(B);V.length&&V.forEach(G=>{T.hasOwnProperty(G)||_.push(function W(B){return new P.wOt(3001,!1)}())})}(me,_.options,_.errors)})})}visitKeyframes(f,_){const T={type:5,styles:[],options:null};if(!_.currentAnimateTimings)return _.errors.push(function it(){return new P.wOt(3011,!1)}()),T;let G=0;const he=[];let me=!1,h=!1,I=0;const E=f.steps.map(nn=>{const kt=this._makeStyleAst(nn,_);let Kt=null!=kt.offset?kt.offset:function bi(B){if("string"==typeof B)return null;let f=null;if(Array.isArray(B))B.forEach(_=>{if(_ instanceof Map&&_.has("offset")){const T=_;f=parseFloat(T.get("offset")),T.delete("offset")}});else if(B instanceof Map&&B.has("offset")){const _=B;f=parseFloat(_.get("offset")),_.delete("offset")}return f}(kt.styles),mn=0;return null!=Kt&&(G++,mn=kt.offset=Kt),h=h||mn<0||mn>1,me=me||mn0&&G{const Kt=K>0?kt==Se?1:K*kt:he[kt],mn=Kt*Xt;_.currentTime=ke+dt.delay+mn,dt.duration=mn,this._validateStyleAst(nn,_),nn.offset=Kt,T.styles.push(nn)}),T}visitReference(f,_){return{type:8,animation:$t(this,Li(f.animation),_),options:Si(f.options)}}visitAnimateChild(f,_){return _.depCount++,{type:9,options:Si(f.options)}}visitAnimateRef(f,_){return{type:10,animation:this.visitReference(f.animation,_),options:Si(f.options)}}visitQuery(f,_){const T=_.currentQuerySelector,V=f.options||{};_.queryCount++,_.currentQuery=f;const[G,he]=function ui(B){const f=!!B.split(/\s*,\s*/).find(_=>":self"==_);return f&&(B=B.replace(Bi,"")),B=B.replace(/@\*/g,bn).replace(/@\w+/g,_=>bn+"-"+_.slice(1)).replace(/:animating/g,vn),[B,f]}(f.selector);_.currentQuerySelector=T.length?T+" "+G:G,ft(_.collectedStyles,_.currentQuerySelector,new Map);const me=$t(this,Li(f.animation),_);return _.currentQuery=null,_.currentQuerySelector=T,{type:11,selector:G,limit:V.limit||0,optional:!!V.optional,includeSelf:he,animation:me,originalSelector:f.selector,options:Si(f.options)}}visitStagger(f,_){_.currentQuery||_.errors.push(function Be(){return new P.wOt(3013,!1)}());const T="full"===f.timings?{duration:0,delay:0,easing:"full"}:oi(f.timings,_.errors,!0);return{type:12,animation:$t(this,Li(f.animation),_),timings:T,options:null}}}class ti{constructor(f){this.errors=f,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Si(B){return B?(B=Hn(B)).params&&(B.params=function Gi(B){return B?Hn(B):null}(B.params)):B={},B}function Ai(B,f,_){return{duration:B,delay:f,easing:_}}function Kn(B,f,_,T,V,G,he=null,me=!1){return{type:1,element:B,keyframes:f,preStyleProps:_,postStyleProps:T,duration:V,delay:G,totalTime:V+G,easing:he,subTimeline:me}}class tr{constructor(){this._map=new Map}get(f){return this._map.get(f)||[]}append(f,_){let T=this._map.get(f);T||this._map.set(f,T=[]),T.push(..._)}has(f){return this._map.has(f)}clear(){this._map.clear()}}const Us=new RegExp(":enter","g"),Ao=new RegExp(":leave","g");function Vi(B,f,_,T,V,G=new Map,he=new Map,me,h,I=[]){return(new js).buildKeyframes(B,f,_,T,V,G,he,me,h,I)}class js{buildKeyframes(f,_,T,V,G,he,me,h,I,E=[]){I=I||new tr;const A=new rs(f,_,I,V,G,E,[]);A.options=h;const K=h.delay?ki(h.delay):0;A.currentTimeline.delayNextStep(K),A.currentTimeline.setStyles([he],null,A.errors,h),$t(this,T,A);const Se=A.timelines.filter(ke=>ke.containsAnimation());if(Se.length&&me.size){let ke;for(let dt=Se.length-1;dt>=0;dt--){const Xt=Se[dt];if(Xt.element===_){ke=Xt;break}}ke&&!ke.allowOnlyTimelineStyles()&&ke.setStyles([me],null,A.errors,h)}return Se.length?Se.map(ke=>ke.buildKeyframes()):[Kn(_,[],[],[],0,K,"",!1)]}visitTrigger(f,_){}visitState(f,_){}visitTransition(f,_){}visitAnimateChild(f,_){const T=_.subInstructions.get(_.element);if(T){const V=_.createSubContext(f.options),G=_.currentTimeline.currentTime,he=this._visitSubInstructions(T,V,V.options);G!=he&&_.transformIntoNewTimeline(he)}_.previousNode=f}visitAnimateRef(f,_){const T=_.createSubContext(f.options);T.transformIntoNewTimeline(),this._applyAnimationRefDelays([f.options,f.animation.options],_,T),this.visitReference(f.animation,T),_.transformIntoNewTimeline(T.currentTimeline.currentTime),_.previousNode=f}_applyAnimationRefDelays(f,_,T){for(const V of f){const G=V?.delay;if(G){const he="number"==typeof G?G:ki(ee(G,V?.params??{},_.errors));T.delayNextStep(he)}}}_visitSubInstructions(f,_,T){let G=_.currentTimeline.currentTime;const he=null!=T.duration?ki(T.duration):null,me=null!=T.delay?ki(T.delay):null;return 0!==he&&f.forEach(h=>{const I=_.appendInstructionToTimeline(h,he,me);G=Math.max(G,I.duration+I.delay)}),G}visitReference(f,_){_.updateOptions(f.options,!0),$t(this,f.animation,_),_.previousNode=f}visitSequence(f,_){const T=_.subContextCount;let V=_;const G=f.options;if(G&&(G.params||G.delay)&&(V=_.createSubContext(G),V.transformIntoNewTimeline(),null!=G.delay)){6==V.previousNode.type&&(V.currentTimeline.snapshotCurrentStyles(),V.previousNode=Cr);const he=ki(G.delay);V.delayNextStep(he)}f.steps.length&&(f.steps.forEach(he=>$t(this,he,V)),V.currentTimeline.applyStylesToKeyframe(),V.subContextCount>T&&V.transformIntoNewTimeline()),_.previousNode=f}visitGroup(f,_){const T=[];let V=_.currentTimeline.currentTime;const G=f.options&&f.options.delay?ki(f.options.delay):0;f.steps.forEach(he=>{const me=_.createSubContext(f.options);G&&me.delayNextStep(G),$t(this,he,me),V=Math.max(V,me.currentTimeline.currentTime),T.push(me.currentTimeline)}),T.forEach(he=>_.currentTimeline.mergeTimelineCollectedStyles(he)),_.transformIntoNewTimeline(V),_.previousNode=f}_visitTiming(f,_){if(f.dynamic){const T=f.strValue;return oi(_.params?ee(T,_.params,_.errors):T,_.errors)}return{duration:f.duration,delay:f.delay,easing:f.easing}}visitAnimate(f,_){const T=_.currentAnimateTimings=this._visitTiming(f.timings,_),V=_.currentTimeline;T.delay&&(_.incrementTime(T.delay),V.snapshotCurrentStyles());const G=f.style;5==G.type?this.visitKeyframes(G,_):(_.incrementTime(T.duration),this.visitStyle(G,_),V.applyStylesToKeyframe()),_.currentAnimateTimings=null,_.previousNode=f}visitStyle(f,_){const T=_.currentTimeline,V=_.currentAnimateTimings;!V&&T.hasCurrentStyleProperties()&&T.forwardFrame();const G=V&&V.easing||f.easing;f.isEmptyStep?T.applyEmptyStep(G):T.setStyles(f.styles,G,_.errors,_.options),_.previousNode=f}visitKeyframes(f,_){const T=_.currentAnimateTimings,V=_.currentTimeline.duration,G=T.duration,me=_.createSubContext().currentTimeline;me.easing=T.easing,f.styles.forEach(h=>{me.forwardTime((h.offset||0)*G),me.setStyles(h.styles,h.easing,_.errors,_.options),me.applyStylesToKeyframe()}),_.currentTimeline.mergeTimelineCollectedStyles(me),_.transformIntoNewTimeline(V+G),_.previousNode=f}visitQuery(f,_){const T=_.currentTimeline.currentTime,V=f.options||{},G=V.delay?ki(V.delay):0;G&&(6===_.previousNode.type||0==T&&_.currentTimeline.hasCurrentStyleProperties())&&(_.currentTimeline.snapshotCurrentStyles(),_.previousNode=Cr);let he=T;const me=_.invokeQuery(f.selector,f.originalSelector,f.limit,f.includeSelf,!!V.optional,_.errors);_.currentQueryTotal=me.length;let h=null;me.forEach((I,E)=>{_.currentQueryIndex=E;const A=_.createSubContext(f.options,I);G&&A.delayNextStep(G),I===_.element&&(h=A.currentTimeline),$t(this,f.animation,A),A.currentTimeline.applyStylesToKeyframe(),he=Math.max(he,A.currentTimeline.currentTime)}),_.currentQueryIndex=0,_.currentQueryTotal=0,_.transformIntoNewTimeline(he),h&&(_.currentTimeline.mergeTimelineCollectedStyles(h),_.currentTimeline.snapshotCurrentStyles()),_.previousNode=f}visitStagger(f,_){const T=_.parentContext,V=_.currentTimeline,G=f.timings,he=Math.abs(G.duration),me=he*(_.currentQueryTotal-1);let h=he*_.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":h=me-h;break;case"full":h=T.currentStaggerTime}const E=_.currentTimeline;h&&E.delayNextStep(h);const A=E.currentTime;$t(this,f.animation,_),_.previousNode=f,T.currentStaggerTime=V.currentTime-A+(V.startTime-T.currentTimeline.startTime)}}const Cr={};class rs{constructor(f,_,T,V,G,he,me,h){this._driver=f,this.element=_,this.subInstructions=T,this._enterClassName=V,this._leaveClassName=G,this.errors=he,this.timelines=me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=h||new ss(this._driver,_,0),me.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(f,_){if(!f)return;const T=f;let V=this.options;null!=T.duration&&(V.duration=ki(T.duration)),null!=T.delay&&(V.delay=ki(T.delay));const G=T.params;if(G){let he=V.params;he||(he=this.options.params={}),Object.keys(G).forEach(me=>{(!_||!he.hasOwnProperty(me))&&(he[me]=ee(G[me],he,this.errors))})}}_copyOptions(){const f={};if(this.options){const _=this.options.params;if(_){const T=f.params={};Object.keys(_).forEach(V=>{T[V]=_[V]})}}return f}createSubContext(f=null,_,T){const V=_||this.element,G=new rs(this._driver,V,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(V,T||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(f),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(f){return this.previousNode=Cr,this.currentTimeline=this.currentTimeline.fork(this.element,f),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(f,_,T){const V={duration:_??f.duration,delay:this.currentTimeline.currentTime+(T??0)+f.delay,easing:""},G=new Hi(this._driver,f.element,f.keyframes,f.preStyleProps,f.postStyleProps,V,f.stretchStartingKeyframe);return this.timelines.push(G),V}incrementTime(f){this.currentTimeline.forwardTime(this.currentTimeline.duration+f)}delayNextStep(f){f>0&&this.currentTimeline.delayNextStep(f)}invokeQuery(f,_,T,V,G,he){let me=[];if(V&&me.push(this.element),f.length>0){f=(f=f.replace(Us,"."+this._enterClassName)).replace(Ao,"."+this._leaveClassName);let I=this._driver.query(this.element,f,1!=T);0!==T&&(I=T<0?I.slice(I.length+T,I.length):I.slice(0,T)),me.push(...I)}return!G&&0==me.length&&he.push(function et(B){return new P.wOt(3014,!1)}()),me}}class ss{constructor(f,_,T,V){this._driver=f,this.element=_,this.startTime=T,this._elementTimelineStylesLookup=V,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(_),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(_,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(f){const _=1===this._keyframes.size&&this._pendingStyles.size;this.duration||_?(this.forwardTime(this.currentTime+f),_&&this.snapshotCurrentStyles()):this.startTime+=f}fork(f,_){return this.applyStylesToKeyframe(),new ss(this._driver,f,_||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(f){this.applyStylesToKeyframe(),this.duration=f,this._loadKeyframe()}_updateStyle(f,_){this._localTimelineStyles.set(f,_),this._globalTimelineStyles.set(f,_),this._styleSummary.set(f,{time:this.currentTime,value:_})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(f){f&&this._previousKeyframe.set("easing",f);for(let[_,T]of this._globalTimelineStyles)this._backFill.set(_,T||se.kp),this._currentKeyframe.set(_,se.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(f,_,T,V){_&&this._previousKeyframe.set("easing",_);const G=V&&V.params||{},he=function bs(B,f){const _=new Map;let T;return B.forEach(V=>{if("*"===V){T=T||f.keys();for(let G of T)_.set(G,se.kp)}else Un(V,_)}),_}(f,this._globalTimelineStyles);for(let[me,h]of he){const I=ee(h,G,T);this._pendingStyles.set(me,I),this._localTimelineStyles.has(me)||this._backFill.set(me,this._globalTimelineStyles.get(me)??se.kp),this._updateStyle(me,I)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((f,_)=>{this._currentKeyframe.set(_,f)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((f,_)=>{this._currentKeyframe.has(_)||this._currentKeyframe.set(_,f)}))}snapshotCurrentStyles(){for(let[f,_]of this._localTimelineStyles)this._pendingStyles.set(f,_),this._updateStyle(f,_)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const f=[];for(let _ in this._currentKeyframe)f.push(_);return f}mergeTimelineCollectedStyles(f){f._styleSummary.forEach((_,T)=>{const V=this._styleSummary.get(T);(!V||_.time>V.time)&&this._updateStyle(T,_.value)})}buildKeyframes(){this.applyStylesToKeyframe();const f=new Set,_=new Set,T=1===this._keyframes.size&&0===this.duration;let V=[];this._keyframes.forEach((me,h)=>{const I=Un(me,new Map,this._backFill);I.forEach((E,A)=>{E===se.FX?f.add(A):E===se.kp&&_.add(A)}),T||I.set("offset",h/this.duration),V.push(I)});const G=f.size?ve(f.values()):[],he=_.size?ve(_.values()):[];if(T){const me=V[0],h=new Map(me);me.set("offset",0),h.set("offset",1),V=[me,h]}return Kn(this.element,V,G,he,this.duration,this.startTime,this.easing,!1)}}class Hi extends ss{constructor(f,_,T,V,G,he,me=!1){super(f,_,he.delay),this.keyframes=T,this.preStyleProps=V,this.postStyleProps=G,this._stretchStartingKeyframe=me,this.timings={duration:he.duration,delay:he.delay,easing:he.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let f=this.keyframes,{delay:_,duration:T,easing:V}=this.timings;if(this._stretchStartingKeyframe&&_){const G=[],he=T+_,me=_/he,h=Un(f[0]);h.set("offset",0),G.push(h);const I=Un(f[0]);I.set("offset",ys(me)),G.push(I);const E=f.length-1;for(let A=1;A<=E;A++){let K=Un(f[A]);const Se=K.get("offset");K.set("offset",ys((_+Se*T)/he)),G.push(K)}T=he,_=0,V="",f=G}return Kn(this.element,f,this.preStyleProps,this.postStyleProps,T,_,V,!0)}}function ys(B,f=3){const _=Math.pow(10,f-1);return Math.round(B*_)/_}class zr{}const os=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Kr extends zr{normalizePropertyName(f,_){return Ct(f)}normalizeStyleValue(f,_,T,V){let G="";const he=T.toString().trim();if(os.has(_)&&0!==T&&"0"!==T)if("number"==typeof T)G="px";else{const me=T.match(/^[+-]?[\d\.]+([a-z]*)$/);me&&0==me[1].length&&V.push(function re(B,f){return new P.wOt(3005,!1)}())}return he+G}}function as(B,f,_,T,V,G,he,me,h,I,E,A,K){return{type:0,element:B,triggerName:f,isRemovalTransition:V,fromState:_,fromStyles:G,toState:T,toStyles:he,timelines:me,queriedElements:h,preStyleProps:I,postStyleProps:E,totalTime:A,errors:K}}const _r={};class Tr{constructor(f,_,T){this._triggerName=f,this.ast=_,this._stateStyles=T}match(f,_,T,V){return function Mr(B,f,_,T,V){return B.some(G=>G(f,_,T,V))}(this.ast.matchers,f,_,T,V)}buildStyles(f,_,T){let V=this._stateStyles.get("*");return void 0!==f&&(V=this._stateStyles.get(f?.toString())||V),V?V.buildStyles(_,T):new Map}build(f,_,T,V,G,he,me,h,I,E){const A=[],K=this.ast.options&&this.ast.options.params||_r,ke=this.buildStyles(T,me&&me.params||_r,A),dt=h&&h.params||_r,Xt=this.buildStyles(V,dt,A),nn=new Set,kt=new Map,Kt=new Map,mn="void"===V,ln={params:Pr(dt,K),delay:this.ast.options?.delay},sn=E?[]:Vi(f,_,this.ast.animation,G,he,ke,Xt,ln,I,A);let _n=0;if(sn.forEach(Ri=>{_n=Math.max(Ri.duration+Ri.delay,_n)}),A.length)return as(_,this._triggerName,T,V,mn,ke,Xt,[],[],kt,Kt,_n,A);sn.forEach(Ri=>{const mi=Ri.element,Vr=ft(kt,mi,new Set);Ri.preStyleProps.forEach(Ei=>Vr.add(Ei));const ar=ft(Kt,mi,new Set);Ri.postStyleProps.forEach(Ei=>ar.add(Ei)),mi!==_&&nn.add(mi)});const Rn=ve(nn.values());return as(_,this._triggerName,T,V,mn,ke,Xt,sn,Rn,kt,Kt,_n)}}function Pr(B,f){const _=Hn(f);for(const T in B)B.hasOwnProperty(T)&&null!=B[T]&&(_[T]=B[T]);return _}class Es{constructor(f,_,T){this.styles=f,this.defaultParams=_,this.normalizer=T}buildStyles(f,_){const T=new Map,V=Hn(this.defaultParams);return Object.keys(f).forEach(G=>{const he=f[G];null!==he&&(V[G]=he)}),this.styles.styles.forEach(G=>{"string"!=typeof G&&G.forEach((he,me)=>{he&&(he=ee(he,V,_));const h=this.normalizer.normalizePropertyName(me,_);he=this.normalizer.normalizeStyleValue(me,h,he,_),T.set(me,he)})}),T}}class jn{constructor(f,_,T){this.name=f,this.ast=_,this._normalizer=T,this.transitionFactories=[],this.states=new Map,_.states.forEach(V=>{this.states.set(V.name,new Es(V.style,V.options&&V.options.params||{},T))}),Sr(this.states,"true","1"),Sr(this.states,"false","0"),_.transitions.forEach(V=>{this.transitionFactories.push(new Tr(f,V,this.states))}),this.fallbackTransition=function di(B,f,_){return new Tr(B,{type:1,animation:{type:2,steps:[],options:null},matchers:[(he,me)=>!0],options:null,queryCount:0,depCount:0},f)}(f,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(f,_,T,V){return this.transitionFactories.find(he=>he.match(f,_,T,V))||null}matchStyles(f,_,T){return this.fallbackTransition.buildStyles(f,_,T)}}function Sr(B,f,_){B.has(f)?B.has(_)||B.set(_,B.get(f)):B.has(_)&&B.set(f,B.get(_))}const hi=new tr;class Xr{constructor(f,_,T){this.bodyNode=f,this._driver=_,this._normalizer=T,this._animations=new Map,this._playersById=new Map,this.players=[]}register(f,_){const T=[],G=ci(this._driver,_,T,[]);if(T.length)throw function Ye(B){return new P.wOt(3503,!1)}();this._animations.set(f,G)}_buildPlayer(f,_,T){const V=f.element,G=tt(this._normalizer,f.keyframes,_,T);return this._driver.animate(V,G,f.duration,f.delay,f.easing,[],!0)}create(f,_,T={}){const V=[],G=this._animations.get(f);let he;const me=new Map;if(G?(he=Vi(this._driver,_,G,wn,rn,new Map,new Map,T,hi,V),he.forEach(E=>{const A=ft(me,E.element,new Map);E.postStyleProps.forEach(K=>A.set(K,null))})):(V.push(function ne(){return new P.wOt(3300,!1)}()),he=[]),V.length)throw function De(B){return new P.wOt(3504,!1)}();me.forEach((E,A)=>{E.forEach((K,Se)=>{E.set(Se,this._driver.computeStyle(A,Se,se.kp))})});const I=Te(he.map(E=>{const A=me.get(E.element);return this._buildPlayer(E,new Map,A)}));return this._playersById.set(f,I),I.onDestroy(()=>this.destroy(f)),this.players.push(I),I}destroy(f){const _=this._getPlayer(f);_.destroy(),this._playersById.delete(f);const T=this.players.indexOf(_);T>=0&&this.players.splice(T,1)}_getPlayer(f){const _=this._playersById.get(f);if(!_)throw function $e(B){return new P.wOt(3301,!1)}();return _}listen(f,_,T,V){const G=Pt(_,"","","");return rt(this._getPlayer(f),T,G,V),()=>{}}command(f,_,T,V){if("register"==T)return void this.register(f,V[0]);if("create"==T)return void this.create(f,_,V[0]||{});const G=this._getPlayer(f);switch(T){case"play":G.play();break;case"pause":G.pause();break;case"reset":G.reset();break;case"restart":G.restart();break;case"finish":G.finish();break;case"init":G.init();break;case"setPosition":G.setPosition(parseFloat(V[0]));break;case"destroy":this.destroy(f)}}}const Qr="ng-animate-queued",Yr="ng-animate-disabled",Jt=[],Bn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ii="__ng_removed";class Di{get params(){return this.options.params}constructor(f,_=""){this.namespaceId=_;const T=f&&f.hasOwnProperty("value");if(this.value=function ws(B){return B??null}(T?f.value:f),T){const G=Hn(f);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}absorbOptions(f){const _=f.params;if(_){const T=this.options.params;Object.keys(_).forEach(V=>{null==T[V]&&(T[V]=_[V])})}}}const Wi="void",Vn=new Di(Wi);class nr{constructor(f,_,T){this.id=f,this.hostElement=_,this._engine=T,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+f,ri(_,this._hostClassName)}listen(f,_,T,V){if(!this._triggers.has(_))throw function mt(B,f){return new P.wOt(3302,!1)}();if(null==T||0==T.length)throw function It(B){return new P.wOt(3303,!1)}();if(!function Zn(B){return"start"==B||"done"==B}(T))throw function Ce(B,f){return new P.wOt(3400,!1)}();const G=ft(this._elementListeners,f,[]),he={name:_,phase:T,callback:V};G.push(he);const me=ft(this._engine.statesByElement,f,new Map);return me.has(_)||(ri(f,pn),ri(f,pn+"-"+_),me.set(_,Vn)),()=>{this._engine.afterFlush(()=>{const h=G.indexOf(he);h>=0&&G.splice(h,1),this._triggers.has(_)||me.delete(_)})}}register(f,_){return!this._triggers.has(f)&&(this._triggers.set(f,_),!0)}_getTrigger(f){const _=this._triggers.get(f);if(!_)throw function Ie(B){return new P.wOt(3401,!1)}();return _}trigger(f,_,T,V=!0){const G=this._getTrigger(_),he=new Wt(this.id,_,f);let me=this._engine.statesByElement.get(f);me||(ri(f,pn),ri(f,pn+"-"+_),this._engine.statesByElement.set(f,me=new Map));let h=me.get(_);const I=new Di(T,this.id);if(!(T&&T.hasOwnProperty("value"))&&h&&I.absorbOptions(h.options),me.set(_,I),h||(h=Vn),I.value!==Wi&&h.value===I.value){if(!function fi(B,f){const _=Object.keys(B),T=Object.keys(f);if(_.length!=T.length)return!1;for(let V=0;V<_.length;V++){const G=_[V];if(!f.hasOwnProperty(G)||B[G]!==f[G])return!1}return!0}(h.params,I.params)){const dt=[],Xt=G.matchStyles(h.value,h.params,dt),nn=G.matchStyles(I.value,I.params,dt);dt.length?this._engine.reportError(dt):this._engine.afterFlush(()=>{yi(f,Xt),li(f,nn)})}return}const K=ft(this._engine.playersByElement,f,[]);K.forEach(dt=>{dt.namespaceId==this.id&&dt.triggerName==_&&dt.queued&&dt.destroy()});let Se=G.matchTransition(h.value,I.value,f,I.params),ke=!1;if(!Se){if(!V)return;Se=G.fallbackTransition,ke=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:f,triggerName:_,transition:Se,fromState:h,toState:I,player:he,isFallbackTransition:ke}),ke||(ri(f,Qr),he.onStart(()=>{Jr(f,Qr)})),he.onDone(()=>{let dt=this.players.indexOf(he);dt>=0&&this.players.splice(dt,1);const Xt=this._engine.playersByElement.get(f);if(Xt){let nn=Xt.indexOf(he);nn>=0&&Xt.splice(nn,1)}}),this.players.push(he),K.push(he),he}deregister(f){this._triggers.delete(f),this._engine.statesByElement.forEach(_=>_.delete(f)),this._elementListeners.forEach((_,T)=>{this._elementListeners.set(T,_.filter(V=>V.name!=f))})}clearElementCache(f){this._engine.statesByElement.delete(f),this._elementListeners.delete(f);const _=this._engine.playersByElement.get(f);_&&(_.forEach(T=>T.destroy()),this._engine.playersByElement.delete(f))}_signalRemovalForInnerTriggers(f,_){const T=this._engine.driver.query(f,bn,!0);T.forEach(V=>{if(V[ii])return;const G=this._engine.fetchNamespacesByElement(V);G.size?G.forEach(he=>he.triggerLeaveAnimation(V,_,!1,!0)):this.clearElementCache(V)}),this._engine.afterFlushAnimationsDone(()=>T.forEach(V=>this.clearElementCache(V)))}triggerLeaveAnimation(f,_,T,V){const G=this._engine.statesByElement.get(f),he=new Map;if(G){const me=[];if(G.forEach((h,I)=>{if(he.set(I,h.value),this._triggers.has(I)){const E=this.trigger(f,I,Wi,V);E&&me.push(E)}}),me.length)return this._engine.markElementAsRemoved(this.id,f,!0,_,he),T&&Te(me).onDone(()=>this._engine.processLeaveNode(f)),!0}return!1}prepareLeaveAnimationListeners(f){const _=this._elementListeners.get(f),T=this._engine.statesByElement.get(f);if(_&&T){const V=new Set;_.forEach(G=>{const he=G.name;if(V.has(he))return;V.add(he);const h=this._triggers.get(he).fallbackTransition,I=T.get(he)||Vn,E=new Di(Wi),A=new Wt(this.id,he,f);this._engine.totalQueuedPlayers++,this._queue.push({element:f,triggerName:he,transition:h,fromState:I,toState:E,player:A,isFallbackTransition:!0})})}}removeNode(f,_){const T=this._engine;if(f.childElementCount&&this._signalRemovalForInnerTriggers(f,_),this.triggerLeaveAnimation(f,_,!0))return;let V=!1;if(T.totalAnimations){const G=T.players.length?T.playersByQueriedElement.get(f):[];if(G&&G.length)V=!0;else{let he=f;for(;he=he.parentNode;)if(T.statesByElement.get(he)){V=!0;break}}}if(this.prepareLeaveAnimationListeners(f),V)T.markElementAsRemoved(this.id,f,!1,_);else{const G=f[ii];(!G||G===Bn)&&(T.afterFlush(()=>this.clearElementCache(f)),T.destroyInnerAnimations(f),T._onRemovalComplete(f,_))}}insertNode(f,_){ri(f,this._hostClassName)}drainQueuedTransitions(f){const _=[];return this._queue.forEach(T=>{const V=T.player;if(V.destroyed)return;const G=T.element,he=this._elementListeners.get(G);he&&he.forEach(me=>{if(me.name==T.triggerName){const h=Pt(G,T.triggerName,T.fromState.value,T.toState.value);h._data=f,rt(T.player,me.phase,h,me.callback)}}),V.markedForDestroy?this._engine.afterFlush(()=>{V.destroy()}):_.push(T)}),this._queue=[],_.sort((T,V)=>{const G=T.transition.ast.depCount,he=V.transition.ast.depCount;return 0==G||0==he?G-he:this._engine.driver.containsElement(T.element,V.element)?1:-1})}destroy(f){this.players.forEach(_=>_.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,f)}}class ir{_onRemovalComplete(f,_){this.onRemovalComplete(f,_)}constructor(f,_,T){this.bodyNode=f,this.driver=_,this._normalizer=T,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(V,G)=>{}}get queuedPlayers(){const f=[];return this._namespaceList.forEach(_=>{_.players.forEach(T=>{T.queued&&f.push(T)})}),f}createNamespace(f,_){const T=new nr(f,_,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,_)?this._balanceNamespaceList(T,_):(this.newHostElements.set(_,T),this.collectEnterElement(_)),this._namespaceLookup[f]=T}_balanceNamespaceList(f,_){const T=this._namespaceList,V=this.namespacesByHostElement;if(T.length-1>=0){let he=!1,me=this.driver.getParentElement(_);for(;me;){const h=V.get(me);if(h){const I=T.indexOf(h);T.splice(I+1,0,f),he=!0;break}me=this.driver.getParentElement(me)}he||T.unshift(f)}else T.push(f);return V.set(_,f),f}register(f,_){let T=this._namespaceLookup[f];return T||(T=this.createNamespace(f,_)),T}registerTrigger(f,_,T){let V=this._namespaceLookup[f];V&&V.register(_,T)&&this.totalAnimations++}destroy(f,_){f&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const T=this._fetchNamespace(f);this.namespacesByHostElement.delete(T.hostElement);const V=this._namespaceList.indexOf(T);V>=0&&this._namespaceList.splice(V,1),T.destroy(_),delete this._namespaceLookup[f]}))}_fetchNamespace(f){return this._namespaceLookup[f]}fetchNamespacesByElement(f){const _=new Set,T=this.statesByElement.get(f);if(T)for(let V of T.values())if(V.namespaceId){const G=this._fetchNamespace(V.namespaceId);G&&_.add(G)}return _}trigger(f,_,T,V){if(vr(_)){const G=this._fetchNamespace(f);if(G)return G.trigger(_,T,V),!0}return!1}insertNode(f,_,T,V){if(!vr(_))return;const G=_[ii];if(G&&G.setForRemoval){G.setForRemoval=!1,G.setForMove=!0;const he=this.collectedLeaveElements.indexOf(_);he>=0&&this.collectedLeaveElements.splice(he,1)}if(f){const he=this._fetchNamespace(f);he&&he.insertNode(_,T)}V&&this.collectEnterElement(_)}collectEnterElement(f){this.collectedEnterElements.push(f)}markElementAsDisabled(f,_){_?this.disabledNodes.has(f)||(this.disabledNodes.add(f),ri(f,Yr)):this.disabledNodes.has(f)&&(this.disabledNodes.delete(f),Jr(f,Yr))}removeNode(f,_,T){if(vr(_)){const V=f?this._fetchNamespace(f):null;V?V.removeNode(_,T):this.markElementAsRemoved(f,_,!1,T);const G=this.namespacesByHostElement.get(_);G&&G.id!==f&&G.removeNode(_,T)}else this._onRemovalComplete(_,T)}markElementAsRemoved(f,_,T,V,G){this.collectedLeaveElements.push(_),_[ii]={namespaceId:f,setForRemoval:V,hasAnimation:T,removedBeforeQueried:!1,previousTriggersValues:G}}listen(f,_,T,V,G){return vr(_)?this._fetchNamespace(f).listen(_,T,V,G):()=>{}}_buildInstruction(f,_,T,V,G){return f.transition.build(this.driver,f.element,f.fromState.value,f.toState.value,T,V,f.fromState.options,f.toState.options,_,G)}destroyInnerAnimations(f){let _=this.driver.query(f,bn,!0);_.forEach(T=>this.destroyActiveAnimationsForElement(T)),0!=this.playersByQueriedElement.size&&(_=this.driver.query(f,vn,!0),_.forEach(T=>this.finishActiveQueriedAnimationOnElement(T)))}destroyActiveAnimationsForElement(f){const _=this.playersByElement.get(f);_&&_.forEach(T=>{T.queued?T.markedForDestroy=!0:T.destroy()})}finishActiveQueriedAnimationOnElement(f){const _=this.playersByQueriedElement.get(f);_&&_.forEach(T=>T.finish())}whenRenderingDone(){return new Promise(f=>{if(this.players.length)return Te(this.players).onDone(()=>f());f()})}processLeaveNode(f){const _=f[ii];if(_&&_.setForRemoval){if(f[ii]=Bn,_.namespaceId){this.destroyInnerAnimations(f);const T=this._fetchNamespace(_.namespaceId);T&&T.clearElementCache(f)}this._onRemovalComplete(f,_.setForRemoval)}f.classList?.contains(Yr)&&this.markElementAsDisabled(f,!1),this.driver.query(f,".ng-animate-disabled",!0).forEach(T=>{this.markElementAsDisabled(T,!1)})}flush(f=-1){let _=[];if(this.newHostElements.size&&(this.newHostElements.forEach((T,V)=>this._balanceNamespaceList(T,V)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let T=0;TT()),this._flushFns=[],this._whenQuietFns.length){const T=this._whenQuietFns;this._whenQuietFns=[],_.length?Te(_).onDone(()=>{T.forEach(V=>V())}):T.forEach(V=>V())}}reportError(f){throw function Oe(B){return new P.wOt(3402,!1)}()}_flushAnimations(f,_){const T=new tr,V=[],G=new Map,he=[],me=new Map,h=new Map,I=new Map,E=new Set;this.disabledNodes.forEach(Rt=>{E.add(Rt);const jt=this.driver.query(Rt,".ng-animate-queued",!0);for(let Zt=0;Zt{const Zt=wn+dt++;ke.set(jt,Zt),Rt.forEach(Ht=>ri(Ht,Zt))});const Xt=[],nn=new Set,kt=new Set;for(let Rt=0;Rtnn.add(Ht)):kt.add(jt))}const Kt=new Map,mn=Zi(K,Array.from(nn));mn.forEach((Rt,jt)=>{const Zt=rn+dt++;Kt.set(jt,Zt),Rt.forEach(Ht=>ri(Ht,Zt))}),f.push(()=>{Se.forEach((Rt,jt)=>{const Zt=ke.get(jt);Rt.forEach(Ht=>Jr(Ht,Zt))}),mn.forEach((Rt,jt)=>{const Zt=Kt.get(jt);Rt.forEach(Ht=>Jr(Ht,Zt))}),Xt.forEach(Rt=>{this.processLeaveNode(Rt)})});const ln=[],sn=[];for(let Rt=this._namespaceList.length-1;Rt>=0;Rt--)this._namespaceList[Rt].drainQueuedTransitions(_).forEach(Zt=>{const Ht=Zt.player,wi=Zt.element;if(ln.push(Ht),this.collectedEnterElements.length){const Pi=wi[ii];if(Pi&&Pi.setForMove){if(Pi.previousTriggersValues&&Pi.previousTriggersValues.has(Zt.triggerName)){const er=Pi.previousTriggersValues.get(Zt.triggerName),lr=this.statesByElement.get(Zt.element);if(lr&&lr.has(Zt.triggerName)){const Ar=lr.get(Zt.triggerName);Ar.value=er,lr.set(Zt.triggerName,Ar)}}return void Ht.destroy()}}const Qi=!A||!this.driver.containsElement(A,wi),cn=Kt.get(wi),As=ke.get(wi),Wn=this._buildInstruction(Zt,T,As,cn,Qi);if(Wn.errors&&Wn.errors.length)return void sn.push(Wn);if(Qi)return Ht.onStart(()=>yi(wi,Wn.fromStyles)),Ht.onDestroy(()=>li(wi,Wn.toStyles)),void V.push(Ht);if(Zt.isFallbackTransition)return Ht.onStart(()=>yi(wi,Wn.fromStyles)),Ht.onDestroy(()=>li(wi,Wn.toStyles)),void V.push(Ht);const Hr=[];Wn.timelines.forEach(Pi=>{Pi.stretchStartingKeyframe=!0,this.disabledNodes.has(Pi.element)||Hr.push(Pi)}),Wn.timelines=Hr,T.append(wi,Wn.timelines),he.push({instruction:Wn,player:Ht,element:wi}),Wn.queriedElements.forEach(Pi=>ft(me,Pi,[]).push(Ht)),Wn.preStyleProps.forEach((Pi,er)=>{if(Pi.size){let lr=h.get(er);lr||h.set(er,lr=new Set),Pi.forEach((Ar,uo)=>lr.add(uo))}}),Wn.postStyleProps.forEach((Pi,er)=>{let lr=I.get(er);lr||I.set(er,lr=new Set),Pi.forEach((Ar,uo)=>lr.add(uo))})});if(sn.length){const Rt=[];sn.forEach(jt=>{Rt.push(function xe(B,f){return new P.wOt(3505,!1)}())}),ln.forEach(jt=>jt.destroy()),this.reportError(Rt)}const _n=new Map,Rn=new Map;he.forEach(Rt=>{const jt=Rt.element;T.has(jt)&&(Rn.set(jt,jt),this._beforeAnimationBuild(Rt.player.namespaceId,Rt.instruction,_n))}),V.forEach(Rt=>{const jt=Rt.element;this._getPreviousPlayers(jt,!1,Rt.namespaceId,Rt.triggerName,null).forEach(Ht=>{ft(_n,jt,[]).push(Ht),Ht.destroy()})});const Ri=Xt.filter(Rt=>on(Rt,h,I)),mi=new Map;kr(mi,this.driver,kt,I,se.kp).forEach(Rt=>{on(Rt,h,I)&&Ri.push(Rt)});const ar=new Map;Se.forEach((Rt,jt)=>{kr(ar,this.driver,new Set(Rt),h,se.FX)}),Ri.forEach(Rt=>{const jt=mi.get(Rt),Zt=ar.get(Rt);mi.set(Rt,new Map([...jt?.entries()??[],...Zt?.entries()??[]]))});const Ei=[],Xi=[],va={};he.forEach(Rt=>{const{element:jt,player:Zt,instruction:Ht}=Rt;if(T.has(jt)){if(E.has(jt))return Zt.onDestroy(()=>li(jt,Ht.toStyles)),Zt.disabled=!0,Zt.overrideTotalTime(Ht.totalTime),void V.push(Zt);let wi=va;if(Rn.size>1){let cn=jt;const As=[];for(;cn=cn.parentNode;){const Wn=Rn.get(cn);if(Wn){wi=Wn;break}As.push(cn)}As.forEach(Wn=>Rn.set(Wn,wi))}const Qi=this._buildAnimation(Zt.namespaceId,Ht,_n,G,ar,mi);if(Zt.setRealPlayer(Qi),wi===va)Ei.push(Zt);else{const cn=this.playersByElement.get(wi);cn&&cn.length&&(Zt.parentPlayer=Te(cn)),V.push(Zt)}}else yi(jt,Ht.fromStyles),Zt.onDestroy(()=>li(jt,Ht.toStyles)),Xi.push(Zt),E.has(jt)&&V.push(Zt)}),Xi.forEach(Rt=>{const jt=G.get(Rt.element);if(jt&&jt.length){const Zt=Te(jt);Rt.setRealPlayer(Zt)}}),V.forEach(Rt=>{Rt.parentPlayer?Rt.syncPlayerEvents(Rt.parentPlayer):Rt.destroy()});for(let Rt=0;Rt!Qi.destroyed);wi.length?hr(this,jt,wi):this.processLeaveNode(jt)}return Xt.length=0,Ei.forEach(Rt=>{this.players.push(Rt),Rt.onDone(()=>{Rt.destroy();const jt=this.players.indexOf(Rt);this.players.splice(jt,1)}),Rt.play()}),Ei}afterFlush(f){this._flushFns.push(f)}afterFlushAnimationsDone(f){this._whenQuietFns.push(f)}_getPreviousPlayers(f,_,T,V,G){let he=[];if(_){const me=this.playersByQueriedElement.get(f);me&&(he=me)}else{const me=this.playersByElement.get(f);if(me){const h=!G||G==Wi;me.forEach(I=>{I.queued||!h&&I.triggerName!=V||he.push(I)})}}return(T||V)&&(he=he.filter(me=>!(T&&T!=me.namespaceId||V&&V!=me.triggerName))),he}_beforeAnimationBuild(f,_,T){const G=_.element,he=_.isRemovalTransition?void 0:f,me=_.isRemovalTransition?void 0:_.triggerName;for(const h of _.timelines){const I=h.element,E=I!==G,A=ft(T,I,[]);this._getPreviousPlayers(I,E,he,me,_.toState).forEach(Se=>{const ke=Se.getRealPlayer();ke.beforeDestroy&&ke.beforeDestroy(),Se.destroy(),A.push(Se)})}yi(G,_.fromStyles)}_buildAnimation(f,_,T,V,G,he){const me=_.triggerName,h=_.element,I=[],E=new Set,A=new Set,K=_.timelines.map(ke=>{const dt=ke.element;E.add(dt);const Xt=dt[ii];if(Xt&&Xt.removedBeforeQueried)return new se.sf(ke.duration,ke.delay);const nn=dt!==h,kt=function fr(B){const f=[];return pr(B,f),f}((T.get(dt)||Jt).map(_n=>_n.getRealPlayer())).filter(_n=>!!_n.element&&_n.element===dt),Kt=G.get(dt),mn=he.get(dt),ln=tt(this._normalizer,ke.keyframes,Kt,mn),sn=this._buildPlayer(ke,ln,kt);if(ke.subTimeline&&V&&A.add(dt),nn){const _n=new Wt(f,me,dt);_n.setRealPlayer(sn),I.push(_n)}return sn});I.forEach(ke=>{ft(this.playersByQueriedElement,ke.element,[]).push(ke),ke.onDone(()=>function Zr(B,f,_){let T=B.get(f);if(T){if(T.length){const V=T.indexOf(_);T.splice(V,1)}0==T.length&&B.delete(f)}return T}(this.playersByQueriedElement,ke.element,ke))}),E.forEach(ke=>ri(ke,Nn));const Se=Te(K);return Se.onDestroy(()=>{E.forEach(ke=>Jr(ke,Nn)),li(h,_.toStyles)}),A.forEach(ke=>{ft(V,ke,[]).push(Se)}),Se}_buildPlayer(f,_,T){return _.length>0?this.driver.animate(f.element,_,f.duration,f.delay,f.easing,T):new se.sf(f.duration,f.delay)}}class Wt{constructor(f,_,T){this.namespaceId=f,this.triggerName=_,this.element=T,this._player=new se.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(f){this._containsRealPlayer||(this._player=f,this._queuedCallbacks.forEach((_,T)=>{_.forEach(V=>rt(f,T,void 0,V))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(f.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(f){this.totalTime=f}syncPlayerEvents(f){const _=this._player;_.triggerCallback&&f.onStart(()=>_.triggerCallback("start")),f.onDone(()=>this.finish()),f.onDestroy(()=>this.destroy())}_queueEvent(f,_){ft(this._queuedCallbacks,f,[]).push(_)}onDone(f){this.queued&&this._queueEvent("done",f),this._player.onDone(f)}onStart(f){this.queued&&this._queueEvent("start",f),this._player.onStart(f)}onDestroy(f){this.queued&&this._queueEvent("destroy",f),this._player.onDestroy(f)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(f){this.queued||this._player.setPosition(f)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(f){const _=this._player;_.triggerCallback&&_.triggerCallback(f)}}function vr(B){return B&&1===B.nodeType}function ls(B,f){const _=B.style.display;return B.style.display=f??"none",_}function kr(B,f,_,T,V){const G=[];_.forEach(h=>G.push(ls(h)));const he=[];T.forEach((h,I)=>{const E=new Map;h.forEach(A=>{const K=f.computeStyle(I,A,V);E.set(A,K),(!K||0==K.length)&&(I[ii]=Ui,he.push(I))}),B.set(I,E)});let me=0;return _.forEach(h=>ls(h,G[me++])),he}function Zi(B,f){const _=new Map;if(B.forEach(me=>_.set(me,[])),0==f.length)return _;const V=new Set(f),G=new Map;function he(me){if(!me)return 1;let h=G.get(me);if(h)return h;const I=me.parentNode;return h=_.has(I)?I:V.has(I)?1:he(I),G.set(me,h),h}return f.forEach(me=>{const h=he(me);1!==h&&_.get(h).push(me)}),_}function ri(B,f){B.classList?.add(f)}function Jr(B,f){B.classList?.remove(f)}function hr(B,f,_){Te(_).onDone(()=>B.processLeaveNode(f))}function pr(B,f){for(let _=0;_V.add(G)):f.set(B,T),_.delete(B),!0}class Lr{constructor(f,_,T){this.bodyNode=f,this._driver=_,this._normalizer=T,this._triggerCache={},this.onRemovalComplete=(V,G)=>{},this._transitionEngine=new ir(f,_,T),this._timelineEngine=new Xr(f,_,T),this._transitionEngine.onRemovalComplete=(V,G)=>this.onRemovalComplete(V,G)}registerTrigger(f,_,T,V,G){const he=f+"-"+V;let me=this._triggerCache[he];if(!me){const h=[],E=ci(this._driver,G,h,[]);if(h.length)throw function He(B,f){return new P.wOt(3404,!1)}();me=function dn(B,f,_){return new jn(B,f,_)}(V,E,this._normalizer),this._triggerCache[he]=me}this._transitionEngine.registerTrigger(_,V,me)}register(f,_){this._transitionEngine.register(f,_)}destroy(f,_){this._transitionEngine.destroy(f,_)}onInsert(f,_,T,V){this._transitionEngine.insertNode(f,_,T,V)}onRemove(f,_,T){this._transitionEngine.removeNode(f,_,T)}disableAnimations(f,_){this._transitionEngine.markElementAsDisabled(f,_)}process(f,_,T,V){if("@"==T.charAt(0)){const[G,he]=tn(T);this._timelineEngine.command(G,_,he,V)}else this._transitionEngine.trigger(f,_,T,V)}listen(f,_,T,V,G){if("@"==T.charAt(0)){const[he,me]=tn(T);return this._timelineEngine.listen(he,_,me,G)}return this._transitionEngine.listen(f,_,T,V,G)}flush(f=-1){this._transitionEngine.flush(f)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(f){this._transitionEngine.afterFlushAnimationsDone(f)}}let $s=(()=>{class B{static{this.initialStylesByElement=new WeakMap}constructor(_,T,V){this._element=_,this._startStyles=T,this._endStyles=V,this._state=0;let G=B.initialStylesByElement.get(_);G||B.initialStylesByElement.set(_,G=new Map),this._initialStyles=G}start(){this._state<1&&(this._startStyles&&li(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(li(this._element,this._initialStyles),this._endStyles&&(li(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(B.initialStylesByElement.delete(this._element),this._startStyles&&(yi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yi(this._element,this._endStyles),this._endStyles=null),li(this._element,this._initialStyles),this._state=3)}}return B})();function rr(B){let f=null;return B.forEach((_,T)=>{(function Ts(B){return"display"===B||"position"===B})(T)&&(f=f||new Map,f.set(T,_))}),f}class Ji{constructor(f,_,T,V){this.element=f,this.keyframes=_,this.options=T,this._specialStyles=V,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=T.duration,this._delay=T.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(f=>f()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const f=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,f,this.options),this._finalKeyframe=f.length?f[f.length-1]:new Map;const _=()=>this._onFinish();this.domPlayer.addEventListener("finish",_),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",_)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(f){const _=[];return f.forEach(T=>{_.push(Object.fromEntries(T))}),_}_triggerWebAnimation(f,_,T){return f.animate(this._convertKeyframesToObject(_),T)}onStart(f){this._originalOnStartFns.push(f),this._onStartFns.push(f)}onDone(f){this._originalOnDoneFns.push(f),this._onDoneFns.push(f)}onDestroy(f){this._onDestroyFns.push(f)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(f=>f()),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(f=>f()),this._onDestroyFns=[])}setPosition(f){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=f*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const f=new Map;this.hasStarted()&&this._finalKeyframe.forEach((T,V)=>{"offset"!==V&&f.set(V,this._finished?T:ei(this.element,V))}),this.currentSnapshot=f}triggerCallback(f){const _="start"===f?this._onStartFns:this._onDoneFns;_.forEach(T=>T()),_.length=0}}class Br{validateStyleProperty(f){return!0}validateAnimatableStyleProperty(f){return!0}matchesElement(f,_){return!1}containsElement(f,_){return Me(f,_)}getParentElement(f){return Ft(f)}query(f,_,T){return z(f,_,T)}computeStyle(f,_,T){return window.getComputedStyle(f)[_]}animate(f,_,T,V,G,he=[]){const h={duration:T,delay:V,fill:0==V?"both":"forwards"};G&&(h.easing=G);const I=new Map,E=he.filter(Se=>Se instanceof Ji);(function qt(B,f){return 0===B||0===f})(T,V)&&E.forEach(Se=>{Se.currentSnapshot.forEach((ke,dt)=>I.set(dt,ke))});let A=function Qn(B){return B.length?B[0]instanceof Map?B:B.map(f=>ai(f)):[]}(_).map(Se=>Un(Se));A=function gn(B,f,_){if(_.size&&f.length){let T=f[0],V=[];if(_.forEach((G,he)=>{T.has(he)||V.push(he),T.set(he,G)}),V.length)for(let G=1;Ghe.set(me,ei(B,me)))}}return f}(f,A,I);const K=function Cs(B,f){let _=null,T=null;return Array.isArray(f)&&f.length?(_=rr(f[0]),f.length>1&&(T=rr(f[f.length-1]))):f instanceof Map&&(_=rr(f)),_||T?new $s(B,_,T):null}(f,A);return new Ji(f,A,h,K)}}var pi=O(177);let Ms=(()=>{class B extends se.S6{constructor(_,T){super(),this._nextAnimationId=0,this._renderer=_.createRenderer(T.body,{id:"0",encapsulation:P.gXe.None,styles:[],data:{animation:[]}})}build(_){const T=this._nextAnimationId.toString();this._nextAnimationId++;const V=Array.isArray(_)?(0,se.K2)(_):_;return Ss(this._renderer,null,T,"register",[V]),new gi(T,this._renderer)}static{this.\u0275fac=function(T){return new(T||B)(P.KVO(P._9s),P.KVO(pi.qQ))}}static{this.\u0275prov=P.jDH({token:B,factory:B.\u0275fac})}}return B})();class gi extends se.Ro{constructor(f,_){super(),this._id=f,this._renderer=_}create(f,_){return new Ii(this._id,f,_||{},this._renderer)}}class Ii{constructor(f,_,T,V){this.id=f,this.element=_,this._renderer=V,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",T)}_listen(f,_){return this._renderer.listen(this.element,`@@${this.id}:${f}`,_)}_command(f,..._){return Ss(this._renderer,this.element,this.id,f,_)}onDone(f){this._listen("done",f)}onStart(f){this._listen("start",f)}onDestroy(f){this._listen("destroy",f)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(f){this._command("setPosition",f)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Ss(B,f,_,T,V){return B.setProperty(f,`@@${_}:${T}`,V)}const Or="@.disabled";let sr=(()=>{class B{constructor(_,T,V){this.delegate=_,this.engine=T,this._zone=V,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,T.onRemovalComplete=(G,he)=>{const me=he?.parentNode(G);me&&he.removeChild(me,G)}}createRenderer(_,T){const G=this.delegate.createRenderer(_,T);if(!(_&&T&&T.data&&T.data.animation)){let E=this._rendererCache.get(G);return E||(E=new cs("",G,this.engine,()=>this._rendererCache.delete(G)),this._rendererCache.set(G,E)),E}const he=T.id,me=T.id+"-"+this._currentId;this._currentId++,this.engine.register(me,_);const h=E=>{Array.isArray(E)?E.forEach(h):this.engine.registerTrigger(he,me,_,E.name,E)};return T.data.animation.forEach(h),new x(this,me,G,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(_,T,V){_>=0&&_T(V)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(G=>{const[he,me]=G;he(me)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([T,V]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static{this.\u0275fac=function(T){return new(T||B)(P.KVO(P._9s),P.KVO(Lr),P.KVO(P.SKi))}}static{this.\u0275prov=P.jDH({token:B,factory:B.\u0275fac})}}return B})();class cs{constructor(f,_,T,V){this.namespaceId=f,this.delegate=_,this.engine=T,this._onDestroy=V}get data(){return this.delegate.data}destroyNode(f){this.delegate.destroyNode?.(f)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(f,_){return this.delegate.createElement(f,_)}createComment(f){return this.delegate.createComment(f)}createText(f){return this.delegate.createText(f)}appendChild(f,_){this.delegate.appendChild(f,_),this.engine.onInsert(this.namespaceId,_,f,!1)}insertBefore(f,_,T,V=!0){this.delegate.insertBefore(f,_,T),this.engine.onInsert(this.namespaceId,_,f,V)}removeChild(f,_,T){this.engine.onRemove(this.namespaceId,_,this.delegate)}selectRootElement(f,_){return this.delegate.selectRootElement(f,_)}parentNode(f){return this.delegate.parentNode(f)}nextSibling(f){return this.delegate.nextSibling(f)}setAttribute(f,_,T,V){this.delegate.setAttribute(f,_,T,V)}removeAttribute(f,_,T){this.delegate.removeAttribute(f,_,T)}addClass(f,_){this.delegate.addClass(f,_)}removeClass(f,_){this.delegate.removeClass(f,_)}setStyle(f,_,T,V){this.delegate.setStyle(f,_,T,V)}removeStyle(f,_,T){this.delegate.removeStyle(f,_,T)}setProperty(f,_,T){"@"==_.charAt(0)&&_==Or?this.disableAnimations(f,!!T):this.delegate.setProperty(f,_,T)}setValue(f,_){this.delegate.setValue(f,_)}listen(f,_,T){return this.delegate.listen(f,_,T)}disableAnimations(f,_){this.engine.disableAnimations(f,_)}}class x extends cs{constructor(f,_,T,V,G){super(_,T,V,G),this.factory=f,this.namespaceId=_}setProperty(f,_,T){"@"==_.charAt(0)?"."==_.charAt(1)&&_==Or?this.disableAnimations(f,T=void 0===T||!!T):this.engine.process(this.namespaceId,f,_.slice(1),T):this.delegate.setProperty(f,_,T)}listen(f,_,T){if("@"==_.charAt(0)){const V=function L(B){switch(B){case"body":return document.body;case"document":return document;case"window":return window;default:return B}}(f);let G=_.slice(1),he="";return"@"!=G.charAt(0)&&([G,he]=function C(B){const f=B.indexOf(".");return[B.substring(0,f),B.slice(f+1)]}(G)),this.engine.listen(this.namespaceId,V,G,he,me=>{this.factory.scheduleListenerCallback(me._data||-1,T,me)})}return this.delegate.listen(f,_,T)}}const an=[{provide:se.S6,useClass:Ms},{provide:zr,useFactory:function ie(){return new Kr}},{provide:Lr,useClass:(()=>{class B extends Lr{constructor(_,T,V,G){super(_.body,T,V)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(T){return new(T||B)(P.KVO(pi.qQ),P.KVO(nt),P.KVO(zr),P.KVO(P.o8S))}}static{this.\u0275prov=P.jDH({token:B,factory:B.\u0275fac})}}return B})()},{provide:P._9s,useFactory:function xt(B,f,_){return new sr(B,f,_)},deps:[r.B7,Lr,P.SKi]}],zi=[{provide:nt,useFactory:()=>new Br},{provide:P.bc$,useValue:"BrowserAnimations"},...an],yr=[{provide:nt,useClass:Je},{provide:P.bc$,useValue:"NoopAnimations"},...an];let Gs=(()=>{class B{static withConfig(_){return{ngModule:B,providers:_.disableAnimations?yr:zi}}static{this.\u0275fac=function(T){return new(T||B)}}static{this.\u0275mod=P.$C({type:B})}static{this.\u0275inj=P.G2t({providers:zi,imports:[r.Bb]})}}return B})();var Fs=O(8185),io=O(5471),ro=O(7110);const Ws=[{path:"",pathMatch:"full",redirectTo:"auth"},{path:"auth",loadChildren:()=>O.e(176).then(O.bind(O,1176)).then(B=>B.AuthModule),title:"Dashboard - Login",canActivate:[(B,f)=>{const _=(0,P.WQX)(io.u),T=(0,P.WQX)(Fs.Ix);return _.isAuthenticated()?(T.navigate(["/dashboard"]),!1):(_.removeToken(),!0)}]},{path:"dashboard",loadChildren:()=>O.e(984).then(O.bind(O,5984)).then(B=>B.DashboardModule),title:"Dashboard",canActivate:[(B,f)=>{const _=(0,P.WQX)(io.u),T=(0,P.WQX)(Fs.Ix),V=(0,P.WQX)(ro.V);return!!_.isAuthenticated()||(_.removeToken(),T.navigate(["/auth"],{queryParams:{url:f.url}}),V.toast("error","Silakan login terlebih dahulu"),!1)}]},{path:"**",loadChildren:()=>O.e(42).then(O.bind(O,8042)).then(B=>B.ErrorNotFoundModule),title:"Halaman Tidak Ditemukan"}];let so=(()=>{class B{static{this.\u0275fac=function(T){return new(T||B)}}static{this.\u0275mod=P.$C({type:B})}static{this.\u0275inj=P.G2t({imports:[Fs.iI.forRoot(Ws),Fs.iI]})}}return B})();var qr=O(6803);let Zo=(()=>{class B{constructor(_){this.modalConfig=_,this.title="road-report",this.modalConfig.centered=!0,this.modalConfig.scrollable=!0}static{this.\u0275fac=function(T){return new(T||B)(P.rXU(qr.LY))}}static{this.\u0275cmp=P.VBU({type:B,selectors:[["app-root"]],decls:1,vars:0,template:function(T,V){1&T&&P.nrm(0,"router-outlet")},dependencies:[Fs.n3]})}}return B})();var Ki=O(1626),or=O(7552),Ro=O(5794);const br=void 0,us=["id",[["AM","PM"],br,br],br,[["M","S","S","R","K","J","S"],["Min","Sen","Sel","Rab","Kam","Jum","Sab"],["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],["Min","Sen","Sel","Rab","Kam","Jum","Sab"]],br,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]],br,[["SM","M"],br,["Sebelum Masehi","Masehi"]],0,[6,0],["dd/MM/yy","d MMM y","d MMMM y","EEEE, dd MMMM y"],["HH.mm","HH.mm.ss","HH.mm.ss z","HH.mm.ss zzzz"],["{1} {0}",br,br,br],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN","."],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"IDR","Rp","Rupiah Indonesia",{AUD:["AU$","$"],BYN:[br,"\u0440."],IDR:["Rp"],INR:["Rs","\u20b9"],JPY:["JP\xa5","\xa5"],PHP:[br,"\u20b1"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function Ni(B){return 5}];let qi=(()=>{class B{constructor(){this.baseApi="https://api-roadreport.pisdev.my.id"}intercept(_,T){const G=_.clone({url:_.url.replace(/^(\/(api|auth).+)/,`${this.baseApi}$1`)});return T.handle(G)}static{this.\u0275fac=function(T){return new(T||B)}}static{this.\u0275prov=P.jDH({token:B,factory:B.\u0275fac})}}return B})(),ks=(()=>{class B{constructor(_){this.auth=_}intercept(_,T){return _.url.endsWith("login")||(_=_.clone({setHeaders:{Authorization:`Bearer ${this.auth.getToken()}`}})),T.handle(_)}static{this.\u0275fac=function(T){return new(T||B)(P.KVO(io.u))}}static{this.\u0275prov=P.jDH({token:B,factory:B.\u0275fac})}}return B})();var oo=O(9974),ao=O(4360),xo=O(3669),lo=O(1584),Po=O(8750),Fo=O(9437),ko=O(8810);const co=[{provide:Ki.a7,useClass:qi,multi:!0},{provide:Ki.a7,useClass:ks,multi:!0},{provide:Ki.a7,useClass:(()=>{class B{constructor(_,T,V){this.auth=_,this.router=T,this.helpers=V}intercept(_,T){return T.handle(_).pipe(function Is(B=1/0){let f;f=B&&"object"==typeof B?B:{count:B};const{count:_=1/0,delay:T,resetOnSuccess:V=!1}=f;return _<=0?xo.D:(0,oo.N)((G,he)=>{let h,me=0;const I=()=>{let E=!1;h=G.subscribe((0,ao._)(he,A=>{V&&(me=0),he.next(A)},void 0,A=>{if(me++<_){const K=()=>{h?(h.unsubscribe(),h=null,I()):E=!0};if(null!=T){const Se="number"==typeof T?(0,lo.O)(T):(0,Po.Tg)(T(A,me)),ke=(0,ao._)(he,()=>{ke.unsubscribe(),K()},()=>{he.complete()});Se.subscribe(ke)}else K()}else he.error(A)})),E&&(h.unsubscribe(),h=null,I())};I()})}(1),(0,Fo.W)(V=>{401===V.status&&(this.auth.removeToken(),this.router.navigate(["/auth"],{queryParams:{url:this.router.url}}),this.helpers.toast("error","Sesi Anda telah berakhir"));let G="";return G=V.error instanceof ErrorEvent?`Error: ${V.error.message}`:`Error Status: ${V.status}\nMessage: ${V.message}`,(0,ko.$)(()=>V)}))}static{this.\u0275fac=function(T){return new(T||B)(P.KVO(io.u),P.KVO(Fs.Ix),P.KVO(ro.V))}}static{this.\u0275prov=P.jDH({token:B,factory:B.\u0275fac})}}return B})(),multi:!0}];var zs=O(2244),Ks=O(9417);function Os(){return localStorage.getItem("access_jwt_token")}(0,pi.EO)(us,"id");const ma=["localhost","pisdev.my.id"];let _a=(()=>{class B{static{this.\u0275fac=function(T){return new(T||B)}}static{this.\u0275mod=P.$C({type:B,bootstrap:[Zo]})}static{this.\u0275inj=P.G2t({providers:[{provide:P.xe9,useValue:"id-ID"},co],imports:[zs.Ib,r.Bb,Gs,so,Ki.q1,or.QU.forRoot({config:{tokenGetter:Os,allowedDomains:ma}}),Ro._B.forRoot({timeOut:2500,positionClass:"toast-bottom-center",preventDuplicates:!0,progressBar:!0}),Ks.YN]})}}return B})();r.sG().bootstrapModule(_a).catch(B=>console.error(B))},3981:(bt,Ae)=>{"use strict";Ae.byteLength=function le(ae){var J=Y(ae),Ne=J[1];return 3*(J[0]+Ne)/4-Ne},Ae.toByteArray=function Re(ae){var J,_e,fe=Y(ae),Ne=fe[0],Qe=fe[1],it=new P(function W(ae,J,fe){return 3*(J+fe)/4-fe}(0,Ne,Qe)),_t=0,We=Qe>0?Ne-4:Ne;for(_e=0;_e>16&255,it[_t++]=J>>8&255,it[_t++]=255&J;return 2===Qe&&(J=r[ae.charCodeAt(_e)]<<2|r[ae.charCodeAt(_e+1)]>>4,it[_t++]=255&J),1===Qe&&(J=r[ae.charCodeAt(_e)]<<10|r[ae.charCodeAt(_e+1)]<<4|r[ae.charCodeAt(_e+2)]>>2,it[_t++]=J>>8&255,it[_t++]=255&J),it},Ae.fromByteArray=function Ue(ae){for(var J,fe=ae.length,Ne=fe%3,Qe=[],_t=0,We=fe-Ne;_tWe?We:_t+16383));return 1===Ne?Qe.push(O[(J=ae[fe-1])>>2]+O[J<<4&63]+"=="):2===Ne&&Qe.push(O[(J=(ae[fe-2]<<8)+ae[fe-1])>>10]+O[J>>4&63]+O[J<<2&63]+"="),Qe.join("")};for(var O=[],r=[],P=typeof Uint8Array<"u"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oe=0;oe<64;++oe)O[oe]=se[oe],r[se.charCodeAt(oe)]=oe;function Y(ae){var J=ae.length;if(J%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var fe=ae.indexOf("=");return-1===fe&&(fe=J),[fe,fe===J?0:4-fe%4]}function ue(ae){return O[ae>>18&63]+O[ae>>12&63]+O[ae>>6&63]+O[63&ae]}function re(ae,J,fe){for(var Qe=[],it=J;it{"use strict";var P=O(3981),se=O(2020),oe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Ae.hp=W,Ae.IS=50;var Q=2147483647;function le(F){if(F>Q)throw new RangeError('The value "'+F+'" is invalid for option "size"');var w=new Uint8Array(F);return Object.setPrototypeOf(w,W.prototype),w}function W(F,w,M){if("number"==typeof F){if("string"==typeof w)throw new TypeError('The "string" argument must be of type string. Received type number');return Ue(F)}return Re(F,w,M)}function Re(F,w,M){if("string"==typeof F)return function ae(F,w){if(("string"!=typeof w||""===w)&&(w="utf8"),!W.isEncoding(w))throw new TypeError("Unknown encoding: "+w);var M=0|We(F,w),$=le(M),Me=$.write(F,w);return Me!==M&&($=$.slice(0,Me)),$}(F,w);if(ArrayBuffer.isView(F))return function fe(F){if(Ft(F,Uint8Array)){var w=new Uint8Array(F);return Ne(w.buffer,w.byteOffset,w.byteLength)}return J(F)}(F);if(null==F)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Ft(F,ArrayBuffer)||F&&Ft(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ft(F,SharedArrayBuffer)||F&&Ft(F.buffer,SharedArrayBuffer)))return Ne(F,w,M);if("number"==typeof F)throw new TypeError('The "value" argument must not be of type number. Received type number');var $=F.valueOf&&F.valueOf();if(null!=$&&$!==F)return W.from($,w,M);var Me=function Qe(F){if(W.isBuffer(F)){var w=0|it(F.length),M=le(w);return 0===M.length||F.copy(M,0,0,w),M}return void 0!==F.length?"number"!=typeof F.length||ge(F.length)?le(0):J(F):"Buffer"===F.type&&Array.isArray(F.data)?J(F.data):void 0}(F);if(Me)return Me;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof F[Symbol.toPrimitive])return W.from(F[Symbol.toPrimitive]("string"),w,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}function ue(F){if("number"!=typeof F)throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function Ue(F){return ue(F),le(F<0?0:0|it(F))}function J(F){for(var w=F.length<0?0:0|it(F.length),M=le(w),$=0;$=Q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q.toString(16)+" bytes");return 0|F}function We(F,w){if(W.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||Ft(F,ArrayBuffer))return F.byteLength;if("string"!=typeof F)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);var M=F.length,$=arguments.length>2&&!0===arguments[2];if(!$&&0===M)return 0;for(var Me=!1;;)switch(w){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return ct(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*M;case"hex":return M>>>1;case"base64":return tn(F).length;default:if(Me)return $?-1:ct(F).length;w=(""+w).toLowerCase(),Me=!0}}function _e(F,w,M){var $=!1;if((void 0===w||w<0)&&(w=0),w>this.length||((void 0===M||M>this.length)&&(M=this.length),M<=0)||(M>>>=0)<=(w>>>=0))return"";for(F||(F="utf8");;)switch(F){case"hex":return Ce(this,w,M);case"utf8":case"utf-8":return ne(this,w,M);case"ascii":return mt(this,w,M);case"latin1":case"binary":return It(this,w,M);case"base64":return Ye(this,w,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ie(this,w,M);default:if($)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),$=!0}}function Be(F,w,M){var $=F[w];F[w]=F[M],F[M]=$}function et(F,w,M,$,Me){if(0===F.length)return-1;if("string"==typeof M?($=M,M=0):M>2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),ge(M=+M)&&(M=Me?0:F.length-1),M<0&&(M=F.length+M),M>=F.length){if(Me)return-1;M=F.length-1}else if(M<0){if(!Me)return-1;M=0}if("string"==typeof w&&(w=W.from(w,$)),W.isBuffer(w))return 0===w.length?-1:ht(F,w,M,$,Me);if("number"==typeof w)return w&=255,"function"==typeof Uint8Array.prototype.indexOf?Me?Uint8Array.prototype.indexOf.call(F,w,M):Uint8Array.prototype.lastIndexOf.call(F,w,M):ht(F,[w],M,$,Me);throw new TypeError("val must be string, number or Buffer")}function ht(F,w,M,$,Me){var Vt,z=1,pe=F.length,Je=w.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(F.length<2||w.length<2)return-1;z=2,pe/=2,Je/=2,M/=2}function nt(rn,pn){return 1===z?rn[pn]:rn.readUInt16BE(pn*z)}if(Me){var Dt=-1;for(Vt=M;Vtpe&&(M=pe-Je),Vt=M;Vt>=0;Vt--){for(var St=!0,wn=0;wnMe&&($=Me):$=Me;var z=w.length;$>z/2&&($=z/2);for(var pe=0;pe<$;++pe){var Je=parseInt(w.substr(2*pe,2),16);if(ge(Je))return pe;F[M+pe]=Je}return pe}function lt(F,w,M,$){return Lt(ct(w,F.length-M),F,M,$)}function Ve(F,w,M,$){return Lt(function Pt(F){for(var w=[],M=0;M>8,z.push(M%256),z.push($);return z}(w,F.length-M),F,M,$)}function Ye(F,w,M){return P.fromByteArray(0===w&&M===F.length?F:F.slice(w,M))}function ne(F,w,M){M=Math.min(F.length,M);for(var $=[],Me=w;Me239?4:z>223?3:z>191?2:1;if(Me+Je<=M)switch(Je){case 1:z<128&&(pe=z);break;case 2:128==(192&(nt=F[Me+1]))&&(St=(31&z)<<6|63&nt)>127&&(pe=St);break;case 3:Vt=F[Me+2],128==(192&(nt=F[Me+1]))&&128==(192&Vt)&&(St=(15&z)<<12|(63&nt)<<6|63&Vt)>2047&&(St<55296||St>57343)&&(pe=St);break;case 4:Vt=F[Me+2],Dt=F[Me+3],128==(192&(nt=F[Me+1]))&&128==(192&Vt)&&128==(192&Dt)&&(St=(15&z)<<18|(63&nt)<<12|(63&Vt)<<6|63&Dt)>65535&&St<1114112&&(pe=St)}null===pe?(pe=65533,Je=1):pe>65535&&($.push((pe-=65536)>>>10&1023|55296),pe=56320|1023&pe),$.push(pe),Me+=Je}return function $e(F){var w=F.length;if(w<=De)return String.fromCharCode.apply(String,F);for(var M="",$=0;$Me.length?W.from(pe).copy(Me,z):Uint8Array.prototype.set.call(Me,pe,z);else{if(!W.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(Me,z)}z+=pe.length}return Me},W.byteLength=We,W.prototype._isBuffer=!0,W.prototype.swap16=function(){var w=this.length;if(w%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var M=0;MM&&(w+=" ... "),""},oe&&(W.prototype[oe]=W.prototype.inspect),W.prototype.compare=function(w,M,$,Me,z){if(Ft(w,Uint8Array)&&(w=W.from(w,w.offset,w.byteLength)),!W.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(void 0===M&&(M=0),void 0===$&&($=w?w.length:0),void 0===Me&&(Me=0),void 0===z&&(z=this.length),M<0||$>w.length||Me<0||z>this.length)throw new RangeError("out of range index");if(Me>=z&&M>=$)return 0;if(Me>=z)return-1;if(M>=$)return 1;if(this===w)return 0;for(var pe=(z>>>=0)-(Me>>>=0),Je=($>>>=0)-(M>>>=0),nt=Math.min(pe,Je),Vt=this.slice(Me,z),Dt=w.slice(M,$),St=0;St>>=0,isFinite($)?($>>>=0,void 0===Me&&(Me="utf8")):(Me=$,$=void 0)}var z=this.length-M;if((void 0===$||$>z)&&($=z),w.length>0&&($<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");Me||(Me="utf8");for(var pe=!1;;)switch(Me){case"hex":return je(this,w,M,$);case"utf8":case"utf-8":return lt(this,w,M,$);case"ascii":case"latin1":case"binary":return Ve(this,w,M,$);case"base64":return He(this,w,M,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,w,M,$);default:if(pe)throw new TypeError("Unknown encoding: "+Me);Me=(""+Me).toLowerCase(),pe=!0}},W.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var De=4096;function mt(F,w,M){var $="";M=Math.min(F.length,M);for(var Me=w;Me$)&&(M=$);for(var Me="",z=w;zM)throw new RangeError("Trying to access beyond buffer length")}function de(F,w,M,$,Me,z){if(!W.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>Me||wF.length)throw new RangeError("Index out of range")}function xe(F,w,M,$,Me,z){if(M+$>F.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function te(F,w,M,$,Me){return w=+w,M>>>=0,Me||xe(F,0,M,4),se.write(F,w,M,$,23,4),M+4}function Te(F,w,M,$,Me){return w=+w,M>>>=0,Me||xe(F,0,M,8),se.write(F,w,M,$,52,8),M+8}W.prototype.slice=function(w,M){var $=this.length;(w=~~w)<0?(w+=$)<0&&(w=0):w>$&&(w=$),(M=void 0===M?$:~~M)<0?(M+=$)<0&&(M=0):M>$&&(M=$),M>>=0,M>>>=0,$||Oe(w,M,this.length);for(var Me=this[w],z=1,pe=0;++pe>>=0,M>>>=0,$||Oe(w,M,this.length);for(var Me=this[w+--M],z=1;M>0&&(z*=256);)Me+=this[w+--M]*z;return Me},W.prototype.readUint8=W.prototype.readUInt8=function(w,M){return w>>>=0,M||Oe(w,1,this.length),this[w]},W.prototype.readUint16LE=W.prototype.readUInt16LE=function(w,M){return w>>>=0,M||Oe(w,2,this.length),this[w]|this[w+1]<<8},W.prototype.readUint16BE=W.prototype.readUInt16BE=function(w,M){return w>>>=0,M||Oe(w,2,this.length),this[w]<<8|this[w+1]},W.prototype.readUint32LE=W.prototype.readUInt32LE=function(w,M){return w>>>=0,M||Oe(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+16777216*this[w+3]},W.prototype.readUint32BE=W.prototype.readUInt32BE=function(w,M){return w>>>=0,M||Oe(w,4,this.length),16777216*this[w]+(this[w+1]<<16|this[w+2]<<8|this[w+3])},W.prototype.readIntLE=function(w,M,$){w>>>=0,M>>>=0,$||Oe(w,M,this.length);for(var Me=this[w],z=1,pe=0;++pe=(z*=128)&&(Me-=Math.pow(2,8*M)),Me},W.prototype.readIntBE=function(w,M,$){w>>>=0,M>>>=0,$||Oe(w,M,this.length);for(var Me=M,z=1,pe=this[w+--Me];Me>0&&(z*=256);)pe+=this[w+--Me]*z;return pe>=(z*=128)&&(pe-=Math.pow(2,8*M)),pe},W.prototype.readInt8=function(w,M){return w>>>=0,M||Oe(w,1,this.length),128&this[w]?-1*(255-this[w]+1):this[w]},W.prototype.readInt16LE=function(w,M){w>>>=0,M||Oe(w,2,this.length);var $=this[w]|this[w+1]<<8;return 32768&$?4294901760|$:$},W.prototype.readInt16BE=function(w,M){w>>>=0,M||Oe(w,2,this.length);var $=this[w+1]|this[w]<<8;return 32768&$?4294901760|$:$},W.prototype.readInt32LE=function(w,M){return w>>>=0,M||Oe(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},W.prototype.readInt32BE=function(w,M){return w>>>=0,M||Oe(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},W.prototype.readFloatLE=function(w,M){return w>>>=0,M||Oe(w,4,this.length),se.read(this,w,!0,23,4)},W.prototype.readFloatBE=function(w,M){return w>>>=0,M||Oe(w,4,this.length),se.read(this,w,!1,23,4)},W.prototype.readDoubleLE=function(w,M){return w>>>=0,M||Oe(w,8,this.length),se.read(this,w,!0,52,8)},W.prototype.readDoubleBE=function(w,M){return w>>>=0,M||Oe(w,8,this.length),se.read(this,w,!1,52,8)},W.prototype.writeUintLE=W.prototype.writeUIntLE=function(w,M,$,Me){w=+w,M>>>=0,$>>>=0,Me||de(this,w,M,$,Math.pow(2,8*$)-1,0);var pe=1,Je=0;for(this[M]=255&w;++Je<$&&(pe*=256);)this[M+Je]=w/pe&255;return M+$},W.prototype.writeUintBE=W.prototype.writeUIntBE=function(w,M,$,Me){w=+w,M>>>=0,$>>>=0,Me||de(this,w,M,$,Math.pow(2,8*$)-1,0);var pe=$-1,Je=1;for(this[M+pe]=255&w;--pe>=0&&(Je*=256);)this[M+pe]=w/Je&255;return M+$},W.prototype.writeUint8=W.prototype.writeUInt8=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,1,255,0),this[M]=255&w,M+1},W.prototype.writeUint16LE=W.prototype.writeUInt16LE=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,2,65535,0),this[M]=255&w,this[M+1]=w>>>8,M+2},W.prototype.writeUint16BE=W.prototype.writeUInt16BE=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,2,65535,0),this[M]=w>>>8,this[M+1]=255&w,M+2},W.prototype.writeUint32LE=W.prototype.writeUInt32LE=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,4,4294967295,0),this[M+3]=w>>>24,this[M+2]=w>>>16,this[M+1]=w>>>8,this[M]=255&w,M+4},W.prototype.writeUint32BE=W.prototype.writeUInt32BE=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,4,4294967295,0),this[M]=w>>>24,this[M+1]=w>>>16,this[M+2]=w>>>8,this[M+3]=255&w,M+4},W.prototype.writeIntLE=function(w,M,$,Me){if(w=+w,M>>>=0,!Me){var z=Math.pow(2,8*$-1);de(this,w,M,$,z-1,-z)}var pe=0,Je=1,nt=0;for(this[M]=255&w;++pe<$&&(Je*=256);)w<0&&0===nt&&0!==this[M+pe-1]&&(nt=1),this[M+pe]=(w/Je>>0)-nt&255;return M+$},W.prototype.writeIntBE=function(w,M,$,Me){if(w=+w,M>>>=0,!Me){var z=Math.pow(2,8*$-1);de(this,w,M,$,z-1,-z)}var pe=$-1,Je=1,nt=0;for(this[M+pe]=255&w;--pe>=0&&(Je*=256);)w<0&&0===nt&&0!==this[M+pe+1]&&(nt=1),this[M+pe]=(w/Je>>0)-nt&255;return M+$},W.prototype.writeInt8=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,1,127,-128),w<0&&(w=255+w+1),this[M]=255&w,M+1},W.prototype.writeInt16LE=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,2,32767,-32768),this[M]=255&w,this[M+1]=w>>>8,M+2},W.prototype.writeInt16BE=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,2,32767,-32768),this[M]=w>>>8,this[M+1]=255&w,M+2},W.prototype.writeInt32LE=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,4,2147483647,-2147483648),this[M]=255&w,this[M+1]=w>>>8,this[M+2]=w>>>16,this[M+3]=w>>>24,M+4},W.prototype.writeInt32BE=function(w,M,$){return w=+w,M>>>=0,$||de(this,w,M,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[M]=w>>>24,this[M+1]=w>>>16,this[M+2]=w>>>8,this[M+3]=255&w,M+4},W.prototype.writeFloatLE=function(w,M,$){return te(this,w,M,!0,$)},W.prototype.writeFloatBE=function(w,M,$){return te(this,w,M,!1,$)},W.prototype.writeDoubleLE=function(w,M,$){return Te(this,w,M,!0,$)},W.prototype.writeDoubleBE=function(w,M,$){return Te(this,w,M,!1,$)},W.prototype.copy=function(w,M,$,Me){if(!W.isBuffer(w))throw new TypeError("argument should be a Buffer");if($||($=0),!Me&&0!==Me&&(Me=this.length),M>=w.length&&(M=w.length),M||(M=0),Me>0&&Me<$&&(Me=$),Me===$||0===w.length||0===this.length)return 0;if(M<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(Me<0)throw new RangeError("sourceEnd out of bounds");Me>this.length&&(Me=this.length),w.length-M>>=0,$=void 0===$?this.length:$>>>0,w||(w=0),"number"==typeof w)for(pe=M;pe<$;++pe)this[pe]=w;else{var Je=W.isBuffer(w)?w:W.from(w,Me),nt=Je.length;if(0===nt)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(pe=0;pe<$-M;++pe)this[pe+M]=Je[pe%nt]}return this};var tt=/[^+/0-9A-Za-z-_]/g;function ct(F,w){w=w||1/0;for(var M,$=F.length,Me=null,z=[],pe=0;pe<$;++pe){if((M=F.charCodeAt(pe))>55295&&M<57344){if(!Me){if(M>56319){(w-=3)>-1&&z.push(239,191,189);continue}if(pe+1===$){(w-=3)>-1&&z.push(239,191,189);continue}Me=M;continue}if(M<56320){(w-=3)>-1&&z.push(239,191,189),Me=M;continue}M=65536+(Me-55296<<10|M-56320)}else Me&&(w-=3)>-1&&z.push(239,191,189);if(Me=null,M<128){if((w-=1)<0)break;z.push(M)}else if(M<2048){if((w-=2)<0)break;z.push(M>>6|192,63&M|128)}else if(M<65536){if((w-=3)<0)break;z.push(M>>12|224,M>>6&63|128,63&M|128)}else{if(!(M<1114112))throw new Error("Invalid code point");if((w-=4)<0)break;z.push(M>>18|240,M>>12&63|128,M>>6&63|128,63&M|128)}}return z}function tn(F){return P.toByteArray(function rt(F){if((F=(F=F.split("=")[0]).trim().replace(tt,"")).length<2)return"";for(;F.length%4!=0;)F+="=";return F}(F))}function Lt(F,w,M,$){for(var Me=0;Me<$&&!(Me+M>=w.length||Me>=F.length);++Me)w[Me+M]=F[Me];return Me}function Ft(F,w){return F instanceof w||null!=F&&null!=F.constructor&&null!=F.constructor.name&&F.constructor.name===w.name}function ge(F){return F!=F}var Ee=function(){for(var F="0123456789abcdef",w=new Array(256),M=0;M<16;++M)for(var $=16*M,Me=0;Me<16;++Me)w[$+Me]=F[M]+F[Me];return w}()},7374:function(bt){bt.exports=function(){"use strict";var O=6e4,r=36e5,P="millisecond",se="second",oe="minute",Q="hour",Y="day",le="week",W="month",Re="quarter",ue="year",re="date",Ue="Invalid Date",ae=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|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,fe={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(Ve){var He=["th","st","nd","rd"],Fe=Ve%100;return"["+Ve+(He[(Fe-20)%10]||He[Fe]||He[0])+"]"}},Ne=function(Ve,He,Fe){var Ye=String(Ve);return!Ye||Ye.length>=He?Ve:""+Array(He+1-Ye.length).join(Fe)+Ve},Qe={s:Ne,z:function(Ve){var He=-Ve.utcOffset(),Fe=Math.abs(He),Ye=Math.floor(Fe/60),ne=Fe%60;return(He<=0?"+":"-")+Ne(Ye,2,"0")+":"+Ne(ne,2,"0")},m:function Ve(He,Fe){if(He.date()1)return Ve($e[0])}else{var mt=He.name;_t[mt]=He,ne=mt}return!Ye&&ne&&(it=ne),ne||!Ye&&it},et=function(Ve,He){if(_e(Ve))return Ve.clone();var Fe="object"==typeof He?He:{};return Fe.date=Ve,Fe.args=arguments,new je(Fe)},ht=Qe;ht.l=Be,ht.i=_e,ht.w=function(Ve,He){return et(Ve,{locale:He.$L,utc:He.$u,x:He.$x,$offset:He.$offset})};var je=function(){function Ve(Fe){this.$L=Be(Fe.locale,null,!0),this.parse(Fe),this.$x=this.$x||Fe.x||{},this[We]=!0}var He=Ve.prototype;return He.parse=function(Fe){this.$d=function(Ye){var ne=Ye.date,De=Ye.utc;if(null===ne)return new Date(NaN);if(ht.u(ne))return new Date;if(ne instanceof Date)return new Date(ne);if("string"==typeof ne&&!/Z$/i.test(ne)){var $e=ne.match(ae);if($e){var mt=$e[2]-1||0,It=($e[7]||"0").substring(0,3);return De?new Date(Date.UTC($e[1],mt,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,It)):new Date($e[1],mt,$e[3]||1,$e[4]||0,$e[5]||0,$e[6]||0,It)}}return new Date(ne)}(Fe),this.init()},He.init=function(){var Fe=this.$d;this.$y=Fe.getFullYear(),this.$M=Fe.getMonth(),this.$D=Fe.getDate(),this.$W=Fe.getDay(),this.$H=Fe.getHours(),this.$m=Fe.getMinutes(),this.$s=Fe.getSeconds(),this.$ms=Fe.getMilliseconds()},He.$utils=function(){return ht},He.isValid=function(){return this.$d.toString()!==Ue},He.isSame=function(Fe,Ye){var ne=et(Fe);return this.startOf(Ye)<=ne&&ne<=this.endOf(Ye)},He.isAfter=function(Fe,Ye){return et(Fe)0,_t<=it.r||!it.r){_t<=1&&Qe>0&&(it=fe[Qe-1]);var We=J[it.l];ue&&(_t=ue(""+_t)),Ue="string"==typeof We?We.replace("%d",_t):We(_t,le,it.l,ae);break}}if(le)return Ue;var _e=ae?J.future:J.past;return"function"==typeof _e?_e(Ue):_e.replace("%s",Ue)},P.to=function(Y,le){return oe(Y,le,this,!0)},P.from=function(Y,le){return oe(Y,le,this)};var Q=function(Y){return Y.$u?r.utc():r()};P.toNow=function(Y){return this.to(Q(this),Y)},P.fromNow=function(Y){return this.from(Q(this),Y)}}}()},2578:function(bt,Ae){var O,P;void 0!==(P="function"==typeof(O=function(){"use strict";function oe(ue,re,Ue){var ae=new XMLHttpRequest;ae.open("GET",ue),ae.responseType="blob",ae.onload=function(){Re(ae.response,re,Ue)},ae.onerror=function(){console.error("could not download file")},ae.send()}function Q(ue){var re=new XMLHttpRequest;re.open("HEAD",ue,!1);try{re.send()}catch{}return 200<=re.status&&299>=re.status}function Y(ue){try{ue.dispatchEvent(new MouseEvent("click"))}catch{var re=document.createEvent("MouseEvents");re.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ue.dispatchEvent(re)}}var le="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,W=le.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Re=le.saveAs||("object"!=typeof window||window!==le?function(){}:"download"in HTMLAnchorElement.prototype&&!W?function(ue,re,Ue){var ae=le.URL||le.webkitURL,J=document.createElement("a");J.download=re=re||ue.name||"download",J.rel="noopener","string"==typeof ue?(J.href=ue,J.origin===location.origin?Y(J):Q(J.href)?oe(ue,re,Ue):Y(J,J.target="_blank")):(J.href=ae.createObjectURL(ue),setTimeout(function(){ae.revokeObjectURL(J.href)},4e4),setTimeout(function(){Y(J)},0))}:"msSaveOrOpenBlob"in navigator?function(ue,re,Ue){if(re=re||ue.name||"download","string"!=typeof ue)navigator.msSaveOrOpenBlob(function se(ue,re){return typeof re>"u"?re={autoBom:!1}:"object"!=typeof re&&(console.warn("Deprecated: Expected third argument to be a object"),re={autoBom:!re}),re.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ue.type)?new Blob(["\ufeff",ue],{type:ue.type}):ue}(ue,Ue),re);else if(Q(ue))oe(ue,re,Ue);else{var ae=document.createElement("a");ae.href=ue,ae.target="_blank",setTimeout(function(){Y(ae)})}}:function(ue,re,Ue,ae){if((ae=ae||open("","_blank"))&&(ae.document.title=ae.document.body.innerText="downloading..."),"string"==typeof ue)return oe(ue,re,Ue);var J="application/octet-stream"===ue.type,fe=/constructor/i.test(le.HTMLElement)||le.safari,Ne=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ne||J&&fe||W)&&typeof FileReader<"u"){var Qe=new FileReader;Qe.onloadend=function(){var We=Qe.result;We=Ne?We:We.replace(/^data:[^;]*;/,"data:attachment/file;"),ae?ae.location.href=We:location=We,ae=null},Qe.readAsDataURL(ue)}else{var it=le.URL||le.webkitURL,_t=it.createObjectURL(ue);ae?ae.location=_t:location.href=_t,ae=null,setTimeout(function(){it.revokeObjectURL(_t)},4e4)}});le.saveAs=Re.saveAs=Re,bt.exports=Re})?O.apply(Ae,[]):O)&&(bt.exports=P)},2020:(bt,Ae)=>{Ae.read=function(O,r,P,se,oe){var Q,Y,le=8*oe-se-1,W=(1<>1,ue=-7,re=P?oe-1:0,Ue=P?-1:1,ae=O[r+re];for(re+=Ue,Q=ae&(1<<-ue)-1,ae>>=-ue,ue+=le;ue>0;Q=256*Q+O[r+re],re+=Ue,ue-=8);for(Y=Q&(1<<-ue)-1,Q>>=-ue,ue+=se;ue>0;Y=256*Y+O[r+re],re+=Ue,ue-=8);if(0===Q)Q=1-Re;else{if(Q===W)return Y?NaN:1/0*(ae?-1:1);Y+=Math.pow(2,se),Q-=Re}return(ae?-1:1)*Y*Math.pow(2,Q-se)},Ae.write=function(O,r,P,se,oe,Q){var Y,le,W,Re=8*Q-oe-1,ue=(1<>1,Ue=23===oe?Math.pow(2,-24)-Math.pow(2,-77):0,ae=se?0:Q-1,J=se?1:-1,fe=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(le=isNaN(r)?1:0,Y=ue):(Y=Math.floor(Math.log(r)/Math.LN2),r*(W=Math.pow(2,-Y))<1&&(Y--,W*=2),(r+=Y+re>=1?Ue/W:Ue*Math.pow(2,1-re))*W>=2&&(Y++,W/=2),Y+re>=ue?(le=0,Y=ue):Y+re>=1?(le=(r*W-1)*Math.pow(2,oe),Y+=re):(le=r*Math.pow(2,re-1)*Math.pow(2,oe),Y=0));oe>=8;O[P+ae]=255&le,ae+=J,le/=256,oe-=8);for(Y=Y<0;O[P+ae]=255&Y,ae+=J,Y/=256,Re-=8);O[P+ae-J]|=128*fe}},2244:(bt,Ae,O)=>{"use strict";O.d(Ae,{Yf:()=>Ve,Mw:()=>ht,Ib:()=>He});var r=O(177),P=O(8699),se=O(1413);let Q=(()=>{class Fe{constructor(){this._lightboxEventSource=new se.B,this.lightboxEvent$=this._lightboxEventSource.asObservable()}broadcastLightboxEvent(ne){this._lightboxEventSource.next(ne)}}return Fe.\u0275fac=function(ne){return new(ne||Fe)},Fe.\u0275prov=P.jDH({token:Fe,factory:Fe.\u0275fac}),Fe})(),le=(()=>{class Fe{get nativeWindow(){return function Y(){return window}()}}return Fe.\u0275fac=function(ne){return new(ne||Fe)},Fe.\u0275prov=P.jDH({token:Fe,factory:Fe.\u0275fac}),Fe})();var W=O(2578);let Re=(()=>{class Fe{get isFileSaverSupported(){try{return!!new Blob}catch{return!1}}genType(ne){if(!ne||-1===ne.lastIndexOf("."))return"text/plain";const De=ne.substr(ne.lastIndexOf(".")+1);switch(De){case"txt":return"text/plain";case"xml":case"html":return`text/${De}`;case"json":return"octet/stream";default:return`application/${De}`}}save(ne,De,$e,mt){if(!ne)throw new Error("Data argument should be a blob instance");const It=new Blob([ne],{type:$e||ne.type||this.genType(De)});(0,W.saveAs)(It,decodeURI(De||"download"),mt)}saveText(ne,De,$e){const mt=new Blob([ne]);this.save(mt,De,void 0,$e)}}return Fe.\u0275fac=function(ne){return new(ne||Fe)},Fe.\u0275prov=P.jDH({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})(),re=(()=>{class Fe{}return Fe.\u0275fac=function(ne){return new(ne||Fe)},Fe.\u0275mod=P.$C({type:Fe}),Fe.\u0275inj=P.G2t({}),Fe})();var Ue=O(345);const ae=["outerContainer"],J=["container"],fe=["leftArrow"],Ne=["rightArrow"],Qe=["navArrow"],it=["dataContainer"],_t=["image"],We=["caption"],_e=["number"],Be=["lb-content",""];let et=(()=>{class Fe{constructor(ne,De,$e,mt,It,Ce,Ie,Oe){this._elemRef=ne,this._rendererRef=De,this._lightboxEvent=$e,this._lightboxElem=mt,this._lightboxWindowRef=It,this._fileSaverService=Ce,this._sanitizer=Ie,this._documentRef=Oe,this.options=this.options||{},this.album=this.album||[],this.currentImageIndex=this.currentImageIndex||0,this._windowRef=this._lightboxWindowRef.nativeWindow,this.ui={showReloader:!0,showLeftArrow:!1,showRightArrow:!1,showArrowNav:!1,showZoomButton:!1,showRotateButton:!1,showPageNumber:!1,showCaption:!1,showDownloadButton:!1,classList:"lightbox animation fadeIn"},this.content={pageNumber:""},this._event={},this._lightboxElem=this._elemRef,this._event.subscription=this._lightboxEvent.lightboxEvent$.subscribe(de=>this._onReceivedEvent(de)),this.rotate=0}ngOnInit(){this.album.forEach(ne=>{ne.caption&&(ne.caption=this._sanitizer.sanitize(P.WPN.HTML,ne.caption))})}ngAfterViewInit(){this._cssValue={containerTopPadding:Math.round(this._getCssStyleValue(this._containerElem,"padding-top")),containerRightPadding:Math.round(this._getCssStyleValue(this._containerElem,"padding-right")),containerBottomPadding:Math.round(this._getCssStyleValue(this._containerElem,"padding-bottom")),containerLeftPadding:Math.round(this._getCssStyleValue(this._containerElem,"padding-left")),imageBorderWidthTop:Math.round(this._getCssStyleValue(this._imageElem,"border-top-width")),imageBorderWidthBottom:Math.round(this._getCssStyleValue(this._imageElem,"border-bottom-width")),imageBorderWidthLeft:Math.round(this._getCssStyleValue(this._imageElem,"border-left-width")),imageBorderWidthRight:Math.round(this._getCssStyleValue(this._imageElem,"border-right-width"))},this._validateInputData()&&(this._prepareComponent(),this._registerImageLoadingEvent())}ngOnDestroy(){this.options.disableKeyboardNav||this._disableKeyboardNav(),this._event.subscription.unsubscribe()}close(ne){ne.stopPropagation(),(ne.target.classList.contains("lightbox")||ne.target.classList.contains("lb-loader")||ne.target.classList.contains("lb-close"))&&this._lightboxEvent.broadcastLightboxEvent({id:2,data:null})}download(ne){ne.stopPropagation();const De=this.album[this.currentImageIndex].src,$e=this.album[this.currentImageIndex].downloadUrl,mt=De.split("/"),It=mt[mt.length-1],Ce=document.createElement("canvas"),Ie=Ce.getContext("2d"),Oe=new Image,de=this;Oe.onload=function(){Ce.width=this.naturalWidth,Ce.height=this.naturalHeight,Ie.drawImage(this,0,0),Ce.toBlob(function(xe){de._fileSaverService.save(xe,It)},"image/jpeg",.75)},Oe.crossOrigin="",Oe.src=this._sanitizer.sanitize(P.WPN.URL,$e&&$e.length>0?$e:De)}control(ne){let De,$e;ne.stopPropagation(),ne.target.classList.contains("lb-turnLeft")?(this.rotate=this.rotate-90,this._rotateContainer(),this._calcTransformPoint(),this._documentRef.getElementById("image").style.transform=`rotate(${this.rotate}deg)`,this._documentRef.getElementById("image").style.webkitTransform=`rotate(${this.rotate}deg)`,this._lightboxEvent.broadcastLightboxEvent({id:6,data:null})):ne.target.classList.contains("lb-turnRight")?(this.rotate=this.rotate+90,this._rotateContainer(),this._calcTransformPoint(),this._documentRef.getElementById("image").style.transform=`rotate(${this.rotate}deg)`,this._documentRef.getElementById("image").style.webkitTransform=`rotate(${this.rotate}deg)`,this._lightboxEvent.broadcastLightboxEvent({id:7,data:null})):ne.target.classList.contains("lb-zoomOut")?(De=parseInt(this._documentRef.getElementById("outerContainer").style.height,10)/1.5,$e=parseInt(this._documentRef.getElementById("outerContainer").style.width,10)/1.5,this._documentRef.getElementById("outerContainer").style.height=De+"px",this._documentRef.getElementById("outerContainer").style.width=$e+"px",De=parseInt(this._documentRef.getElementById("image").style.height,10)/1.5,$e=parseInt(this._documentRef.getElementById("image").style.width,10)/1.5,this._documentRef.getElementById("image").style.height=De+"px",this._documentRef.getElementById("image").style.width=$e+"px",this._lightboxEvent.broadcastLightboxEvent({id:5,data:null})):ne.target.classList.contains("lb-zoomIn")&&(De=1.5*parseInt(this._documentRef.getElementById("outerContainer").style.height,10),$e=1.5*parseInt(this._documentRef.getElementById("outerContainer").style.width,10),this._documentRef.getElementById("outerContainer").style.height=De+"px",this._documentRef.getElementById("outerContainer").style.width=$e+"px",De=1.5*parseInt(this._documentRef.getElementById("image").style.height,10),$e=1.5*parseInt(this._documentRef.getElementById("image").style.width,10),this._documentRef.getElementById("image").style.height=De+"px",this._documentRef.getElementById("image").style.width=$e+"px",this._lightboxEvent.broadcastLightboxEvent({id:4,data:null}))}_rotateContainer(){let ne=this.rotate;ne<0&&(ne*=-1),ne/90%4==1||ne/90%4==3?(this._documentRef.getElementById("outerContainer").style.height=this._documentRef.getElementById("image").style.width,this._documentRef.getElementById("outerContainer").style.width=this._documentRef.getElementById("image").style.height,this._documentRef.getElementById("container").style.height=this._documentRef.getElementById("image").style.width,this._documentRef.getElementById("container").style.width=this._documentRef.getElementById("image").style.height):(this._documentRef.getElementById("outerContainer").style.height=this._documentRef.getElementById("image").style.height,this._documentRef.getElementById("outerContainer").style.width=this._documentRef.getElementById("image").style.width,this._documentRef.getElementById("container").style.height=this._documentRef.getElementById("image").style.width,this._documentRef.getElementById("container").style.width=this._documentRef.getElementById("image").style.height)}_resetImage(){this.rotate=0,this._documentRef.getElementById("image").style.transform=`rotate(${this.rotate}deg)`,this._documentRef.getElementById("image").style.webkitTransform=`rotate(${this.rotate}deg)`}_calcTransformPoint(){let ne=parseInt(this._documentRef.getElementById("image").style.height,10),De=parseInt(this._documentRef.getElementById("image").style.width,10),$e=this.rotate%360;$e<0&&($e=360+$e),90===$e?this._documentRef.getElementById("image").style.transformOrigin=ne/2+"px "+ne/2+"px":180===$e?this._documentRef.getElementById("image").style.transformOrigin=De/2+"px "+ne/2+"px":270===$e&&(this._documentRef.getElementById("image").style.transformOrigin=De/2+"px "+De/2+"px")}nextImage(){1!==this.album.length&&this._changeImage(this.currentImageIndex===this.album.length-1?0:this.currentImageIndex+1)}prevImage(){1!==this.album.length&&this._changeImage(0===this.currentImageIndex&&this.album.length>1?this.album.length-1:this.currentImageIndex-1)}_validateInputData(){if(!(this.album&&this.album instanceof Array&&this.album.length>0))throw new Error("No album data or album data is not correct in type");for(let ne=0;ne{this._onLoadImageSuccess()},ne.src=this._sanitizer.sanitize(P.WPN.URL,this.album[this.currentImageIndex].src)}_onLoadImageSuccess(){let ne,De,$e,mt,It,Ce,Ie,Oe;this.options.disableKeyboardNav||this._disableKeyboardNav(),De=Ie=this._imageElem.nativeElement.naturalWidth,ne=Oe=this._imageElem.nativeElement.naturalHeight,this.options.fitImageInViewPort&&(Ce=this._windowRef.innerWidth,It=this._windowRef.innerHeight,mt=Ce-this._cssValue.containerLeftPadding-this._cssValue.containerRightPadding-this._cssValue.imageBorderWidthLeft-this._cssValue.imageBorderWidthRight-20,$e=It-this._cssValue.containerTopPadding-this._cssValue.containerTopPadding-this._cssValue.imageBorderWidthTop-this._cssValue.imageBorderWidthBottom-120,(Ie>mt||Oe>$e)&&(Ie/mt>Oe/$e?(De=mt,ne=Math.round(Oe/(Ie/De))):(ne=$e,De=Math.round(Ie/(Oe/ne)))),this._rendererRef.setStyle(this._imageElem.nativeElement,"width",`${De}px`),this._rendererRef.setStyle(this._imageElem.nativeElement,"height",`${ne}px`)),this._sizeContainer(De,ne),this.options.centerVertically&&this._centerVertically(De,ne)}_centerVertically(ne,De){this._rendererRef.setStyle(this._lightboxElem.nativeElement,"top",`${this._documentRef.documentElement.scrollTop+(this._windowRef.innerHeight/2-De/2)}px`)}_sizeContainer(ne,De){const mt=this._outerContainerElem.nativeElement.offsetHeight,It=ne+this._cssValue.containerRightPadding+this._cssValue.containerLeftPadding+this._cssValue.imageBorderWidthLeft+this._cssValue.imageBorderWidthRight,Ce=De+this._cssValue.containerTopPadding+this._cssValue.containerBottomPadding+this._cssValue.imageBorderWidthTop+this._cssValue.imageBorderWidthBottom;Math.abs(this._outerContainerElem.nativeElement.offsetWidth-It)+Math.abs(mt-Ce)>5?(this._rendererRef.setStyle(this._outerContainerElem.nativeElement,"width",`${It}px`),this._rendererRef.setStyle(this._outerContainerElem.nativeElement,"height",`${Ce}px`),this.options.enableTransition?(this._event.transitions=[],["transitionend","webkitTransitionEnd","oTransitionEnd","MSTransitionEnd"].forEach(Ie=>{this._event.transitions.push(this._rendererRef.listen(this._outerContainerElem.nativeElement,Ie,Oe=>{Oe.target===Oe.currentTarget&&this._postResize(It,Ce)}))})):this._postResize(It,Ce)):this._postResize(It,Ce)}_postResize(ne,De){Array.isArray(this._event.transitions)&&(this._event.transitions.forEach($e=>{$e()}),this._event.transitions=[]),this._rendererRef.setStyle(this._dataContainerElem.nativeElement,"width",`${ne}px`),this._showImage()}_showImage(){this.ui.showReloader=!1,this._updateNav(),this._updateDetails(),this.options.disableKeyboardNav||this._enableKeyboardNav()}_prepareComponent(){this._addCssAnimation(),this._positionLightBox(),setTimeout(()=>{this.ui.showZoomButton=this.options.showZoom,this.ui.showRotateButton=this.options.showRotate,this.ui.showDownloadButton=this.options.showDownloadButton},0)}_positionLightBox(){const De=this._windowRef.pageXOffset||this._documentRef.documentElement.scrollLeft;this.options.centerVertically||this._rendererRef.setStyle(this._lightboxElem.nativeElement,"top",`${(this._windowRef.pageYOffset||this._documentRef.documentElement.scrollTop)+this.options.positionFromTop}px`),this._rendererRef.setStyle(this._lightboxElem.nativeElement,"left",`${De}px`),this._rendererRef.setStyle(this._lightboxElem.nativeElement,"display","block"),this.options.disableScrolling&&this._rendererRef.addClass(this._documentRef.documentElement,"lb-disable-scrolling")}_addCssAnimation(){const ne=this.options.resizeDuration,De=this.options.fadeDuration;this._rendererRef.setStyle(this._lightboxElem.nativeElement,"-webkit-animation-duration",`${De}s`),this._rendererRef.setStyle(this._lightboxElem.nativeElement,"animation-duration",`${De}s`),this._rendererRef.setStyle(this._outerContainerElem.nativeElement,"-webkit-transition-duration",`${ne}s`),this._rendererRef.setStyle(this._outerContainerElem.nativeElement,"transition-duration",`${ne}s`),this._rendererRef.setStyle(this._dataContainerElem.nativeElement,"-webkit-animation-duration",`${De}s`),this._rendererRef.setStyle(this._dataContainerElem.nativeElement,"animation-duration",`${De}s`),this._rendererRef.setStyle(this._imageElem.nativeElement,"-webkit-animation-duration",`${De}s`),this._rendererRef.setStyle(this._imageElem.nativeElement,"animation-duration",`${De}s`),this._rendererRef.setStyle(this._captionElem.nativeElement,"-webkit-animation-duration",`${De}s`),this._rendererRef.setStyle(this._captionElem.nativeElement,"animation-duration",`${De}s`),this._rendererRef.setStyle(this._numberElem.nativeElement,"-webkit-animation-duration",`${De}s`),this._rendererRef.setStyle(this._numberElem.nativeElement,"animation-duration",`${De}s`)}_end(){this.ui.classList="lightbox animation fadeOut",this.options.disableScrolling&&this._rendererRef.removeClass(this._documentRef.documentElement,"lb-disable-scrolling"),setTimeout(()=>{this.cmpRef.destroy()},1e3*this.options.fadeDuration)}_updateDetails(){typeof this.album[this.currentImageIndex].caption<"u"&&""!==this.album[this.currentImageIndex].caption&&(this.ui.showCaption=!0),this.album.length>1&&this.options.showImageNumberLabel&&(this.ui.showPageNumber=!0,this.content.pageNumber=this._albumLabel())}_albumLabel(){return this.options.albumLabel.replace(/%1/g,Number(this.currentImageIndex+1)).replace(/%2/g,this.album.length)}_changeImage(ne){this._resetImage(),this.currentImageIndex=ne,this._hideImage(),this._registerImageLoadingEvent(),this._lightboxEvent.broadcastLightboxEvent({id:1,data:ne})}_hideImage(){this.ui.showReloader=!0,this.ui.showArrowNav=!1,this.ui.showLeftArrow=!1,this.ui.showRightArrow=!1,this.ui.showPageNumber=!1,this.ui.showCaption=!1}_updateNav(){let ne=!1;try{this._documentRef.createEvent("TouchEvent"),ne=!!this.options.alwaysShowNavOnTouchDevices}catch{}this._showArrowNav(),this.album.length>1&&(this.options.wrapAround?(ne&&(this._rendererRef.setStyle(this._leftArrowElem.nativeElement,"opacity","1"),this._rendererRef.setStyle(this._rightArrowElem.nativeElement,"opacity","1")),this._showLeftArrowNav(),this._showRightArrowNav()):(this.currentImageIndex>0&&(this._showLeftArrowNav(),ne&&this._rendererRef.setStyle(this._leftArrowElem.nativeElement,"opacity","1")),this.currentImageIndex{this._keyboardAction(ne)})}_disableKeyboardNav(){this._event.keyup&&this._event.keyup()}_keyboardAction(ne){const It=ne.keyCode,Ce=String.fromCharCode(It).toLowerCase();27===It||Ce.match(/x|o|c/)?this._lightboxEvent.broadcastLightboxEvent({id:2,data:null}):"p"===Ce||37===It?0!==this.currentImageIndex?this._changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this._changeImage(this.album.length-1):("n"===Ce||39===It)&&(this.currentImageIndex!==this.album.length-1?this._changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this._changeImage(0))}_getCssStyleValue(ne,De){return parseFloat(this._windowRef.getComputedStyle(ne.nativeElement,null).getPropertyValue(De))}_onReceivedEvent(ne){2===ne.id&&this._end()}}return Fe.\u0275fac=function(ne){return new(ne||Fe)(P.rXU(P.aKT),P.rXU(P.sFG),P.rXU(Q),P.rXU(P.aKT),P.rXU(le),P.rXU(Re),P.rXU(Ue.up),P.rXU(r.qQ))},Fe.\u0275cmp=P.VBU({type:Fe,selectors:[["","lb-content",""]],viewQuery:function(ne,De){if(1&ne&&(P.GBs(ae,5),P.GBs(J,5),P.GBs(fe,5),P.GBs(Ne,5),P.GBs(Qe,5),P.GBs(it,5),P.GBs(_t,5),P.GBs(We,5),P.GBs(_e,5)),2&ne){let $e;P.mGM($e=P.lsd())&&(De._outerContainerElem=$e.first),P.mGM($e=P.lsd())&&(De._containerElem=$e.first),P.mGM($e=P.lsd())&&(De._leftArrowElem=$e.first),P.mGM($e=P.lsd())&&(De._rightArrowElem=$e.first),P.mGM($e=P.lsd())&&(De._navArrowElem=$e.first),P.mGM($e=P.lsd())&&(De._dataContainerElem=$e.first),P.mGM($e=P.lsd())&&(De._imageElem=$e.first),P.mGM($e=P.lsd())&&(De._captionElem=$e.first),P.mGM($e=P.lsd())&&(De._numberElem=$e.first)}},hostVars:2,hostBindings:function(ne,De){1&ne&&P.bIt("click",function(mt){return De.close(mt)}),2&ne&&P.HbH(De.ui.classList)},inputs:{album:"album",currentImageIndex:"currentImageIndex",options:"options",cmpRef:"cmpRef"},attrs:Be,decls:34,vars:14,consts:[["id","outerContainer",1,"lb-outerContainer","transition"],["outerContainer",""],["id","container",1,"lb-container"],["container",""],["id","image",1,"lb-image","animation","fadeIn",3,"src","hidden"],["image",""],[1,"lb-nav",3,"hidden"],["navArrow",""],[1,"lb-prev",3,"hidden","click"],["leftArrow",""],[1,"lb-next",3,"hidden","click"],["rightArrow",""],[1,"lb-loader",3,"hidden","click"],[1,"lb-cancel"],[1,"lb-dataContainer",3,"hidden"],["dataContainer",""],[1,"lb-data"],[1,"lb-details"],[1,"lb-caption","animation","fadeIn",3,"hidden","innerHtml"],["caption",""],[1,"lb-number","animation","fadeIn",3,"hidden"],["number",""],[1,"lb-controlContainer"],[1,"lb-closeContainer"],[1,"lb-close",3,"click"],[1,"lb-downloadContainer",3,"hidden"],[1,"lb-download",3,"click"],[1,"lb-turnContainer",3,"hidden"],[1,"lb-turnLeft",3,"click"],[1,"lb-turnRight",3,"click"],[1,"lb-zoomContainer",3,"hidden"],[1,"lb-zoomOut",3,"click"],[1,"lb-zoomIn",3,"click"]],template:function(ne,De){1&ne&&(P.j41(0,"div",0,1)(2,"div",2,3),P.nrm(4,"img",4,5),P.j41(6,"div",6,7)(8,"a",8,9),P.bIt("click",function(){return De.prevImage()}),P.k0s(),P.j41(10,"a",10,11),P.bIt("click",function(){return De.nextImage()}),P.k0s()(),P.j41(12,"div",12),P.bIt("click",function(mt){return De.close(mt)}),P.nrm(13,"a",13),P.k0s()()(),P.j41(14,"div",14,15)(16,"div",16)(17,"div",17),P.nrm(18,"span",18,19),P.j41(20,"span",20,21),P.EFF(22),P.k0s()(),P.j41(23,"div",22)(24,"div",23)(25,"a",24),P.bIt("click",function(mt){return De.close(mt)}),P.k0s()(),P.j41(26,"div",25)(27,"a",26),P.bIt("click",function(mt){return De.download(mt)}),P.k0s()(),P.j41(28,"div",27)(29,"a",28),P.bIt("click",function(mt){return De.control(mt)}),P.k0s(),P.j41(30,"a",29),P.bIt("click",function(mt){return De.control(mt)}),P.k0s()(),P.j41(31,"div",30)(32,"a",31),P.bIt("click",function(mt){return De.control(mt)}),P.k0s(),P.j41(33,"a",32),P.bIt("click",function(mt){return De.control(mt)}),P.k0s()()()()()),2&ne&&(P.R7$(4),P.Y8G("src",De.album[De.currentImageIndex].src,P.B4B)("hidden",De.ui.showReloader),P.R7$(2),P.Y8G("hidden",!De.ui.showArrowNav),P.R7$(2),P.Y8G("hidden",!De.ui.showLeftArrow),P.R7$(2),P.Y8G("hidden",!De.ui.showRightArrow),P.R7$(2),P.Y8G("hidden",!De.ui.showReloader),P.R7$(2),P.Y8G("hidden",De.ui.showReloader),P.R7$(4),P.Y8G("hidden",!De.ui.showCaption)("innerHtml",De.album[De.currentImageIndex].caption,P.npT),P.R7$(2),P.Y8G("hidden",!De.ui.showPageNumber),P.R7$(2),P.JRh(De.content.pageNumber),P.R7$(4),P.Y8G("hidden",!De.ui.showDownloadButton),P.R7$(2),P.Y8G("hidden",!De.ui.showRotateButton),P.R7$(3),P.Y8G("hidden",!De.ui.showZoomButton))},encapsulation:2}),Fe})(),ht=(()=>{class Fe{constructor(){this.fadeDuration=.7,this.resizeDuration=.5,this.fitImageInViewPort=!0,this.positionFromTop=20,this.showImageNumberLabel=!1,this.alwaysShowNavOnTouchDevices=!1,this.wrapAround=!1,this.disableKeyboardNav=!1,this.disableScrolling=!1,this.centerVertically=!1,this.enableTransition=!0,this.albumLabel="Image %1 of %2",this.showZoom=!1,this.showRotate=!1,this.containerElementResolver=ne=>ne.querySelector("body")}}return Fe.\u0275fac=function(ne){return new(ne||Fe)},Fe.\u0275prov=P.jDH({token:Fe,factory:Fe.\u0275fac}),Fe})();const je=["lb-overlay",""];let lt=(()=>{class Fe{constructor(ne,De,$e,mt){this._elemRef=ne,this._rendererRef=De,this._lightboxEvent=$e,this._documentRef=mt,this.classList="lightboxOverlay animation fadeInOverlay",this._subscription=this._lightboxEvent.lightboxEvent$.subscribe(It=>this._onReceivedEvent(It))}close(){this._lightboxEvent.broadcastLightboxEvent({id:2,data:null})}ngAfterViewInit(){const ne=this.options.fadeDuration;this._rendererRef.setStyle(this._elemRef.nativeElement,"-webkit-animation-duration",`${ne}s`),this._rendererRef.setStyle(this._elemRef.nativeElement,"animation-duration",`${ne}s`),this._sizeOverlay()}onResize(){this._sizeOverlay()}ngOnDestroy(){this._subscription.unsubscribe()}_sizeOverlay(){const ne=this._getOverlayWidth(),De=this._getOverlayHeight();this._rendererRef.setStyle(this._elemRef.nativeElement,"width",`${ne}px`),this._rendererRef.setStyle(this._elemRef.nativeElement,"height",`${De}px`)}_onReceivedEvent(ne){2===ne.id&&this._end()}_end(){this.classList="lightboxOverlay animation fadeOutOverlay",setTimeout(()=>{this.cmpRef.destroy()},1e3*this.options.fadeDuration)}_getOverlayWidth(){return Math.max(this._documentRef.body.scrollWidth,this._documentRef.body.offsetWidth,this._documentRef.documentElement.clientWidth,this._documentRef.documentElement.scrollWidth,this._documentRef.documentElement.offsetWidth)}_getOverlayHeight(){return Math.max(this._documentRef.body.scrollHeight,this._documentRef.body.offsetHeight,this._documentRef.documentElement.clientHeight,this._documentRef.documentElement.scrollHeight,this._documentRef.documentElement.offsetHeight)}}return Fe.\u0275fac=function(ne){return new(ne||Fe)(P.rXU(P.aKT),P.rXU(P.sFG),P.rXU(Q),P.rXU(r.qQ))},Fe.\u0275cmp=P.VBU({type:Fe,selectors:[["","lb-overlay",""]],hostVars:2,hostBindings:function(ne,De){1&ne&&P.bIt("click",function(){return De.close()})("resize",function(){return De.onResize()},!1,P.tSv),2&ne&&P.HbH(De.classList)},inputs:{options:"options",cmpRef:"cmpRef"},attrs:je,decls:0,vars:0,template:function(ne,De){},encapsulation:2}),Fe})(),Ve=(()=>{class Fe{constructor(ne,De,$e,mt,It,Ce){this._componentFactoryResolver=ne,this._injector=De,this._applicationRef=$e,this._lightboxConfig=mt,this._lightboxEvent=It,this._documentRef=Ce}open(ne,De=0,$e={}){const mt=this._createComponent(lt),It=this._createComponent(et),Ce={};this._lightboxEvent.broadcastLightboxEvent({id:3}),Object.assign(Ce,this._lightboxConfig,$e),It.instance.album=ne,It.instance.currentImageIndex=De,It.instance.options=Ce,It.instance.cmpRef=It,mt.instance.options=Ce,mt.instance.cmpRef=mt,setTimeout(()=>{this._applicationRef.attachView(mt.hostView),this._applicationRef.attachView(It.hostView),mt.onDestroy(()=>{this._applicationRef.detachView(mt.hostView)}),It.onDestroy(()=>{this._applicationRef.detachView(It.hostView)});const Ie=Ce.containerElementResolver(this._documentRef);Ie.appendChild(mt.location.nativeElement),Ie.appendChild(It.location.nativeElement)})}close(){this._lightboxEvent&&this._lightboxEvent.broadcastLightboxEvent({id:2})}_createComponent(ne){return this._componentFactoryResolver.resolveComponentFactory(ne).create(this._injector)}}return Fe.\u0275fac=function(ne){return new(ne||Fe)(P.KVO(P.OM3),P.KVO(P.zZn),P.KVO(P.o8S),P.KVO(ht),P.KVO(Q),P.KVO(r.qQ))},Fe.\u0275prov=P.jDH({token:Fe,factory:Fe.\u0275fac}),Fe})(),He=(()=>{class Fe{}return Fe.\u0275fac=function(ne){return new(ne||Fe)},Fe.\u0275mod=P.$C({type:Fe}),Fe.\u0275inj=P.G2t({providers:[Ve,ht,Q,le],imports:[re]}),Fe})()},4412:(bt,Ae,O)=>{"use strict";O.d(Ae,{t:()=>P});var r=O(1413);class P extends r.B{constructor(oe){super(),this._value=oe}get value(){return this.getValue()}_subscribe(oe){const Q=super._subscribe(oe);return!Q.closed&&oe.next(this._value),Q}getValue(){const{hasError:oe,thrownError:Q,_value:Y}=this;if(oe)throw Q;return this._throwIfClosed(),Y}next(oe){super.next(this._value=oe)}}},1985:(bt,Ae,O)=>{"use strict";O.d(Ae,{c:()=>W});var r=O(7707),P=O(8359),se=O(3494),oe=O(1203),Q=O(1026),Y=O(8071),le=O(9786);let W=(()=>{class Ue{constructor(J){J&&(this._subscribe=J)}lift(J){const fe=new Ue;return fe.source=this,fe.operator=J,fe}subscribe(J,fe,Ne){const Qe=function re(Ue){return Ue&&Ue instanceof r.vU||function ue(Ue){return Ue&&(0,Y.T)(Ue.next)&&(0,Y.T)(Ue.error)&&(0,Y.T)(Ue.complete)}(Ue)&&(0,P.Uv)(Ue)}(J)?J:new r.Ms(J,fe,Ne);return(0,le.Y)(()=>{const{operator:it,source:_t}=this;Qe.add(it?it.call(Qe,_t):_t?this._subscribe(Qe):this._trySubscribe(Qe))}),Qe}_trySubscribe(J){try{return this._subscribe(J)}catch(fe){J.error(fe)}}forEach(J,fe){return new(fe=Re(fe))((Ne,Qe)=>{const it=new r.Ms({next:_t=>{try{J(_t)}catch(We){Qe(We),it.unsubscribe()}},error:Qe,complete:Ne});this.subscribe(it)})}_subscribe(J){var fe;return null===(fe=this.source)||void 0===fe?void 0:fe.subscribe(J)}[se.s](){return this}pipe(...J){return(0,oe.m)(J)(this)}toPromise(J){return new(J=Re(J))((fe,Ne)=>{let Qe;this.subscribe(it=>Qe=it,it=>Ne(it),()=>fe(Qe))})}}return Ue.create=ae=>new Ue(ae),Ue})();function Re(Ue){var ae;return null!==(ae=Ue??Q.$.Promise)&&void 0!==ae?ae:Promise}},1413:(bt,Ae,O)=>{"use strict";O.d(Ae,{B:()=>le});var r=O(1985),P=O(8359);const oe=(0,O(1853).L)(Re=>function(){Re(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Q=O(7908),Y=O(9786);let le=(()=>{class Re extends r.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(re){const Ue=new W(this,this);return Ue.operator=re,Ue}_throwIfClosed(){if(this.closed)throw new oe}next(re){(0,Y.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Ue of this.currentObservers)Ue.next(re)}})}error(re){(0,Y.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=re;const{observers:Ue}=this;for(;Ue.length;)Ue.shift().error(re)}})}complete(){(0,Y.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:re}=this;for(;re.length;)re.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var re;return(null===(re=this.observers)||void 0===re?void 0:re.length)>0}_trySubscribe(re){return this._throwIfClosed(),super._trySubscribe(re)}_subscribe(re){return this._throwIfClosed(),this._checkFinalizedStatuses(re),this._innerSubscribe(re)}_innerSubscribe(re){const{hasError:Ue,isStopped:ae,observers:J}=this;return Ue||ae?P.Kn:(this.currentObservers=null,J.push(re),new P.yU(()=>{this.currentObservers=null,(0,Q.o)(J,re)}))}_checkFinalizedStatuses(re){const{hasError:Ue,thrownError:ae,isStopped:J}=this;Ue?re.error(ae):J&&re.complete()}asObservable(){const re=new r.c;return re.source=this,re}}return Re.create=(ue,re)=>new W(ue,re),Re})();class W extends le{constructor(ue,re){super(),this.destination=ue,this.source=re}next(ue){var re,Ue;null===(Ue=null===(re=this.destination)||void 0===re?void 0:re.next)||void 0===Ue||Ue.call(re,ue)}error(ue){var re,Ue;null===(Ue=null===(re=this.destination)||void 0===re?void 0:re.error)||void 0===Ue||Ue.call(re,ue)}complete(){var ue,re;null===(re=null===(ue=this.destination)||void 0===ue?void 0:ue.complete)||void 0===re||re.call(ue)}_subscribe(ue){var re,Ue;return null!==(Ue=null===(re=this.source)||void 0===re?void 0:re.subscribe(ue))&&void 0!==Ue?Ue:P.Kn}}},7707:(bt,Ae,O)=>{"use strict";O.d(Ae,{Ms:()=>Ne,vU:()=>Ue});var r=O(8071),P=O(8359),se=O(1026),oe=O(5334),Q=O(5343);const Y=Re("C",void 0,void 0);function Re(_e,Be,et){return{kind:_e,value:Be,error:et}}var ue=O(9270),re=O(9786);class Ue extends P.yU{constructor(Be){super(),this.isStopped=!1,Be?(this.destination=Be,(0,P.Uv)(Be)&&Be.add(this)):this.destination=We}static create(Be,et,ht){return new Ne(Be,et,ht)}next(Be){this.isStopped?_t(function W(_e){return Re("N",_e,void 0)}(Be),this):this._next(Be)}error(Be){this.isStopped?_t(function le(_e){return Re("E",void 0,_e)}(Be),this):(this.isStopped=!0,this._error(Be))}complete(){this.isStopped?_t(Y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Be){this.destination.next(Be)}_error(Be){try{this.destination.error(Be)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ae=Function.prototype.bind;function J(_e,Be){return ae.call(_e,Be)}class fe{constructor(Be){this.partialObserver=Be}next(Be){const{partialObserver:et}=this;if(et.next)try{et.next(Be)}catch(ht){Qe(ht)}}error(Be){const{partialObserver:et}=this;if(et.error)try{et.error(Be)}catch(ht){Qe(ht)}else Qe(Be)}complete(){const{partialObserver:Be}=this;if(Be.complete)try{Be.complete()}catch(et){Qe(et)}}}class Ne extends Ue{constructor(Be,et,ht){let je;if(super(),(0,r.T)(Be)||!Be)je={next:Be??void 0,error:et??void 0,complete:ht??void 0};else{let lt;this&&se.$.useDeprecatedNextContext?(lt=Object.create(Be),lt.unsubscribe=()=>this.unsubscribe(),je={next:Be.next&&J(Be.next,lt),error:Be.error&&J(Be.error,lt),complete:Be.complete&&J(Be.complete,lt)}):je=Be}this.destination=new fe(je)}}function Qe(_e){se.$.useDeprecatedSynchronousErrorHandling?(0,re.l)(_e):(0,oe.m)(_e)}function _t(_e,Be){const{onStoppedNotification:et}=se.$;et&&ue.f.setTimeout(()=>et(_e,Be))}const We={closed:!0,next:Q.l,error:function it(_e){throw _e},complete:Q.l}},8359:(bt,Ae,O)=>{"use strict";O.d(Ae,{Kn:()=>Y,yU:()=>Q,Uv:()=>le});var r=O(8071);const se=(0,O(1853).L)(Re=>function(re){Re(this),this.message=re?`${re.length} errors occurred during unsubscription:\n${re.map((Ue,ae)=>`${ae+1}) ${Ue.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=re});var oe=O(7908);class Q{constructor(ue){this.initialTeardown=ue,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ue;if(!this.closed){this.closed=!0;const{_parentage:re}=this;if(re)if(this._parentage=null,Array.isArray(re))for(const J of re)J.remove(this);else re.remove(this);const{initialTeardown:Ue}=this;if((0,r.T)(Ue))try{Ue()}catch(J){ue=J instanceof se?J.errors:[J]}const{_finalizers:ae}=this;if(ae){this._finalizers=null;for(const J of ae)try{W(J)}catch(fe){ue=ue??[],fe instanceof se?ue=[...ue,...fe.errors]:ue.push(fe)}}if(ue)throw new se(ue)}}add(ue){var re;if(ue&&ue!==this)if(this.closed)W(ue);else{if(ue instanceof Q){if(ue.closed||ue._hasParent(this))return;ue._addParent(this)}(this._finalizers=null!==(re=this._finalizers)&&void 0!==re?re:[]).push(ue)}}_hasParent(ue){const{_parentage:re}=this;return re===ue||Array.isArray(re)&&re.includes(ue)}_addParent(ue){const{_parentage:re}=this;this._parentage=Array.isArray(re)?(re.push(ue),re):re?[re,ue]:ue}_removeParent(ue){const{_parentage:re}=this;re===ue?this._parentage=null:Array.isArray(re)&&(0,oe.o)(re,ue)}remove(ue){const{_finalizers:re}=this;re&&(0,oe.o)(re,ue),ue instanceof Q&&ue._removeParent(this)}}Q.EMPTY=(()=>{const Re=new Q;return Re.closed=!0,Re})();const Y=Q.EMPTY;function le(Re){return Re instanceof Q||Re&&"closed"in Re&&(0,r.T)(Re.remove)&&(0,r.T)(Re.add)&&(0,r.T)(Re.unsubscribe)}function W(Re){(0,r.T)(Re)?Re():Re.unsubscribe()}},1026:(bt,Ae,O)=>{"use strict";O.d(Ae,{$:()=>r});const r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(bt,Ae,O)=>{"use strict";O.d(Ae,{z:()=>ue});var r=O(1985),P=O(3073),se=O(6648),oe=O(3669),Q=O(6450),Y=O(9326),le=O(8496),W=O(4360),Re=O(5225);function ue(...ae){const J=(0,Y.lI)(ae),fe=(0,Y.ms)(ae),{args:Ne,keys:Qe}=(0,P.D)(ae);if(0===Ne.length)return(0,se.H)([],J);const it=new r.c(function re(ae,J,fe=oe.D){return Ne=>{Ue(J,()=>{const{length:Qe}=ae,it=new Array(Qe);let _t=Qe,We=Qe;for(let _e=0;_e{const Be=(0,se.H)(ae[_e],J);let et=!1;Be.subscribe((0,W._)(Ne,ht=>{it[_e]=ht,et||(et=!0,We--),We||Ne.next(fe(it.slice()))},()=>{--_t||Ne.complete()}))},Ne)},Ne)}}(Ne,J,Qe?_t=>(0,le.e)(Qe,_t):oe.D));return fe?it.pipe((0,Q.I)(fe)):it}function Ue(ae,J,fe){ae?(0,Re.N)(fe,ae,J):J()}},8793:(bt,Ae,O)=>{"use strict";O.d(Ae,{x:()=>Q});var r=O(6365),se=O(9326),oe=O(6648);function Q(...Y){return function P(){return(0,r.U)(1)}()((0,oe.H)(Y,(0,se.lI)(Y)))}},9030:(bt,Ae,O)=>{"use strict";O.d(Ae,{v:()=>se});var r=O(1985),P=O(8750);function se(oe){return new r.c(Q=>{(0,P.Tg)(oe()).subscribe(Q)})}},983:(bt,Ae,O)=>{"use strict";O.d(Ae,{w:()=>P});const P=new(O(1985).c)(Q=>Q.complete())},7468:(bt,Ae,O)=>{"use strict";O.d(Ae,{p:()=>W});var r=O(1985),P=O(3073),se=O(8750),oe=O(9326),Q=O(4360),Y=O(6450),le=O(8496);function W(...Re){const ue=(0,oe.ms)(Re),{args:re,keys:Ue}=(0,P.D)(Re),ae=new r.c(J=>{const{length:fe}=re;if(!fe)return void J.complete();const Ne=new Array(fe);let Qe=fe,it=fe;for(let _t=0;_t{We||(We=!0,it--),Ne[_t]=_e},()=>Qe--,void 0,()=>{(!Qe||!We)&&(it||J.next(Ue?(0,le.e)(Ue,Ne):Ne),J.complete())}))}});return ue?ae.pipe((0,Y.I)(ue)):ae}},6648:(bt,Ae,O)=>{"use strict";O.d(Ae,{H:()=>ht});var r=O(8750),P=O(5225),se=O(9974),oe=O(4360);function Q(je,lt=0){return(0,se.N)((Ve,He)=>{Ve.subscribe((0,oe._)(He,Fe=>(0,P.N)(He,je,()=>He.next(Fe),lt),()=>(0,P.N)(He,je,()=>He.complete(),lt),Fe=>(0,P.N)(He,je,()=>He.error(Fe),lt)))})}function Y(je,lt=0){return(0,se.N)((Ve,He)=>{He.add(je.schedule(()=>Ve.subscribe(He),lt))})}var Re=O(1985),re=O(4761),Ue=O(8071);function J(je,lt){if(!je)throw new Error("Iterable cannot be null");return new Re.c(Ve=>{(0,P.N)(Ve,lt,()=>{const He=je[Symbol.asyncIterator]();(0,P.N)(Ve,lt,()=>{He.next().then(Fe=>{Fe.done?Ve.complete():Ve.next(Fe.value)})},0,!0)})})}var fe=O(5055),Ne=O(9858),Qe=O(7441),it=O(5397),_t=O(7953),We=O(591),_e=O(5196);function ht(je,lt){return lt?function et(je,lt){if(null!=je){if((0,fe.l)(je))return function le(je,lt){return(0,r.Tg)(je).pipe(Y(lt),Q(lt))}(je,lt);if((0,Qe.X)(je))return function ue(je,lt){return new Re.c(Ve=>{let He=0;return lt.schedule(function(){He===je.length?Ve.complete():(Ve.next(je[He++]),Ve.closed||this.schedule())})})}(je,lt);if((0,Ne.y)(je))return function W(je,lt){return(0,r.Tg)(je).pipe(Y(lt),Q(lt))}(je,lt);if((0,_t.T)(je))return J(je,lt);if((0,it.x)(je))return function ae(je,lt){return new Re.c(Ve=>{let He;return(0,P.N)(Ve,lt,()=>{He=je[re.l](),(0,P.N)(Ve,lt,()=>{let Fe,Ye;try{({value:Fe,done:Ye}=He.next())}catch(ne){return void Ve.error(ne)}Ye?Ve.complete():Ve.next(Fe)},0,!0)}),()=>(0,Ue.T)(He?.return)&&He.return()})}(je,lt);if((0,_e.U)(je))return function Be(je,lt){return J((0,_e.C)(je),lt)}(je,lt)}throw(0,We.L)(je)}(je,lt):(0,r.Tg)(je)}},8750:(bt,Ae,O)=>{"use strict";O.d(Ae,{Tg:()=>ae});var r=O(1635),P=O(7441),se=O(9858),oe=O(1985),Q=O(5055),Y=O(7953),le=O(591),W=O(5397),Re=O(5196),ue=O(8071),re=O(5334),Ue=O(3494);function ae(_e){if(_e instanceof oe.c)return _e;if(null!=_e){if((0,Q.l)(_e))return function J(_e){return new oe.c(Be=>{const et=_e[Ue.s]();if((0,ue.T)(et.subscribe))return et.subscribe(Be);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_e);if((0,P.X)(_e))return function fe(_e){return new oe.c(Be=>{for(let et=0;et<_e.length&&!Be.closed;et++)Be.next(_e[et]);Be.complete()})}(_e);if((0,se.y)(_e))return function Ne(_e){return new oe.c(Be=>{_e.then(et=>{Be.closed||(Be.next(et),Be.complete())},et=>Be.error(et)).then(null,re.m)})}(_e);if((0,Y.T)(_e))return it(_e);if((0,W.x)(_e))return function Qe(_e){return new oe.c(Be=>{for(const et of _e)if(Be.next(et),Be.closed)return;Be.complete()})}(_e);if((0,Re.U)(_e))return function _t(_e){return it((0,Re.C)(_e))}(_e)}throw(0,le.L)(_e)}function it(_e){return new oe.c(Be=>{(function We(_e,Be){var et,ht,je,lt;return(0,r.sH)(this,void 0,void 0,function*(){try{for(et=(0,r.xN)(_e);!(ht=yield et.next()).done;)if(Be.next(ht.value),Be.closed)return}catch(Ve){je={error:Ve}}finally{try{ht&&!ht.done&&(lt=et.return)&&(yield lt.call(et))}finally{if(je)throw je.error}}Be.complete()})})(_e,Be).catch(et=>Be.error(et))})}},7786:(bt,Ae,O)=>{"use strict";O.d(Ae,{h:()=>Y});var r=O(6365),P=O(8750),se=O(983),oe=O(9326),Q=O(6648);function Y(...le){const W=(0,oe.lI)(le),Re=(0,oe.R0)(le,1/0),ue=le;return ue.length?1===ue.length?(0,P.Tg)(ue[0]):(0,r.U)(Re)((0,Q.H)(ue,W)):se.w}},7673:(bt,Ae,O)=>{"use strict";O.d(Ae,{of:()=>se});var r=O(9326),P=O(6648);function se(...oe){const Q=(0,r.lI)(oe);return(0,P.H)(oe,Q)}},8810:(bt,Ae,O)=>{"use strict";O.d(Ae,{$:()=>se});var r=O(1985),P=O(8071);function se(oe,Q){const Y=(0,P.T)(oe)?oe:()=>oe,le=W=>W.error(Y());return new r.c(Q?W=>Q.schedule(le,0,W):le)}},1584:(bt,Ae,O)=>{"use strict";O.d(Ae,{O:()=>Q});var r=O(1985),P=O(3236),se=O(9470);function Q(Y=0,le,W=P.b){let Re=-1;return null!=le&&((0,se.m)(le)?W=le:Re=le),new r.c(ue=>{let re=function oe(Y){return Y instanceof Date&&!isNaN(Y)}(Y)?+Y-W.now():Y;re<0&&(re=0);let Ue=0;return W.schedule(function(){ue.closed||(ue.next(Ue++),0<=Re?this.schedule(void 0,Re):ue.complete())},re)})}},4360:(bt,Ae,O)=>{"use strict";O.d(Ae,{_:()=>P});var r=O(7707);function P(oe,Q,Y,le,W){return new se(oe,Q,Y,le,W)}class se extends r.vU{constructor(Q,Y,le,W,Re,ue){super(Q),this.onFinalize=Re,this.shouldUnsubscribe=ue,this._next=Y?function(re){try{Y(re)}catch(Ue){Q.error(Ue)}}:super._next,this._error=W?function(re){try{W(re)}catch(Ue){Q.error(Ue)}finally{this.unsubscribe()}}:super._error,this._complete=le?function(){try{le()}catch(re){Q.error(re)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var Q;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Y}=this;super.unsubscribe(),!Y&&(null===(Q=this.onFinalize)||void 0===Q||Q.call(this))}}}},9437:(bt,Ae,O)=>{"use strict";O.d(Ae,{W:()=>oe});var r=O(8750),P=O(4360),se=O(9974);function oe(Q){return(0,se.N)((Y,le)=>{let ue,W=null,Re=!1;W=Y.subscribe((0,P._)(le,void 0,void 0,re=>{ue=(0,r.Tg)(Q(re,oe(Q)(Y))),W?(W.unsubscribe(),W=null,ue.subscribe(le)):Re=!0})),Re&&(W.unsubscribe(),W=null,ue.subscribe(le))})}},274:(bt,Ae,O)=>{"use strict";O.d(Ae,{H:()=>se});var r=O(1397),P=O(8071);function se(oe,Q){return(0,P.T)(Q)?(0,r.Z)(oe,Q,1):(0,r.Z)(oe,1)}},9901:(bt,Ae,O)=>{"use strict";O.d(Ae,{U:()=>se});var r=O(9974),P=O(4360);function se(oe){return(0,r.N)((Q,Y)=>{let le=!1;Q.subscribe((0,P._)(Y,W=>{le=!0,Y.next(W)},()=>{le||Y.next(oe),Y.complete()}))})}},1986:(bt,Ae,O)=>{"use strict";O.d(Ae,{c:()=>ae});var r=O(3236),P=O(8793),se=O(6697),oe=O(9974),Q=O(4360),Y=O(5343),W=O(3703),Re=O(1397),ue=O(8750);function re(J,fe){return fe?Ne=>(0,P.x)(fe.pipe((0,se.s)(1),function le(){return(0,oe.N)((J,fe)=>{J.subscribe((0,Q._)(fe,Y.l))})}()),Ne.pipe(re(J))):(0,Re.Z)((Ne,Qe)=>(0,ue.Tg)(J(Ne,Qe)).pipe((0,se.s)(1),(0,W.u)(Ne)))}var Ue=O(1584);function ae(J,fe=r.E){const Ne=(0,Ue.O)(J,fe);return re(()=>Ne)}},3294:(bt,Ae,O)=>{"use strict";O.d(Ae,{F:()=>oe});var r=O(3669),P=O(9974),se=O(4360);function oe(Y,le=r.D){return Y=Y??Q,(0,P.N)((W,Re)=>{let ue,re=!0;W.subscribe((0,se._)(Re,Ue=>{const ae=le(Ue);(re||!Y(ue,ae))&&(re=!1,ue=ae,Re.next(Ue))}))})}function Q(Y,le){return Y===le}},5964:(bt,Ae,O)=>{"use strict";O.d(Ae,{p:()=>se});var r=O(9974),P=O(4360);function se(oe,Q){return(0,r.N)((Y,le)=>{let W=0;Y.subscribe((0,P._)(le,Re=>oe.call(Q,Re,W++)&&le.next(Re)))})}},980:(bt,Ae,O)=>{"use strict";O.d(Ae,{j:()=>P});var r=O(9974);function P(se){return(0,r.N)((oe,Q)=>{try{oe.subscribe(Q)}finally{Q.add(se)}})}},1594:(bt,Ae,O)=>{"use strict";O.d(Ae,{$:()=>le});var r=O(9350),P=O(5964),se=O(6697),oe=O(9901),Q=O(3774),Y=O(3669);function le(W,Re){const ue=arguments.length>=2;return re=>re.pipe(W?(0,P.p)((Ue,ae)=>W(Ue,ae,re)):Y.D,(0,se.s)(1),ue?(0,oe.U)(Re):(0,Q.v)(()=>new r.G))}},6354:(bt,Ae,O)=>{"use strict";O.d(Ae,{T:()=>se});var r=O(9974),P=O(4360);function se(oe,Q){return(0,r.N)((Y,le)=>{let W=0;Y.subscribe((0,P._)(le,Re=>{le.next(oe.call(Q,Re,W++))}))})}},3703:(bt,Ae,O)=>{"use strict";O.d(Ae,{u:()=>P});var r=O(6354);function P(se){return(0,r.T)(()=>se)}},6365:(bt,Ae,O)=>{"use strict";O.d(Ae,{U:()=>se});var r=O(1397),P=O(3669);function se(oe=1/0){return(0,r.Z)(P.D,oe)}},1397:(bt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>W});var r=O(6354),P=O(8750),se=O(9974),oe=O(5225),Q=O(4360),le=O(8071);function W(Re,ue,re=1/0){return(0,le.T)(ue)?W((Ue,ae)=>(0,r.T)((J,fe)=>ue(Ue,J,ae,fe))((0,P.Tg)(Re(Ue,ae))),re):("number"==typeof ue&&(re=ue),(0,se.N)((Ue,ae)=>function Y(Re,ue,re,Ue,ae,J,fe,Ne){const Qe=[];let it=0,_t=0,We=!1;const _e=()=>{We&&!Qe.length&&!it&&ue.complete()},Be=ht=>it{J&&ue.next(ht),it++;let je=!1;(0,P.Tg)(re(ht,_t++)).subscribe((0,Q._)(ue,lt=>{ae?.(lt),J?Be(lt):ue.next(lt)},()=>{je=!0},void 0,()=>{if(je)try{for(it--;Qe.length&&itet(lt)):et(lt)}_e()}catch(lt){ue.error(lt)}}))};return Re.subscribe((0,Q._)(ue,Be,()=>{We=!0,_e()})),()=>{Ne?.()}}(Ue,ae,Re,re)))}},5245:(bt,Ae,O)=>{"use strict";O.d(Ae,{i:()=>P});var r=O(5964);function P(se){return(0,r.p)((oe,Q)=>se<=Q)}},9172:(bt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>oe});var r=O(8793),P=O(9326),se=O(9974);function oe(...Q){const Y=(0,P.lI)(Q);return(0,se.N)((le,W)=>{(Y?(0,r.x)(Q,le,Y):(0,r.x)(Q,le)).subscribe(W)})}},5558:(bt,Ae,O)=>{"use strict";O.d(Ae,{n:()=>oe});var r=O(8750),P=O(9974),se=O(4360);function oe(Q,Y){return(0,P.N)((le,W)=>{let Re=null,ue=0,re=!1;const Ue=()=>re&&!Re&&W.complete();le.subscribe((0,se._)(W,ae=>{Re?.unsubscribe();let J=0;const fe=ue++;(0,r.Tg)(Q(ae,fe)).subscribe(Re=(0,se._)(W,Ne=>W.next(Y?Y(ae,Ne,fe,J++):Ne),()=>{Re=null,Ue()}))},()=>{re=!0,Ue()}))})}},6697:(bt,Ae,O)=>{"use strict";O.d(Ae,{s:()=>oe});var r=O(983),P=O(9974),se=O(4360);function oe(Q){return Q<=0?()=>r.w:(0,P.N)((Y,le)=>{let W=0;Y.subscribe((0,se._)(le,Re=>{++W<=Q&&(le.next(Re),Q<=W&&le.complete())}))})}},6977:(bt,Ae,O)=>{"use strict";O.d(Ae,{Q:()=>Q});var r=O(9974),P=O(4360),se=O(8750),oe=O(5343);function Q(Y){return(0,r.N)((le,W)=>{(0,se.Tg)(Y).subscribe((0,P._)(W,()=>W.complete(),oe.l)),!W.closed&&le.subscribe(W)})}},8141:(bt,Ae,O)=>{"use strict";O.d(Ae,{M:()=>Q});var r=O(8071),P=O(9974),se=O(4360),oe=O(3669);function Q(Y,le,W){const Re=(0,r.T)(Y)||le||W?{next:Y,error:le,complete:W}:Y;return Re?(0,P.N)((ue,re)=>{var Ue;null===(Ue=Re.subscribe)||void 0===Ue||Ue.call(Re);let ae=!0;ue.subscribe((0,se._)(re,J=>{var fe;null===(fe=Re.next)||void 0===fe||fe.call(Re,J),re.next(J)},()=>{var J;ae=!1,null===(J=Re.complete)||void 0===J||J.call(Re),re.complete()},J=>{var fe;ae=!1,null===(fe=Re.error)||void 0===fe||fe.call(Re,J),re.error(J)},()=>{var J,fe;ae&&(null===(J=Re.unsubscribe)||void 0===J||J.call(Re)),null===(fe=Re.finalize)||void 0===fe||fe.call(Re)}))}):oe.D}},3774:(bt,Ae,O)=>{"use strict";O.d(Ae,{v:()=>oe});var r=O(9350),P=O(9974),se=O(4360);function oe(Y=Q){return(0,P.N)((le,W)=>{let Re=!1;le.subscribe((0,se._)(W,ue=>{Re=!0,W.next(ue)},()=>Re?W.complete():W.error(Y())))})}function Q(){return new r.G}},6780:(bt,Ae,O)=>{"use strict";O.d(Ae,{R:()=>Q});var r=O(8359);class P extends r.yU{constructor(le,W){super()}schedule(le,W=0){return this}}const se={setInterval(Y,le,...W){const{delegate:Re}=se;return Re?.setInterval?Re.setInterval(Y,le,...W):setInterval(Y,le,...W)},clearInterval(Y){const{delegate:le}=se;return(le?.clearInterval||clearInterval)(Y)},delegate:void 0};var oe=O(7908);class Q extends P{constructor(le,W){super(le,W),this.scheduler=le,this.work=W,this.pending=!1}schedule(le,W=0){var Re;if(this.closed)return this;this.state=le;const ue=this.id,re=this.scheduler;return null!=ue&&(this.id=this.recycleAsyncId(re,ue,W)),this.pending=!0,this.delay=W,this.id=null!==(Re=this.id)&&void 0!==Re?Re:this.requestAsyncId(re,this.id,W),this}requestAsyncId(le,W,Re=0){return se.setInterval(le.flush.bind(le,this),Re)}recycleAsyncId(le,W,Re=0){if(null!=Re&&this.delay===Re&&!1===this.pending)return W;null!=W&&se.clearInterval(W)}execute(le,W){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Re=this._execute(le,W);if(Re)return Re;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(le,W){let ue,Re=!1;try{this.work(le)}catch(re){Re=!0,ue=re||new Error("Scheduled action threw falsy error")}if(Re)return this.unsubscribe(),ue}unsubscribe(){if(!this.closed){const{id:le,scheduler:W}=this,{actions:Re}=W;this.work=this.state=this.scheduler=null,this.pending=!1,(0,oe.o)(Re,this),null!=le&&(this.id=this.recycleAsyncId(W,le,null)),this.delay=null,super.unsubscribe()}}}},3604:(bt,Ae,O)=>{"use strict";O.d(Ae,{q:()=>se});const r={now:()=>(r.delegate||Date).now(),delegate:void 0};class P{constructor(Q,Y=P.now){this.schedulerActionCtor=Q,this.now=Y}schedule(Q,Y=0,le){return new this.schedulerActionCtor(this,Q).schedule(le,Y)}}P.now=r.now;class se extends P{constructor(Q,Y=P.now){super(Q,Y),this.actions=[],this._active=!1}flush(Q){const{actions:Y}=this;if(this._active)return void Y.push(Q);let le;this._active=!0;do{if(le=Q.execute(Q.state,Q.delay))break}while(Q=Y.shift());if(this._active=!1,le){for(;Q=Y.shift();)Q.unsubscribe();throw le}}}},3236:(bt,Ae,O)=>{"use strict";O.d(Ae,{E:()=>se,b:()=>oe});var r=O(6780);const se=new(O(3604).q)(r.R),oe=se},9270:(bt,Ae,O)=>{"use strict";O.d(Ae,{f:()=>r});const r={setTimeout(P,se,...oe){const{delegate:Q}=r;return Q?.setTimeout?Q.setTimeout(P,se,...oe):setTimeout(P,se,...oe)},clearTimeout(P){const{delegate:se}=r;return(se?.clearTimeout||clearTimeout)(P)},delegate:void 0}},4761:(bt,Ae,O)=>{"use strict";O.d(Ae,{l:()=>P});const P=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(bt,Ae,O)=>{"use strict";O.d(Ae,{s:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(bt,Ae,O)=>{"use strict";O.d(Ae,{G:()=>P});const P=(0,O(1853).L)(se=>function(){se(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(bt,Ae,O)=>{"use strict";O.d(Ae,{R0:()=>Y,lI:()=>Q,ms:()=>oe});var r=O(8071),P=O(9470);function se(le){return le[le.length-1]}function oe(le){return(0,r.T)(se(le))?le.pop():void 0}function Q(le){return(0,P.m)(se(le))?le.pop():void 0}function Y(le,W){return"number"==typeof se(le)?le.pop():W}},3073:(bt,Ae,O)=>{"use strict";O.d(Ae,{D:()=>Q});const{isArray:r}=Array,{getPrototypeOf:P,prototype:se,keys:oe}=Object;function Q(le){if(1===le.length){const W=le[0];if(r(W))return{args:W,keys:null};if(function Y(le){return le&&"object"==typeof le&&P(le)===se}(W)){const Re=oe(W);return{args:Re.map(ue=>W[ue]),keys:Re}}}return{args:le,keys:null}}},7908:(bt,Ae,O)=>{"use strict";function r(P,se){if(P){const oe=P.indexOf(se);0<=oe&&P.splice(oe,1)}}O.d(Ae,{o:()=>r})},1853:(bt,Ae,O)=>{"use strict";function r(P){const oe=P(Q=>{Error.call(Q),Q.stack=(new Error).stack});return oe.prototype=Object.create(Error.prototype),oe.prototype.constructor=oe,oe}O.d(Ae,{L:()=>r})},8496:(bt,Ae,O)=>{"use strict";function r(P,se){return P.reduce((oe,Q,Y)=>(oe[Q]=se[Y],oe),{})}O.d(Ae,{e:()=>r})},9786:(bt,Ae,O)=>{"use strict";O.d(Ae,{Y:()=>se,l:()=>oe});var r=O(1026);let P=null;function se(Q){if(r.$.useDeprecatedSynchronousErrorHandling){const Y=!P;if(Y&&(P={errorThrown:!1,error:null}),Q(),Y){const{errorThrown:le,error:W}=P;if(P=null,le)throw W}}else Q()}function oe(Q){r.$.useDeprecatedSynchronousErrorHandling&&P&&(P.errorThrown=!0,P.error=Q)}},5225:(bt,Ae,O)=>{"use strict";function r(P,se,oe,Q=0,Y=!1){const le=se.schedule(function(){oe(),Y?P.add(this.schedule(null,Q)):this.unsubscribe()},Q);if(P.add(le),!Y)return le}O.d(Ae,{N:()=>r})},3669:(bt,Ae,O)=>{"use strict";function r(P){return P}O.d(Ae,{D:()=>r})},7441:(bt,Ae,O)=>{"use strict";O.d(Ae,{X:()=>r});const r=P=>P&&"number"==typeof P.length&&"function"!=typeof P},7953:(bt,Ae,O)=>{"use strict";O.d(Ae,{T:()=>P});var r=O(8071);function P(se){return Symbol.asyncIterator&&(0,r.T)(se?.[Symbol.asyncIterator])}},8071:(bt,Ae,O)=>{"use strict";function r(P){return"function"==typeof P}O.d(Ae,{T:()=>r})},5055:(bt,Ae,O)=>{"use strict";O.d(Ae,{l:()=>se});var r=O(3494),P=O(8071);function se(oe){return(0,P.T)(oe[r.s])}},5397:(bt,Ae,O)=>{"use strict";O.d(Ae,{x:()=>se});var r=O(4761),P=O(8071);function se(oe){return(0,P.T)(oe?.[r.l])}},9858:(bt,Ae,O)=>{"use strict";O.d(Ae,{y:()=>P});var r=O(8071);function P(se){return(0,r.T)(se?.then)}},5196:(bt,Ae,O)=>{"use strict";O.d(Ae,{C:()=>se,U:()=>oe});var r=O(1635),P=O(8071);function se(Q){return(0,r.AQ)(this,arguments,function*(){const le=Q.getReader();try{for(;;){const{value:W,done:Re}=yield(0,r.N3)(le.read());if(Re)return yield(0,r.N3)(void 0);yield yield(0,r.N3)(W)}}finally{le.releaseLock()}})}function oe(Q){return(0,P.T)(Q?.getReader)}},9470:(bt,Ae,O)=>{"use strict";O.d(Ae,{m:()=>P});var r=O(8071);function P(se){return se&&(0,r.T)(se.schedule)}},9974:(bt,Ae,O)=>{"use strict";O.d(Ae,{N:()=>se,S:()=>P});var r=O(8071);function P(oe){return(0,r.T)(oe?.lift)}function se(oe){return Q=>{if(P(Q))return Q.lift(function(Y){try{return oe(Y,this)}catch(le){this.error(le)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(bt,Ae,O)=>{"use strict";O.d(Ae,{I:()=>oe});var r=O(6354);const{isArray:P}=Array;function oe(Q){return(0,r.T)(Y=>function se(Q,Y){return P(Y)?Q(...Y):Q(Y)}(Q,Y))}},5343:(bt,Ae,O)=>{"use strict";function r(){}O.d(Ae,{l:()=>r})},1203:(bt,Ae,O)=>{"use strict";O.d(Ae,{F:()=>P,m:()=>se});var r=O(3669);function P(...oe){return se(oe)}function se(oe){return 0===oe.length?r.D:1===oe.length?oe[0]:function(Y){return oe.reduce((le,W)=>W(le),Y)}}},5334:(bt,Ae,O)=>{"use strict";O.d(Ae,{m:()=>se});var r=O(1026),P=O(9270);function se(oe){P.f.setTimeout(()=>{const{onUnhandledError:Q}=r.$;if(!Q)throw oe;Q(oe)})}},591:(bt,Ae,O)=>{"use strict";function r(P){return new TypeError(`You provided ${null!==P&&"object"==typeof P?"an invalid object":`'${P}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}O.d(Ae,{L:()=>r})},9969:(bt,Ae,O)=>{"use strict";O.d(Ae,{FX:()=>_t,K2:()=>le,Ro:()=>P,S6:()=>r,hZ:()=>oe,i0:()=>Q,iF:()=>W,kY:()=>re,kp:()=>se,sf:()=>Qe,ui:()=>it,wk:()=>Re});class r{}class P{}const se="*";function oe(We,_e){return{type:7,name:We,definitions:_e,options:{}}}function Q(We,_e=null){return{type:4,styles:_e,timings:We}}function le(We,_e=null){return{type:2,steps:We,options:_e}}function W(We){return{type:6,styles:We,offset:null}}function Re(We,_e,Be){return{type:0,name:We,styles:_e,options:Be}}function re(We,_e,Be=null){return{type:1,expr:We,animation:_e,options:Be}}class Qe{constructor(_e=0,Be=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=_e+Be}_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){const Be="start"==_e?this._onStartFns:this._onDoneFns;Be.forEach(et=>et()),Be.length=0}}class it{constructor(_e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=_e;let Be=0,et=0,ht=0;const je=this.players.length;0==je?queueMicrotask(()=>this._onFinish()):this.players.forEach(lt=>{lt.onDone(()=>{++Be==je&&this._onFinish()}),lt.onDestroy(()=>{++et==je&&this._onDestroy()}),lt.onStart(()=>{++ht==je&&this._onStart()})}),this.totalTime=this.players.reduce((lt,Ve)=>Math.max(lt,Ve.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){const Be=_e*this.totalTime;this.players.forEach(et=>{const ht=et.totalTime?Math.min(1,Be/et.totalTime):1;et.setPosition(ht)})}getPosition(){const _e=this.players.reduce((Be,et)=>null===Be||et.totalTime>Be.totalTime?et:Be,null);return null!=_e?_e.getPosition():0}beforeDestroy(){this.players.forEach(_e=>{_e.beforeDestroy&&_e.beforeDestroy()})}triggerCallback(_e){const Be="start"==_e?this._onStartFns:this._onDoneFns;Be.forEach(et=>et()),Be.length=0}}const _t="!"},177:(bt,Ae,O)=>{"use strict";O.d(Ae,{AJ:()=>Ui,B3:()=>Cr,EO:()=>zt,Jj:()=>no,MD:()=>Bn,N0:()=>kr,QT:()=>se,QX:()=>Qr,Sm:()=>fe,Sq:()=>bi,T3:()=>rs,UE:()=>Vn,VF:()=>Q,Vy:()=>nr,XO:()=>De,Xr:()=>ws,YU:()=>Mn,Yq:()=>Vt,ZD:()=>oe,_b:()=>Bi,aZ:()=>Qe,bT:()=>Ai,cH:()=>lt,fw:()=>Ne,hb:()=>ae,hj:()=>W,oV:()=>je,pM:()=>bi,qQ:()=>Y,tL:()=>$e,vh:()=>Pr});var r=O(8699);let P=null;function se(){return P}function oe(h){P||(P=h)}class Q{}const Y=new r.nKC("DocumentToken");let le=(()=>{class h{historyGo(E){throw new Error("Not implemented")}static{this.\u0275fac=function(A){return new(A||h)}}static{this.\u0275prov=r.jDH({token:h,factory:function(){return(0,r.WQX)(Re)},providedIn:"platform"})}}return h})();const W=new r.nKC("Location Initialized");let Re=(()=>{class h extends le{constructor(){super(),this._doc=(0,r.WQX)(Y),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return se().getBaseHref(this._doc)}onPopState(E){const A=se().getGlobalEventTarget(this._doc,"window");return A.addEventListener("popstate",E,!1),()=>A.removeEventListener("popstate",E)}onHashChange(E){const A=se().getGlobalEventTarget(this._doc,"window");return A.addEventListener("hashchange",E,!1),()=>A.removeEventListener("hashchange",E)}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(E){this._location.pathname=E}pushState(E,A,K){this._history.pushState(E,A,K)}replaceState(E,A,K){this._history.replaceState(E,A,K)}forward(){this._history.forward()}back(){this._history.back()}historyGo(E=0){this._history.go(E)}getState(){return this._history.state}static{this.\u0275fac=function(A){return new(A||h)}}static{this.\u0275prov=r.jDH({token:h,factory:function(){return new h},providedIn:"platform"})}}return h})();function ue(h,I){if(0==h.length)return I;if(0==I.length)return h;let E=0;return h.endsWith("/")&&E++,I.startsWith("/")&&E++,2==E?h+I.substring(1):1==E?h+I:h+"/"+I}function re(h){const I=h.match(/#|\?|$/),E=I&&I.index||h.length;return h.slice(0,E-("/"===h[E-1]?1:0))+h.slice(E)}function Ue(h){return h&&"?"!==h[0]?"?"+h:h}let ae=(()=>{class h{historyGo(E){throw new Error("Not implemented")}static{this.\u0275fac=function(A){return new(A||h)}}static{this.\u0275prov=r.jDH({token:h,factory:function(){return(0,r.WQX)(fe)},providedIn:"root"})}}return h})();const J=new r.nKC("appBaseHref");let fe=(()=>{class h extends ae{constructor(E,A){super(),this._platformLocation=E,this._removeListenerFns=[],this._baseHref=A??this._platformLocation.getBaseHrefFromDOM()??(0,r.WQX)(Y).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(E){this._removeListenerFns.push(this._platformLocation.onPopState(E),this._platformLocation.onHashChange(E))}getBaseHref(){return this._baseHref}prepareExternalUrl(E){return ue(this._baseHref,E)}path(E=!1){const A=this._platformLocation.pathname+Ue(this._platformLocation.search),K=this._platformLocation.hash;return K&&E?`${A}${K}`:A}pushState(E,A,K,Se){const ke=this.prepareExternalUrl(K+Ue(Se));this._platformLocation.pushState(E,A,ke)}replaceState(E,A,K,Se){const ke=this.prepareExternalUrl(K+Ue(Se));this._platformLocation.replaceState(E,A,ke)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(E=0){this._platformLocation.historyGo?.(E)}static{this.\u0275fac=function(A){return new(A||h)(r.KVO(le),r.KVO(J,8))}}static{this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}}return h})(),Ne=(()=>{class h extends ae{constructor(E,A){super(),this._platformLocation=E,this._baseHref="",this._removeListenerFns=[],null!=A&&(this._baseHref=A)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(E){this._removeListenerFns.push(this._platformLocation.onPopState(E),this._platformLocation.onHashChange(E))}getBaseHref(){return this._baseHref}path(E=!1){let A=this._platformLocation.hash;return null==A&&(A="#"),A.length>0?A.substring(1):A}prepareExternalUrl(E){const A=ue(this._baseHref,E);return A.length>0?"#"+A:A}pushState(E,A,K,Se){let ke=this.prepareExternalUrl(K+Ue(Se));0==ke.length&&(ke=this._platformLocation.pathname),this._platformLocation.pushState(E,A,ke)}replaceState(E,A,K,Se){let ke=this.prepareExternalUrl(K+Ue(Se));0==ke.length&&(ke=this._platformLocation.pathname),this._platformLocation.replaceState(E,A,ke)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(E=0){this._platformLocation.historyGo?.(E)}static{this.\u0275fac=function(A){return new(A||h)(r.KVO(le),r.KVO(J,8))}}static{this.\u0275prov=r.jDH({token:h,factory:h.\u0275fac})}}return h})(),Qe=(()=>{class h{constructor(E){this._subject=new r.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=E;const A=this._locationStrategy.getBaseHref();this._basePath=function _e(h){if(new RegExp("^(https?:)?//").test(h)){const[,E]=h.split(/\/\/[^\/]+/);return E}return h}(re(We(A))),this._locationStrategy.onPopState(K=>{this._subject.emit({url:this.path(!0),pop:!0,state:K.state,type:K.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(E=!1){return this.normalize(this._locationStrategy.path(E))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(E,A=""){return this.path()==this.normalize(E+Ue(A))}normalize(E){return h.stripTrailingSlash(function _t(h,I){if(!h||!I.startsWith(h))return I;const E=I.substring(h.length);return""===E||["/",";","?","#"].includes(E[0])?E:I}(this._basePath,We(E)))}prepareExternalUrl(E){return E&&"/"!==E[0]&&(E="/"+E),this._locationStrategy.prepareExternalUrl(E)}go(E,A="",K=null){this._locationStrategy.pushState(K,"",E,A),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+Ue(A)),K)}replaceState(E,A="",K=null){this._locationStrategy.replaceState(K,"",E,A),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+Ue(A)),K)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(E=0){this._locationStrategy.historyGo?.(E)}onUrlChange(E){return this._urlChangeListeners.push(E),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(A=>{this._notifyUrlChangeListeners(A.url,A.state)})),()=>{const A=this._urlChangeListeners.indexOf(E);this._urlChangeListeners.splice(A,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(E="",A){this._urlChangeListeners.forEach(K=>K(E,A))}subscribe(E,A,K){return this._subject.subscribe({next:E,error:A,complete:K})}static{this.normalizeQueryParams=Ue}static{this.joinWithSlash=ue}static{this.stripTrailingSlash=re}static{this.\u0275fac=function(A){return new(A||h)(r.KVO(ae))}}static{this.\u0275prov=r.jDH({token:h,factory:function(){return function it(){return new Qe((0,r.KVO)(ae))}()},providedIn:"root"})}}return h})();function We(h){return h.replace(/\/index.html$/,"")}var et=function(h){return h[h.Decimal=0]="Decimal",h[h.Percent=1]="Percent",h[h.Currency=2]="Currency",h[h.Scientific=3]="Scientific",h}(et||{}),je=function(h){return h[h.Format=0]="Format",h[h.Standalone=1]="Standalone",h}(je||{}),lt=function(h){return h[h.Narrow=0]="Narrow",h[h.Abbreviated=1]="Abbreviated",h[h.Wide=2]="Wide",h[h.Short=3]="Short",h}(lt||{}),Ve=function(h){return h[h.Short=0]="Short",h[h.Medium=1]="Medium",h[h.Long=2]="Long",h[h.Full=3]="Full",h}(Ve||{}),He=function(h){return h[h.Decimal=0]="Decimal",h[h.Group=1]="Group",h[h.List=2]="List",h[h.PercentSign=3]="PercentSign",h[h.PlusSign=4]="PlusSign",h[h.MinusSign=5]="MinusSign",h[h.Exponential=6]="Exponential",h[h.SuperscriptingExponent=7]="SuperscriptingExponent",h[h.PerMille=8]="PerMille",h[h.Infinity=9]="Infinity",h[h.NaN=10]="NaN",h[h.TimeSeparator=11]="TimeSeparator",h[h.CurrencyDecimal=12]="CurrencyDecimal",h[h.CurrencyGroup=13]="CurrencyGroup",h}(He||{});function De(h,I,E){const A=(0,r.H5H)(h),Se=ge([A[r.KH2.DaysFormat],A[r.KH2.DaysStandalone]],I);return ge(Se,E)}function $e(h,I,E){const A=(0,r.H5H)(h),Se=ge([A[r.KH2.MonthsFormat],A[r.KH2.MonthsStandalone]],I);return ge(Se,E)}function Ie(h,I){return ge((0,r.H5H)(h)[r.KH2.DateFormat],I)}function Oe(h,I){return ge((0,r.H5H)(h)[r.KH2.TimeFormat],I)}function de(h,I){return ge((0,r.H5H)(h)[r.KH2.DateTimeFormat],I)}function xe(h,I){const E=(0,r.H5H)(h),A=E[r.KH2.NumberSymbols][I];if(typeof A>"u"){if(I===He.CurrencyDecimal)return E[r.KH2.NumberSymbols][He.Decimal];if(I===He.CurrencyGroup)return E[r.KH2.NumberSymbols][He.Group]}return A}function ft(h){if(!h[r.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${h[r.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ge(h,I){for(let E=I;E>-1;E--)if(typeof h[E]<"u")return h[E];throw new Error("Locale data API: locale data undefined")}function Ee(h){const[I,E]=h.split(":");return{hours:+I,minutes:+E}}const $=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Me={},z=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var pe=function(h){return h[h.Short=0]="Short",h[h.ShortGMT=1]="ShortGMT",h[h.Long=2]="Long",h[h.Extended=3]="Extended",h}(pe||{}),Je=function(h){return h[h.FullYear=0]="FullYear",h[h.Month=1]="Month",h[h.Date=2]="Date",h[h.Hours=3]="Hours",h[h.Minutes=4]="Minutes",h[h.Seconds=5]="Seconds",h[h.FractionalSeconds=6]="FractionalSeconds",h[h.Day=7]="Day",h}(Je||{}),nt=function(h){return h[h.DayPeriods=0]="DayPeriods",h[h.Days=1]="Days",h[h.Months=2]="Months",h[h.Eras=3]="Eras",h}(nt||{});function Vt(h,I,E,A){let K=function qe(h){if(ee(h))return h;if("number"==typeof h&&!isNaN(h))return new Date(h);if("string"==typeof h){if(h=h.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(h)){const[K,Se=1,ke=1]=h.split("-").map(dt=>+dt);return Dt(K,Se-1,ke)}const E=parseFloat(h);if(!isNaN(h-E))return new Date(E);let A;if(A=h.match($))return function Ge(h){const I=new Date(0);let E=0,A=0;const K=h[8]?I.setUTCFullYear:I.setFullYear,Se=h[8]?I.setUTCHours:I.setHours;h[9]&&(E=Number(h[9]+h[10]),A=Number(h[9]+h[11])),K.call(I,Number(h[1]),Number(h[2])-1,Number(h[3]));const ke=Number(h[4]||0)-E,dt=Number(h[5]||0)-A,Xt=Number(h[6]||0),nn=Math.floor(1e3*parseFloat("0."+(h[7]||0)));return Se.call(I,ke,dt,Xt,nn),I}(A)}const I=new Date(h);if(!ee(I))throw new Error(`Unable to convert "${h}" into a date`);return I}(h);I=St(E,I)||I;let dt,ke=[];for(;I;){if(dt=z.exec(I),!dt){ke.push(I);break}{ke=ke.concat(dt.slice(1));const kt=ke.pop();if(!kt)break;I=kt}}let Xt=K.getTimezoneOffset();A&&(Xt=yi(A,Xt),K=function mr(h,I,E){const A=E?-1:1,K=h.getTimezoneOffset();return function Li(h,I){return(h=new Date(h.getTime())).setMinutes(h.getMinutes()+I),h}(h,A*(yi(I,K)-K))}(K,A,!0));let nn="";return ke.forEach(kt=>{const Kt=function li(h){if(Un[h])return Un[h];let I;switch(h){case"G":case"GG":case"GGG":I=vn(nt.Eras,lt.Abbreviated);break;case"GGGG":I=vn(nt.Eras,lt.Wide);break;case"GGGGG":I=vn(nt.Eras,lt.Narrow);break;case"y":I=bn(Je.FullYear,1,0,!1,!0);break;case"yy":I=bn(Je.FullYear,2,0,!0,!0);break;case"yyy":I=bn(Je.FullYear,3,0,!1,!0);break;case"yyyy":I=bn(Je.FullYear,4,0,!1,!0);break;case"Y":I=Yn(1);break;case"YY":I=Yn(2,!0);break;case"YYY":I=Yn(3);break;case"YYYY":I=Yn(4);break;case"M":case"L":I=bn(Je.Month,1,1);break;case"MM":case"LL":I=bn(Je.Month,2,1);break;case"MMM":I=vn(nt.Months,lt.Abbreviated);break;case"MMMM":I=vn(nt.Months,lt.Wide);break;case"MMMMM":I=vn(nt.Months,lt.Narrow);break;case"LLL":I=vn(nt.Months,lt.Abbreviated,je.Standalone);break;case"LLLL":I=vn(nt.Months,lt.Wide,je.Standalone);break;case"LLLLL":I=vn(nt.Months,lt.Narrow,je.Standalone);break;case"w":I=Qn(1);break;case"ww":I=Qn(2);break;case"W":I=Qn(1,!0);break;case"d":I=bn(Je.Date,1);break;case"dd":I=bn(Je.Date,2);break;case"c":case"cc":I=bn(Je.Day,1);break;case"ccc":I=vn(nt.Days,lt.Abbreviated,je.Standalone);break;case"cccc":I=vn(nt.Days,lt.Wide,je.Standalone);break;case"ccccc":I=vn(nt.Days,lt.Narrow,je.Standalone);break;case"cccccc":I=vn(nt.Days,lt.Short,je.Standalone);break;case"E":case"EE":case"EEE":I=vn(nt.Days,lt.Abbreviated);break;case"EEEE":I=vn(nt.Days,lt.Wide);break;case"EEEEE":I=vn(nt.Days,lt.Narrow);break;case"EEEEEE":I=vn(nt.Days,lt.Short);break;case"a":case"aa":case"aaa":I=vn(nt.DayPeriods,lt.Abbreviated);break;case"aaaa":I=vn(nt.DayPeriods,lt.Wide);break;case"aaaaa":I=vn(nt.DayPeriods,lt.Narrow);break;case"b":case"bb":case"bbb":I=vn(nt.DayPeriods,lt.Abbreviated,je.Standalone,!0);break;case"bbbb":I=vn(nt.DayPeriods,lt.Wide,je.Standalone,!0);break;case"bbbbb":I=vn(nt.DayPeriods,lt.Narrow,je.Standalone,!0);break;case"B":case"BB":case"BBB":I=vn(nt.DayPeriods,lt.Abbreviated,je.Format,!0);break;case"BBBB":I=vn(nt.DayPeriods,lt.Wide,je.Format,!0);break;case"BBBBB":I=vn(nt.DayPeriods,lt.Narrow,je.Format,!0);break;case"h":I=bn(Je.Hours,1,-12);break;case"hh":I=bn(Je.Hours,2,-12);break;case"H":I=bn(Je.Hours,1);break;case"HH":I=bn(Je.Hours,2);break;case"m":I=bn(Je.Minutes,1);break;case"mm":I=bn(Je.Minutes,2);break;case"s":I=bn(Je.Seconds,1);break;case"ss":I=bn(Je.Seconds,2);break;case"S":I=bn(Je.FractionalSeconds,1);break;case"SS":I=bn(Je.FractionalSeconds,2);break;case"SSS":I=bn(Je.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":I=Yt(pe.Short);break;case"ZZZZZ":I=Yt(pe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":I=Yt(pe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":I=Yt(pe.Long);break;default:return null}return Un[h]=I,I}(kt);nn+=Kt?Kt(K,E,Xt):"''"===kt?"'":kt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),nn}function Dt(h,I,E){const A=new Date(0);return A.setFullYear(h,I,E),A.setHours(0,0,0),A}function St(h,I){const E=function Ye(h){return(0,r.H5H)(h)[r.KH2.LocaleId]}(h);if(Me[E]=Me[E]||{},Me[E][I])return Me[E][I];let A="";switch(I){case"shortDate":A=Ie(h,Ve.Short);break;case"mediumDate":A=Ie(h,Ve.Medium);break;case"longDate":A=Ie(h,Ve.Long);break;case"fullDate":A=Ie(h,Ve.Full);break;case"shortTime":A=Oe(h,Ve.Short);break;case"mediumTime":A=Oe(h,Ve.Medium);break;case"longTime":A=Oe(h,Ve.Long);break;case"fullTime":A=Oe(h,Ve.Full);break;case"short":const K=St(h,"shortTime"),Se=St(h,"shortDate");A=wn(de(h,Ve.Short),[K,Se]);break;case"medium":const ke=St(h,"mediumTime"),dt=St(h,"mediumDate");A=wn(de(h,Ve.Medium),[ke,dt]);break;case"long":const Xt=St(h,"longTime"),nn=St(h,"longDate");A=wn(de(h,Ve.Long),[Xt,nn]);break;case"full":const kt=St(h,"fullTime"),Kt=St(h,"fullDate");A=wn(de(h,Ve.Full),[kt,Kt])}return A&&(Me[E][I]=A),A}function wn(h,I){return I&&(h=h.replace(/\{([^}]+)}/g,function(E,A){return null!=I&&A in I?I[A]:E})),h}function rn(h,I,E="-",A,K){let Se="";(h<0||K&&h<=0)&&(K?h=1-h:(h=-h,Se=E));let ke=String(h);for(;ke.length0||dt>-E)&&(dt+=E),h===Je.Hours)0===dt&&-12===E&&(dt=12);else if(h===Je.FractionalSeconds)return function pn(h,I){return rn(h,3).substring(0,I)}(dt,I);const Xt=xe(ke,He.MinusSign);return rn(dt,I,Xt,A,K)}}function vn(h,I,E=je.Format,A=!1){return function(K,Se){return function ki(h,I,E,A,K,Se){switch(E){case nt.Months:return $e(I,K,A)[h.getMonth()];case nt.Days:return De(I,K,A)[h.getDay()];case nt.DayPeriods:const ke=h.getHours(),dt=h.getMinutes();if(Se){const nn=function tn(h){const I=(0,r.H5H)(h);return ft(I),(I[r.KH2.ExtraData][2]||[]).map(A=>"string"==typeof A?Ee(A):[Ee(A[0]),Ee(A[1])])}(I),kt=function Lt(h,I,E){const A=(0,r.H5H)(h);ft(A);const Se=ge([A[r.KH2.ExtraData][0],A[r.KH2.ExtraData][1]],I)||[];return ge(Se,E)||[]}(I,K,A),Kt=nn.findIndex(mn=>{if(Array.isArray(mn)){const[ln,sn]=mn,_n=ke>=ln.hours&&dt>=ln.minutes,Rn=ke0?Math.floor(K/60):Math.ceil(K/60);switch(h){case pe.Short:return(K>=0?"+":"")+rn(ke,2,Se)+rn(Math.abs(K%60),2,Se);case pe.ShortGMT:return"GMT"+(K>=0?"+":"")+rn(ke,1,Se);case pe.Long:return"GMT"+(K>=0?"+":"")+rn(ke,2,Se)+":"+rn(Math.abs(K%60),2,Se);case pe.Extended:return 0===A?"Z":(K>=0?"+":"")+rn(ke,2,Se)+":"+rn(Math.abs(K%60),2,Se);default:throw new Error(`Unknown zone width "${h}"`)}}}const oi=0,Mi=4;function ai(h){return Dt(h.getFullYear(),h.getMonth(),h.getDate()+(Mi-h.getDay()))}function Qn(h,I=!1){return function(E,A){let K;if(I){const Se=new Date(E.getFullYear(),E.getMonth(),1).getDay()-1,ke=E.getDate();K=1+Math.floor((ke+Se)/7)}else{const Se=ai(E),ke=function Hn(h){const I=Dt(h,oi,1).getDay();return Dt(h,0,1+(I<=Mi?Mi:Mi+7)-I)}(Se.getFullYear()),dt=Se.getTime()-ke.getTime();K=1+Math.round(dt/6048e5)}return rn(K,h,xe(A,He.MinusSign))}}function Yn(h,I=!1){return function(E,A){return rn(ai(E).getFullYear(),h,xe(A,He.MinusSign),I)}}const Un={};function yi(h,I){h=h.replace(/:/g,"");const E=Date.parse("Jan 01, 1970 00:00:00 "+h)/6e4;return isNaN(E)?I:E}function ee(h){return h instanceof Date&&!isNaN(h.valueOf())}const ve=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Gt(h){const I=parseInt(h);if(isNaN(I))throw new Error("Invalid integer literal when parsing "+h);return I}function zt(h,I,E){return(0,r.XSP)(h,I,E)}function Bi(h,I){I=encodeURIComponent(I);for(const E of h.split(";")){const A=E.indexOf("="),[K,Se]=-1==A?[E,""]:[E.slice(0,A),E.slice(A+1)];if(K.trim()===I)return decodeURIComponent(Se)}return null}const ci=/\s+/,Tn=[];let Mn=(()=>{class h{constructor(E,A,K,Se){this._iterableDiffers=E,this._keyValueDiffers=A,this._ngEl=K,this._renderer=Se,this.initialClasses=Tn,this.stateMap=new Map}set klass(E){this.initialClasses=null!=E?E.trim().split(ci):Tn}set ngClass(E){this.rawClass="string"==typeof E?E.trim().split(ci):E}ngDoCheck(){for(const A of this.initialClasses)this._updateState(A,!0);const E=this.rawClass;if(Array.isArray(E)||E instanceof Set)for(const A of E)this._updateState(A,!0);else if(null!=E)for(const A of Object.keys(E))this._updateState(A,!!E[A]);this._applyStateDiff()}_updateState(E,A){const K=this.stateMap.get(E);void 0!==K?(K.enabled!==A&&(K.changed=!0,K.enabled=A),K.touched=!0):this.stateMap.set(E,{enabled:A,changed:!0,touched:!0})}_applyStateDiff(){for(const E of this.stateMap){const A=E[0],K=E[1];K.changed?(this._toggleClass(A,K.enabled),K.changed=!1):K.touched||(K.enabled&&this._toggleClass(A,!1),this.stateMap.delete(A)),K.touched=!1}}_toggleClass(E,A){(E=E.trim()).length>0&&E.split(ci).forEach(K=>{A?this._renderer.addClass(this._ngEl.nativeElement,K):this._renderer.removeClass(this._ngEl.nativeElement,K)})}static{this.\u0275fac=function(A){return new(A||h)(r.rXU(r._q3),r.rXU(r.MKu),r.rXU(r.aKT),r.rXU(r.sFG))}}static{this.\u0275dir=r.FsC({type:h,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}}return h})();class ti{constructor(I,E,A,K){this.$implicit=I,this.ngForOf=E,this.index=A,this.count=K}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let bi=(()=>{class h{set ngForOf(E){this._ngForOf=E,this._ngForOfDirty=!0}set ngForTrackBy(E){this._trackByFn=E}get ngForTrackBy(){return this._trackByFn}constructor(E,A,K){this._viewContainer=E,this._template=A,this._differs=K,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(E){E&&(this._template=E)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const E=this._ngForOf;!this._differ&&E&&(this._differ=this._differs.find(E).create(this.ngForTrackBy))}if(this._differ){const E=this._differ.diff(this._ngForOf);E&&this._applyChanges(E)}}_applyChanges(E){const A=this._viewContainer;E.forEachOperation((K,Se,ke)=>{if(null==K.previousIndex)A.createEmbeddedView(this._template,new ti(K.item,this._ngForOf,-1,-1),null===ke?void 0:ke);else if(null==ke)A.remove(null===Se?void 0:Se);else if(null!==Se){const dt=A.get(Se);A.move(dt,ke),ni(dt,K)}});for(let K=0,Se=A.length;K{ni(A.get(K.currentIndex),K)})}static ngTemplateContextGuard(E,A){return!0}static{this.\u0275fac=function(A){return new(A||h)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(r._q3))}}static{this.\u0275dir=r.FsC({type:h,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return h})();function ni(h,I){h.context.$implicit=I.item}let Ai=(()=>{class h{constructor(E,A){this._viewContainer=E,this._context=new Kn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=A}set ngIf(E){this._context.$implicit=this._context.ngIf=E,this._updateView()}set ngIfThen(E){tr("ngIfThen",E),this._thenTemplateRef=E,this._thenViewRef=null,this._updateView()}set ngIfElse(E){tr("ngIfElse",E),this._elseTemplateRef=E,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(E,A){return!0}static{this.\u0275fac=function(A){return new(A||h)(r.rXU(r.c1b),r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:h,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return h})();class Kn{constructor(){this.$implicit=null,this.ngIf=null}}function tr(h,I){if(I&&!I.createEmbeddedView)throw new Error(`${h} must be a TemplateRef, but received '${(0,r.Tbb)(I)}'.`)}let Cr=(()=>{class h{constructor(E,A,K){this._ngEl=E,this._differs=A,this._renderer=K,this._ngStyle=null,this._differ=null}set ngStyle(E){this._ngStyle=E,!this._differ&&E&&(this._differ=this._differs.find(E).create())}ngDoCheck(){if(this._differ){const E=this._differ.diff(this._ngStyle);E&&this._applyChanges(E)}}_setStyle(E,A){const[K,Se]=E.split("."),ke=-1===K.indexOf("-")?void 0:r.czy.DashCase;null!=A?this._renderer.setStyle(this._ngEl.nativeElement,K,Se?`${A}${Se}`:A,ke):this._renderer.removeStyle(this._ngEl.nativeElement,K,ke)}_applyChanges(E){E.forEachRemovedItem(A=>this._setStyle(A.key,null)),E.forEachAddedItem(A=>this._setStyle(A.key,A.currentValue)),E.forEachChangedItem(A=>this._setStyle(A.key,A.currentValue))}static{this.\u0275fac=function(A){return new(A||h)(r.rXU(r.aKT),r.rXU(r.MKu),r.rXU(r.sFG))}}static{this.\u0275dir=r.FsC({type:h,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return h})(),rs=(()=>{class h{constructor(E){this._viewContainerRef=E,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(E){if(E.ngTemplateOutlet||E.ngTemplateOutletInjector){const A=this._viewContainerRef;if(this._viewRef&&A.remove(A.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:K,ngTemplateOutletContext:Se,ngTemplateOutletInjector:ke}=this;this._viewRef=A.createEmbeddedView(K,Se,ke?{injector:ke}:void 0)}else this._viewRef=null}else this._viewRef&&E.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static{this.\u0275fac=function(A){return new(A||h)(r.rXU(r.c1b))}}static{this.\u0275dir=r.FsC({type:h,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[r.OA$]})}}return h})();function Hi(h,I){return new r.wOt(2100,!1)}class ys{createSubscription(I,E){return(0,r.O8t)(()=>I.subscribe({next:E,error:A=>{throw A}}))}dispose(I){(0,r.O8t)(()=>I.unsubscribe())}}class bs{createSubscription(I,E){return I.then(E,A=>{throw A})}dispose(I){}}const Ds=new bs,zr=new ys;let no=(()=>{class h{constructor(E){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=E}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(E){return this._obj?E!==this._obj?(this._dispose(),this.transform(E)):this._latestValue:(E&&this._subscribe(E),this._latestValue)}_subscribe(E){this._obj=E,this._strategy=this._selectStrategy(E),this._subscription=this._strategy.createSubscription(E,A=>this._updateLatestValue(E,A))}_selectStrategy(E){if((0,r.jNT)(E))return Ds;if((0,r.zjR)(E))return zr;throw Hi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(E,A){E===this._obj&&(this._latestValue=A,this._ref.markForCheck())}static{this.\u0275fac=function(A){return new(A||h)(r.rXU(r.gRc,16))}}static{this.\u0275pipe=r.EJ8({name:"async",type:h,pure:!1,standalone:!0})}}return h})();const Yi=new r.nKC("DATE_PIPE_DEFAULT_TIMEZONE"),Mr=new r.nKC("DATE_PIPE_DEFAULT_OPTIONS");let Pr=(()=>{class h{constructor(E,A,K){this.locale=E,this.defaultTimezone=A,this.defaultOptions=K}transform(E,A,K,Se){if(null==E||""===E||E!=E)return null;try{return Vt(E,A??this.defaultOptions?.dateFormat??"mediumDate",Se||this.locale,K??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(ke){throw Hi()}}static{this.\u0275fac=function(A){return new(A||h)(r.rXU(r.xe9,16),r.rXU(Yi,24),r.rXU(Mr,24))}}static{this.\u0275pipe=r.EJ8({name:"date",type:h,pure:!0,standalone:!0})}}return h})(),Qr=(()=>{class h{constructor(E){this._locale=E}transform(E,A,K){if(!function Fr(h){return!(null==h||""===h||h!=h)}(E))return null;K=K||this._locale;try{return function at(h,I,E){return function Le(h,I,E,A,K,Se,ke=!1){let dt="",Xt=!1;if(isFinite(h)){let nn=function Mt(h){let A,K,Se,ke,dt,I=Math.abs(h)+"",E=0;for((K=I.indexOf("."))>-1&&(I=I.replace(".","")),(Se=I.search(/e/i))>0?(K<0&&(K=Se),K+=+I.slice(Se+1),I=I.substring(0,Se)):K<0&&(K=I.length),Se=0;"0"===I.charAt(Se);Se++);if(Se===(dt=I.length))A=[0],K=1;else{for(dt--;"0"===I.charAt(dt);)dt--;for(K-=Se,A=[],ke=0;Se<=dt;Se++,ke++)A[ke]=Number(I.charAt(Se))}return K>22&&(A=A.splice(0,21),E=K-1,K=1),{digits:A,exponent:E,integerLen:K}}(h);ke&&(nn=function Tt(h){if(0===h.digits[0])return h;const I=h.digits.length-h.integerLen;return h.exponent?h.exponent+=2:(0===I?h.digits.push(0,0):1===I&&h.digits.push(0),h.integerLen+=2),h}(nn));let kt=I.minInt,Kt=I.minFrac,mn=I.maxFrac;if(Se){const mi=Se.match(ve);if(null===mi)throw new Error(`${Se} is not a valid digit info`);const Vr=mi[1],ar=mi[3],Ei=mi[5];null!=Vr&&(kt=Gt(Vr)),null!=ar&&(Kt=Gt(ar)),null!=Ei?mn=Gt(Ei):null!=ar&&Kt>mn&&(mn=Kt)}!function Fn(h,I,E){if(I>E)throw new Error(`The minimum number of digits after fraction (${I}) is higher than the maximum (${E}).`);let A=h.digits,K=A.length-h.integerLen;const Se=Math.min(Math.max(I,K),E);let ke=Se+h.integerLen,dt=A[ke];if(ke>0){A.splice(Math.max(h.integerLen,ke));for(let Kt=ke;Kt=5)if(ke-1<0){for(let Kt=0;Kt>ke;Kt--)A.unshift(0),h.integerLen++;A.unshift(1),h.integerLen++}else A[ke-1]++;for(;K=nn?sn.pop():Xt=!1),mn>=10?1:0},0);kt&&(A.unshift(kt),h.integerLen++)}(nn,Kt,mn);let ln=nn.digits,sn=nn.integerLen;const _n=nn.exponent;let Rn=[];for(Xt=ln.every(mi=>!mi);sn0?Rn=ln.splice(sn,ln.length):(Rn=ln,ln=[0]);const Ri=[];for(ln.length>=I.lgSize&&Ri.unshift(ln.splice(-I.lgSize,ln.length).join(""));ln.length>I.gSize;)Ri.unshift(ln.splice(-I.gSize,ln.length).join(""));ln.length&&Ri.unshift(ln.join("")),dt=Ri.join(xe(E,A)),Rn.length&&(dt+=xe(E,K)+Rn.join("")),_n&&(dt+=xe(E,He.Exponential)+"+"+_n)}else dt=xe(E,He.Infinity);return dt=h<0&&!Xt?I.negPre+dt+I.negSuf:I.posPre+dt+I.posSuf,dt}(h,function yt(h,I="-"){const E={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},A=h.split(";"),K=A[0],Se=A[1],ke=-1!==K.indexOf(".")?K.split("."):[K.substring(0,K.lastIndexOf("0")+1),K.substring(K.lastIndexOf("0")+1)],dt=ke[0],Xt=ke[1]||"";E.posPre=dt.substring(0,dt.indexOf("#"));for(let kt=0;kt{class h{static{this.\u0275fac=function(A){return new(A||h)}}static{this.\u0275mod=r.$C({type:h})}static{this.\u0275inj=r.G2t({})}}return h})();const Ui="browser",ii="server";function Vn(h){return h===Ui}function nr(h){return h===ii}let ws=(()=>{class h{static{this.\u0275prov=(0,r.jDH)({token:h,providedIn:"root",factory:()=>new vr((0,r.KVO)(Y),window)})}}return h})();class vr{constructor(I,E){this.document=I,this.window=E,this.offset=()=>[0,0]}setOffset(I){this.offset=Array.isArray(I)?()=>I:I}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(I){this.supportsScrolling()&&this.window.scrollTo(I[0],I[1])}scrollToAnchor(I){if(!this.supportsScrolling())return;const E=function Zn(h,I){const E=h.getElementById(I)||h.getElementsByName(I)[0];if(E)return E;if("function"==typeof h.createTreeWalker&&h.body&&"function"==typeof h.body.attachShadow){const A=h.createTreeWalker(h.body,NodeFilter.SHOW_ELEMENT);let K=A.currentNode;for(;K;){const Se=K.shadowRoot;if(Se){const ke=Se.getElementById(I)||Se.querySelector(`[name="${I}"]`);if(ke)return ke}K=A.nextNode()}}return null}(this.document,I);E&&(this.scrollToElement(E),E.focus())}setHistoryScrollRestoration(I){this.supportsScrolling()&&(this.window.history.scrollRestoration=I)}scrollToElement(I){const E=I.getBoundingClientRect(),A=E.left+this.window.pageXOffset,K=E.top+this.window.pageYOffset,Se=this.offset();this.window.scrollTo(A-Se[0],K-Se[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class kr{}},1626:(bt,Ae,O)=>{"use strict";O.d(Ae,{Kd:()=>Fe,Lr:()=>ae,Nl:()=>_e,Qq:()=>Ce,a7:()=>ft,hv:()=>Ye,q1:()=>ve});var r=O(8699),P=O(7673),se=O(6648),oe=O(1985),Q=O(274),Y=O(5964),le=O(6354),W=O(980),Re=O(5558),ue=O(177);class re{}class Ue{}class ae{constructor(q){this.normalizedNames=new Map,this.lazyUpdate=null,q?"string"==typeof q?this.lazyInit=()=>{this.headers=new Map,q.split("\n").forEach(ye=>{const at=ye.indexOf(":");if(at>0){const yt=ye.slice(0,at),Tt=yt.toLowerCase(),Mt=ye.slice(at+1).trim();this.maybeSetNormalizedName(yt,Tt),this.headers.has(Tt)?this.headers.get(Tt).push(Mt):this.headers.set(Tt,[Mt])}})}:typeof Headers<"u"&&q instanceof Headers?(this.headers=new Map,q.forEach((ye,at)=>{this.setHeaderEntries(at,ye)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(q).forEach(([ye,at])=>{this.setHeaderEntries(ye,at)})}:this.headers=new Map}has(q){return this.init(),this.headers.has(q.toLowerCase())}get(q){this.init();const ye=this.headers.get(q.toLowerCase());return ye&&ye.length>0?ye[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(q){return this.init(),this.headers.get(q.toLowerCase())||null}append(q,ye){return this.clone({name:q,value:ye,op:"a"})}set(q,ye){return this.clone({name:q,value:ye,op:"s"})}delete(q,ye){return this.clone({name:q,value:ye,op:"d"})}maybeSetNormalizedName(q,ye){this.normalizedNames.has(ye)||this.normalizedNames.set(ye,q)}init(){this.lazyInit&&(this.lazyInit instanceof ae?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(q=>this.applyUpdate(q)),this.lazyUpdate=null))}copyFrom(q){q.init(),Array.from(q.headers.keys()).forEach(ye=>{this.headers.set(ye,q.headers.get(ye)),this.normalizedNames.set(ye,q.normalizedNames.get(ye))})}clone(q){const ye=new ae;return ye.lazyInit=this.lazyInit&&this.lazyInit instanceof ae?this.lazyInit:this,ye.lazyUpdate=(this.lazyUpdate||[]).concat([q]),ye}applyUpdate(q){const ye=q.name.toLowerCase();switch(q.op){case"a":case"s":let at=q.value;if("string"==typeof at&&(at=[at]),0===at.length)return;this.maybeSetNormalizedName(q.name,ye);const yt=("a"===q.op?this.headers.get(ye):void 0)||[];yt.push(...at),this.headers.set(ye,yt);break;case"d":const Tt=q.value;if(Tt){let Mt=this.headers.get(ye);if(!Mt)return;Mt=Mt.filter(Fn=>-1===Tt.indexOf(Fn)),0===Mt.length?(this.headers.delete(ye),this.normalizedNames.delete(ye)):this.headers.set(ye,Mt)}else this.headers.delete(ye),this.normalizedNames.delete(ye)}}setHeaderEntries(q,ye){const at=(Array.isArray(ye)?ye:[ye]).map(Tt=>Tt.toString()),yt=q.toLowerCase();this.headers.set(yt,at),this.maybeSetNormalizedName(q,yt)}forEach(q){this.init(),Array.from(this.normalizedNames.keys()).forEach(ye=>q(this.normalizedNames.get(ye),this.headers.get(ye)))}}class fe{encodeKey(q){return _t(q)}encodeValue(q){return _t(q)}decodeKey(q){return decodeURIComponent(q)}decodeValue(q){return decodeURIComponent(q)}}const Qe=/%(\d[a-f0-9])/gi,it={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _t(Le){return encodeURIComponent(Le).replace(Qe,(q,ye)=>it[ye]??q)}function We(Le){return`${Le}`}class _e{constructor(q={}){if(this.updates=null,this.cloneFrom=null,this.encoder=q.encoder||new fe,q.fromString){if(q.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Ne(Le,q){const ye=new Map;return Le.length>0&&Le.replace(/^\?/,"").split("&").forEach(yt=>{const Tt=yt.indexOf("="),[Mt,Fn]=-1==Tt?[q.decodeKey(yt),""]:[q.decodeKey(yt.slice(0,Tt)),q.decodeValue(yt.slice(Tt+1))],Gt=ye.get(Mt)||[];Gt.push(Fn),ye.set(Mt,Gt)}),ye}(q.fromString,this.encoder)}else q.fromObject?(this.map=new Map,Object.keys(q.fromObject).forEach(ye=>{const at=q.fromObject[ye],yt=Array.isArray(at)?at.map(We):[We(at)];this.map.set(ye,yt)})):this.map=null}has(q){return this.init(),this.map.has(q)}get(q){this.init();const ye=this.map.get(q);return ye?ye[0]:null}getAll(q){return this.init(),this.map.get(q)||null}keys(){return this.init(),Array.from(this.map.keys())}append(q,ye){return this.clone({param:q,value:ye,op:"a"})}appendAll(q){const ye=[];return Object.keys(q).forEach(at=>{const yt=q[at];Array.isArray(yt)?yt.forEach(Tt=>{ye.push({param:at,value:Tt,op:"a"})}):ye.push({param:at,value:yt,op:"a"})}),this.clone(ye)}set(q,ye){return this.clone({param:q,value:ye,op:"s"})}delete(q,ye){return this.clone({param:q,value:ye,op:"d"})}toString(){return this.init(),this.keys().map(q=>{const ye=this.encoder.encodeKey(q);return this.map.get(q).map(at=>ye+"="+this.encoder.encodeValue(at)).join("&")}).filter(q=>""!==q).join("&")}clone(q){const ye=new _e({encoder:this.encoder});return ye.cloneFrom=this.cloneFrom||this,ye.updates=(this.updates||[]).concat(q),ye}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(q=>this.map.set(q,this.cloneFrom.map.get(q))),this.updates.forEach(q=>{switch(q.op){case"a":case"s":const ye=("a"===q.op?this.map.get(q.param):void 0)||[];ye.push(We(q.value)),this.map.set(q.param,ye);break;case"d":if(void 0===q.value){this.map.delete(q.param);break}{let at=this.map.get(q.param)||[];const yt=at.indexOf(We(q.value));-1!==yt&&at.splice(yt,1),at.length>0?this.map.set(q.param,at):this.map.delete(q.param)}}}),this.cloneFrom=this.updates=null)}}class et{constructor(){this.map=new Map}set(q,ye){return this.map.set(q,ye),this}get(q){return this.map.has(q)||this.map.set(q,q.defaultValue()),this.map.get(q)}delete(q){return this.map.delete(q),this}has(q){return this.map.has(q)}keys(){return this.map.keys()}}function je(Le){return typeof ArrayBuffer<"u"&&Le instanceof ArrayBuffer}function lt(Le){return typeof Blob<"u"&&Le instanceof Blob}function Ve(Le){return typeof FormData<"u"&&Le instanceof FormData}class Fe{constructor(q,ye,at,yt){let Tt;if(this.url=ye,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=q.toUpperCase(),function ht(Le){switch(Le){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||yt?(this.body=void 0!==at?at:null,Tt=yt):Tt=at,Tt&&(this.reportProgress=!!Tt.reportProgress,this.withCredentials=!!Tt.withCredentials,Tt.responseType&&(this.responseType=Tt.responseType),Tt.headers&&(this.headers=Tt.headers),Tt.context&&(this.context=Tt.context),Tt.params&&(this.params=Tt.params)),this.headers||(this.headers=new ae),this.context||(this.context=new et),this.params){const Mt=this.params.toString();if(0===Mt.length)this.urlWithParams=ye;else{const Fn=ye.indexOf("?");this.urlWithParams=ye+(-1===Fn?"?":Fn$n.set(zt,q.setHeaders[zt]),Gt)),q.setParams&&(kn=Object.keys(q.setParams).reduce(($n,zt)=>$n.set(zt,q.setParams[zt]),kn)),new Fe(ye,at,Tt,{params:kn,headers:Gt,context:zn,reportProgress:Fn,responseType:yt,withCredentials:Mt})}}var Ye=function(Le){return Le[Le.Sent=0]="Sent",Le[Le.UploadProgress=1]="UploadProgress",Le[Le.ResponseHeader=2]="ResponseHeader",Le[Le.DownloadProgress=3]="DownloadProgress",Le[Le.Response=4]="Response",Le[Le.User=5]="User",Le}(Ye||{});class ne{constructor(q,ye=200,at="OK"){this.headers=q.headers||new ae,this.status=void 0!==q.status?q.status:ye,this.statusText=q.statusText||at,this.url=q.url||null,this.ok=this.status>=200&&this.status<300}}class De extends ne{constructor(q={}){super(q),this.type=Ye.ResponseHeader}clone(q={}){return new De({headers:q.headers||this.headers,status:void 0!==q.status?q.status:this.status,statusText:q.statusText||this.statusText,url:q.url||this.url||void 0})}}class $e extends ne{constructor(q={}){super(q),this.type=Ye.Response,this.body=void 0!==q.body?q.body:null}clone(q={}){return new $e({body:void 0!==q.body?q.body:this.body,headers:q.headers||this.headers,status:void 0!==q.status?q.status:this.status,statusText:q.statusText||this.statusText,url:q.url||this.url||void 0})}}class mt extends ne{constructor(q){super(q,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${q.url||"(unknown url)"}`:`Http failure response for ${q.url||"(unknown url)"}: ${q.status} ${q.statusText}`,this.error=q.error||null}}function It(Le,q){return{body:q,headers:Le.headers,context:Le.context,observe:Le.observe,params:Le.params,reportProgress:Le.reportProgress,responseType:Le.responseType,withCredentials:Le.withCredentials}}let Ce=(()=>{class Le{constructor(ye){this.handler=ye}request(ye,at,yt={}){let Tt;if(ye instanceof Fe)Tt=ye;else{let Gt,kn;Gt=yt.headers instanceof ae?yt.headers:new ae(yt.headers),yt.params&&(kn=yt.params instanceof _e?yt.params:new _e({fromObject:yt.params})),Tt=new Fe(ye,at,void 0!==yt.body?yt.body:null,{headers:Gt,context:yt.context,params:kn,reportProgress:yt.reportProgress,responseType:yt.responseType||"json",withCredentials:yt.withCredentials})}const Mt=(0,P.of)(Tt).pipe((0,Q.H)(Gt=>this.handler.handle(Gt)));if(ye instanceof Fe||"events"===yt.observe)return Mt;const Fn=Mt.pipe((0,Y.p)(Gt=>Gt instanceof $e));switch(yt.observe||"body"){case"body":switch(Tt.responseType){case"arraybuffer":return Fn.pipe((0,le.T)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Gt.body}));case"blob":return Fn.pipe((0,le.T)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof Blob))throw new Error("Response is not a Blob.");return Gt.body}));case"text":return Fn.pipe((0,le.T)(Gt=>{if(null!==Gt.body&&"string"!=typeof Gt.body)throw new Error("Response is not a string.");return Gt.body}));default:return Fn.pipe((0,le.T)(Gt=>Gt.body))}case"response":return Fn;default:throw new Error(`Unreachable: unhandled observe type ${yt.observe}}`)}}delete(ye,at={}){return this.request("DELETE",ye,at)}get(ye,at={}){return this.request("GET",ye,at)}head(ye,at={}){return this.request("HEAD",ye,at)}jsonp(ye,at){return this.request("JSONP",ye,{params:(new _e).append(at,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ye,at={}){return this.request("OPTIONS",ye,at)}patch(ye,at,yt={}){return this.request("PATCH",ye,It(yt,at))}post(ye,at,yt={}){return this.request("POST",ye,It(yt,at))}put(ye,at,yt={}){return this.request("PUT",ye,It(yt,at))}static{this.\u0275fac=function(at){return new(at||Le)(r.KVO(re))}}static{this.\u0275prov=r.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();function rt(Le,q){return q(Le)}function ct(Le,q){return(ye,at)=>q.intercept(ye,{handle:yt=>Le(yt,at)})}const ft=new r.nKC(""),tn=new r.nKC(""),Lt=new r.nKC("");function Ft(){let Le=null;return(q,ye)=>{null===Le&&(Le=((0,r.WQX)(ft,{optional:!0})??[]).reduceRight(ct,rt));const at=(0,r.WQX)(r.$K3),yt=at.add();return Le(q,ye).pipe((0,W.j)(()=>at.remove(yt)))}}let ge=(()=>{class Le extends re{constructor(ye,at){super(),this.backend=ye,this.injector=at,this.chain=null,this.pendingTasks=(0,r.WQX)(r.$K3)}handle(ye){if(null===this.chain){const yt=Array.from(new Set([...this.injector.get(tn),...this.injector.get(Lt,[])]));this.chain=yt.reduceRight((Tt,Mt)=>function Pt(Le,q,ye){return(at,yt)=>ye.runInContext(()=>q(at,Tt=>Le(Tt,yt)))}(Tt,Mt,this.injector),rt)}const at=this.pendingTasks.add();return this.chain(ye,yt=>this.backend.handle(yt)).pipe((0,W.j)(()=>this.pendingTasks.remove(at)))}static{this.\u0275fac=function(at){return new(at||Le)(r.KVO(Ue),r.KVO(r.uvJ))}}static{this.\u0275prov=r.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();const Dt=/^\)\]\}',?\n/;let wn=(()=>{class Le{constructor(ye){this.xhrFactory=ye}handle(ye){if("JSONP"===ye.method)throw new r.wOt(-2800,!1);const at=this.xhrFactory;return(at.\u0275loadImpl?(0,se.H)(at.\u0275loadImpl()):(0,P.of)(null)).pipe((0,Re.n)(()=>new oe.c(Tt=>{const Mt=at.build();if(Mt.open(ye.method,ye.urlWithParams),ye.withCredentials&&(Mt.withCredentials=!0),ye.headers.forEach((Tn,Mn)=>Mt.setRequestHeader(Tn,Mn.join(","))),ye.headers.has("Accept")||Mt.setRequestHeader("Accept","application/json, text/plain, */*"),!ye.headers.has("Content-Type")){const Tn=ye.detectContentTypeHeader();null!==Tn&&Mt.setRequestHeader("Content-Type",Tn)}if(ye.responseType){const Tn=ye.responseType.toLowerCase();Mt.responseType="json"!==Tn?Tn:"text"}const Fn=ye.serializeBody();let Gt=null;const kn=()=>{if(null!==Gt)return Gt;const Tn=Mt.statusText||"OK",Mn=new ae(Mt.getAllResponseHeaders()),ui=function St(Le){return"responseURL"in Le&&Le.responseURL?Le.responseURL:/^X-Request-URL:/m.test(Le.getAllResponseHeaders())?Le.getResponseHeader("X-Request-URL"):null}(Mt)||ye.url;return Gt=new De({headers:Mn,status:Mt.status,statusText:Tn,url:ui}),Gt},zn=()=>{let{headers:Tn,status:Mn,statusText:ui,url:Gi}=kn(),ti=null;204!==Mn&&(ti=typeof Mt.response>"u"?Mt.responseText:Mt.response),0===Mn&&(Mn=ti?200:0);let bi=Mn>=200&&Mn<300;if("json"===ye.responseType&&"string"==typeof ti){const ni=ti;ti=ti.replace(Dt,"");try{ti=""!==ti?JSON.parse(ti):null}catch(Si){ti=ni,bi&&(bi=!1,ti={error:Si,text:ti})}}bi?(Tt.next(new $e({body:ti,headers:Tn,status:Mn,statusText:ui,url:Gi||void 0})),Tt.complete()):Tt.error(new mt({error:ti,headers:Tn,status:Mn,statusText:ui,url:Gi||void 0}))},$n=Tn=>{const{url:Mn}=kn(),ui=new mt({error:Tn,status:Mt.status||0,statusText:Mt.statusText||"Unknown Error",url:Mn||void 0});Tt.error(ui)};let zt=!1;const Bi=Tn=>{zt||(Tt.next(kn()),zt=!0);let Mn={type:Ye.DownloadProgress,loaded:Tn.loaded};Tn.lengthComputable&&(Mn.total=Tn.total),"text"===ye.responseType&&Mt.responseText&&(Mn.partialText=Mt.responseText),Tt.next(Mn)},ci=Tn=>{let Mn={type:Ye.UploadProgress,loaded:Tn.loaded};Tn.lengthComputable&&(Mn.total=Tn.total),Tt.next(Mn)};return Mt.addEventListener("load",zn),Mt.addEventListener("error",$n),Mt.addEventListener("timeout",$n),Mt.addEventListener("abort",$n),ye.reportProgress&&(Mt.addEventListener("progress",Bi),null!==Fn&&Mt.upload&&Mt.upload.addEventListener("progress",ci)),Mt.send(Fn),Tt.next({type:Ye.Sent}),()=>{Mt.removeEventListener("error",$n),Mt.removeEventListener("abort",$n),Mt.removeEventListener("load",zn),Mt.removeEventListener("timeout",$n),ye.reportProgress&&(Mt.removeEventListener("progress",Bi),null!==Fn&&Mt.upload&&Mt.upload.removeEventListener("progress",ci)),Mt.readyState!==Mt.DONE&&Mt.abort()}})))}static{this.\u0275fac=function(at){return new(at||Le)(r.KVO(ue.N0))}}static{this.\u0275prov=r.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();const rn=new r.nKC("XSRF_ENABLED"),bn=new r.nKC("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),vn=new r.nKC("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class ki{}let Yt=(()=>{class Le{constructor(ye,at,yt){this.doc=ye,this.platform=at,this.cookieName=yt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ye=this.doc.cookie||"";return ye!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,ue._b)(ye,this.cookieName),this.lastCookieString=ye),this.lastToken}static{this.\u0275fac=function(at){return new(at||Le)(r.KVO(ue.qQ),r.KVO(r.Agw),r.KVO(bn))}}static{this.\u0275prov=r.jDH({token:Le,factory:Le.\u0275fac})}}return Le})();function oi(Le,q){const ye=Le.url.toLowerCase();if(!(0,r.WQX)(rn)||"GET"===Le.method||"HEAD"===Le.method||ye.startsWith("http://")||ye.startsWith("https://"))return q(Le);const at=(0,r.WQX)(ki).getToken(),yt=(0,r.WQX)(vn);return null!=at&&!Le.headers.has(yt)&&(Le=Le.clone({headers:Le.headers.set(yt,at)})),q(Le)}var Hn=function(Le){return Le[Le.Interceptors=0]="Interceptors",Le[Le.LegacyInterceptors=1]="LegacyInterceptors",Le[Le.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Le[Le.NoXsrfProtection=3]="NoXsrfProtection",Le[Le.JsonpSupport=4]="JsonpSupport",Le[Le.RequestsMadeViaParent=5]="RequestsMadeViaParent",Le[Le.Fetch=6]="Fetch",Le}(Hn||{});function ai(Le,q){return{\u0275kind:Le,\u0275providers:q}}function Qn(...Le){const q=[Ce,wn,ge,{provide:re,useExisting:ge},{provide:Ue,useExisting:wn},{provide:tn,useValue:oi,multi:!0},{provide:rn,useValue:!0},{provide:ki,useClass:Yt}];for(const ye of Le)q.push(...ye.\u0275providers);return(0,r.EmA)(q)}const Un=new r.nKC("LEGACY_INTERCEPTOR_FN");let ve=(()=>{class Le{static{this.\u0275fac=function(at){return new(at||Le)}}static{this.\u0275mod=r.$C({type:Le})}static{this.\u0275inj=r.G2t({providers:[Qn(ai(Hn.LegacyInterceptors,[{provide:Un,useFactory:Ft},{provide:tn,useExisting:Un,multi:!0}]))]})}}return Le})()},8699:(bt,Ae,O)=>{"use strict";O.d(Ae,{bc$:()=>Q0,iLQ:()=>Np,sZ2:()=>Lg,hnV:()=>Vy,Hbi:()=>aT,o8S:()=>Ql,BIS:()=>Y0,gRc:()=>zC,Ql9:()=>hC,OM3:()=>jc,Ocv:()=>cC,abz:()=>Gc,Z63:()=>Vc,aKT:()=>$c,uvJ:()=>Co,zcH:()=>da,bkB:()=>To,$GK:()=>Dt,nKC:()=>Yt,zZn:()=>Js,_q3:()=>Lp,MKu:()=>Bp,xe9:()=>Ld,Co$:()=>Fv,Vns:()=>Ya,NEm:()=>BC,SKi:()=>wr,Xx1:()=>ka,Agw:()=>nf,PLl:()=>Bg,sFG:()=>db,_9s:()=>Gg,czy:()=>Sc,WPN:()=>Wa,kdw:()=>bc,C4Q:()=>lu,NYb:()=>PC,giA:()=>Ky,RxE:()=>Wg,c1b:()=>Fd,gXe:()=>zn,Af3:()=>ld,L39:()=>vT,a0P:()=>bT,Ol2:()=>Lv,w6W:()=>ew,oH4:()=>Zy,Rfq:()=>_t,WQX:()=>q,QuC:()=>Sr,EmA:()=>Qh,fpN:()=>oT,HJs:()=>DT,N4e:()=>gb,vPA:()=>I,O8t:()=>nn,H3F:()=>Hy,H8p:()=>Jh,$K3:()=>Uy,KH2:()=>Wl,wOt:()=>je,WHO:()=>Wy,e01:()=>zy,lNU:()=>ht,h9k:()=>Mg,$MX:()=>ja,ZF7:()=>ns,Kcf:()=>El,e5t:()=>kc,UyX:()=>Fc,cWb:()=>Ko,osQ:()=>Hh,H5H:()=>rp,mq5:()=>sv,JZv:()=>Nn,LfX:()=>M,plB:()=>Dp,jNT:()=>Gf,zjR:()=>h_,XSP:()=>tE,TL$:()=>Dr,Tbb:()=>Ne,rcV:()=>$r,nM4:()=>jm,Vt3:()=>Rf,GFd:()=>zm,OA$:()=>_n,Jv_:()=>Pv,aNF:()=>Bv,R7$:()=>mm,BMQ:()=>Pf,HbH:()=>P_,AVh:()=>Jf,wni:()=>_y,VBU:()=>os,FsC:()=>Pr,jDH:()=>ge,G2t:()=>F,$C:()=>Tr,EJ8:()=>Es,rXU:()=>Rl,nrm:()=>jf,eu8:()=>$f,bVm:()=>Cd,qex:()=>wd,k0s:()=>Ed,j41:()=>Dd,RV6:()=>d_,xGo:()=>oh,Mr5:()=>np,pXf:()=>Nv,KVO:()=>Cn,kS0:()=>vi,QTQ:()=>vm,bIt:()=>Wf,lsd:()=>vy,qSk:()=>du,XpG:()=>__,nI1:()=>ty,bMT:()=>ny,i5U:()=>iy,SdG:()=>y_,NAR:()=>v_,Y8G:()=>Hf,FS9:()=>zf,Mz_:()=>Td,FRS:()=>Kf,lJ4:()=>Wv,eq3:()=>zv,l_i:()=>Kv,sMw:()=>Xv,l4e:()=>Qv,mGM:()=>gy,sdS:()=>l_,Njj:()=>Ca,tSv:()=>im,eBV:()=>wa,npT:()=>Sg,B4B:()=>Kh,n$t:()=>Og,Obh:()=>Yi,xc7:()=>Zf,zvX:()=>ip,DNE:()=>s_,C5r:()=>Ey,EFF:()=>U_,JRh:()=>ep,SpI:()=>Id,Lme:()=>tp,GBs:()=>my});var r=O(1413),P=O(8359),se=O(1985),oe=O(7786),Q=O(4412),Y=O(7673),le=O(8750),W=O(7707),Re=O(9974);function ue(e={}){const{connector:t=(()=>new r.B),resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=e;return c=>{let d,g,y,N=0,H=!1,X=!1;const be=()=>{g?.unsubscribe(),g=void 0},Pe=()=>{be(),d=y=void 0,H=X=!1},ot=()=>{const gt=d;Pe(),gt?.unsubscribe()};return(0,Re.N)((gt,Nt)=>{N++,!X&&!H&&be();const Ut=y=y??t();Nt.add(()=>{N--,0===N&&!X&&!H&&(g=re(ot,o))}),Ut.subscribe(Nt),!d&&N>0&&(d=new W.Ms({next:ut=>Ut.next(ut),error:ut=>{X=!0,be(),g=re(Pe,n,ut),Ut.error(ut)},complete:()=>{H=!0,be(),g=re(Pe,i),Ut.complete()}}),(0,le.Tg)(gt).subscribe(d))})(c)}}function re(e,t,...n){if(!0===t)return void e();if(!1===t)return;const i=new W.Ms({next:()=>{i.unsubscribe(),e()}});return(0,le.Tg)(t(...n)).subscribe(i)}var Ue=O(5558),ae=O(3294);function J(e){for(let t in e)if(e[t]===J)return t;throw Error("Could not find renamed property on target object.")}function fe(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ne(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ne).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Qe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const it=J({__forward_ref__:J});function _t(e){return e.__forward_ref__=_t,e.toString=function(){return Ne(this())},e}function We(e){return _e(e)?e():e}function _e(e){return"function"==typeof e&&e.hasOwnProperty(it)&&e.__forward_ref__===_t}function Be(e){return e&&!!e.\u0275providers}const ht="https://g.co/ng/security#xss";class je extends Error{constructor(t,n){super(function lt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Ve(e){return"string"==typeof e?e:null==e?"":String(e)}function De(e,t){throw new je(-201,!1)}function ft(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}function ge(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function F(e){return{providers:e.providers||[],imports:e.imports||[]}}function w(e){return $(e,pe)||$(e,nt)}function M(e){return null!==w(e)}function $(e,t){return e.hasOwnProperty(t)?e[t]:null}function z(e){return e&&(e.hasOwnProperty(Je)||e.hasOwnProperty(Vt))?e[Je]:null}const pe=J({\u0275prov:J}),Je=J({\u0275inj:J}),nt=J({ngInjectableDef:J}),Vt=J({ngInjectorDef:J});var Dt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Dt||{});let St;function wn(){return St}function rn(e){const t=St;return St=e,t}function pn(e,t,n){const i=w(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Dt.Optional?null:void 0!==t?t:void De(Ne(e))}const Nn=globalThis;class Yt{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=ge({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const qe={},Ge="__NG_DI_FLAG__",ee="ngTempTokenPath",st=/\n/gm,Bt="__source";let qt;function $t(e){const t=qt;return qt=e,t}function ei(e,t=Dt.Default){if(void 0===qt)throw new je(-203,!1);return null===qt?pn(e,void 0,t):qt.get(e,t&Dt.Optional?null:void 0,t)}function Cn(e,t=Dt.Default){return(wn()||ei)(We(e),t)}function q(e,t=Dt.Default){return Cn(e,ye(t))}function ye(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function at(e){const t=[];for(let n=0;nt){d=c-1;break}}}for(;cc?"":o[X+1].toLowerCase();const Pe=8&i?be:null;if(Pe&&-1!==bi(Pe,N,0)||2&i&&N!==be){if(Vi(i))return!1;d=!0}}}}else{if(!d&&!Vi(i)&&!Vi(y))return!1;if(d&&Vi(y))continue;d=!1,i=y|1&i}}return Vi(i)||d}function Vi(e){return 0==(1&e)}function js(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let c=!1;for(;o-1)for(n++;n0?'="'+g+'"':"")+"]"}else 8&i?o+="."+d:4&i&&(o+=" "+d);else""!==o&&!Vi(d)&&(t+=bs(c,o),o=""),i=d,c=c||!Vi(i);n++}return""!==o&&(t+=bs(c,o)),t}function os(e){return Gt(()=>{const t=Xr(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===kn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||zn.Emulated,styles:e.styles||zt,_:null,schemas:e.schemas||null,tView:null,id:""};Qr(n);const i=e.dependencies;return n.directiveDefs=Ir(i,!1),n.pipeDefs=Ir(i,!0),n.id=function Fr(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function as(e){return dn(e)||jn(e)}function _r(e){return null!==e}function Tr(e){return Gt(()=>({type:e.type,bootstrap:e.bootstrap||zt,declarations:e.declarations||zt,imports:e.imports||zt,exports:e.exports||zt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Yi(e,t){return Gt(()=>{const n=hi(e,!0);n.declarations=t.declarations||zt,n.imports=t.imports||zt,n.exports=t.exports||zt})}function Mr(e,t){if(null==e)return $n;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],c=o;Array.isArray(o)&&(c=o[1],o=o[0]),n[o]=i,t&&(t[o]=c)}return n}function Pr(e){return Gt(()=>{const t=Xr(e);return Qr(t),t})}function Es(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function dn(e){return e[Bi]||null}function jn(e){return e[ci]||null}function di(e){return e[Tn]||null}function Sr(e){const t=dn(e)||jn(e)||di(e);return null!==t&&t.standalone}function hi(e,t){const n=e[Mn]||null;if(!n&&!0===t)throw new Error(`Type ${Ne(e)} does not have '\u0275mod' property.`);return n}function Xr(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||$n,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||zt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Mr(e.inputs,t),outputs:Mr(e.outputs)}}function Qr(e){e.features?.forEach(t=>t(e))}function Ir(e,t){if(!e)return null;const n=t?di:as;return()=>("function"==typeof e?e():e).map(i=>n(i)).filter(_r)}const Ln=0,Ot=1,Jt=2,Bn=3,Ui=4,ii=5,Di=6,Wi=7,Vn=8,nr=9,ir=10,Wt=11,Zr=12,ws=13,vr=14,Zn=15,ls=16,kr=17,Zi=18,ri=19,Jr=20,hr=21,fr=22,pr=23,fi=24,on=25,Cs=1,$s=2,rr=7,Ji=9,pi=11;function gi(e){return Array.isArray(e)&&"object"==typeof e[Cs]}function Ii(e){return Array.isArray(e)&&!0===e[Cs]}function Ss(e){return 0!=(4&e.flags)}function ji(e){return e.componentOffset>-1}function Or(e){return 1==(1&e.flags)}function sr(e){return!!e.template}function cs(e){return 0!=(512&e[Jt])}function Ki(e,t){return e.hasOwnProperty(ui)?e[ui]:null}const or=Symbol("SIGNAL");function br(e,t){return(null===e||"object"!=typeof e)&&Object.is(e,t)}let Ni=null,us=!1;function qi(e){const t=Ni;return Ni=e,t}const ks={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function oo(e){if(us)throw new Error("");if(null===Ni)return;const t=Ni.nextProducerIndex++;Os(Ni),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ko(e){Os(e);for(let t=0;t0}function Os(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ma(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}let G=function V(){throw new Error};function he(){G()}let h=null;function I(e,t){const n=Object.create(A);function i(){return oo(n),n.value}return n.value=e,t?.equal&&(n.equal=t.equal),i.set=Se,i.update=ke,i.mutate=dt,i.asReadonly=Xt,i[or]=n,i}const A=(()=>({...ks,equal:br,readonlyFn:void 0}))();function K(e){e.version++,xo(e),h?.()}function Se(e){const t=this[or];lo()||he(),t.equal(t.value,e)||(t.value=e,K(t))}function ke(e){lo()||he(),Se.call(this,e(this[or].value))}function dt(e){const t=this[or];lo()||he(),e(t.value),K(t)}function Xt(){const e=this[or];if(void 0===e.readonlyFn){const t=()=>this();t[or]=e,e.readonlyFn=t}return e.readonlyFn}function nn(e){const t=qi(null);try{return e()}finally{qi(t)}}const Kt=()=>{},mn=(()=>({...ks,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Kt}))();class sn{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function _n(){return Rn}function Rn(e){return e.type.prototype.ngOnChanges&&(e.setInput=mi),Ri}function Ri(){const e=ar(this),t=e?.current;if(t){const n=e.previous;if(n===$n)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function mi(e,t,n,i){const o=this.declaredInputs[n],c=ar(e)||function Ei(e,t){return e[Vr]=t}(e,{previous:$n,current:null}),d=c.current||(c.current={}),g=c.previous,y=g[o];d[o]=new sn(y&&y.currentValue,t,g===$n),e[i]=t}_n.ngInherit=!0;const Vr="__ngSimpleChanges__";function ar(e){return e[Vr]||null}const Rt=function(e,t,n){},jt="svg";function Ht(e){for(;Array.isArray(e);)e=e[Ln];return e}function Qi(e,t){return Ht(t[e])}function cn(e,t){return Ht(t[e.index])}function Wn(e,t){return e.data[t]}function Hr(e,t){return e[t]}function xi(e,t){const n=t[e];return gi(n)?n:n[Ln]}function Ar(e,t){return null==t?null:e[t]}function uo(e){e[kr]=0}function el(e){1024&e[Jt]||(e[Jt]|=1024,qo(e,1))}function ya(e){1024&e[Jt]&&(e[Jt]&=-1025,qo(e,-1))}function qo(e,t){let n=e[Bn];if(null===n)return;n[ii]+=t;let i=n;for(n=n[Bn];null!==n&&(1===t&&1===i[ii]||-1===t&&0===i[ii]);)n[ii]+=t,i=n,n=n[Bn]}function Lo(e,t){if(256==(256&e[Jt]))throw new je(911,!1);null===e[hr]&&(e[hr]=[]),e[hr].push(t)}const en={lFrame:ds(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function nl(){return en.bindingsEnabled}function Nr(){return null!==en.skipHydrationRootTNode}function pt(){return en.lFrame.lView}function Sn(){return en.lFrame.tView}function wa(e){return en.lFrame.contextLView=e,e[Vn]}function Ca(e){return en.lFrame.contextLView=null,e}function Oi(){let e=ho();for(;null!==e&&64===e.type;)e=e.parent;return e}function ho(){return en.lFrame.currentTNode}function ea(){const e=en.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ls(e,t){const n=en.lFrame;n.currentTNode=e,n.isParent=t}function rc(){return en.lFrame.isParent}function sc(){en.lFrame.isParent=!1}function m(){const e=en.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function b(){return en.lFrame.bindingIndex}function D(){return en.lFrame.bindingIndex++}function R(e){const t=en.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Z(e){en.lFrame.inI18n=e}function Ze(e,t){const n=en.lFrame;n.bindingIndex=n.bindingRootIndex=e,At(t)}function At(e){en.lFrame.currentDirectiveIndex=e}function un(e){const t=en.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Xn(){return en.lFrame.currentQueryIndex}function xn(e){en.lFrame.currentQueryIndex=e}function Ns(e){const t=e[Ot];return 2===t.type?t.declTNode:1===t.type?e[Di]:null}function fo(e,t,n){if(n&Dt.SkipSelf){let o=t,c=e;for(;!(o=o.parent,null!==o||n&Dt.Host||(o=Ns(c),null===o||(c=c[vr],10&o.type))););if(null===o)return!1;t=o,e=c}const i=en.lFrame=Bo();return i.currentTNode=t,i.lView=e,!0}function Xs(e){const t=Bo(),n=e[Ot];en.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Bo(){const e=en.lFrame,t=null===e?null:e.child;return null===t?ds(e):t}function ds(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function il(){const e=en.lFrame;return en.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ta=il;function ac(){const e=il();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Rr(){return en.lFrame.selectedIndex}function Qs(e){en.lFrame.selectedIndex=e}function _i(){const e=en.lFrame;return Wn(e.tView,e.selectedIndex)}function du(){en.lFrame.currentNamespace=jt}let rl=!0;function sl(){return rl}function Bs(e){rl=e}function Ta(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[y]<0&&(e[kr]+=65536),(g>13>16&&(3&e[Jt])===t&&(e[Jt]+=8192,fu(g,c)):fu(g,c)}const po=-1;class ia{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function dc(e){return e!==po}function Sa(e){return 32767&e}function Ia(e,t){let n=function Zd(e){return e>>16}(e),i=t;for(;n>0;)i=i[vr],n--;return i}let ol=!0;function Oa(e){const t=ol;return ol=e,t}const hc=255,fc=5;let Jd=0;const Rs={};function Aa(e,t){const n=eh(e,t);if(-1!==n)return n;const i=t[Ot];i.firstCreatePass&&(e.injectorIndex=t.length,mu(i.data,e),mu(t,null),mu(i.blueprint,null));const o=pc(e,t),c=e.injectorIndex;if(dc(o)){const d=Sa(o),g=Ia(o,t),y=g[Ot].data;for(let N=0;N<8;N++)t[c+N]=g[d+N]|y[d+N]}return t[c+8]=o,c}function mu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function eh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function pc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){if(i=hs(o),null===i)return po;if(n++,o=o[vr],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return po}function _u(e,t,n){!function qd(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Gi)&&(i=n[Gi]),null==i&&(i=n[Gi]=Jd++);const o=i&hc;t.data[e+(o>>fc)]|=1<=0?t&hc:Qp:t}(n);if("function"==typeof c){if(!fo(t,e,i))return i&Dt.Host?th(o,0,i):nh(t,n,i,o);try{let d;if(d=c(i),null!=d||i&Dt.Optional)return d;De()}finally{ta()}}else if("number"==typeof c){let d=null,g=eh(e,t),y=po,N=i&Dt.Host?t[Zn][Di]:null;for((-1===g||i&Dt.SkipSelf)&&(y=-1===g?pc(e,t):t[g+8],y!==po&&sh(i,!1)?(d=t[Ot],g=Sa(y),t=Ia(y,t)):g=-1);-1!==g;){const H=t[Ot];if(vu(c,g,H.data)){const X=zp(g,t,n,d,i,N);if(X!==Rs)return X}y=t[g+8],y!==po&&sh(i,t[Ot].data[g+8]===N)&&vu(c,g,t)?(d=H,g=Sa(y),t=Ia(y,t)):g=-1}}return o}function zp(e,t,n,i,o,c){const d=t[Ot],g=d.data[e+8],H=gc(g,d,n,null==i?ji(g)&&ol:i!=d&&0!=(3&g.type),o&Dt.Host&&c===g);return null!==H?ra(t,d,H,g):Rs}function gc(e,t,n,i,o){const c=e.providerIndexes,d=t.data,g=1048575&c,y=e.directiveStart,H=c>>20,be=o?g+H:e.directiveEnd;for(let Pe=i?g:g+H;Pe=y&&ot.type===n)return Pe}if(o){const Pe=d[y];if(Pe&&sr(Pe)&&Pe.type===n)return y}return null}function ra(e,t,n,i){let o=e[n];const c=t.data;if(function cc(e){return e instanceof ia}(o)){const d=o;d.resolving&&function Fe(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new je(-200,`Circular dependency in DI detected for ${e}${n}`)}(function He(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ve(e)}(c[n]));const g=Oa(d.canSeeViewProviders);d.resolving=!0;const N=d.injectImpl?rn(d.injectImpl):null;fo(e,i,Dt.Default);try{o=e[n]=d.factory(void 0,c,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Kd(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:c}=t.type.prototype;if(i){const d=Rn(t);(n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d)}o&&(n.preOrderHooks??=[]).push(0-e,o),c&&((n.preOrderHooks??=[]).push(e,c),(n.preOrderCheckHooks??=[]).push(e,c))}(n,c[n],t)}finally{null!==N&&rn(N),Oa(g),d.resolving=!1,ta()}}return o}function vu(e,t,n){return!!(n[t+(e>>fc)]&1<{const t=e.prototype.constructor,n=t[ui]||ll(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const c=o[ui]||ll(o);if(c&&c!==n)return c;o=Object.getPrototypeOf(o)}return c=>new c})}function ll(e){return _e(e)?()=>{const t=ll(We(e));return t&&t()}:Ki(e)}function hs(e){const t=e[Ot],n=t.type;return 2===n?t.declTNode:1===n?e[Di]:null}function vi(e){return function Wp(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o{const i=function mc(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...c){if(this instanceof o)return i.apply(this,c),this;const d=new o(...c);return g.annotation=d,g;function g(y,N,H){const X=y.hasOwnProperty(Uo)?y[Uo]:Object.defineProperty(y,Uo,{value:[]})[Uo];for(;X.length<=H;)X.push(null);return(X[H]=X[H]||[]).push(d),y}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function xa(e,t){e.forEach(n=>Array.isArray(n)?xa(n,t):t(n))}function lh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function vc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function cl(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function ng(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Du(e,t){const n=Pa(e,t);if(n>=0)return e[1|n]}function Pa(e,t){return function ch(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const c=i+(o-i>>1),d=e[c<t?o=c:i=c+1}return~(o<|^->||--!>|)/g,xu="\u200b$1\u200b";const Pu=new Map;let Fu=0;const Lu="__ngContext__";function xr(e,t){gi(t)?(e[Lu]=t[ri],function dg(e){Pu.set(e[ri],e)}(t)):e[Lu]=t}let Oc;function Hu(e,t){return Oc(e,t)}function ca(e){const t=e[Bn];return Ii(t)?t[Bn]:t}function xh(e){return Fh(e[Zr])}function Ph(e){return Fh(e[Ui])}function Fh(e){for(;null!==e&&!Ii(e);)e=e[Ui];return e}function Do(e,t,n,i,o){if(null!=i){let c,d=!1;Ii(i)?c=i:gi(i)&&(d=!0,i=i[Ln]);const g=Ht(i);0===e&&null!==n?null==o?zu(t,n,g):Wo(t,n,g,o||null,!0):1===e&&null!==n?Wo(t,n,g,o||null,!0):2===e?function we(e,t,n){const i=ua(e,t);i&&function Bh(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,g,d):3===e&&t.destroyNode(g),null!=c&&function hn(e,t,n,i,o){const c=n[rr];c!==Ht(n)&&Do(t,e,i,c,o);for(let g=pi;gt.replace(cg,xu))}(t))}function vl(e,t,n){return e.createElement(t,n)}function Lh(e,t){const n=e[Ji],i=n.indexOf(t);ya(t),n.splice(i,1)}function Rc(e,t){if(e.length<=pi)return;const n=pi+t,i=e[n];if(i){const o=i[ls];null!==o&&o!==e&&Lh(o,i),t>0&&(e[n-1][Ui]=i[Ui]);const c=vc(e,pi+t);!function Nc(e,t){Et(e,t,t[Wt],2,null,null),t[Ln]=null,t[Di]=null}(i[Ot],i);const d=c[Zi];null!==d&&d.detachView(c[Ot]),i[Bn]=null,i[Ui]=null,i[Jt]&=-129}return i}function ju(e,t){if(!(256&t[Jt])){const n=t[Wt];t[pr]&&Jo(t[pr]),t[fi]&&Jo(t[fi]),n.destroyNode&&Et(e,t,n,3,null,null),function Dg(e){let t=e[Zr];if(!t)return $u(e[Ot],e);for(;t;){let n=null;if(gi(t))n=t[Zr];else{const i=t[pi];i&&(n=i)}if(!n){for(;t&&!t[Ui]&&t!==e;)gi(t)&&$u(t[Ot],t),t=t[Bn];null===t&&(t=e),gi(t)&&$u(t[Ot],t),n=t&&t[Ui]}t=n}}(t)}}function $u(e,t){if(!(256&t[Jt])){t[Jt]&=-129,t[Jt]|=256,function Wu(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[d]():i[-d].unsubscribe(),c+=2}else n[c].call(i[n[c+1]]);null!==i&&(t[Wi]=null);const o=t[hr];if(null!==o){t[hr]=null;for(let c=0;c-1){const{encapsulation:c}=e.data[i.directiveStart+o];if(c===zn.None||c===zn.Emulated)return null}return cn(i,n)}}function Wo(e,t,n,i,o){e.insertBefore(t,n,i,o)}function zu(e,t,n){e.appendChild(t,n)}function Ku(e,t,n,i,o){null!==i?Wo(e,t,n,i,o):zu(e,t,n)}function ua(e,t){return e.parentNode(t)}function Xu(e,t,n){return v(e,t,n)}function a(e,t,n){return 40&e.type?cn(e,n):null}let s,qn,$i,ur,v=a;function l(e,t){v=e,s=t}function u(e,t,n,i){const o=xc(e,i,t),c=t[Wt],g=Xu(i.parent||t[Di],i,t);if(null!=o)if(Array.isArray(n))for(let y=0;ye,createScript:e=>e,createScriptURL:e=>e})}catch{}return qn}()?.createHTML(e)||e}function Dr(e){$i=e}function Er(){if(void 0!==$i)return $i;if(typeof document<"u")return document;throw new je(210,!1)}function Ys(){if(void 0===ur&&(ur=null,Nn.trustedTypes))try{ur=Nn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ur}function Eo(e){return Ys()?.createHTML(e)||e}function gs(e){return Ys()?.createScriptURL(e)||e}class Vs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ht})`}}class zo extends Vs{getTypeName(){return"HTML"}}class bl extends Vs{getTypeName(){return"Style"}}class Pc extends Vs{getTypeName(){return"Script"}}class Ha extends Vs{getTypeName(){return"URL"}}class Dl extends Vs{getTypeName(){return"ResourceURL"}}function $r(e){return e instanceof Vs?e.changingThisBreaksApplicationSecurity:e}function ns(e,t){const n=function Ua(e){return e instanceof Vs&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ht})`)}return n===t}function El(e){return new zo(e)}function Ko(e){return new bl(e)}function Fc(e){return new Pc(e)}function Hh(e){return new Ha(e)}function kc(e){return new Dl(e)}function Qu(e){const t=new Uh(e);return function jh(){try{return!!(new window.DOMParser).parseFromString(On(""),"text/html")}catch{return!1}}()?new Yu(t):t}class Yu{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(On(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Uh{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=On(t),n}}const Zu=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ja(e){return(e=String(e)).match(Zu)?e:"unsafe:"+e}function Zs(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function $a(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const wo=Zs("area,br,col,hr,img,wbr"),Ga=Zs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Lc=Zs("rp,rt"),wl=$a(wo,$a(Ga,Zs("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),$a(Lc,Zs("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),$a(Lc,Ga)),Cl=Zs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cg=$a(Cl,Zs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Zs("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),O0=Zs("script,style,template");class A0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!wl.hasOwnProperty(n))return this.sanitizedSomething=!0,!O0.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let o=0;o"),!0}endElement(t){const n=t.nodeName.toLowerCase();wl.hasOwnProperty(n)&&!wo.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Tg(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const N0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,R0=/([^\#-~ |!])/g;function Tg(e){return e.replace(/&/g,"&").replace(N0,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(R0,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let qu;function Mg(e,t){let n=null;try{qu=qu||Qu(e);let i=t?String(t):"";n=qu.getInertBodyElement(i);let o=5,c=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=c,c=n.innerHTML,n=qu.getInertBodyElement(i)}while(i!==c);return On((new A0).sanitizeChildren(zh(n)||n))}finally{if(n){const i=zh(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function zh(e){return"content"in e&&function x0(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Wa=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Wa||{});function Sg(e){const t=Bc();return t?Eo(t.sanitize(Wa.HTML,e)||""):ns(e,"HTML")?Eo($r(e)):Mg(Er(),Ve(e))}function Kh(e){const t=Bc();return t?t.sanitize(Wa.URL,e)||"":ns(e,"URL")?$r(e):ja(Ve(e))}function Ig(e){const t=Bc();if(t)return gs(t.sanitize(Wa.RESOURCE_URL,e)||"");if(ns(e,"ResourceURL"))return gs($r(e));throw new je(904,!1)}function Og(e,t,n){return function B0(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Ig:Kh}(t,n)(e)}function Bc(){const e=pt();return e&&e[ir].sanitizer}const Vc=new Yt("ENVIRONMENT_INITIALIZER"),Ag=new Yt("INJECTOR",-1),Ng=new Yt("INJECTOR_DEF_TYPES");class Xh{get(t,n=qe){if(n===qe){const i=new Error(`NullInjectorError: No provider for ${Ne(t)}!`);throw i.name="NullInjectorError",i}return n}}function Qh(e){return{\u0275providers:e}}function V0(...e){return{\u0275providers:Rg(0,e),\u0275fromNgModule:!0}}function Rg(e,...t){const n=[],i=new Set;let o;const c=d=>{n.push(d)};return xa(t,d=>{const g=d;ed(g,c,[],i)&&(o||=[],o.push(g))}),void 0!==o&&xg(o,c),n}function xg(e,t){for(let n=0;n{t(c,i)})}}function ed(e,t,n,i){if(!(e=We(e)))return!1;let o=null,c=z(e);const d=!c&&dn(e);if(c||d){if(d&&!d.standalone)return!1;o=e}else{const y=e.ngModule;if(c=z(y),!c)return!1;o=y}const g=i.has(o);if(d){if(g)return!1;if(i.add(o),d.dependencies){const y="function"==typeof d.dependencies?d.dependencies():d.dependencies;for(const N of y)ed(N,t,n,i)}}else{if(!c)return!1;{if(null!=c.imports&&!g){let N;i.add(o);try{xa(c.imports,H=>{ed(H,t,n,i)&&(N||=[],N.push(H))})}finally{}void 0!==N&&xg(N,t)}if(!g){const N=Ki(o)||(()=>new o);t({provide:o,useFactory:N,deps:zt},o),t({provide:Ng,useValue:o,multi:!0},o),t({provide:Vc,useValue:()=>Cn(o),multi:!0},o)}const y=c.providers;if(null!=y&&!g){const N=e;Yh(y,H=>{t(H,N)})}}}return o!==e&&void 0!==e.providers}function Yh(e,t){for(let n of e)Be(n)&&(n=n.\u0275providers),Array.isArray(n)?Yh(n,t):t(n)}const H0=J({provide:String,useValue:J});function Zh(e){return null!==e&&"object"==typeof e&&H0 in e}function za(e){return"function"==typeof e}const Jh=new Yt("Set Injector scope."),td={},j0={};let qh;function nd(){return void 0===qh&&(qh=new Xh),qh}class Co{}class Tl extends Co{get destroyed(){return this._destroyed}constructor(t,n,i,o){super(),this.parent=n,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,tf(t,d=>this.processProvider(d)),this.records.set(Ag,Ml(void 0,this)),o.has("environment")&&this.records.set(Co,Ml(void 0,this));const c=this.records.get(Jh);null!=c&&"string"==typeof c.value&&this.scopes.add(c.value),this.injectorDefTypes=new Set(this.get(Ng.multi,zt,Dt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=$t(this),i=rn(void 0);try{return t()}finally{$t(n),rn(i)}}get(t,n=qe,i=Dt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ti))return t[ti](this);i=ye(i);const c=$t(this),d=rn(void 0);try{if(!(i&Dt.SkipSelf)){let y=this.records.get(t);if(void 0===y){const N=function K0(e){return"function"==typeof e||"object"==typeof e&&e instanceof Yt}(t)&&w(t);y=N&&this.injectableDefInScope(N)?Ml(ef(t),td):null,this.records.set(t,y)}if(null!=y)return this.hydrate(t,y)}return(i&Dt.Self?nd():this.parent).get(t,n=i&Dt.Optional&&n===qe?null:n)}catch(g){if("NullInjectorError"===g.name){if((g[ee]=g[ee]||[]).unshift(Ne(t)),c)throw g;return function Mt(e,t,n,i){const o=e[ee];throw t[Bt]&&o.unshift(t[Bt]),e.message=function Fn(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Ne(t);if(Array.isArray(t))o=t.map(Ne).join(" -> ");else if("object"==typeof t){let c=[];for(let d in t)if(t.hasOwnProperty(d)){let g=t[d];c.push(d+":"+("string"==typeof g?JSON.stringify(g):Ne(g)))}o=`{${c.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(st,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[ee]=null,e}(g,t,"R3InjectorError",this.source)}throw g}finally{rn(d),$t(c)}}resolveInjectorInitializers(){const t=$t(this),n=rn(void 0);try{const o=this.get(Vc.multi,zt,Dt.Self);for(const c of o)c()}finally{$t(t),rn(n)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(Ne(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new je(205,!1)}processProvider(t){let n=za(t=We(t))?t:We(t&&t.provide);const i=function G0(e){return Zh(e)?Ml(void 0,e.useValue):Ml(kg(e),td)}(t);if(za(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Ml(void 0,td,!0),o.factory=()=>at(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,i)}hydrate(t,n){return n.value===td&&(n.value=j0,n.value=n.factory()),"object"==typeof n.value&&n.value&&function z0(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=We(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function ef(e){const t=w(e),n=null!==t?t.factory:Ki(e);if(null!==n)return n;if(e instanceof Yt)throw new je(204,!1);if(e instanceof Function)return function $0(e){const t=e.length;if(t>0)throw cl(t,"?"),new je(204,!1);const n=function Me(e){return e&&(e[pe]||e[nt])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new je(204,!1)}function kg(e,t,n){let i;if(za(e)){const o=We(e);return Ki(o)||ef(o)}if(Zh(e))i=()=>We(e.useValue);else if(function Fg(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...at(e.deps||[]));else if(function Pg(e){return!(!e||!e.useExisting)}(e))i=()=>Cn(We(e.useExisting));else{const o=We(e&&(e.useClass||e.provide));if(!function W0(e){return!!e.deps}(e))return Ki(o)||ef(o);i=()=>new o(...at(e.deps))}return i}function Ml(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function tf(e,t){for(const n of e)Array.isArray(n)?tf(n,t):n&&Be(n)?tf(n.\u0275providers,t):t(n)}const Lg=new Yt("AppId",{providedIn:"root",factory:()=>X0}),X0="ng",Bg=new Yt("Platform Initializer"),nf=new Yt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Q0=new Yt("AnimationModuleType"),Y0=new Yt("CSP nonce",{providedIn:"root",factory:()=>Er().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Vg=(e,t,n)=>null;function hf(e,t,n=!1){return Vg(e,t,n)}class ob{}class jg{}class lb{resolveComponentFactory(t){throw function ab(e){const t=Error(`No component factory found for ${Ne(e)}.`);return t.ngComponent=e,t}(t)}}let jc=(()=>{class e{static{this.NULL=new lb}}return e})();function cb(){return Ol(Oi(),pt())}function Ol(e,t){return new $c(cn(e,t))}let $c=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=cb}}return e})();function ub(e){return e instanceof $c?e.nativeElement:e}class Gg{}let db=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function hb(){const e=pt(),n=xi(Oi().index,e);return(gi(n)?n:e)[Wt]}()}}return e})(),fb=(()=>{class e{static{this.\u0275prov=ge({token:e,providedIn:"root",factory:()=>null})}}return e})();class Wg{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pb=new Wg("16.2.12"),gf={};function gb(e,t){e instanceof Tl&&e.assertNotDestroyed();const i=$t(e),o=rn(void 0);try{return t()}finally{$t(i),rn(o)}}function ld(e){if(!wn()&&!function gn(){return qt}())throw new je(-203,!1)}function Qg(e,t=null,n=null,i){const o=Yg(e,t,n,i);return o.resolveInjectorInitializers(),o}function Yg(e,t=null,n=null,i,o=new Set){const c=[n||zt,V0(e)];return i=i||("object"==typeof e?void 0:Ne(e)),new Tl(c,t||nd(),i||null,o)}let Js=(()=>{class e{static{this.THROW_IF_NOT_FOUND=qe}static{this.NULL=new Xh}static create(n,i){if(Array.isArray(n))return Qg({name:""},i,n,"");{const o=n.name??"";return Qg({name:o},n.parent,n.providers,o)}}static{this.\u0275prov=ge({token:e,providedIn:"any",factory:()=>Cn(Ag)})}static{this.__NG_ELEMENT_ID__=-1}}return e})();function mf(e){return e.ngOriginalError}class da{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&mf(t);for(;n&&mf(n);)n=mf(n);return n||null}}let Gc=(()=>{class e{static{this.__NG_ELEMENT_ID__=Eb}static{this.__NG_ENV_ID__=n=>n}}return e})();class Db extends Gc{constructor(t){super(),this._lView=t}onDestroy(t){return Lo(this._lView,t),()=>function Zl(e,t){if(null===e[hr])return;const n=e[hr].indexOf(t);-1!==n&&e[hr].splice(n,1)}(this._lView,t)}}function Eb(){return new Db(pt())}function _f(e){return t=>{setTimeout(e,void 0,t)}}const To=class wb extends r.B{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){let o=t,c=n||(()=>null),d=i;if(t&&"object"==typeof t){const y=t;o=y.next?.bind(y),c=y.error?.bind(y),d=y.complete?.bind(y)}this.__isAsync&&(c=_f(c),o&&(o=_f(o)),d&&(d=_f(d)));const g=super.subscribe({next:o,error:c,complete:d});return t instanceof P.yU&&t.add(g),g}};function Jg(...e){}class wr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new To(!1),this.onMicrotaskEmpty=new To(!1),this.onStable=new To(!1),this.onError=new To(!1),typeof Zone>"u")throw new je(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Cb(){const e="function"==typeof Nn.requestAnimationFrame;let t=Nn[e?"requestAnimationFrame":"setTimeout"],n=Nn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Sb(e){const t=()=>{!function Mb(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Nn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,yf(e),e.isCheckStableRunning=!0,vf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),yf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,c,d,g)=>{if(function Ob(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(g))return n.invokeTask(o,c,d,g);try{return qg(e),n.invokeTask(o,c,d,g)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||e.shouldCoalesceRunChangeDetection)&&t(),em(e)}},onInvoke:(n,i,o,c,d,g,y)=>{try{return qg(e),n.invoke(o,c,d,g,y)}finally{e.shouldCoalesceRunChangeDetection&&t(),em(e)}},onHasTask:(n,i,o,c)=>{n.hasTask(o,c),i===o&&("microTask"==c.change?(e._hasPendingMicrotasks=c.microTask,yf(e),vf(e)):"macroTask"==c.change&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(n,i,o,c)=>(n.handleError(o,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wr.isInAngularZone())throw new je(909,!1)}static assertNotInAngularZone(){if(wr.isInAngularZone())throw new je(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const c=this._inner,d=c.scheduleEventTask("NgZoneEvent: "+o,t,Tb,Jg,Jg);try{return c.runTask(d,n,i)}finally{c.cancelTask(d)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const Tb={};function vf(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function yf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function qg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function em(e){e._nesting--,vf(e)}class Ib{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new To,this.onMicrotaskEmpty=new To,this.onStable=new To,this.onError=new To}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}const tm=new Yt("",{providedIn:"root",factory:nm});function nm(){const e=q(wr);let t=!0;const n=new se.c(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),i=new se.c(o=>{let c;e.runOutsideAngular(()=>{c=e.onStable.subscribe(()=>{wr.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const d=e.onUnstable.subscribe(()=>{wr.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});return(0,oe.h)(n,i.pipe(ue()))}function im(e){return e.ownerDocument.defaultView}function Xo(e){return e instanceof Function?e():e}let bf=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static{this.\u0275prov=ge({token:e,providedIn:"root",factory:()=>new e})}}return e})();function Wc(e){for(;e;){e[Jt]|=64;const t=ca(e);if(cs(e)&&!t)return e;e=t}return null}const lm=new Yt("",{providedIn:"root",factory:()=>!1});let ud=null;function hm(e,t){return e[t]??gm()}function fm(e,t){const n=gm();n.producerNode?.length&&(e[t]=ud,n.lView=e,ud=pm())}const Bb={...ks,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Wc(e.lView)},lView:null};function pm(){return Object.create(Bb)}function gm(){return ud??=pm(),ud}const yn={};function mm(e){_m(Sn(),pt(),Rr()+e,!1)}function _m(e,t,n,i){if(!i)if(3==(3&t[Jt])){const c=e.preOrderCheckHooks;null!==c&&Ma(t,c,n)}else{const c=e.preOrderHooks;null!==c&&Ho(t,c,0,n)}Qs(n)}function Rl(e,t=Dt.Default){const n=pt();return null===n?Cn(e,t):ih(Oi(),n,We(e),t)}function vm(){throw new Error("invalid")}function dd(e,t,n,i,o,c,d,g,y,N,H){const X=t.blueprint.slice();return X[Ln]=o,X[Jt]=140|i,(null!==N||e&&2048&e[Jt])&&(X[Jt]|=2048),uo(X),X[Bn]=X[vr]=e,X[Vn]=n,X[ir]=d||e&&e[ir],X[Wt]=g||e&&e[Wt],X[nr]=y||e&&e[nr]||null,X[Di]=c,X[ri]=function ug(){return Fu++}(),X[fr]=H,X[Jr]=N,X[Zn]=2==t.type?e[Zn]:X,X}function xl(e,t,n,i,o){let c=e.data[t];if(null===c)c=Df(e,t,n,i,o),function U(){return en.lFrame.inI18n}()&&(c.flags|=32);else if(64&c.type){c.type=n,c.value=i,c.attrs=o;const d=ea();c.injectorIndex=null===d?-1:d.injectorIndex}return Ls(c,!0),c}function Df(e,t,n,i,o){const c=ho(),d=rc(),y=e.data[t]=function zb(e,t,n,i,o,c){let d=t?t.injectorIndex:-1,g=0;return Nr()&&(g|=128),{type:n,index:i,insertBeforeIndex:null,injectorIndex:d,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:g,providerIndexes:0,value:o,attrs:c,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,d?c:c&&c.parent,n,t,i,o);return null===e.firstChild&&(e.firstChild=y),null!==c&&(d?null==c.child&&null!==y.parent&&(c.child=y):null===c.next&&(c.next=y,y.prev=c)),y}function zc(e,t,n,i){if(0===n)return-1;const o=t.length;for(let c=0;con&&_m(e,t,on,!1),Rt(g?2:0,o);const N=g?c:null,H=Is(N);try{null!==N&&(N.dirty=!1),n(i,o)}finally{Fo(N,H)}}finally{g&&null===t[pr]&&fm(t,pr),Qs(d),Rt(g?3:1,o)}}function Ef(e,t,n){if(Ss(t)){const i=qi(null);try{const c=t.directiveEnd;for(let d=t.directiveStart;dnull;function Em(e,t,n,i){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const c=e[o];null===i?wm(n,t,o,c):i.hasOwnProperty(o)&&wm(n,t,i[o],c)}return n}function wm(e,t,n,i){e.hasOwnProperty(n)?e[n].push(t,i):e[n]=[t,i]}function Ps(e,t,n,i,o,c,d,g){const y=cn(t,n);let H,N=t.inputs;!g&&null!=N&&(H=N[i])?(Af(e,n,H,i,o),ji(t)&&function Qb(e,t){const n=xi(t,e);16&n[Jt]||(n[Jt]|=64)}(n,t.index)):3&t.type&&(i=function Xb(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=d?d(o,t.value||"",i):o,c.setProperty(y,i,o))}function Mf(e,t,n,i){if(nl()){const o=null===i?null:{"":-1},c=function tD(e,t){const n=e.directiveRegistry;let i=null,o=null;if(n)for(let c=0;c0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(d)!=g&&d.push(g),d.push(n,i,c)}}(e,t,i,zc(e,n,o.hostVars,yn),o)}function Mo(e,t,n,i,o,c){const d=cn(e,t);!function If(e,t,n,i,o,c,d){if(null==c)e.removeAttribute(t,o,n);else{const g=null==d?Ve(c):d(c,i||"",o);e.setAttribute(t,o,g,n)}}(t[Wt],d,c,e.value,n,i,o)}function aD(e,t,n,i,o,c){const d=c[t];if(null!==d)for(let g=0;g{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,i,o){const c=typeof Zone>"u"?null:Zone.current,d=function kt(e,t,n){const i=Object.create(mn);n&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=t;const o=d=>{i.cleanupFn=d};return i.ref={notify:()=>Po(i),run:()=>{if(i.dirty=!1,i.hasRun&&!ko(i))return;i.hasRun=!0;const d=Is(i);try{i.cleanupFn(),i.cleanupFn=Kt,i.fn(o)}finally{Fo(i,d)}},cleanup:()=>i.cleanupFn()},i.ref}(n,N=>{this.all.has(N)&&this.queue.set(N,c)},o);let g;this.all.add(d),d.notify();const y=()=>{d.cleanup(),g?.(),this.all.delete(d),this.queue.delete(d)};return g=i?.onDestroy(y),{destroy:y}}flush(){if(0!==this.queue.size)for(const[n,i]of this.queue)this.queue.delete(n),i?i.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}static{this.\u0275prov=ge({token:e,providedIn:"root",factory:()=>new e})}}return e})();function fd(e,t,n){let i=n?e.styles:null,o=n?e.classes:null,c=0;if(null!==t)for(let d=0;d0){km(e,1);const o=n.components;null!==o&&Bm(e,o,1)}}function Bm(e,t,n){for(let i=0;i-1&&(Rc(t,i),vc(n,i))}this._attachedToViewContainer=!1}ju(this._lView[Ot],this._lView)}onDestroy(t){Lo(this._lView,t)}markForCheck(){Wc(this._cdRefInjectingView||this._lView)}detach(){this._lView[Jt]&=-129}reattach(){this._lView[Jt]|=128}detectChanges(){pd(this._lView[Ot],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new je(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function bg(e,t){Et(e,t,t[Wt],2,null,null)}(this._lView[Ot],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new je(902,!1);this._appRef=t}}class mD extends Xc{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;pd(t[Ot],t,t[Vn],!1)}checkNoChanges(){}get context(){return null}}class Vm extends jc{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=dn(t);return new Qc(n,this.ngModule)}}function Hm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class vD{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){i=ye(i);const o=this.injector.get(t,gf,i);return o!==gf||n===gf?o:this.parentInjector.get(t,n,i)}}class Qc extends jg{get inputs(){const t=this.componentDef,n=t.inputTransforms,i=Hm(t.inputs);if(null!==n)for(const o of i)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return i}get outputs(){return Hm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function zr(e){return e.map(Ds).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,i,o){let c=(o=o||this.ngModule)instanceof Co?o:o?.injector;c&&null!==this.componentDef.getStandaloneInjector&&(c=this.componentDef.getStandaloneInjector(c)||c);const d=c?new vD(t,c):t,g=d.get(Gg,null);if(null===g)throw new je(407,!1);const X={rendererFactory:g,sanitizer:d.get(fb,null),effectManager:d.get(xm,null),afterRenderEventManager:d.get(bf,null)},be=g.createRenderer(null,this.componentDef),Pe=this.componentDef.selectors[0][0]||"div",ot=i?function Ub(e,t,n,i){const c=i.get(lm,!1)||n===zn.ShadowDom,d=e.selectRootElement(t,c);return function jb(e){Dm(e)}(d),d}(be,i,this.componentDef.encapsulation,d):vl(be,Pe,function _D(e){const t=e.toLowerCase();return"svg"===t?jt:"math"===t?"math":null}(Pe)),Ut=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let ut=null;null!==ot&&(ut=hf(ot,d,!0));const fn=Tf(0,null,null,1,0,null,null,null,null,null,null),An=dd(null,fn,null,Ut,null,null,X,be,d,null,ut);let si,vs;Xs(An);try{const Yo=this.componentDef;let Yl,Hp=null;Yo.findHostDirectiveDefs?(Yl=[],Hp=new Map,Yo.findHostDirectiveDefs(Yo,Yl,Hp),Yl.push(Yo)):Yl=[Yo];const ET=function bD(e,t){const n=e[Ot],i=on;return e[i]=t,xl(n,i,2,"#host",null)}(An,ot),wT=function DD(e,t,n,i,o,c,d){const g=o[Ot];!function ED(e,t,n,i){for(const o of e)t.mergedAttrs=Kn(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(fd(t,t.mergedAttrs,!0),null!==n&&In(i,n,t))}(i,e,t,d);let y=null;null!==t&&(y=hf(t,o[nr]));const N=c.rendererFactory.createRenderer(t,n);let H=16;n.signals?H=4096:n.onPush&&(H=64);const X=dd(o,bm(n),null,H,o[e.index],e,c,N,null,null,y);return g.firstCreatePass&&Sf(g,e,i.length-1),hd(o,X),o[e.index]=X}(ET,ot,Yo,Yl,An,X,be);vs=Wn(fn,on),ot&&function CD(e,t,n,i){if(i)ni(e,n,["ng-version",pb.full]);else{const{attrs:o,classes:c}=function no(e){const t=[],n=[];let i=1,o=2;for(;i0&&Pn(e,n,c.join(" "))}}(be,Yo,ot,i),void 0!==n&&function TD(e,t,n){const i=e.projection=[];for(let o=0;o=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Kn(o.hostAttrs,n=Kn(n,o.hostAttrs))}}(i)}function gd(e){return e===$n?{}:e===zt?[]:e}function ID(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function OD(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,c)=>{t(i,o,c),n(i,o,c)}:t}function AD(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}function jm(e){return t=>{t.findHostDirectiveDefs=$m,t.hostDirectives=(Array.isArray(e)?e:e()).map(n=>"function"==typeof n?{directive:We(n),inputs:$n,outputs:$n}:{directive:We(n.directive),inputs:Gm(n.inputs),outputs:Gm(n.outputs)})}}function $m(e,t,n){if(null!==e.hostDirectives)for(const i of e.hostDirectives){const o=jn(i.directive);PD(o.declaredInputs,i.inputs),$m(o,t,n),n.set(o,i),t.push(o)}}function Gm(e){if(void 0===e||0===e.length)return $n;const t={};for(let n=0;n(Bs(!0),vl(i,o,function hu(){return en.lFrame.currentNamespace}()));function wd(e,t,n){const i=pt(),o=Sn(),c=e+on,d=o.firstCreatePass?function a1(e,t,n,i,o){const c=t.consts,d=Ar(c,i),g=xl(t,e,8,"ng-container",d);return null!==d&&fd(g,d,!0),Mf(t,n,g,Ar(c,o)),null!==t.queries&&t.queries.elementStart(t,g),g}(c,o,i,t,n):o.data[c];Ls(d,!0);const g=u_(o,i,d,e);return i[c]=g,sl()&&u(o,i,g,d),xr(g,i),Or(d)&&(wf(o,i,d),Ef(o,d,i)),null!=n&&Cf(i,d),wd}function Cd(){let e=Oi();const t=Sn();return rc()?sc():(e=e.parent,Ls(e,!1)),t.firstCreatePass&&(Ta(t,e),Ss(e)&&t.queries.elementEnd(e)),Cd}function $f(e,t,n){return wd(e,t,n),Cd(),$f}let u_=(e,t,n,i)=>(Bs(!0),Ac(t[Wt],""));function d_(){return pt()}function Gf(e){return!!e&&"function"==typeof e.then}function h_(e){return!!e&&"function"==typeof e.subscribe}function Wf(e,t,n,i){const o=pt(),c=Sn(),d=Oi();return function p_(e,t,n,i,o,c,d){const g=Or(i),N=e.firstCreatePass&&Am(e),H=t[Vn],X=Om(t);let be=!0;if(3&i.type||d){const gt=cn(i,t),Nt=d?d(gt):gt,Ut=X.length,ut=d?An=>d(Ht(An[i.index])):i.index;let fn=null;if(!d&&g&&(fn=function u1(e,t,n,i){const o=e.cleanup;if(null!=o)for(let c=0;cy?g[y]:null}"string"==typeof d&&(c+=2)}return null}(e,t,o,i.index)),null!==fn)(fn.__ngLastListenerFn__||fn).__ngNextListenerFn__=c,fn.__ngLastListenerFn__=c,be=!1;else{c=m_(i,t,H,c,!1);const An=n.listen(Nt,o,c);X.push(c,An),N&&N.push(o,ut,Ut,Ut+1)}}else c=m_(i,t,H,c,!1);const Pe=i.outputs;let ot;if(be&&null!==Pe&&(ot=Pe[o])){const gt=ot.length;if(gt)for(let Nt=0;Nt-1?xi(e.index,t):t);let y=g_(t,n,i,d),N=c.__ngNextListenerFn__;for(;N;)y=g_(t,n,N,d)&&y,N=N.__ngNextListenerFn__;return o&&!1===y&&d.preventDefault(),y}}function __(e=1){return function Gd(e){return(en.lFrame.contextLView=function Vo(e,t){for(;e>0;)t=t[vr],e--;return t}(e,en.lFrame.contextLView))[Vn]}(e)}function d1(e,t){let n=null;const i=function rs(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o>17&32767}function Xf(e){return 2|e}function Xa(e){return(131068&e)>>2}function Qf(e,t){return-131069&e|t<<2}function Yf(e){return 1|e}function S_(e,t,n,i,o){const c=e[n+1],d=null===t;let g=i?ha(c):Xa(c),y=!1;for(;0!==g&&(!1===y||d);){const H=e[g+1];_1(e[g],t)&&(y=!0,e[g+1]=i?Yf(H):Xf(H)),g=i?ha(H):Xa(H)}y&&(e[n+1]=i?Xf(c):Yf(c))}function _1(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Pa(e,t)>=0}const gr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I_(e){return e.substring(gr.key,gr.keyEnd)}function O_(e,t){const n=gr.textEnd;return n===t?-1:(t=gr.keyEnd=function D1(e,t,n){for(;t32;)t++;return t}(e,gr.key=t,n),$l(e,t,n))}function $l(e,t,n){for(;t=0;n=O_(t,n))fs(e,I_(t),!0)}function qs(e,t,n,i){const o=pt(),c=Sn(),d=R(2);c.firstUpdatePass&&k_(c,e,d,i),t!==yn&&Gr(o,d,t)&&B_(c,c.data[Rr()],o,o[Wt],e,o[d+1]=function R1(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ne($r(e)))),e}(t,n),i,d)}function F_(e,t){return t>=e.expandoStartIndex}function k_(e,t,n,i){const o=e.data;if(null===o[n+1]){const c=o[Rr()],d=F_(e,n);H_(c,i)&&null===t&&!d&&(t=!1),t=function T1(e,t,n,i){const o=un(e);let c=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=eu(n=qf(null,e,t,n,i),t.attrs,i),c=null);else{const d=t.directiveStylingLast;if(-1===d||e[d]!==o)if(n=qf(o,e,t,n,i),null===c){let y=function M1(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Xa(i))return e[ha(i)]}(e,t,i);void 0!==y&&Array.isArray(y)&&(y=qf(null,e,t,y[1],i),y=eu(y,t.attrs,i),function S1(e,t,n,i){e[ha(n?t.classBindings:t.styleBindings)]=i}(e,t,i,y))}else c=function I1(e,t,n){let i;const o=t.directiveEnd;for(let c=1+t.directiveStylingLast;c0)&&(N=!0)):H=n,o)if(0!==y){const be=ha(e[g+1]);e[i+1]=Md(be,g),0!==be&&(e[be+1]=Qf(e[be+1],i)),e[g+1]=function f1(e,t){return 131071&e|t<<17}(e[g+1],i)}else e[i+1]=Md(g,0),0!==g&&(e[g+1]=Qf(e[g+1],i)),g=i;else e[i+1]=Md(y,0),0===g?g=i:e[y+1]=Qf(e[y+1],i),y=i;N&&(e[i+1]=Xf(e[i+1])),S_(e,H,i,!0),S_(e,H,i,!1),function m1(e,t,n,i,o){const c=o?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof t&&Pa(c,t)>=0&&(n[i+1]=Yf(n[i+1]))}(t,H,e,i,c),d=Md(g,y),c?t.classBindings=d:t.styleBindings=d}(o,c,t,n,d,i)}}function qf(e,t,n,i,o){let c=null;const d=n.directiveEnd;let g=n.directiveStylingLast;for(-1===g?g=n.directiveStart:g++;g0;){const y=e[o],N=Array.isArray(y),H=N?y[1]:y,X=null===H;let be=n[o+1];be===yn&&(be=X?zt:void 0);let Pe=X?Du(be,i):H===i?be:void 0;if(N&&!Sd(Pe)&&(Pe=Du(y,i)),Sd(Pe)&&(g=Pe,d))return g;const ot=e[o+1];o=d?ha(ot):Xa(ot)}if(null!==t){let y=c?t.residualClasses:t.residualStyles;null!=y&&(g=Du(y,i))}return g}function Sd(e){return void 0!==e}function H_(e,t){return 0!=(e.flags&(t?8:16))}function U_(e,t=""){const n=pt(),i=Sn(),o=e+on,c=i.firstCreatePass?xl(i,o,1,t,null):i.data[o],d=j_(i,n,c,t,e);n[o]=d,sl()&&u(i,n,d,c),Ls(c,!1)}let j_=(e,t,n,i,o)=>(Bs(!0),_l(t[Wt],i));function ep(e){return Id("",e,""),ep}function Id(e,t,n){const i=pt(),o=Fl(i,e,t,n);return o!==yn&&Qo(i,Rr(),o),Id}function tp(e,t,n,i,o){const c=pt(),d=function kl(e,t,n,i,o,c){const g=Ka(e,b(),n,o);return R(2),g?t+Ve(n)+i+Ve(o)+c:yn}(c,e,t,n,i,o);return d!==yn&&Qo(c,Rr(),d),tp}function np(e,t,n){const i=pt();return Gr(i,D(),t)&&Ps(Sn(),_i(),i,e,t,i[Wt],n,!0),np}function ip(e,t,n){const i=pt();if(Gr(i,D(),t)){const c=Sn(),d=_i();Ps(c,d,i,e,t,Nm(un(c.data),d,i),n,!0)}return ip}const Qa=void 0;var eE=["en",[["a","p"],["AM","PM"],Qa],[["AM","PM"],Qa,Qa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qa,"{1} 'at' {0}",Qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function q1(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Gl={};function tE(e,t,n){"string"!=typeof t&&(n=t,t=e[Wl.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Gl[t]=e,n&&(Gl[t][Wl.ExtraData]=n)}function rp(e){const t=function nE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=ov(t);if(n)return n;const i=t.split("-")[0];if(n=ov(i),n)return n;if("en"===i)return eE;throw new je(701,!1)}function sv(e){return rp(e)[Wl.PluralCase]}function ov(e){return e in Gl||(Gl[e]=Nn.ng&&Nn.ng.common&&Nn.ng.common.locales&&Nn.ng.common.locales[e]),Gl[e]}var Wl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Wl||{});const zl="en-US",Od={marker:"element"},Ad={marker:"ICU"};var ms=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(ms||{});let av=zl;function lv(e){(function Pt(e,t){null==e&&ft(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(av=e.toLowerCase().replace(/_/g,"-"))}function cv(e,t,n){const i=t.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?a(e,0,n):Ht(n[o])}function uv(e,t,n,i,o){const c=t.insertBeforeIndex;if(Array.isArray(c)){let d=i,g=null;if(3&t.type||(g=d,d=o),null!==d&&-1===t.componentOffset)for(let y=1;y1)for(let n=e.length-2;n>=0;n--){const i=e[n];hv(i)||aE(i,t)&&null===lE(i)&&cE(i,t.index)}}function hv(e){return!(64&e.type)}function aE(e,t){return hv(t)||e.index>t.index}function lE(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function cE(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(l(cv,uv),e.insertBeforeIndex=t)}function hE(e,t,n){const i=Df(e,n,64,null,null);return dv(t,i),i}function yE(){const e=[];let n,i,t=-1;function c(g,y){t=0;const N=function Nd(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}(g,y);i=null!==N?g.remove[N]:zt}function d(){if(t0?n[g]:(e.push(t,i),c(n[Ot].data[~g],n),d())}return 0===e.length?null:(i=e.pop(),t=e.pop(),d())}return function o(g,y){for(n=y;e.length;)e.pop();return c(g.value,y),d}}const Rd=/\ufffd(\d+):?\d*\ufffd/gi,DE=/\ufffd(\d+)\ufffd/,Dv=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,ru="\ufffd",EE=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,wE=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,CE=/\uE500/g;function Ev(e,t,n,i,o,c,d){const g=zc(e,i,1,null);let y=g<n.length&&n.push(y)}return{type:i,mainBinding:o,cases:t,values:n}}function sp(e){if(!e)return[];let t=0;const n=[],i=[],o=/[{}]/g;let c;for(o.lastIndex=0;c=o.exec(e);){const g=c.index;if("}"==c[0]){if(n.pop(),0==n.length){const y=e.substring(t,g);Dv.test(y)?i.push(RE(y)):i.push(y),t=g+1}}else{if(0==n.length){const y=e.substring(t,g);i.push(y),t=g+1}n.push("{")}}const d=e.substring(t);return i.push(d),i}function xE(e,t,n,i,o,c,d,g){const y=[],N=[],H=[];t.cases.push(c),t.create.push(y),t.remove.push(N),t.update.push(H);const be=Qu(Er()).getInertBodyElement(d),Pe=zh(be)||be;return Pe?Mv(e,t,n,i,y,N,H,Pe,o,g,0):0}function Mv(e,t,n,i,o,c,d,g,y,N,H){let X=0,be=g.firstChild;for(;be;){const Pe=zc(e,n,1,null);switch(be.nodeType){case Node.ELEMENT_NODE:const ot=be,gt=ot.tagName.toLowerCase();if(wl.hasOwnProperty(gt)){op(o,Od,gt,y,Pe),e.data[Pe]=gt;const fn=ot.attributes;for(let An=0;An>>ms.SHIFT;let X=e[H];null===X&&(X=e[H]=(d&ms.COMMENT)===ms.COMMENT?o.createComment(g):_l(o,g)),N&&null!==n&&Wo(o,n,X,i,!1)}})(o,y.create,H,g&&8&g.type?o[g.index]:null),Z(!0)}function Nv(e,t,n){Ov(e,t,n),function Av(){Z(!1)}()}function ap(e,t,n,i,o){if(e=We(e),Array.isArray(e))for(let c=0;c>20;if(za(e)||!e.multi){const Pe=new ia(N,o,Rl),ot=cp(y,t,o?H:H+be,X);-1===ot?(_u(Aa(g,d),c,y),lp(c,e,t.length),t.push(y),g.directiveStart++,g.directiveEnd++,o&&(g.providerIndexes+=1048576),n.push(Pe),d.push(Pe)):(n[ot]=Pe,d[ot]=Pe)}else{const Pe=cp(y,t,H+be,X),ot=cp(y,t,H,H+be),Nt=ot>=0&&n[ot];if(o&&!Nt||!o&&!(Pe>=0&&n[Pe])){_u(Aa(g,d),c,y);const Ut=function qE(e,t,n,i,o){const c=new ia(e,n,Rl);return c.multi=[],c.index=t,c.componentProviders=0,xv(c,o,i&&!n),c}(o?JE:ZE,n.length,o,i,N);!o&&Nt&&(n[ot].providerFactory=Ut),lp(c,e,t.length,0),t.push(y),g.directiveStart++,g.directiveEnd++,o&&(g.providerIndexes+=1048576),n.push(Ut),d.push(Ut)}else lp(c,e,Pe>-1?Pe:ot,xv(n[o?ot:Pe],N,!o&&i));!o&&i&&Nt&&n[ot].componentProviders++}}}function lp(e,t,n,i){const o=za(t),c=function U0(e){return!!e.useClass}(t);if(o||c){const y=(c?We(t.useClass):t).prototype.ngOnDestroy;if(y){const N=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const H=N.indexOf(n);-1===H?N.push(n,[i,y]):N[H+1].push(i,y)}else N.push(n,y)}}}function xv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function cp(e,t,n,i){for(let o=n;o{n.providersResolver=(i,o)=>function YE(e,t,n){const i=Sn();if(i.firstCreatePass){const o=sr(e);ap(n,i.data,i.blueprint,o,!0),ap(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Ya{}class Fv{}function ew(e,t){return new dp(e,t??null,[])}class dp extends Ya{constructor(t,n,i){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Vm(this);const o=hi(t);this._bootstrapComponents=Xo(o.bootstrap),this._r3Injector=Yg(t,n,[{provide:Ya,useValue:this},{provide:jc,useValue:this.componentFactoryResolver},...i],Ne(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class hp extends Fv{constructor(t){super(),this.moduleType=t}create(t){return new dp(this.moduleType,t,[])}}class kv extends Ya{constructor(t){super(),this.componentFactoryResolver=new Vm(this),this.instance=null;const n=new Tl([...t.providers,{provide:Ya,useValue:this},{provide:jc,useValue:this.componentFactoryResolver}],t.parent||nd(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Lv(e,t,n=null){return new kv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let nw=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const i=Rg(0,n.type),o=i.length>0?Lv([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=ge({token:e,providedIn:"environment",factory:()=>new e(Cn(Co))})}}return e})();function Bv(e){e.getStandaloneInjector=t=>t.get(nw).getOrCreateStandaloneInjector(e)}function Wv(e,t,n){const i=m()+e,o=pt();return o[i]===yn?So(o,i,n?t.call(n):t()):Yc(o,i)}function zv(e,t,n,i){return Yv(pt(),m(),e,t,n,i)}function Kv(e,t,n,i,o){return Zv(pt(),m(),e,t,n,i,o)}function Xv(e,t,n,i,o,c){return function Jv(e,t,n,i,o,c,d,g){const y=t+n;return function _d(e,t,n,i,o){const c=Ka(e,t,n,i);return Gr(e,t+2,o)||c}(e,y,o,c,d)?So(e,y+3,g?i.call(g,o,c,d):i(o,c,d)):ou(e,y+3)}(pt(),m(),e,t,n,i,o,c)}function Qv(e,t,n,i,o,c,d,g,y){const N=m()+e,H=pt(),X=Hs(H,N,n,i,o,c);return Ka(H,N+4,d,g)||X?So(H,N+6,y?t.call(y,n,i,o,c,d,g):t(n,i,o,c,d,g)):Yc(H,N+6)}function ou(e,t){const n=e[t];return n===yn?void 0:n}function Yv(e,t,n,i,o,c){const d=t+n;return Gr(e,d,o)?So(e,d+1,c?i.call(c,o):i(o)):ou(e,d+1)}function Zv(e,t,n,i,o,c,d){const g=t+n;return Ka(e,g,o,c)?So(e,g+2,d?i.call(d,o,c):i(o,c)):ou(e,g+2)}function ty(e,t){const n=Sn();let i;const o=e+on;n.firstCreatePass?(i=function mw(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks??=[]).push(o,i.onDestroy)):i=n.data[o];const c=i.factory||(i.factory=Ki(i.type)),g=rn(Rl);try{const y=Oa(!1),N=c();return Oa(y),function i1(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,pt(),o,N),N}finally{rn(g)}}function ny(e,t,n){const i=e+on,o=pt(),c=Hr(o,i);return au(o,i)?Yv(o,m(),t,c.transform,n,c):c.transform(n)}function iy(e,t,n,i){const o=e+on,c=pt(),d=Hr(c,o);return au(c,o)?Zv(c,m(),t,d.transform,n,i,d):d.transform(n,i)}function au(e,t){return e[Ot].data[t].pure}function bw(){return this._results[Symbol.iterator]()}class pp{get changes(){return this._changes||(this._changes=new To)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=pp.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=bw)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const o=function es(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function $o(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i0&&(n[o-1][Ui]=t),i{class e{static{this.__NG_ELEMENT_ID__=Tw}}return e})();const ww=lu,Cw=class extends ww{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,i){const o=function Dw(e,t,n,i){const o=t.tView,g=dd(e,o,n,4096&e[Jt]?4096:16,null,t,null,null,null,i?.injector??null,i?.hydrationInfo??null);g[ls]=e[t.index];const N=e[Zi];return null!==N&&(g[Zi]=N.createEmbeddedView(o)),Nf(o,g,n),g}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:i});return new Xc(o)}};function Tw(){return xd(Oi(),pt())}function xd(e,t){return 4&e.type?new Cw(t,e,Ol(e,t)):null}let Fd=(()=>{class e{static{this.__NG_ELEMENT_ID__=Nw}}return e})();function Nw(){return uy(Oi(),pt())}const Rw=Fd,ly=class extends Rw{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Ol(this._hostTNode,this._hostLView)}get injector(){return new Ur(this._hostTNode,this._hostLView)}get parentInjector(){const t=pc(this._hostTNode,this._hostLView);if(dc(t)){const n=Ia(t,this._hostLView),i=Sa(t);return new Ur(n[Ot].data[i+8],n)}return new Ur(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=cy(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-pi}createEmbeddedView(t,n,i){let o,c;"number"==typeof i?o=i:null!=i&&(o=i.index,c=i.injector);const g=t.createEmbeddedViewImpl(n||{},c,null);return this.insertImpl(g,o,false),g}createComponent(t,n,i,o,c){const d=t&&!function vo(e){return"function"==typeof e}(t);let g;if(d)g=n;else{const gt=n||{};g=gt.index,i=gt.injector,o=gt.projectableNodes,c=gt.environmentInjector||gt.ngModuleRef}const y=d?t:new Qc(dn(t)),N=i||this.parentInjector;if(!c&&null==y.ngModule){const Nt=(d?N:this.parentInjector).get(Co,null);Nt&&(c=Nt)}dn(y.componentType??{});const Pe=y.create(N,o,null,c);return this.insertImpl(Pe.hostView,g,false),Pe}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,i){const o=t._lView;if(function lr(e){return Ii(e[Bn])}(o)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const N=o[Bn],H=new ly(N,N[Di],N[Bn]);H.detach(H.indexOf(t))}}const d=this._adjustIndex(n),g=this._lContainer;return Ew(g,o,d,!i),t.attachToViewContainerRef(),lh(gp(g),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=cy(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=Rc(this._lContainer,n);i&&(vc(gp(this._lContainer),n),ju(i[Ot],i))}detach(t){const n=this._adjustIndex(t,-1),i=Rc(this._lContainer,n);return i&&null!=vc(gp(this._lContainer),n)?new Xc(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function cy(e){return e[8]}function gp(e){return e[8]||(e[8]=[])}function uy(e,t){let n;const i=t[e.index];return Ii(i)?n=i:(n=Sm(i,t,null,e),t[e.index]=n,hd(t,n)),dy(n,t,e,i),new ly(n,e,t)}let dy=function hy(e,t,n,i){if(e[rr])return;let o;o=8&n.type?Ht(i):function xw(e,t){const n=e[Wt],i=n.createComment(""),o=cn(t,e);return Wo(n,ua(n,o),i,function Vh(e,t){return e.nextSibling(t)}(n,o),!1),i}(t,n),e[rr]=o};class mp{constructor(t){this.queryList=t,this.matches=null}clone(){return new mp(this.queryList)}setDirty(){this.queryList.setDirty()}}class _p{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let c=0;c0)i.push(d[g/2]);else{const N=c[g+1],H=t[-y];for(let X=pi;X{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=q(Vy,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const c=o();if(Gf(c))n.push(c);else if(h_(c)){const d=new Promise((g,y)=>{c.subscribe({complete:g,error:y})});n.push(d)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Hy=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const Ld=new Yt("LocaleId",{providedIn:"root",factory:()=>q(Ld,Dt.Optional|Dt.SkipSelf)||function lC(){return typeof $localize<"u"&&$localize.locale||zl}()}),cC=new Yt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Uy=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Q.t(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class dC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let hC=(()=>{class e{compileModuleSync(n){return new hp(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),c=Xo(hi(n).declarations).reduce((d,g)=>{const y=dn(g);return y&&d.push(new Qc(y)),d},[]);return new dC(i,c)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Wy=new Yt(""),zy=new Yt("");let Op,PC=(()=>{class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Op||(function FC(e){Op=e}(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let c=-1;i&&i>0&&(c=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==c),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:c,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}static{this.\u0275fac=function(i){return new(i||e)(Cn(wr),Cn(Ky),Cn(zy))}}static{this.\u0275prov=ge({token:e,factory:e.\u0275fac})}}return e})(),Ky=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Op?.findTestabilityInTree(this,n,i)??null}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),fa=null;const Xy=new Yt("AllowMultipleToken"),Ap=new Yt("PlatformDestroyListeners"),Np=new Yt("appBootstrapListener");class BC{constructor(t,n){this.name=t,this.token=n}}function Zy(e,t,n=[]){const i=`Platform: ${t}`,o=new Yt(i);return(c=[])=>{let d=Rp();if(!d||d.injector.get(Xy,!1)){const g=[...n,...c,{provide:o,useValue:!0}];e?e(g):function VC(e){if(fa&&!fa.get(Xy,!1))throw new je(400,!1);(function Qy(){!function me(e){G=e}(()=>{throw new je(600,!1)})})(),fa=e;const t=e.get(qy);(function Yy(e){e.get(Bg,null)?.forEach(n=>n())})(e)}(function Jy(e=[],t){return Js.create({name:t,providers:[{provide:Jh,useValue:"platform"},{provide:Ap,useValue:new Set([()=>fa=null])},...e]})}(g,i))}return function UC(e){const t=Rp();if(!t)throw new je(401,!1);return t}()}}function Rp(){return fa?.get(qy)??null}let qy=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const o=function jC(e="zone.js",t){return"noop"===e?new Ib:"zone.js"===e?new wr(t):e}(i?.ngZone,function e0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const c=function tw(e,t,n){return new dp(e,t,n)}(n.moduleType,this.injector,function o0(e){return[{provide:wr,useFactory:e},{provide:Vc,multi:!0,useFactory:()=>{const t=q(GC,{optional:!0});return()=>t.initialize()}},{provide:s0,useFactory:$C},{provide:tm,useFactory:nm}]}(()=>o)),d=c.injector.get(da,null);return o.runOutsideAngular(()=>{const g=o.onError.subscribe({next:y=>{d.handleError(y)}});c.onDestroy(()=>{Vd(this._modules,c),g.unsubscribe()})}),function t0(e,t,n){try{const i=n();return Gf(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(d,o,()=>{const g=c.injector.get(Mp);return g.runInitializers(),g.donePromise.then(()=>(lv(c.injector.get(Ld,zl)||zl),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,i=[]){const o=n0({},i);return function kC(e,t,n){const i=new hp(n);return Promise.resolve(i)}(0,0,n).then(c=>this.bootstrapModuleFactory(c,o))}_moduleDoBootstrap(n){const i=n.injector.get(Ql);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new je(-403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new je(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(Ap,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||e)(Cn(Js))}}static{this.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function n0(e,t){return Array.isArray(t)?t.reduce(n0,e):{...e,...t}}let Ql=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=q(s0),this.zoneIsStable=q(tm),this.componentTypes=[],this.components=[],this.isStable=q(Uy).hasPendingTasks.pipe((0,Ue.n)(n=>n?(0,Y.of)(!1):this.zoneIsStable),(0,ae.F)(),ue()),this._injector=q(Co)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){const o=n instanceof jg;if(!this._injector.get(Mp).done)throw!o&&Sr(n),new je(405,!1);let d;d=o?n:this._injector.get(jc).resolveComponentFactory(n),this.componentTypes.push(d.componentType);const g=function LC(e){return e.isBoundToModule}(d)?void 0:this._injector.get(Ya),N=d.create(Js.NULL,[],i||d.selector,g),H=N.location.nativeElement,X=N.injector.get(Wy,null);return X?.registerApplication(H),N.onDestroy(()=>{this.detachView(N.hostView),Vd(this.components,N),X?.unregisterApplication(H)}),this._loadComponent(N),N}tick(){if(this._runningTick)throw new je(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Vd(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const i=this._injector.get(Np,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Vd(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new je(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Vd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const s0=new Yt("",{providedIn:"root",factory:()=>q(da).handleError.bind(void 0)});function $C(){const e=q(wr),t=q(da);return n=>e.runOutsideAngular(()=>t.handleError(n))}let GC=(()=>{class e{constructor(){this.zone=q(wr),this.applicationRef=q(Ql)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=ge({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();let zC=(()=>{class e{static{this.__NG_ELEMENT_ID__=KC}}return e})();function KC(e){return function XC(e,t,n){if(ji(e)&&!n){const i=xi(e.index,t);return new Xc(i,i)}return 47&e.type?new Xc(t[Zn],t):null}(Oi(),pt(),16==(16&e))}class d0{constructor(){}supports(t){return md(t)}create(t){return new qC(t)}}const JC=(e,t)=>t;class qC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||JC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,c=null;for(;n||i;){const d=!i||n&&n.currentIndex{d=this._trackByFn(o,g),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,g,d,o)),Object.is(n.item,g)||this._addIdentityChange(n,g)):(n=this._mismatch(n,g,d,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,o){let c;return null===t?c=this._itTail:(c=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,c,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,c,o)):t=this._addAfter(new eT(n,i),c,o),t}_verifyReinsertion(t,n,i,o){let c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==c?t=this._reinsertAfter(c,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,c=t._nextRemoved;return null===o?this._removalsHead=c:o._nextRemoved=c,null===c?this._removalsTail=o:c._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new h0),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new h0),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class eT{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class tT{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class h0{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new tT,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function f0(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const c=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,c)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const c=o._prev,d=o._next;return c&&(c._next=d),d&&(d._prev=c),o._next=null,o._prev=null,o}const i=new iT(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class iT{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function g0(){return new Lp([new d0])}let Lp=(()=>{class e{static{this.\u0275prov=ge({token:e,providedIn:"root",factory:g0})}constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||g0()),deps:[[e,new bc,new ka]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new je(901,!1)}}return e})();function m0(){return new Bp([new p0])}let Bp=(()=>{class e{static{this.\u0275prov=ge({token:e,providedIn:"root",factory:m0})}constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||m0()),deps:[[e,new bc,new ka]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(i)return i;throw new je(901,!1)}}return e})();const oT=Zy(null,"core",[]);let aT=(()=>{class e{constructor(n){}static{this.\u0275fac=function(i){return new(i||e)(Cn(Ql))}}static{this.\u0275mod=Tr({type:e})}static{this.\u0275inj=F({})}}return e})();function vT(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function bT(e,t){const n=dn(e),i=t.elementInjector||nd();return new Qc(n).create(i,t.projectableNodes,t.hostElement,t.environmentInjector)}function DT(e){const t=dn(e);if(!t)return null;const n=new Qc(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9079:(bt,Ae,O)=>{"use strict";O.d(Ae,{pQ:()=>oe});var r=O(8699),P=O(1985),se=O(6977);function oe(z){z||((0,r.Af3)(oe),z=(0,r.WQX)(r.abz));const pe=new P.c(Je=>z.onDestroy(Je.next.bind(Je)));return Je=>Je.pipe((0,se.Q)(pe))}Error},9417:(bt,Ae,O)=>{"use strict";O.d(Ae,{BC:()=>F,Fm:()=>as,JD:()=>Ir,MJ:()=>Kn,X1:()=>cs,YN:()=>sr,Zm:()=>ue,cV:()=>ni,cb:()=>w,cz:()=>Qe,j4:()=>dn,k0:()=>We,kq:()=>W,l_:()=>Pr,me:()=>J,ok:()=>Ii,qT:()=>ys,vS:()=>Hi,wz:()=>Ot,xH:()=>Jt,y7:()=>Vn});var r=O(8699),P=O(177),se=O(6648),oe=O(7468),Q=O(6354);let Y=(()=>{class x{constructor(C,j){this._renderer=C,this._elementRef=j,this.onChange=ie=>{},this.onTouched=()=>{}}setProperty(C,j){this._renderer.setProperty(this._elementRef.nativeElement,C,j)}registerOnTouched(C){this.onTouched=C}registerOnChange(C){this.onChange=C}setDisabledState(C){this.setProperty("disabled",C)}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(r.sFG),r.rXU(r.aKT))}}static{this.\u0275dir=r.FsC({type:x})}}return x})(),le=(()=>{class x extends Y{static{this.\u0275fac=function(){let C;return function(ie){return(C||(C=r.xGo(x)))(ie||x)}}()}static{this.\u0275dir=r.FsC({type:x,features:[r.Vt3]})}}return x})();const W=new r.nKC("NgValueAccessor"),Re={provide:W,useExisting:(0,r.Rfq)(()=>ue),multi:!0};let ue=(()=>{class x extends le{writeValue(C){this.setProperty("checked",C)}static{this.\u0275fac=function(){let C;return function(ie){return(C||(C=r.xGo(x)))(ie||x)}}()}static{this.\u0275dir=r.FsC({type:x,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(j,ie){1&j&&r.bIt("change",function(an){return ie.onChange(an.target.checked)})("blur",function(){return ie.onTouched()})},features:[r.Jv_([Re]),r.Vt3]})}}return x})();const re={provide:W,useExisting:(0,r.Rfq)(()=>J),multi:!0},ae=new r.nKC("CompositionEventMode");let J=(()=>{class x extends Y{constructor(C,j,ie){super(C,j),this._compositionMode=ie,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Ue(){const x=(0,P.QT)()?(0,P.QT)().getUserAgent():"";return/android (\d+)/.test(x.toLowerCase())}())}writeValue(C){this.setProperty("value",C??"")}_handleInput(C){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(C)}_compositionStart(){this._composing=!0}_compositionEnd(C){this._composing=!1,this._compositionMode&&this.onChange(C)}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(ae,8))}}static{this.\u0275dir=r.FsC({type:x,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(j,ie){1&j&&r.bIt("input",function(an){return ie._handleInput(an.target.value)})("blur",function(){return ie.onTouched()})("compositionstart",function(){return ie._compositionStart()})("compositionend",function(an){return ie._compositionEnd(an.target.value)})},features:[r.Jv_([re]),r.Vt3]})}}return x})();function fe(x){return null==x||("string"==typeof x||Array.isArray(x))&&0===x.length}function Ne(x){return null!=x&&"number"==typeof x.length}const Qe=new r.nKC("NgValidators"),it=new r.nKC("NgAsyncValidators"),_t=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class We{static min(L){return function _e(x){return L=>{if(fe(L.value)||fe(x))return null;const C=parseFloat(L.value);return!isNaN(C)&&C{if(fe(L.value)||fe(x))return null;const C=parseFloat(L.value);return!isNaN(C)&&C>x?{max:{max:x,actual:L.value}}:null}}(L)}static required(L){return function et(x){return fe(x.value)?{required:!0}:null}(L)}static requiredTrue(L){return function ht(x){return!0===x.value?null:{required:!0}}(L)}static email(L){return function je(x){return fe(x.value)||_t.test(x.value)?null:{email:!0}}(L)}static minLength(L){return function lt(x){return L=>fe(L.value)||!Ne(L.value)?null:L.value.lengthNe(L.value)&&L.value.length>x?{maxlength:{requiredLength:x,actualLength:L.value.length}}:null}(L)}static pattern(L){return function He(x){if(!x)return Fe;let L,C;return"string"==typeof x?(C="","^"!==x.charAt(0)&&(C+="^"),C+=x,"$"!==x.charAt(x.length-1)&&(C+="$"),L=new RegExp(C)):(C=x.toString(),L=x),j=>{if(fe(j.value))return null;const ie=j.value;return L.test(ie)?null:{pattern:{requiredPattern:C,actualValue:ie}}}}(L)}static nullValidator(L){return null}static compose(L){return Ce(L)}static composeAsync(L){return Oe(L)}}function Fe(x){return null}function Ye(x){return null!=x}function ne(x){return(0,r.jNT)(x)?(0,se.H)(x):x}function De(x){let L={};return x.forEach(C=>{L=null!=C?{...L,...C}:L}),0===Object.keys(L).length?null:L}function $e(x,L){return L.map(C=>C(x))}function It(x){return x.map(L=>function mt(x){return!x.validate}(L)?L:C=>L.validate(C))}function Ce(x){if(!x)return null;const L=x.filter(Ye);return 0==L.length?null:function(C){return De($e(C,L))}}function Ie(x){return null!=x?Ce(It(x)):null}function Oe(x){if(!x)return null;const L=x.filter(Ye);return 0==L.length?null:function(C){const j=$e(C,L).map(ne);return(0,oe.p)(j).pipe((0,Q.T)(De))}}function de(x){return null!=x?Oe(It(x)):null}function xe(x,L){return null===x?[L]:Array.isArray(x)?[...x,L]:[x,L]}function te(x){return x._rawValidators}function Te(x){return x._rawAsyncValidators}function tt(x){return x?Array.isArray(x)?x:[x]:[]}function rt(x,L){return Array.isArray(x)?x.includes(L):x===L}function ct(x,L){const C=tt(L);return tt(x).forEach(ie=>{rt(C,ie)||C.push(ie)}),C}function Pt(x,L){return tt(L).filter(C=>!rt(x,C))}class ft{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(L){this._rawValidators=L||[],this._composedValidatorFn=Ie(this._rawValidators)}_setAsyncValidators(L){this._rawAsyncValidators=L||[],this._composedAsyncValidatorFn=de(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(L){this._onDestroyCallbacks.push(L)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(L=>L()),this._onDestroyCallbacks=[]}reset(L=void 0){this.control&&this.control.reset(L)}hasError(L,C){return!!this.control&&this.control.hasError(L,C)}getError(L,C){return this.control?this.control.getError(L,C):null}}class tn extends ft{get formDirective(){return null}get path(){return null}}class Lt extends ft{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ft{constructor(L){this._cd=L}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let F=(()=>{class x extends Ft{constructor(C){super(C)}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(Lt,2))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(j,ie){2&j&&r.AVh("ng-untouched",ie.isUntouched)("ng-touched",ie.isTouched)("ng-pristine",ie.isPristine)("ng-dirty",ie.isDirty)("ng-valid",ie.isValid)("ng-invalid",ie.isInvalid)("ng-pending",ie.isPending)},features:[r.Vt3]})}}return x})(),w=(()=>{class x extends Ft{constructor(C){super(C)}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(tn,10))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(j,ie){2&j&&r.AVh("ng-untouched",ie.isUntouched)("ng-touched",ie.isTouched)("ng-pristine",ie.isPristine)("ng-dirty",ie.isDirty)("ng-valid",ie.isValid)("ng-invalid",ie.isInvalid)("ng-pending",ie.isPending)("ng-submitted",ie.isSubmitted)},features:[r.Vt3]})}}return x})();const Yt="VALID",oi="INVALID",Mi="PENDING",Hn="DISABLED";function ai(x){return(li(x)?x.validators:x)||null}function Yn(x,L){return(li(L)?L.asyncValidators:x)||null}function li(x){return null!=x&&!Array.isArray(x)&&"object"==typeof x}function yi(x,L,C){const j=x.controls;if(!(L?Object.keys(j):j).length)throw new r.wOt(1e3,"");if(!j[C])throw new r.wOt(1001,"")}function Li(x,L,C){x._forEachChild((j,ie)=>{if(void 0===C[ie])throw new r.wOt(1002,"")})}class mr{constructor(L,C){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(L),this._assignAsyncValidators(C)}get validator(){return this._composedValidatorFn}set validator(L){this._rawValidators=this._composedValidatorFn=L}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(L){this._rawAsyncValidators=this._composedAsyncValidatorFn=L}get parent(){return this._parent}get valid(){return this.status===Yt}get invalid(){return this.status===oi}get pending(){return this.status==Mi}get disabled(){return this.status===Hn}get enabled(){return this.status!==Hn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(L){this._assignValidators(L)}setAsyncValidators(L){this._assignAsyncValidators(L)}addValidators(L){this.setValidators(ct(L,this._rawValidators))}addAsyncValidators(L){this.setAsyncValidators(ct(L,this._rawAsyncValidators))}removeValidators(L){this.setValidators(Pt(L,this._rawValidators))}removeAsyncValidators(L){this.setAsyncValidators(Pt(L,this._rawAsyncValidators))}hasValidator(L){return rt(this._rawValidators,L)}hasAsyncValidator(L){return rt(this._rawAsyncValidators,L)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(L={}){this.touched=!0,this._parent&&!L.onlySelf&&this._parent.markAsTouched(L)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(L=>L.markAllAsTouched())}markAsUntouched(L={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(C=>{C.markAsUntouched({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}markAsDirty(L={}){this.pristine=!1,this._parent&&!L.onlySelf&&this._parent.markAsDirty(L)}markAsPristine(L={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(C=>{C.markAsPristine({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}markAsPending(L={}){this.status=Mi,!1!==L.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!L.onlySelf&&this._parent.markAsPending(L)}disable(L={}){const C=this._parentMarkedDirty(L.onlySelf);this.status=Hn,this.errors=null,this._forEachChild(j=>{j.disable({...L,onlySelf:!0})}),this._updateValue(),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...L,skipPristineCheck:C}),this._onDisabledChange.forEach(j=>j(!0))}enable(L={}){const C=this._parentMarkedDirty(L.onlySelf);this.status=Yt,this._forEachChild(j=>{j.enable({...L,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent}),this._updateAncestors({...L,skipPristineCheck:C}),this._onDisabledChange.forEach(j=>j(!1))}_updateAncestors(L){this._parent&&!L.onlySelf&&(this._parent.updateValueAndValidity(L),L.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(L){this._parent=L}getRawValue(){return this.value}updateValueAndValidity(L={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yt||this.status===Mi)&&this._runAsyncValidator(L.emitEvent)),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!L.onlySelf&&this._parent.updateValueAndValidity(L)}_updateTreeValidity(L={emitEvent:!0}){this._forEachChild(C=>C._updateTreeValidity(L)),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hn:Yt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(L){if(this.asyncValidator){this.status=Mi,this._hasOwnPendingAsyncValidator=!0;const C=ne(this.asyncValidator(this));this._asyncValidationSubscription=C.subscribe(j=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(j,{emitEvent:L})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(L,C={}){this.errors=L,this._updateControlsErrors(!1!==C.emitEvent)}get(L){let C=L;return null==C||(Array.isArray(C)||(C=C.split(".")),0===C.length)?null:C.reduce((j,ie)=>j&&j._find(ie),this)}getError(L,C){const j=C?this.get(C):this;return j&&j.errors?j.errors[L]:null}hasError(L,C){return!!this.getError(L,C)}get root(){let L=this;for(;L._parent;)L=L._parent;return L}_updateControlsErrors(L){this.status=this._calculateStatus(),L&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(L)}_initObservables(){this.valueChanges=new r.bkB,this.statusChanges=new r.bkB}_calculateStatus(){return this._allControlsDisabled()?Hn:this.errors?oi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mi)?Mi:this._anyControlsHaveStatus(oi)?oi:Yt}_anyControlsHaveStatus(L){return this._anyControls(C=>C.status===L)}_anyControlsDirty(){return this._anyControls(L=>L.dirty)}_anyControlsTouched(){return this._anyControls(L=>L.touched)}_updatePristine(L={}){this.pristine=!this._anyControlsDirty(),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}_updateTouched(L={}){this.touched=this._anyControlsTouched(),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}_registerOnCollectionChange(L){this._onCollectionChange=L}_setUpdateStrategy(L){li(L)&&null!=L.updateOn&&(this._updateOn=L.updateOn)}_parentMarkedDirty(L){return!L&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(L){return null}_assignValidators(L){this._rawValidators=Array.isArray(L)?L.slice():L,this._composedValidatorFn=function Qn(x){return Array.isArray(x)?Ie(x):x||null}(this._rawValidators)}_assignAsyncValidators(L){this._rawAsyncValidators=Array.isArray(L)?L.slice():L,this._composedAsyncValidatorFn=function Un(x){return Array.isArray(x)?de(x):x||null}(this._rawAsyncValidators)}}class qe extends mr{constructor(L,C,j){super(ai(C),Yn(j,C)),this.controls=L,this._initObservables(),this._setUpdateStrategy(C),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(L,C){return this.controls[L]?this.controls[L]:(this.controls[L]=C,C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange),C)}addControl(L,C,j={}){this.registerControl(L,C),this.updateValueAndValidity({emitEvent:j.emitEvent}),this._onCollectionChange()}removeControl(L,C={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],this.updateValueAndValidity({emitEvent:C.emitEvent}),this._onCollectionChange()}setControl(L,C,j={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],C&&this.registerControl(L,C),this.updateValueAndValidity({emitEvent:j.emitEvent}),this._onCollectionChange()}contains(L){return this.controls.hasOwnProperty(L)&&this.controls[L].enabled}setValue(L,C={}){Li(this,0,L),Object.keys(L).forEach(j=>{yi(this,!0,j),this.controls[j].setValue(L[j],{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C)}patchValue(L,C={}){null!=L&&(Object.keys(L).forEach(j=>{const ie=this.controls[j];ie&&ie.patchValue(L[j],{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C))}reset(L={},C={}){this._forEachChild((j,ie)=>{j.reset(L?L[ie]:null,{onlySelf:!0,emitEvent:C.emitEvent})}),this._updatePristine(C),this._updateTouched(C),this.updateValueAndValidity(C)}getRawValue(){return this._reduceChildren({},(L,C,j)=>(L[j]=C.getRawValue(),L))}_syncPendingControls(){let L=this._reduceChildren(!1,(C,j)=>!!j._syncPendingControls()||C);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){Object.keys(this.controls).forEach(C=>{const j=this.controls[C];j&&L(j,C)})}_setUpControls(){this._forEachChild(L=>{L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(L){for(const[C,j]of Object.entries(this.controls))if(this.contains(C)&&L(j))return!0;return!1}_reduceValue(){return this._reduceChildren({},(C,j,ie)=>((j.enabled||this.disabled)&&(C[ie]=j.value),C))}_reduceChildren(L,C){let j=L;return this._forEachChild((ie,xt)=>{j=C(j,ie,xt)}),j}_allControlsDisabled(){for(const L of Object.keys(this.controls))if(this.controls[L].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(L){return this.controls.hasOwnProperty(L)?this.controls[L]:null}}class ve extends qe{}const Ct=new r.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Bt}),Bt="always";function qt(x,L){return[...L.path,x]}function gn(x,L,C=Bt){Le(x,L),L.valueAccessor.writeValue(x.value),(x.disabled||"always"===C)&&L.valueAccessor.setDisabledState?.(x.disabled),function ye(x,L){L.valueAccessor.registerOnChange(C=>{x._pendingValue=C,x._pendingChange=!0,x._pendingDirty=!0,"change"===x.updateOn&&yt(x,L)})}(x,L),function Tt(x,L){const C=(j,ie)=>{L.valueAccessor.writeValue(j),ie&&L.viewToModelUpdate(j)};x.registerOnChange(C),L._registerOnDestroy(()=>{x._unregisterOnChange(C)})}(x,L),function at(x,L){L.valueAccessor.registerOnTouched(()=>{x._pendingTouched=!0,"blur"===x.updateOn&&x._pendingChange&&yt(x,L),"submit"!==x.updateOn&&x.markAsTouched()})}(x,L),function Cn(x,L){if(L.valueAccessor.setDisabledState){const C=j=>{L.valueAccessor.setDisabledState(j)};x.registerOnDisabledChange(C),L._registerOnDestroy(()=>{x._unregisterOnDisabledChange(C)})}}(x,L)}function $t(x,L,C=!0){const j=()=>{};L.valueAccessor&&(L.valueAccessor.registerOnChange(j),L.valueAccessor.registerOnTouched(j)),q(x,L),x&&(L._invokeOnDestroyCallbacks(),x._registerOnCollectionChange(()=>{}))}function ei(x,L){x.forEach(C=>{C.registerOnValidatorChange&&C.registerOnValidatorChange(L)})}function Le(x,L){const C=te(x);null!==L.validator?x.setValidators(xe(C,L.validator)):"function"==typeof C&&x.setValidators([C]);const j=Te(x);null!==L.asyncValidator?x.setAsyncValidators(xe(j,L.asyncValidator)):"function"==typeof j&&x.setAsyncValidators([j]);const ie=()=>x.updateValueAndValidity();ei(L._rawValidators,ie),ei(L._rawAsyncValidators,ie)}function q(x,L){let C=!1;if(null!==x){if(null!==L.validator){const ie=te(x);if(Array.isArray(ie)&&ie.length>0){const xt=ie.filter(an=>an!==L.validator);xt.length!==ie.length&&(C=!0,x.setValidators(xt))}}if(null!==L.asyncValidator){const ie=Te(x);if(Array.isArray(ie)&&ie.length>0){const xt=ie.filter(an=>an!==L.asyncValidator);xt.length!==ie.length&&(C=!0,x.setAsyncValidators(xt))}}}const j=()=>{};return ei(L._rawValidators,j),ei(L._rawAsyncValidators,j),C}function yt(x,L){x._pendingDirty&&x.markAsDirty(),x.setValue(x._pendingValue,{emitModelToViewChange:!1}),L.viewToModelUpdate(x._pendingValue),x._pendingChange=!1}function Mt(x,L){Le(x,L)}function Bi(x,L){if(!x.hasOwnProperty("model"))return!1;const C=x.model;return!!C.isFirstChange()||!Object.is(L,C.currentValue)}function Tn(x,L){x._syncPendingControls(),L.forEach(C=>{const j=C.control;"submit"===j.updateOn&&j._pendingChange&&(C.viewToModelUpdate(j._pendingValue),j._pendingChange=!1)})}function Mn(x,L){if(!L)return null;let C,j,ie;return Array.isArray(L),L.forEach(xt=>{xt.constructor===J?C=xt:function ci(x){return Object.getPrototypeOf(x.constructor)===le}(xt)?j=xt:ie=xt}),ie||j||C||null}const ti={provide:tn,useExisting:(0,r.Rfq)(()=>ni)},bi=(()=>Promise.resolve())();let ni=(()=>{class x extends tn{constructor(C,j,ie){super(),this.callSetDisabledState=ie,this.submitted=!1,this._directives=new Set,this.ngSubmit=new r.bkB,this.form=new qe({},Ie(C),de(j))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(C){bi.then(()=>{const j=this._findContainer(C.path);C.control=j.registerControl(C.name,C.control),gn(C.control,C,this.callSetDisabledState),C.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(C)})}getControl(C){return this.form.get(C.path)}removeControl(C){bi.then(()=>{const j=this._findContainer(C.path);j&&j.removeControl(C.name),this._directives.delete(C)})}addFormGroup(C){bi.then(()=>{const j=this._findContainer(C.path),ie=new qe({});Mt(ie,C),j.registerControl(C.name,ie),ie.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(C){bi.then(()=>{const j=this._findContainer(C.path);j&&j.removeControl(C.name)})}getFormGroup(C){return this.form.get(C.path)}updateModel(C,j){bi.then(()=>{this.form.get(C.path).setValue(j)})}setValue(C){this.control.setValue(C)}onSubmit(C){return this.submitted=!0,Tn(this.form,this._directives),this.ngSubmit.emit(C),"dialog"===C?.target?.method}onReset(){this.resetForm()}resetForm(C=void 0){this.form.reset(C),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(C){return C.pop(),C.length?this.form.get(C):this.form}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(Qe,10),r.rXU(it,10),r.rXU(Ct,8))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(j,ie){1&j&&r.bIt("submit",function(an){return ie.onSubmit(an)})("reset",function(){return ie.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([ti]),r.Vt3]})}}return x})();function Si(x,L){const C=x.indexOf(L);C>-1&&x.splice(C,1)}function Ai(x){return"object"==typeof x&&null!==x&&2===Object.keys(x).length&&"value"in x&&"disabled"in x}const Kn=class extends mr{constructor(L=null,C,j){super(ai(C),Yn(j,C)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(L),this._setUpdateStrategy(C),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),li(C)&&(C.nonNullable||C.initialValueIsDefault)&&(this.defaultValue=Ai(L)?L.value:L)}setValue(L,C={}){this.value=this._pendingValue=L,this._onChange.length&&!1!==C.emitModelToViewChange&&this._onChange.forEach(j=>j(this.value,!1!==C.emitViewToModelChange)),this.updateValueAndValidity(C)}patchValue(L,C={}){this.setValue(L,C)}reset(L=this.defaultValue,C={}){this._applyFormState(L),this.markAsPristine(C),this.markAsUntouched(C),this.setValue(this.value,C),this._pendingChange=!1}_updateValue(){}_anyControls(L){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(L){this._onChange.push(L)}_unregisterOnChange(L){Si(this._onChange,L)}registerOnDisabledChange(L){this._onDisabledChange.push(L)}_unregisterOnDisabledChange(L){Si(this._onDisabledChange,L)}_forEachChild(L){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(L){Ai(L)?(this.value=this._pendingValue=L.value,L.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=L}},rs={provide:Lt,useExisting:(0,r.Rfq)(()=>Hi)},ss=(()=>Promise.resolve())();let Hi=(()=>{class x extends Lt{constructor(C,j,ie,xt,an,zi){super(),this._changeDetectorRef=an,this.callSetDisabledState=zi,this.control=new Kn,this._registered=!1,this.name="",this.update=new r.bkB,this._parent=C,this._setValidators(j),this._setAsyncValidators(ie),this.valueAccessor=Mn(0,xt)}ngOnChanges(C){if(this._checkForErrors(),!this._registered||"name"in C){if(this._registered&&(this._checkName(),this.formDirective)){const j=C.name.previousValue;this.formDirective.removeControl({name:j,path:this._getPath(j)})}this._setUpControl()}"isDisabled"in C&&this._updateDisabled(C),Bi(C,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(C){this.viewModel=C,this.update.emit(C)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){gn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(C){ss.then(()=>{this.control.setValue(C,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(C){const j=C.isDisabled.currentValue,ie=0!==j&&(0,r.L39)(j);ss.then(()=>{ie&&!this.control.disabled?this.control.disable():!ie&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(C){return this._parent?qt(C,this._parent):[C]}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(tn,9),r.rXU(Qe,10),r.rXU(it,10),r.rXU(W,10),r.rXU(r.gRc,8),r.rXU(Ct,8))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.Jv_([rs]),r.Vt3,r.OA$]})}}return x})(),ys=(()=>{class x{static{this.\u0275fac=function(j){return new(j||x)}}static{this.\u0275dir=r.FsC({type:x,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return x})();const zr={provide:W,useExisting:(0,r.Rfq)(()=>as),multi:!0};let os=(()=>{class x{static{this.\u0275fac=function(j){return new(j||x)}}static{this.\u0275mod=r.$C({type:x})}static{this.\u0275inj=r.G2t({})}}return x})(),Kr=(()=>{class x{constructor(){this._accessors=[]}add(C,j){this._accessors.push([C,j])}remove(C){for(let j=this._accessors.length-1;j>=0;--j)if(this._accessors[j][1]===C)return void this._accessors.splice(j,1)}select(C){this._accessors.forEach(j=>{this._isSameGroup(j,C)&&j[1]!==C&&j[1].fireUncheck(C.value)})}_isSameGroup(C,j){return!!C[0].control&&C[0]._parent===j._control._parent&&C[1].name===j.name}static{this.\u0275fac=function(j){return new(j||x)}}static{this.\u0275prov=r.jDH({token:x,factory:x.\u0275fac,providedIn:os})}}return x})(),as=(()=>{class x extends le{constructor(C,j,ie,xt){super(C,j),this._registry=ie,this._injector=xt,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,r.WQX)(Ct,{optional:!0})??Bt}ngOnInit(){this._control=this._injector.get(Lt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(C){this._state=C===this.value,this.setProperty("checked",this._state)}registerOnChange(C){this._fn=C,this.onChange=()=>{C(this.value),this._registry.select(this)}}setDisabledState(C){(this.setDisabledStateFired||C||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",C),this.setDisabledStateFired=!0}fireUncheck(C){this.writeValue(C)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(Kr),r.rXU(r.zZn))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(j,ie){1&j&&r.bIt("change",function(){return ie.onChange()})("blur",function(){return ie.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.Jv_([zr]),r.Vt3]})}}return x})();const Yi=new r.nKC("NgModelWithFormControlWarning"),Mr={provide:Lt,useExisting:(0,r.Rfq)(()=>Pr)};let Pr=(()=>{class x extends Lt{set isDisabled(C){}static{this._ngModelWarningSentOnce=!1}constructor(C,j,ie,xt,an){super(),this._ngModelWarningConfig=xt,this.callSetDisabledState=an,this.update=new r.bkB,this._ngModelWarningSent=!1,this._setValidators(C),this._setAsyncValidators(j),this.valueAccessor=Mn(0,ie)}ngOnChanges(C){if(this._isControlChanged(C)){const j=C.form.previousValue;j&&$t(j,this,!1),gn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Bi(C,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&$t(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(C){this.viewModel=C,this.update.emit(C)}_isControlChanged(C){return C.hasOwnProperty("form")}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(Qe,10),r.rXU(it,10),r.rXU(W,10),r.rXU(Yi,8),r.rXU(Ct,8))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r.Jv_([Mr]),r.Vt3,r.OA$]})}}return x})();const Es={provide:tn,useExisting:(0,r.Rfq)(()=>dn)};let dn=(()=>{class x extends tn{constructor(C,j,ie){super(),this.callSetDisabledState=ie,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.bkB,this._setValidators(C),this._setAsyncValidators(j)}ngOnChanges(C){this._checkFormPresent(),C.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(q(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(C){const j=this.form.get(C.path);return gn(j,C,this.callSetDisabledState),j.updateValueAndValidity({emitEvent:!1}),this.directives.push(C),j}getControl(C){return this.form.get(C.path)}removeControl(C){$t(C.control||null,C,!1),function ui(x,L){const C=x.indexOf(L);C>-1&&x.splice(C,1)}(this.directives,C)}addFormGroup(C){this._setUpFormContainer(C)}removeFormGroup(C){this._cleanUpFormContainer(C)}getFormGroup(C){return this.form.get(C.path)}addFormArray(C){this._setUpFormContainer(C)}removeFormArray(C){this._cleanUpFormContainer(C)}getFormArray(C){return this.form.get(C.path)}updateModel(C,j){this.form.get(C.path).setValue(j)}onSubmit(C){return this.submitted=!0,Tn(this.form,this.directives),this.ngSubmit.emit(C),"dialog"===C?.target?.method}onReset(){this.resetForm()}resetForm(C=void 0){this.form.reset(C),this.submitted=!1}_updateDomValue(){this.directives.forEach(C=>{const j=C.control,ie=this.form.get(C.path);j!==ie&&($t(j||null,C),(x=>x instanceof Kn)(ie)&&(gn(ie,C,this.callSetDisabledState),C.control=ie))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(C){const j=this.form.get(C.path);Mt(j,C),j.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(C){if(this.form){const j=this.form.get(C.path);j&&function Fn(x,L){return q(x,L)}(j,C)&&j.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Le(this.form,this),this._oldForm&&q(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(Qe,10),r.rXU(it,10),r.rXU(Ct,8))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["","formGroup",""]],hostBindings:function(j,ie){1&j&&r.bIt("submit",function(an){return ie.onSubmit(an)})("reset",function(){return ie.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Jv_([Es]),r.Vt3,r.OA$]})}}return x})();const Qr={provide:Lt,useExisting:(0,r.Rfq)(()=>Ir)};let Ir=(()=>{class x extends Lt{set isDisabled(C){}static{this._ngModelWarningSentOnce=!1}constructor(C,j,ie,xt,an){super(),this._ngModelWarningConfig=an,this._added=!1,this.name=null,this.update=new r.bkB,this._ngModelWarningSent=!1,this._parent=C,this._setValidators(j),this._setAsyncValidators(ie),this.valueAccessor=Mn(0,xt)}ngOnChanges(C){this._added||this._setUpControl(),Bi(C,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(C){this.viewModel=C,this.update.emit(C)}get path(){return qt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(tn,13),r.rXU(Qe,10),r.rXU(it,10),r.rXU(W,10),r.rXU(Yi,8))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.Jv_([Qr]),r.Vt3,r.OA$]})}}return x})();const Yr={provide:W,useExisting:(0,r.Rfq)(()=>Ot),multi:!0};function Fr(x,L){return null==x?`${L}`:(L&&"object"==typeof L&&(L="Object"),`${x}: ${L}`.slice(0,50))}let Ot=(()=>{class x extends le{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(C){this._compareWith=C}writeValue(C){this.value=C;const ie=Fr(this._getOptionId(C),C);this.setProperty("value",ie)}registerOnChange(C){this.onChange=j=>{this.value=this._getOptionValue(j),C(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(C){for(const j of this._optionMap.keys())if(this._compareWith(this._optionMap.get(j),C))return j;return null}_getOptionValue(C){const j=function Ln(x){return x.split(":")[0]}(C);return this._optionMap.has(j)?this._optionMap.get(j):C}static{this.\u0275fac=function(){let C;return function(ie){return(C||(C=r.xGo(x)))(ie||x)}}()}static{this.\u0275dir=r.FsC({type:x,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(j,ie){1&j&&r.bIt("change",function(an){return ie.onChange(an.target.value)})("blur",function(){return ie.onTouched()})},inputs:{compareWith:"compareWith"},features:[r.Jv_([Yr]),r.Vt3]})}}return x})(),Jt=(()=>{class x{constructor(C,j,ie){this._element=C,this._renderer=j,this._select=ie,this._select&&(this.id=this._select._registerOption())}set ngValue(C){null!=this._select&&(this._select._optionMap.set(this.id,C),this._setElementValue(Fr(this.id,C)),this._select.writeValue(this._select.value))}set value(C){this._setElementValue(C),this._select&&this._select.writeValue(this._select.value)}_setElementValue(C){this._renderer.setProperty(this._element.nativeElement,"value",C)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(Ot,9))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return x})();const Bn={provide:W,useExisting:(0,r.Rfq)(()=>Wi),multi:!0};function Ui(x,L){return null==x?`${L}`:("string"==typeof L&&(L=`'${L}'`),L&&"object"==typeof L&&(L="Object"),`${x}: ${L}`.slice(0,50))}let Wi=(()=>{class x extends le{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(C){this._compareWith=C}writeValue(C){let j;if(this.value=C,Array.isArray(C)){const ie=C.map(xt=>this._getOptionId(xt));j=(xt,an)=>{xt._setSelected(ie.indexOf(an.toString())>-1)}}else j=(ie,xt)=>{ie._setSelected(!1)};this._optionMap.forEach(j)}registerOnChange(C){this.onChange=j=>{const ie=[],xt=j.selectedOptions;if(void 0!==xt){const an=xt;for(let zi=0;zi{class x{constructor(C,j,ie){this._element=C,this._renderer=j,this._select=ie,this._select&&(this.id=this._select._registerOption(this))}set ngValue(C){null!=this._select&&(this._value=C,this._setElementValue(Ui(this.id,C)),this._select.writeValue(this._select.value))}set value(C){this._select?(this._value=C,this._setElementValue(Ui(this.id,C)),this._select.writeValue(this._select.value)):this._setElementValue(C)}_setElementValue(C){this._renderer.setProperty(this._element.nativeElement,"value",C)}_setSelected(C){this._renderer.setProperty(this._element.nativeElement,"selected",C)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(j){return new(j||x)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(Wi,9))}}static{this.\u0275dir=r.FsC({type:x,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return x})(),Ji=(()=>{class x{static{this.\u0275fac=function(j){return new(j||x)}}static{this.\u0275mod=r.$C({type:x})}static{this.\u0275inj=r.G2t({imports:[os]})}}return x})();class Br extends mr{constructor(L,C,j){super(ai(C),Yn(j,C)),this.controls=L,this._initObservables(),this._setUpdateStrategy(C),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(L){return this.controls[this._adjustIndex(L)]}push(L,C={}){this.controls.push(L),this._registerControl(L),this.updateValueAndValidity({emitEvent:C.emitEvent}),this._onCollectionChange()}insert(L,C,j={}){this.controls.splice(L,0,C),this._registerControl(C),this.updateValueAndValidity({emitEvent:j.emitEvent})}removeAt(L,C={}){let j=this._adjustIndex(L);j<0&&(j=0),this.controls[j]&&this.controls[j]._registerOnCollectionChange(()=>{}),this.controls.splice(j,1),this.updateValueAndValidity({emitEvent:C.emitEvent})}setControl(L,C,j={}){let ie=this._adjustIndex(L);ie<0&&(ie=0),this.controls[ie]&&this.controls[ie]._registerOnCollectionChange(()=>{}),this.controls.splice(ie,1),C&&(this.controls.splice(ie,0,C),this._registerControl(C)),this.updateValueAndValidity({emitEvent:j.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(L,C={}){Li(this,0,L),L.forEach((j,ie)=>{yi(this,!1,ie),this.at(ie).setValue(j,{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C)}patchValue(L,C={}){null!=L&&(L.forEach((j,ie)=>{this.at(ie)&&this.at(ie).patchValue(j,{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C))}reset(L=[],C={}){this._forEachChild((j,ie)=>{j.reset(L[ie],{onlySelf:!0,emitEvent:C.emitEvent})}),this._updatePristine(C),this._updateTouched(C),this.updateValueAndValidity(C)}getRawValue(){return this.controls.map(L=>L.getRawValue())}clear(L={}){this.controls.length<1||(this._forEachChild(C=>C._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:L.emitEvent}))}_adjustIndex(L){return L<0?L+this.length:L}_syncPendingControls(){let L=this.controls.reduce((C,j)=>!!j._syncPendingControls()||C,!1);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){this.controls.forEach((C,j)=>{L(C,j)})}_updateValue(){this.value=this.controls.filter(L=>L.enabled||this.disabled).map(L=>L.value)}_anyControls(L){return this.controls.some(C=>C.enabled&&L(C))}_setUpControls(){this._forEachChild(L=>this._registerControl(L))}_allControlsDisabled(){for(const L of this.controls)if(L.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(L){L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)}_find(L){return this.at(L)??null}}function gi(x){return!!x&&(void 0!==x.asyncValidators||void 0!==x.validators||void 0!==x.updateOn)}let Ii=(()=>{class x{constructor(){this.useNonNullable=!1}get nonNullable(){const C=new x;return C.useNonNullable=!0,C}group(C,j=null){const ie=this._reduceControls(C);let xt={};return gi(j)?xt=j:null!==j&&(xt.validators=j.validator,xt.asyncValidators=j.asyncValidator),new qe(ie,xt)}record(C,j=null){const ie=this._reduceControls(C);return new ve(ie,j)}control(C,j,ie){let xt={};return this.useNonNullable?(gi(j)?xt=j:(xt.validators=j,xt.asyncValidators=ie),new Kn(C,{...xt,nonNullable:!0})):new Kn(C,j,ie)}array(C,j,ie){const xt=C.map(an=>this._createControl(an));return new Br(xt,j,ie)}_reduceControls(C){const j={};return Object.keys(C).forEach(ie=>{j[ie]=this._createControl(C[ie])}),j}_createControl(C){return C instanceof Kn||C instanceof mr?C:Array.isArray(C)?this.control(C[0],C.length>1?C[1]:null,C.length>2?C[2]:null):this.control(C)}static{this.\u0275fac=function(j){return new(j||x)}}static{this.\u0275prov=r.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),sr=(()=>{class x{static withConfig(C){return{ngModule:x,providers:[{provide:Ct,useValue:C.callSetDisabledState??Bt}]}}static{this.\u0275fac=function(j){return new(j||x)}}static{this.\u0275mod=r.$C({type:x})}static{this.\u0275inj=r.G2t({imports:[Ji]})}}return x})(),cs=(()=>{class x{static withConfig(C){return{ngModule:x,providers:[{provide:Yi,useValue:C.warnOnNgModelWithFormControl??"always"},{provide:Ct,useValue:C.callSetDisabledState??Bt}]}}static{this.\u0275fac=function(j){return new(j||x)}}static{this.\u0275mod=r.$C({type:x})}static{this.\u0275inj=r.G2t({imports:[Ji]})}}return x})()},4073:()=>{"use strict";const bt=":";Error;const tn=function(ge,...Ee){if(tn.translate){const w=tn.translate(ge,Ee);ge=w[0],Ee=w[1]}let F=Ft(ge[0],ge.raw[0]);for(let w=1;w{"use strict";O.d(Ae,{B7:()=>lt,Bb:()=>ge,hE:()=>$,sG:()=>ft,up:()=>oi});var r=O(8699),P=O(177);class se extends P.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oe extends se{static makeCurrent(){(0,P.ZD)(new oe)}onAndCancel(Ge,ee,ve){return Ge.addEventListener(ee,ve),()=>{Ge.removeEventListener(ee,ve)}}dispatchEvent(Ge,ee){Ge.dispatchEvent(ee)}remove(Ge){Ge.parentNode&&Ge.parentNode.removeChild(Ge)}createElement(Ge,ee){return(ee=ee||this.getDefaultDocument()).createElement(Ge)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ge){return Ge.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ge){return Ge instanceof DocumentFragment}getGlobalEventTarget(Ge,ee){return"window"===ee?window:"document"===ee?Ge:"body"===ee?Ge.body:null}getBaseHref(Ge){const ee=function Y(){return Q=Q||document.querySelector("base"),Q?Q.getAttribute("href"):null}();return null==ee?null:function W(qe){le=le||document.createElement("a"),le.setAttribute("href",qe);const Ge=le.pathname;return"/"===Ge.charAt(0)?Ge:`/${Ge}`}(ee)}resetBaseElement(){Q=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ge){return(0,P._b)(document.cookie,Ge)}}let le,Q=null,ue=(()=>{class qe{build(){return new XMLHttpRequest}static{this.\u0275fac=function(ve){return new(ve||qe)}}static{this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}}return qe})();const re=new r.nKC("EventManagerPlugins");let Ue=(()=>{class qe{constructor(ee,ve){this._zone=ve,this._eventNameToPlugin=new Map,ee.forEach(st=>{st.manager=this}),this._plugins=ee.slice().reverse()}addEventListener(ee,ve,st){return this._findPluginFor(ve).addEventListener(ee,ve,st)}getZone(){return this._zone}_findPluginFor(ee){let ve=this._eventNameToPlugin.get(ee);if(ve)return ve;if(ve=this._plugins.find(Ct=>Ct.supports(ee)),!ve)throw new r.wOt(5101,!1);return this._eventNameToPlugin.set(ee,ve),ve}static{this.\u0275fac=function(ve){return new(ve||qe)(r.KVO(re),r.KVO(r.SKi))}}static{this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}}return qe})();class ae{constructor(Ge){this._doc=Ge}}const J="ng-app-id";let fe=(()=>{class qe{constructor(ee,ve,st,Ct={}){this.doc=ee,this.appId=ve,this.nonce=st,this.platformId=Ct,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,P.Vy)(Ct),this.resetHostNodes()}addStyles(ee){for(const ve of ee)1===this.changeUsageCount(ve,1)&&this.onStyleAdded(ve)}removeStyles(ee){for(const ve of ee)this.changeUsageCount(ve,-1)<=0&&this.onStyleRemoved(ve)}ngOnDestroy(){const ee=this.styleNodesInDOM;ee&&(ee.forEach(ve=>ve.remove()),ee.clear());for(const ve of this.getAllStyles())this.onStyleRemoved(ve);this.resetHostNodes()}addHost(ee){this.hostNodes.add(ee);for(const ve of this.getAllStyles())this.addStyleToHost(ee,ve)}removeHost(ee){this.hostNodes.delete(ee)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ee){for(const ve of this.hostNodes)this.addStyleToHost(ve,ee)}onStyleRemoved(ee){const ve=this.styleRef;ve.get(ee)?.elements?.forEach(st=>st.remove()),ve.delete(ee)}collectServerRenderedStyles(){const ee=this.doc.head?.querySelectorAll(`style[${J}="${this.appId}"]`);if(ee?.length){const ve=new Map;return ee.forEach(st=>{null!=st.textContent&&ve.set(st.textContent,st)}),ve}return null}changeUsageCount(ee,ve){const st=this.styleRef;if(st.has(ee)){const Ct=st.get(ee);return Ct.usage+=ve,Ct.usage}return st.set(ee,{usage:ve,elements:[]}),ve}getStyleElement(ee,ve){const st=this.styleNodesInDOM,Ct=st?.get(ve);if(Ct?.parentNode===ee)return st.delete(ve),Ct.removeAttribute(J),Ct;{const Bt=this.doc.createElement("style");return this.nonce&&Bt.setAttribute("nonce",this.nonce),Bt.textContent=ve,this.platformIsServer&&Bt.setAttribute(J,this.appId),Bt}}addStyleToHost(ee,ve){const st=this.getStyleElement(ee,ve);ee.appendChild(st);const Ct=this.styleRef,Bt=Ct.get(ve)?.elements;Bt?Bt.push(st):Ct.set(ve,{elements:[st],usage:1})}resetHostNodes(){const ee=this.hostNodes;ee.clear(),ee.add(this.doc.head)}static{this.\u0275fac=function(ve){return new(ve||qe)(r.KVO(P.qQ),r.KVO(r.sZ2),r.KVO(r.BIS,8),r.KVO(r.Agw))}}static{this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}}return qe})();const Ne={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Qe=/%COMP%/g,Be=new r.nKC("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function je(qe,Ge){return Ge.map(ee=>ee.replace(Qe,qe))}let lt=(()=>{class qe{constructor(ee,ve,st,Ct,Bt,qt,gn,$t=null){this.eventManager=ee,this.sharedStylesHost=ve,this.appId=st,this.removeStylesOnCompDestroy=Ct,this.doc=Bt,this.platformId=qt,this.ngZone=gn,this.nonce=$t,this.rendererByCompId=new Map,this.platformIsServer=(0,P.Vy)(qt),this.defaultRenderer=new Ve(ee,Bt,gn,this.platformIsServer)}createRenderer(ee,ve){if(!ee||!ve)return this.defaultRenderer;this.platformIsServer&&ve.encapsulation===r.gXe.ShadowDom&&(ve={...ve,encapsulation:r.gXe.Emulated});const st=this.getOrCreateRenderer(ee,ve);return st instanceof $e?st.applyToHost(ee):st instanceof De&&st.applyStyles(),st}getOrCreateRenderer(ee,ve){const st=this.rendererByCompId;let Ct=st.get(ve.id);if(!Ct){const Bt=this.doc,qt=this.ngZone,gn=this.eventManager,$t=this.sharedStylesHost,ei=this.removeStylesOnCompDestroy,Cn=this.platformIsServer;switch(ve.encapsulation){case r.gXe.Emulated:Ct=new $e(gn,$t,ve,this.appId,ei,Bt,qt,Cn);break;case r.gXe.ShadowDom:return new ne(gn,$t,ee,ve,Bt,qt,this.nonce,Cn);default:Ct=new De(gn,$t,ve,ei,Bt,qt,Cn)}st.set(ve.id,Ct)}return Ct}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(ve){return new(ve||qe)(r.KVO(Ue),r.KVO(fe),r.KVO(r.sZ2),r.KVO(Be),r.KVO(P.qQ),r.KVO(r.Agw),r.KVO(r.SKi),r.KVO(r.BIS))}}static{this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}}return qe})();class Ve{constructor(Ge,ee,ve,st){this.eventManager=Ge,this.doc=ee,this.ngZone=ve,this.platformIsServer=st,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ge,ee){return ee?this.doc.createElementNS(Ne[ee]||ee,Ge):this.doc.createElement(Ge)}createComment(Ge){return this.doc.createComment(Ge)}createText(Ge){return this.doc.createTextNode(Ge)}appendChild(Ge,ee){(Ye(Ge)?Ge.content:Ge).appendChild(ee)}insertBefore(Ge,ee,ve){Ge&&(Ye(Ge)?Ge.content:Ge).insertBefore(ee,ve)}removeChild(Ge,ee){Ge&&Ge.removeChild(ee)}selectRootElement(Ge,ee){let ve="string"==typeof Ge?this.doc.querySelector(Ge):Ge;if(!ve)throw new r.wOt(-5104,!1);return ee||(ve.textContent=""),ve}parentNode(Ge){return Ge.parentNode}nextSibling(Ge){return Ge.nextSibling}setAttribute(Ge,ee,ve,st){if(st){ee=st+":"+ee;const Ct=Ne[st];Ct?Ge.setAttributeNS(Ct,ee,ve):Ge.setAttribute(ee,ve)}else Ge.setAttribute(ee,ve)}removeAttribute(Ge,ee,ve){if(ve){const st=Ne[ve];st?Ge.removeAttributeNS(st,ee):Ge.removeAttribute(`${ve}:${ee}`)}else Ge.removeAttribute(ee)}addClass(Ge,ee){Ge.classList.add(ee)}removeClass(Ge,ee){Ge.classList.remove(ee)}setStyle(Ge,ee,ve,st){st&(r.czy.DashCase|r.czy.Important)?Ge.style.setProperty(ee,ve,st&r.czy.Important?"important":""):Ge.style[ee]=ve}removeStyle(Ge,ee,ve){ve&r.czy.DashCase?Ge.style.removeProperty(ee):Ge.style[ee]=""}setProperty(Ge,ee,ve){Ge[ee]=ve}setValue(Ge,ee){Ge.nodeValue=ee}listen(Ge,ee,ve){if("string"==typeof Ge&&!(Ge=(0,P.QT)().getGlobalEventTarget(this.doc,Ge)))throw new Error(`Unsupported event target ${Ge} for event ${ee}`);return this.eventManager.addEventListener(Ge,ee,this.decoratePreventDefault(ve))}decoratePreventDefault(Ge){return ee=>{if("__ngUnwrap__"===ee)return Ge;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Ge(ee)):Ge(ee))&&ee.preventDefault()}}}function Ye(qe){return"TEMPLATE"===qe.tagName&&void 0!==qe.content}class ne extends Ve{constructor(Ge,ee,ve,st,Ct,Bt,qt,gn){super(Ge,Ct,Bt,gn),this.sharedStylesHost=ee,this.hostEl=ve,this.shadowRoot=ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const $t=je(st.id,st.styles);for(const ei of $t){const Cn=document.createElement("style");qt&&Cn.setAttribute("nonce",qt),Cn.textContent=ei,this.shadowRoot.appendChild(Cn)}}nodeOrShadowRoot(Ge){return Ge===this.hostEl?this.shadowRoot:Ge}appendChild(Ge,ee){return super.appendChild(this.nodeOrShadowRoot(Ge),ee)}insertBefore(Ge,ee,ve){return super.insertBefore(this.nodeOrShadowRoot(Ge),ee,ve)}removeChild(Ge,ee){return super.removeChild(this.nodeOrShadowRoot(Ge),ee)}parentNode(Ge){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ge)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class De extends Ve{constructor(Ge,ee,ve,st,Ct,Bt,qt,gn){super(Ge,Ct,Bt,qt),this.sharedStylesHost=ee,this.removeStylesOnCompDestroy=st,this.styles=gn?je(gn,ve.styles):ve.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class $e extends De{constructor(Ge,ee,ve,st,Ct,Bt,qt,gn){const $t=st+"-"+ve.id;super(Ge,ee,ve,Ct,Bt,qt,gn,$t),this.contentAttr=function et(qe){return"_ngcontent-%COMP%".replace(Qe,qe)}($t),this.hostAttr=function ht(qe){return"_nghost-%COMP%".replace(Qe,qe)}($t)}applyToHost(Ge){this.applyStyles(),this.setAttribute(Ge,this.hostAttr,"")}createElement(Ge,ee){const ve=super.createElement(Ge,ee);return super.setAttribute(ve,this.contentAttr,""),ve}}let mt=(()=>{class qe extends ae{constructor(ee){super(ee)}supports(ee){return!0}addEventListener(ee,ve,st){return ee.addEventListener(ve,st,!1),()=>this.removeEventListener(ee,ve,st)}removeEventListener(ee,ve,st){return ee.removeEventListener(ve,st)}static{this.\u0275fac=function(ve){return new(ve||qe)(r.KVO(P.qQ))}}static{this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}}return qe})();const It=["alt","control","meta","shift"],Ce={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ie={alt:qe=>qe.altKey,control:qe=>qe.ctrlKey,meta:qe=>qe.metaKey,shift:qe=>qe.shiftKey};let Oe=(()=>{class qe extends ae{constructor(ee){super(ee)}supports(ee){return null!=qe.parseEventName(ee)}addEventListener(ee,ve,st){const Ct=qe.parseEventName(ve),Bt=qe.eventCallback(Ct.fullKey,st,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,P.QT)().onAndCancel(ee,Ct.domEventName,Bt))}static parseEventName(ee){const ve=ee.toLowerCase().split("."),st=ve.shift();if(0===ve.length||"keydown"!==st&&"keyup"!==st)return null;const Ct=qe._normalizeKey(ve.pop());let Bt="",qt=ve.indexOf("code");if(qt>-1&&(ve.splice(qt,1),Bt="code."),It.forEach($t=>{const ei=ve.indexOf($t);ei>-1&&(ve.splice(ei,1),Bt+=$t+".")}),Bt+=Ct,0!=ve.length||0===Ct.length)return null;const gn={};return gn.domEventName=st,gn.fullKey=Bt,gn}static matchEventFullKeyCode(ee,ve){let st=Ce[ee.key]||ee.key,Ct="";return ve.indexOf("code.")>-1&&(st=ee.code,Ct="code."),!(null==st||!st)&&(st=st.toLowerCase()," "===st?st="space":"."===st&&(st="dot"),It.forEach(Bt=>{Bt!==st&&(0,Ie[Bt])(ee)&&(Ct+=Bt+".")}),Ct+=st,Ct===ve)}static eventCallback(ee,ve,st){return Ct=>{qe.matchEventFullKeyCode(Ct,ee)&&st.runGuarded(()=>ve(Ct))}}static _normalizeKey(ee){return"esc"===ee?"escape":ee}static{this.\u0275fac=function(ve){return new(ve||qe)(r.KVO(P.qQ))}}static{this.\u0275prov=r.jDH({token:qe,factory:qe.\u0275fac})}}return qe})();const ft=(0,r.oH4)(r.fpN,"browser",[{provide:r.Agw,useValue:P.AJ},{provide:r.PLl,useValue:function tt(){oe.makeCurrent()},multi:!0},{provide:P.qQ,useFactory:function ct(){return(0,r.TL$)(document),document},deps:[]}]),tn=new r.nKC(""),Lt=[{provide:r.e01,useClass:class Re{addToWindow(Ge){r.JZv.getAngularTestability=(ve,st=!0)=>{const Ct=Ge.findTestabilityInTree(ve,st);if(null==Ct)throw new r.wOt(5103,!1);return Ct},r.JZv.getAllAngularTestabilities=()=>Ge.getAllTestabilities(),r.JZv.getAllAngularRootElements=()=>Ge.getAllRootElements(),r.JZv.frameworkStabilizers||(r.JZv.frameworkStabilizers=[]),r.JZv.frameworkStabilizers.push(ve=>{const st=r.JZv.getAllAngularTestabilities();let Ct=st.length,Bt=!1;const qt=function(gn){Bt=Bt||gn,Ct--,0==Ct&&ve(Bt)};st.forEach(gn=>{gn.whenStable(qt)})})}findTestabilityInTree(Ge,ee,ve){return null==ee?null:Ge.getTestability(ee)??(ve?(0,P.QT)().isShadowRoot(ee)?this.findTestabilityInTree(Ge,ee.host,!0):this.findTestabilityInTree(Ge,ee.parentElement,!0):null)}},deps:[]},{provide:r.WHO,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]},{provide:r.NYb,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]}],Ft=[{provide:r.H8p,useValue:"root"},{provide:r.zcH,useFactory:function rt(){return new r.zcH},deps:[]},{provide:re,useClass:mt,multi:!0,deps:[P.qQ,r.SKi,r.Agw]},{provide:re,useClass:Oe,multi:!0,deps:[P.qQ]},lt,fe,Ue,{provide:r._9s,useExisting:lt},{provide:P.N0,useClass:ue,deps:[]},[]];let ge=(()=>{class qe{constructor(ee){}static withServerTransition(ee){return{ngModule:qe,providers:[{provide:r.sZ2,useValue:ee.appId}]}}static{this.\u0275fac=function(ve){return new(ve||qe)(r.KVO(tn,12))}}static{this.\u0275mod=r.$C({type:qe})}static{this.\u0275inj=r.G2t({providers:[...Ft,...Lt],imports:[P.MD,r.Hbi]})}}return qe})(),$=(()=>{class qe{constructor(ee){this._doc=ee}getTitle(){return this._doc.title}setTitle(ee){this._doc.title=ee||""}static{this.\u0275fac=function(ve){return new(ve||qe)(r.KVO(P.qQ))}}static{this.\u0275prov=r.jDH({token:qe,factory:function(ve){let st=null;return st=ve?new ve:function M(){return new $((0,r.KVO)(P.qQ))}(),st},providedIn:"root"})}}return qe})();typeof window<"u"&&window;let oi=(()=>{class qe{static{this.\u0275fac=function(ve){return new(ve||qe)}}static{this.\u0275prov=r.jDH({token:qe,factory:function(ve){let st=null;return st=ve?new(ve||qe):r.KVO(Hn),st},providedIn:"root"})}}return qe})(),Hn=(()=>{class qe extends oi{constructor(ee){super(),this._doc=ee}sanitize(ee,ve){if(null==ve)return null;switch(ee){case r.WPN.NONE:return ve;case r.WPN.HTML:return(0,r.ZF7)(ve,"HTML")?(0,r.rcV)(ve):(0,r.h9k)(this._doc,String(ve)).toString();case r.WPN.STYLE:return(0,r.ZF7)(ve,"Style")?(0,r.rcV)(ve):ve;case r.WPN.SCRIPT:if((0,r.ZF7)(ve,"Script"))return(0,r.rcV)(ve);throw new r.wOt(5200,!1);case r.WPN.URL:return(0,r.ZF7)(ve,"URL")?(0,r.rcV)(ve):(0,r.$MX)(String(ve));case r.WPN.RESOURCE_URL:if((0,r.ZF7)(ve,"ResourceURL"))return(0,r.rcV)(ve);throw new r.wOt(5201,!1);default:throw new r.wOt(5202,!1)}}bypassSecurityTrustHtml(ee){return(0,r.Kcf)(ee)}bypassSecurityTrustStyle(ee){return(0,r.cWb)(ee)}bypassSecurityTrustScript(ee){return(0,r.UyX)(ee)}bypassSecurityTrustUrl(ee){return(0,r.osQ)(ee)}bypassSecurityTrustResourceUrl(ee){return(0,r.e5t)(ee)}static{this.\u0275fac=function(ve){return new(ve||qe)(r.KVO(P.qQ))}}static{this.\u0275prov=r.jDH({token:qe,factory:function(ve){let st=null;return st=ve?new ve:function Mi(qe){return new Hn(qe.get(P.qQ))}(r.KVO(r.zZn)),st},providedIn:"root"})}}return qe})()},8185:(bt,Ae,O)=>{"use strict";O.d(Ae,{nX:()=>jn,Ix:()=>Xi,Wk:()=>jt,wQ:()=>Zt,iI:()=>ic,n3:()=>Ln});var r=O(8699),P=O(1985),se=O(8071),Q=O(6648),Y=O(7673),le=O(4412),W=O(4572),Re=O(9350),ue=O(8793),re=O(9030),Ue=O(1203),ae=O(8810),J=O(983),fe=O(8359),Ne=O(9974),Qe=O(4360);function it(){return(0,Ne.N)((m,b)=>{let p=null;m._refCount++;const D=(0,Qe._)(b,void 0,void 0,void 0,()=>{if(!m||m._refCount<=0||0<--m._refCount)return void(p=null);const R=m._connection,U=p;p=null,R&&(!U||R===U)&&R.unsubscribe(),b.unsubscribe()});m.subscribe(D),D.closed||(p=m.connect())})}class _t extends P.c{constructor(b,p){super(),this.source=b,this.subjectFactory=p,this._subject=null,this._refCount=0,this._connection=null,(0,Ne.S)(b)&&(this.lift=b.lift)}_subscribe(b){return this.getSubject().subscribe(b)}getSubject(){const b=this._subject;return(!b||b.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:b}=this;this._subject=this._connection=null,b?.unsubscribe()}connect(){let b=this._connection;if(!b){b=this._connection=new fe.yU;const p=this.getSubject();b.add(this.source.subscribe((0,Qe._)(p,void 0,()=>{this._teardown(),p.complete()},D=>{this._teardown(),p.error(D)},()=>this._teardown()))),b.closed&&(this._connection=null,b=fe.yU.EMPTY)}return b}refCount(){return it()(this)}}var We=O(1413),_e=O(177),Be=O(6354),et=O(5558),ht=O(6697),je=O(9172),lt=O(5964),Ve=O(1397),He=O(1594),Fe=O(274),Ye=O(8141),ne=O(9437);var mt=O(9901);function It(m){return m<=0?()=>J.w:(0,Ne.N)((b,p)=>{let D=[];b.subscribe((0,Qe._)(p,R=>{D.push(R),m{for(const R of D)p.next(R);p.complete()},void 0,()=>{D=null}))})}var Ce=O(3774),Ie=O(3669),de=O(3703),xe=O(980),te=O(6977),Te=O(6365),tt=O(345);const rt="primary",ct=Symbol("RouteTitle");class Pt{constructor(b){this.params=b||{}}has(b){return Object.prototype.hasOwnProperty.call(this.params,b)}get(b){if(this.has(b)){const p=this.params[b];return Array.isArray(p)?p[0]:p}return null}getAll(b){if(this.has(b)){const p=this.params[b];return Array.isArray(p)?p:[p]}return[]}get keys(){return Object.keys(this.params)}}function ft(m){return new Pt(m)}function tn(m,b,p){const D=p.path.split("/");if(D.length>m.length||"full"===p.pathMatch&&(b.hasChildren()||D.lengthD[U]===R)}return m===b}function Ee(m){return m.length>0?m[m.length-1]:null}function F(m){return function oe(m){return!!m&&(m instanceof P.c||(0,se.T)(m.lift)&&(0,se.T)(m.subscribe))}(m)?m:(0,r.jNT)(m)?(0,Q.H)(Promise.resolve(m)):(0,Y.of)(m)}const w={exact:function z(m,b,p){if(!pn(m.segments,b.segments)||!Vt(m.segments,b.segments,p)||m.numberOfChildren!==b.numberOfChildren)return!1;for(const D in b.children)if(!m.children[D]||!z(m.children[D],b.children[D],p))return!1;return!0},subset:Je},M={exact:function Me(m,b){return Ft(m,b)},subset:function pe(m,b){return Object.keys(b).length<=Object.keys(m).length&&Object.keys(b).every(p=>ge(m[p],b[p]))},ignored:()=>!0};function $(m,b,p){return w[p.paths](m.root,b.root,p.matrixParams)&&M[p.queryParams](m.queryParams,b.queryParams)&&!("exact"===p.fragment&&m.fragment!==b.fragment)}function Je(m,b,p){return nt(m,b,b.segments,p)}function nt(m,b,p,D){if(m.segments.length>p.length){const R=m.segments.slice(0,p.length);return!(!pn(R,p)||b.hasChildren()||!Vt(R,p,D))}if(m.segments.length===p.length){if(!pn(m.segments,p)||!Vt(m.segments,p,D))return!1;for(const R in b.children)if(!m.children[R]||!Je(m.children[R],b.children[R],D))return!1;return!0}{const R=p.slice(0,m.segments.length),U=p.slice(m.segments.length);return!!(pn(m.segments,R)&&Vt(m.segments,R,D)&&m.children[rt])&&nt(m.children[rt],b,U,D)}}function Vt(m,b,p){return b.every((D,R)=>M[p](m[R].parameters,D.parameters))}class Dt{constructor(b=new St([],{}),p={},D=null){this.root=b,this.queryParams=p,this.fragment=D}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ft(this.queryParams)),this._queryParamMap}toString(){return ki.serialize(this)}}class St{constructor(b,p){this.segments=b,this.children=p,this.parent=null,Object.values(p).forEach(D=>D.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yt(this)}}class wn{constructor(b,p){this.path=b,this.parameters=p}get parameterMap(){return this._parameterMap||(this._parameterMap=ft(this.parameters)),this._parameterMap}toString(){return li(this)}}function pn(m,b){return m.length===b.length&&m.every((p,D)=>p.path===b[D].path)}let Nn=(()=>{class m{static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:function(){return new vn},providedIn:"root"})}}return m})();class vn{parse(b){const p=new qt(b);return new Dt(p.parseRootSegment(),p.parseQueryParams(),p.parseFragment())}serialize(b){const p=`/${oi(b.root,!0)}`,D=function Li(m){const b=Object.keys(m).map(p=>{const D=m[p];return Array.isArray(D)?D.map(R=>`${Hn(p)}=${Hn(R)}`).join("&"):`${Hn(p)}=${Hn(D)}`}).filter(p=>!!p);return b.length?`?${b.join("&")}`:""}(b.queryParams);return`${p}${D}${"string"==typeof b.fragment?`#${function ai(m){return encodeURI(m)}(b.fragment)}`:""}`}}const ki=new vn;function Yt(m){return m.segments.map(b=>li(b)).join("/")}function oi(m,b){if(!m.hasChildren())return Yt(m);if(b){const p=m.children[rt]?oi(m.children[rt],!1):"",D=[];return Object.entries(m.children).forEach(([R,U])=>{R!==rt&&D.push(`${R}:${oi(U,!1)}`)}),D.length>0?`${p}(${D.join("//")})`:p}{const p=function bn(m,b){let p=[];return Object.entries(m.children).forEach(([D,R])=>{D===rt&&(p=p.concat(b(R,D)))}),Object.entries(m.children).forEach(([D,R])=>{D!==rt&&(p=p.concat(b(R,D)))}),p}(m,(D,R)=>R===rt?[oi(m.children[rt],!1)]:[`${R}:${oi(D,!1)}`]);return 1===Object.keys(m.children).length&&null!=m.children[rt]?`${Yt(m)}/${p[0]}`:`${Yt(m)}/(${p.join("//")})`}}function Mi(m){return encodeURIComponent(m).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hn(m){return Mi(m).replace(/%3B/gi,";")}function Qn(m){return Mi(m).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yn(m){return decodeURIComponent(m)}function Un(m){return Yn(m.replace(/\+/g,"%20"))}function li(m){return`${Qn(m.path)}${function yi(m){return Object.keys(m).map(b=>`;${Qn(b)}=${Qn(m[b])}`).join("")}(m.parameters)}`}const mr=/^[^\/()?;#]+/;function qe(m){const b=m.match(mr);return b?b[0]:""}const Ge=/^[^\/()?;=#]+/,ve=/^[^=?&#]+/,Ct=/^[^&#]+/;class qt{constructor(b){this.url=b,this.remaining=b}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new St([],{}):new St([],this.parseChildren())}parseQueryParams(){const b={};if(this.consumeOptional("?"))do{this.parseQueryParam(b)}while(this.consumeOptional("&"));return b}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const b=[];for(this.peekStartsWith("(")||b.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),b.push(this.parseSegment());let p={};this.peekStartsWith("/(")&&(this.capture("/"),p=this.parseParens(!0));let D={};return this.peekStartsWith("(")&&(D=this.parseParens(!1)),(b.length>0||Object.keys(p).length>0)&&(D[rt]=new St(b,p)),D}parseSegment(){const b=qe(this.remaining);if(""===b&&this.peekStartsWith(";"))throw new r.wOt(4009,!1);return this.capture(b),new wn(Yn(b),this.parseMatrixParams())}parseMatrixParams(){const b={};for(;this.consumeOptional(";");)this.parseParam(b);return b}parseParam(b){const p=function ee(m){const b=m.match(Ge);return b?b[0]:""}(this.remaining);if(!p)return;this.capture(p);let D="";if(this.consumeOptional("=")){const R=qe(this.remaining);R&&(D=R,this.capture(D))}b[Yn(p)]=Yn(D)}parseQueryParam(b){const p=function st(m){const b=m.match(ve);return b?b[0]:""}(this.remaining);if(!p)return;this.capture(p);let D="";if(this.consumeOptional("=")){const Z=function Bt(m){const b=m.match(Ct);return b?b[0]:""}(this.remaining);Z&&(D=Z,this.capture(D))}const R=Un(p),U=Un(D);if(b.hasOwnProperty(R)){let Z=b[R];Array.isArray(Z)||(Z=[Z],b[R]=Z),Z.push(U)}else b[R]=U}parseParens(b){const p={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const D=qe(this.remaining),R=this.remaining[D.length];if("/"!==R&&")"!==R&&";"!==R)throw new r.wOt(4010,!1);let U;D.indexOf(":")>-1?(U=D.slice(0,D.indexOf(":")),this.capture(U),this.capture(":")):b&&(U=rt);const Z=this.parseChildren();p[U]=1===Object.keys(Z).length?Z[rt]:new St([],Z),this.consumeOptional("//")}return p}peekStartsWith(b){return this.remaining.startsWith(b)}consumeOptional(b){return!!this.peekStartsWith(b)&&(this.remaining=this.remaining.substring(b.length),!0)}capture(b){if(!this.consumeOptional(b))throw new r.wOt(4011,!1)}}function gn(m){return m.segments.length>0?new St([],{[rt]:m}):m}function $t(m){const b={};for(const D of Object.keys(m.children)){const U=$t(m.children[D]);if(D===rt&&0===U.segments.length&&U.hasChildren())for(const[Z,Ze]of Object.entries(U.children))b[Z]=Ze;else(U.segments.length>0||U.hasChildren())&&(b[D]=U)}return function ei(m){if(1===m.numberOfChildren&&m.children[rt]){const b=m.children[rt];return new St(m.segments.concat(b.segments),b.children)}return m}(new St(m.segments,b))}function Cn(m){return m instanceof Dt}function q(m){let b;const R=gn(function p(U){const Z={};for(const Ke of U.children){const At=p(Ke);Z[Ke.outlet]=At}const Ze=new St(U.url,Z);return U===m&&(b=Ze),Ze}(m.root));return b??R}function ye(m,b,p,D){let R=m;for(;R.parent;)R=R.parent;if(0===b.length)return Tt(R,R,R,p,D);const U=function Gt(m){if("string"==typeof m[0]&&1===m.length&&"/"===m[0])return new Fn(!0,0,m);let b=0,p=!1;const D=m.reduce((R,U,Z)=>{if("object"==typeof U&&null!=U){if(U.outlets){const Ze={};return Object.entries(U.outlets).forEach(([Ke,At])=>{Ze[Ke]="string"==typeof At?At.split("/"):At}),[...R,{outlets:Ze}]}if(U.segmentPath)return[...R,U.segmentPath]}return"string"!=typeof U?[...R,U]:0===Z?(U.split("/").forEach((Ze,Ke)=>{0==Ke&&"."===Ze||(0==Ke&&""===Ze?p=!0:".."===Ze?b++:""!=Ze&&R.push(Ze))}),R):[...R,U]},[]);return new Fn(p,b,D)}(b);if(U.toRoot())return Tt(R,R,new St([],{}),p,D);const Z=function zn(m,b,p){if(m.isAbsolute)return new kn(b,!0,0);if(!p)return new kn(b,!1,NaN);if(null===p.parent)return new kn(p,!0,0);const D=at(m.commands[0])?0:1;return function $n(m,b,p){let D=m,R=b,U=p;for(;U>R;){if(U-=R,D=D.parent,!D)throw new r.wOt(4005,!1);R=D.segments.length}return new kn(D,!1,R-U)}(p,p.segments.length-1+D,m.numberOfDoubleDots)}(U,R,m),Ze=Z.processChildren?ci(Z.segmentGroup,Z.index,U.commands):Bi(Z.segmentGroup,Z.index,U.commands);return Tt(R,Z.segmentGroup,Ze,p,D)}function at(m){return"object"==typeof m&&null!=m&&!m.outlets&&!m.segmentPath}function yt(m){return"object"==typeof m&&null!=m&&m.outlets}function Tt(m,b,p,D,R){let Z,U={};D&&Object.entries(D).forEach(([Ke,At])=>{U[Ke]=Array.isArray(At)?At.map(un=>`${un}`):`${At}`}),Z=m===b?p:Mt(m,b,p);const Ze=gn($t(Z));return new Dt(Ze,U,R)}function Mt(m,b,p){const D={};return Object.entries(m.children).forEach(([R,U])=>{D[R]=U===b?p:Mt(U,b,p)}),new St(m.segments,D)}class Fn{constructor(b,p,D){if(this.isAbsolute=b,this.numberOfDoubleDots=p,this.commands=D,b&&D.length>0&&at(D[0]))throw new r.wOt(4003,!1);const R=D.find(yt);if(R&&R!==Ee(D))throw new r.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kn{constructor(b,p,D){this.segmentGroup=b,this.processChildren=p,this.index=D}}function Bi(m,b,p){if(m||(m=new St([],{})),0===m.segments.length&&m.hasChildren())return ci(m,b,p);const D=function Tn(m,b,p){let D=0,R=b;const U={match:!1,pathIndex:0,commandIndex:0};for(;R=p.length)return U;const Z=m.segments[R],Ze=p[D];if(yt(Ze))break;const Ke=`${Ze}`,At=D0&&void 0===Ke)break;if(Ke&&At&&"object"==typeof At&&void 0===At.outlets){if(!ti(Ke,At,Z))return U;D+=2}else{if(!ti(Ke,{},Z))return U;D++}R++}return{match:!0,pathIndex:R,commandIndex:D}}(m,b,p),R=p.slice(D.commandIndex);if(D.match&&D.pathIndexU!==rt)&&m.children[rt]&&1===m.numberOfChildren&&0===m.children[rt].segments.length){const U=ci(m.children[rt],b,p);return new St(m.segments,U.children)}return Object.entries(D).forEach(([U,Z])=>{"string"==typeof Z&&(Z=[Z]),null!==Z&&(R[U]=Bi(m.children[U],b,Z))}),Object.entries(m.children).forEach(([U,Z])=>{void 0===D[U]&&(R[U]=Z)}),new St(m.segments,R)}}function Mn(m,b,p){const D=m.segments.slice(0,b);let R=0;for(;R{"string"==typeof D&&(D=[D]),null!==D&&(b[p]=Mn(new St([],{}),0,D))}),b}function Gi(m){const b={};return Object.entries(m).forEach(([p,D])=>b[p]=`${D}`),b}function ti(m,b,p){return m==p.path&&Ft(b,p.parameters)}const bi="imperative";class ni{constructor(b,p){this.id=b,this.url=p}}class Si extends ni{constructor(b,p,D="imperative",R=null){super(b,p),this.type=0,this.navigationTrigger=D,this.restoredState=R}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ai extends ni{constructor(b,p,D){super(b,p),this.urlAfterRedirects=D,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Kn extends ni{constructor(b,p,D,R){super(b,p),this.reason=D,this.code=R,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tr extends ni{constructor(b,p,D,R){super(b,p),this.reason=D,this.code=R,this.type=16}}class dr extends ni{constructor(b,p,D,R){super(b,p),this.error=D,this.target=R,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Wr extends ni{constructor(b,p,D,R){super(b,p),this.urlAfterRedirects=D,this.state=R,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Us extends ni{constructor(b,p,D,R){super(b,p),this.urlAfterRedirects=D,this.state=R,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class to extends ni{constructor(b,p,D,R,U){super(b,p),this.urlAfterRedirects=D,this.state=R,this.shouldActivate=U,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ao extends ni{constructor(b,p,D,R){super(b,p),this.urlAfterRedirects=D,this.state=R,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Vi extends ni{constructor(b,p,D,R){super(b,p),this.urlAfterRedirects=D,this.state=R,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class js{constructor(b){this.route=b,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Cr{constructor(b){this.route=b,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rs{constructor(b){this.snapshot=b,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ss{constructor(b){this.snapshot=b,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hi{constructor(b){this.snapshot=b,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ys{constructor(b){this.snapshot=b,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bs{constructor(b,p,D){this.routerEvent=b,this.position=p,this.anchor=D,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ds{}class zr{constructor(b){this.url=b}}class os{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Kr,this.attachRef=null}}let Kr=(()=>{class m{constructor(){this.contexts=new Map}onChildOutletCreated(p,D){const R=this.getOrCreateContext(p);R.outlet=D,this.contexts.set(p,R)}onChildOutletDestroyed(p){const D=this.getContext(p);D&&(D.outlet=null,D.attachRef=null)}onOutletDeactivated(){const p=this.contexts;return this.contexts=new Map,p}onOutletReAttached(p){this.contexts=p}getOrCreateContext(p){let D=this.getContext(p);return D||(D=new os,this.contexts.set(p,D)),D}getContext(p){return this.contexts.get(p)||null}static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})();class as{constructor(b){this._root=b}get root(){return this._root.value}parent(b){const p=this.pathFromRoot(b);return p.length>1?p[p.length-2]:null}children(b){const p=_r(b,this._root);return p?p.children.map(D=>D.value):[]}firstChild(b){const p=_r(b,this._root);return p&&p.children.length>0?p.children[0].value:null}siblings(b){const p=Tr(b,this._root);return p.length<2?[]:p[p.length-2].children.map(R=>R.value).filter(R=>R!==b)}pathFromRoot(b){return Tr(b,this._root).map(p=>p.value)}}function _r(m,b){if(m===b.value)return b;for(const p of b.children){const D=_r(m,p);if(D)return D}return null}function Tr(m,b){if(m===b.value)return[b];for(const p of b.children){const D=Tr(m,p);if(D.length)return D.unshift(b),D}return[]}class Yi{constructor(b,p){this.value=b,this.children=p}toString(){return`TreeNode(${this.value})`}}function Mr(m){const b={};return m&&m.children.forEach(p=>b[p.value.outlet]=p),b}class Pr extends as{constructor(b,p){super(b),this.snapshot=p,Qr(this,b)}toString(){return this.snapshot.toString()}}function Es(m,b){const p=function dn(m,b){const Z=new hi([],{},{},"",{},rt,b,null,{});return new Xr("",new Yi(Z,[]))}(0,b),D=new le.t([new wn("",{})]),R=new le.t({}),U=new le.t({}),Z=new le.t({}),Ze=new le.t(""),Ke=new jn(D,R,Z,Ze,U,rt,b,p.root);return Ke.snapshot=p.root,new Pr(new Yi(Ke,[]),p)}class jn{constructor(b,p,D,R,U,Z,Ze,Ke){this.urlSubject=b,this.paramsSubject=p,this.queryParamsSubject=D,this.fragmentSubject=R,this.dataSubject=U,this.outlet=Z,this.component=Ze,this._futureSnapshot=Ke,this.title=this.dataSubject?.pipe((0,Be.T)(At=>At[ct]))??(0,Y.of)(void 0),this.url=b,this.params=p,this.queryParams=D,this.fragment=R,this.data=U}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Be.T)(b=>ft(b)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Be.T)(b=>ft(b)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function di(m,b="emptyOnly"){const p=m.pathFromRoot;let D=0;if("always"!==b)for(D=p.length-1;D>=1;){const R=p[D],U=p[D-1];if(R.routeConfig&&""===R.routeConfig.path)D--;else{if(U.component)break;D--}}return function Sr(m){return m.reduce((b,p)=>({params:{...b.params,...p.params},data:{...b.data,...p.data},resolve:{...p.data,...b.resolve,...p.routeConfig?.data,...p._resolvedData}}),{params:{},data:{},resolve:{}})}(p.slice(D))}class hi{get title(){return this.data?.[ct]}constructor(b,p,D,R,U,Z,Ze,Ke,At){this.url=b,this.params=p,this.queryParams=D,this.fragment=R,this.data=U,this.outlet=Z,this.component=Ze,this.routeConfig=Ke,this._resolve=At}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ft(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ft(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(D=>D.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xr extends as{constructor(b,p){super(p),this.url=b,Qr(this,p)}toString(){return Ir(this._root)}}function Qr(m,b){b.value._routerState=m,b.children.forEach(p=>Qr(m,p))}function Ir(m){const b=m.children.length>0?` { ${m.children.map(Ir).join(", ")} } `:"";return`${m.value}${b}`}function Yr(m){if(m.snapshot){const b=m.snapshot,p=m._futureSnapshot;m.snapshot=p,Ft(b.queryParams,p.queryParams)||m.queryParamsSubject.next(p.queryParams),b.fragment!==p.fragment&&m.fragmentSubject.next(p.fragment),Ft(b.params,p.params)||m.paramsSubject.next(p.params),function Lt(m,b){if(m.length!==b.length)return!1;for(let p=0;pFt(p.parameters,b[D].parameters))}(m.url,b.url);return p&&!(!m.parent!=!b.parent)&&(!m.parent||Fr(m.parent,b.parent))}let Ln=(()=>{class m{constructor(){this.activated=null,this._activatedRoute=null,this.name=rt,this.activateEvents=new r.bkB,this.deactivateEvents=new r.bkB,this.attachEvents=new r.bkB,this.detachEvents=new r.bkB,this.parentContexts=(0,r.WQX)(Kr),this.location=(0,r.WQX)(r.c1b),this.changeDetector=(0,r.WQX)(r.gRc),this.environmentInjector=(0,r.WQX)(r.uvJ),this.inputBinder=(0,r.WQX)(Jt,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(p){if(p.name){const{firstChange:D,previousValue:R}=p.name;if(D)return;this.isTrackedInParentContexts(R)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(R)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(p){return this.parentContexts.getContext(p)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const p=this.parentContexts.getContext(this.name);p?.route&&(p.attachRef?this.attach(p.attachRef,p.route):this.activateWith(p.route,p.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new r.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new r.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new r.wOt(4012,!1);this.location.detach();const p=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(p.instance),p}attach(p,D){this.activated=p,this._activatedRoute=D,this.location.insert(p.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(p.instance)}deactivate(){if(this.activated){const p=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(p)}}activateWith(p,D){if(this.isActivated)throw new r.wOt(4013,!1);this._activatedRoute=p;const R=this.location,Z=p.snapshot.component,Ze=this.parentContexts.getOrCreateContext(this.name).children,Ke=new Ot(p,Ze,R.injector);this.activated=R.createComponent(Z,{index:R.length,injector:Ke,environmentInjector:D??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275dir=r.FsC({type:m,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[r.OA$]})}}return m})();class Ot{constructor(b,p,D){this.route=b,this.childContexts=p,this.parent=D}get(b,p){return b===jn?this.route:b===Kr?this.childContexts:this.parent.get(b,p)}}const Jt=new r.nKC("");let Bn=(()=>{class m{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(p){this.unsubscribeFromRouteData(p),this.subscribeToRouteData(p)}unsubscribeFromRouteData(p){this.outletDataSubscriptions.get(p)?.unsubscribe(),this.outletDataSubscriptions.delete(p)}subscribeToRouteData(p){const{activatedRoute:D}=p,R=(0,W.z)([D.queryParams,D.params,D.data]).pipe((0,et.n)(([U,Z,Ze],Ke)=>(Ze={...U,...Z,...Ze},0===Ke?(0,Y.of)(Ze):Promise.resolve(Ze)))).subscribe(U=>{if(!p.isActivated||!p.activatedComponentRef||p.activatedRoute!==D||null===D.component)return void this.unsubscribeFromRouteData(p);const Z=(0,r.HJs)(D.component);if(Z)for(const{templateName:Ze}of Z.inputs)p.activatedComponentRef.setInput(Ze,U[Ze]);else this.unsubscribeFromRouteData(p)});this.outletDataSubscriptions.set(p,R)}static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac})}}return m})();function ii(m,b,p){if(p&&m.shouldReuseRoute(b.value,p.value.snapshot)){const D=p.value;D._futureSnapshot=b.value;const R=function Di(m,b,p){return b.children.map(D=>{for(const R of p.children)if(m.shouldReuseRoute(D.value,R.value.snapshot))return ii(m,D,R);return ii(m,D)})}(m,b,p);return new Yi(D,R)}{if(m.shouldAttach(b.value)){const U=m.retrieve(b.value);if(null!==U){const Z=U.route;return Z.value._futureSnapshot=b.value,Z.children=b.children.map(Ze=>ii(m,Ze)),Z}}const D=function Wi(m){return new jn(new le.t(m.url),new le.t(m.params),new le.t(m.queryParams),new le.t(m.fragment),new le.t(m.data),m.outlet,m.component,m)}(b.value),R=b.children.map(U=>ii(m,U));return new Yi(D,R)}}const Vn="ngNavigationCancelingError";function nr(m,b){const{redirectTo:p,navigationBehaviorOptions:D}=Cn(b)?{redirectTo:b,navigationBehaviorOptions:void 0}:b,R=ir(!1,0,b);return R.url=p,R.navigationBehaviorOptions=D,R}function ir(m,b,p){const D=new Error("NavigationCancelingError: "+(m||""));return D[Vn]=!0,D.cancellationCode=b,p&&(D.url=p),D}function Zr(m){return m&&m[Vn]}let ws=(()=>{class m{static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275cmp=r.VBU({type:m,selectors:[["ng-component"]],standalone:!0,features:[r.aNF],decls:1,vars:0,template:function(D,R){1&D&&r.nrm(0,"router-outlet")},dependencies:[Ln],encapsulation:2})}}return m})();function pr(m){const b=m.children&&m.children.map(pr),p=b?{...m,children:b}:{...m};return!p.component&&!p.loadComponent&&(b||p.loadChildren)&&p.outlet&&p.outlet!==rt&&(p.component=ws),p}function fi(m){return m.outlet||rt}function Lr(m){if(!m)return null;if(m.routeConfig?._injector)return m.routeConfig._injector;for(let b=m.parent;b;b=b.parent){const p=b.routeConfig;if(p?._loadedInjector)return p._loadedInjector;if(p?._injector)return p._injector}return null}class rr{constructor(b,p,D,R,U){this.routeReuseStrategy=b,this.futureState=p,this.currState=D,this.forwardEvent=R,this.inputBindingEnabled=U}activate(b){const p=this.futureState._root,D=this.currState?this.currState._root:null;this.deactivateChildRoutes(p,D,b),Yr(this.futureState.root),this.activateChildRoutes(p,D,b)}deactivateChildRoutes(b,p,D){const R=Mr(p);b.children.forEach(U=>{const Z=U.value.outlet;this.deactivateRoutes(U,R[Z],D),delete R[Z]}),Object.values(R).forEach(U=>{this.deactivateRouteAndItsChildren(U,D)})}deactivateRoutes(b,p,D){const R=b.value,U=p?p.value:null;if(R===U)if(R.component){const Z=D.getContext(R.outlet);Z&&this.deactivateChildRoutes(b,p,Z.children)}else this.deactivateChildRoutes(b,p,D);else U&&this.deactivateRouteAndItsChildren(p,D)}deactivateRouteAndItsChildren(b,p){b.value.component&&this.routeReuseStrategy.shouldDetach(b.value.snapshot)?this.detachAndStoreRouteSubtree(b,p):this.deactivateRouteAndOutlet(b,p)}detachAndStoreRouteSubtree(b,p){const D=p.getContext(b.value.outlet),R=D&&b.value.component?D.children:p,U=Mr(b);for(const Z of Object.keys(U))this.deactivateRouteAndItsChildren(U[Z],R);if(D&&D.outlet){const Z=D.outlet.detach(),Ze=D.children.onOutletDeactivated();this.routeReuseStrategy.store(b.value.snapshot,{componentRef:Z,route:b,contexts:Ze})}}deactivateRouteAndOutlet(b,p){const D=p.getContext(b.value.outlet),R=D&&b.value.component?D.children:p,U=Mr(b);for(const Z of Object.keys(U))this.deactivateRouteAndItsChildren(U[Z],R);D&&(D.outlet&&(D.outlet.deactivate(),D.children.onOutletDeactivated()),D.attachRef=null,D.route=null)}activateChildRoutes(b,p,D){const R=Mr(p);b.children.forEach(U=>{this.activateRoutes(U,R[U.value.outlet],D),this.forwardEvent(new ys(U.value.snapshot))}),b.children.length&&this.forwardEvent(new ss(b.value.snapshot))}activateRoutes(b,p,D){const R=b.value,U=p?p.value:null;if(Yr(R),R===U)if(R.component){const Z=D.getOrCreateContext(R.outlet);this.activateChildRoutes(b,p,Z.children)}else this.activateChildRoutes(b,p,D);else if(R.component){const Z=D.getOrCreateContext(R.outlet);if(this.routeReuseStrategy.shouldAttach(R.snapshot)){const Ze=this.routeReuseStrategy.retrieve(R.snapshot);this.routeReuseStrategy.store(R.snapshot,null),Z.children.onOutletReAttached(Ze.contexts),Z.attachRef=Ze.componentRef,Z.route=Ze.route.value,Z.outlet&&Z.outlet.attach(Ze.componentRef,Ze.route.value),Yr(Ze.route.value),this.activateChildRoutes(b,null,Z.children)}else{const Ze=Lr(R.snapshot);Z.attachRef=null,Z.route=R,Z.injector=Ze,Z.outlet&&Z.outlet.activateWith(R,Z.injector),this.activateChildRoutes(b,null,Z.children)}}else this.activateChildRoutes(b,null,D)}}class Ts{constructor(b){this.path=b,this.route=this.path[this.path.length-1]}}class Ji{constructor(b,p){this.component=b,this.route=p}}function Br(m,b,p){const D=m._root;return gi(D,b?b._root:null,p,[D.value])}function Ms(m,b){const p=Symbol(),D=b.get(m,p);return D===p?"function"!=typeof m||(0,r.LfX)(m)?b.get(m):m:D}function gi(m,b,p,D,R={canDeactivateChecks:[],canActivateChecks:[]}){const U=Mr(b);return m.children.forEach(Z=>{(function Ii(m,b,p,D,R={canDeactivateChecks:[],canActivateChecks:[]}){const U=m.value,Z=b?b.value:null,Ze=p?p.getContext(m.value.outlet):null;if(Z&&U.routeConfig===Z.routeConfig){const Ke=function Ss(m,b,p){if("function"==typeof p)return p(m,b);switch(p){case"pathParamsChange":return!pn(m.url,b.url);case"pathParamsOrQueryParamsChange":return!pn(m.url,b.url)||!Ft(m.queryParams,b.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fr(m,b)||!Ft(m.queryParams,b.queryParams);default:return!Fr(m,b)}}(Z,U,U.routeConfig.runGuardsAndResolvers);Ke?R.canActivateChecks.push(new Ts(D)):(U.data=Z.data,U._resolvedData=Z._resolvedData),gi(m,b,U.component?Ze?Ze.children:null:p,D,R),Ke&&Ze&&Ze.outlet&&Ze.outlet.isActivated&&R.canDeactivateChecks.push(new Ji(Ze.outlet.component,Z))}else Z&&ji(b,Ze,R),R.canActivateChecks.push(new Ts(D)),gi(m,null,U.component?Ze?Ze.children:null:p,D,R)})(Z,U[Z.value.outlet],p,D.concat([Z.value]),R),delete U[Z.value.outlet]}),Object.entries(U).forEach(([Z,Ze])=>ji(Ze,p.getContext(Z),R)),R}function ji(m,b,p){const D=Mr(m),R=m.value;Object.entries(D).forEach(([U,Z])=>{ji(Z,R.component?b?b.children.getContext(U):null:b,p)}),p.canDeactivateChecks.push(new Ji(R.component&&b&&b.outlet&&b.outlet.isActivated?b.outlet.component:null,R))}function Or(m){return"function"==typeof m}function an(m){return m instanceof Re.G||"EmptyError"===m?.name}const zi=Symbol("INITIAL_VALUE");function yr(){return(0,et.n)(m=>(0,W.z)(m.map(b=>b.pipe((0,ht.s)(1),(0,je.Z)(zi)))).pipe((0,Be.T)(b=>{for(const p of b)if(!0!==p){if(p===zi)return zi;if(!1===p||p instanceof Dt)return p}return!0}),(0,lt.p)(b=>b!==zi),(0,ht.s)(1)))}function Ws(m){return(0,Ue.F)((0,Ye.M)(b=>{if(Cn(b))throw nr(0,b)}),(0,Be.T)(b=>!0===b))}class qr{constructor(b){this.segmentGroup=b||null}}class Zo{constructor(b){this.urlTree=b}}function Ki(m){return(0,ae.$)(new qr(m))}function or(m){return(0,ae.$)(new Zo(m))}class Ni{constructor(b,p){this.urlSerializer=b,this.urlTree=p}noMatchError(b){return new r.wOt(4002,!1)}lineralizeSegments(b,p){let D=[],R=p.root;for(;;){if(D=D.concat(R.segments),0===R.numberOfChildren)return(0,Y.of)(D);if(R.numberOfChildren>1||!R.children[rt])return(0,ae.$)(new r.wOt(4e3,!1));R=R.children[rt]}}applyRedirectCommands(b,p,D){return this.applyRedirectCreateUrlTree(p,this.urlSerializer.parse(p),b,D)}applyRedirectCreateUrlTree(b,p,D,R){const U=this.createSegmentGroup(b,p.root,D,R);return new Dt(U,this.createQueryParams(p.queryParams,this.urlTree.queryParams),p.fragment)}createQueryParams(b,p){const D={};return Object.entries(b).forEach(([R,U])=>{if("string"==typeof U&&U.startsWith(":")){const Ze=U.substring(1);D[R]=p[Ze]}else D[R]=U}),D}createSegmentGroup(b,p,D,R){const U=this.createSegments(b,p.segments,D,R);let Z={};return Object.entries(p.children).forEach(([Ze,Ke])=>{Z[Ze]=this.createSegmentGroup(b,Ke,D,R)}),new St(U,Z)}createSegments(b,p,D,R){return p.map(U=>U.path.startsWith(":")?this.findPosParam(b,U,R):this.findOrReturn(U,D))}findPosParam(b,p,D){const R=D[p.path.substring(1)];if(!R)throw new r.wOt(4001,!1);return R}findOrReturn(b,p){let D=0;for(const R of p){if(R.path===b.path)return p.splice(D),R;D++}return b}}const us={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qi(m,b,p,D,R){const U=ks(m,b,p);return U.matched?(D=function vr(m,b){return m.providers&&!m._injector&&(m._injector=(0,r.Ol2)(m.providers,b,`Route: ${m.path}`)),m._injector??b}(b,D),function so(m,b,p,D){const R=b.canMatch;if(!R||0===R.length)return(0,Y.of)(!0);const U=R.map(Z=>{const Ze=Ms(Z,m);return F(function j(m){return m&&Or(m.canMatch)}(Ze)?Ze.canMatch(b,p):m.runInContext(()=>Ze(b,p)))});return(0,Y.of)(U).pipe(yr(),Ws())}(D,b,p).pipe((0,Be.T)(Z=>!0===Z?U:{...us}))):(0,Y.of)(U)}function ks(m,b,p){if(""===b.path)return"full"===b.pathMatch&&(m.hasChildren()||p.length>0)?{...us}:{matched:!0,consumedSegments:[],remainingSegments:p,parameters:{},positionalParamSegments:{}};const R=(b.matcher||tn)(p,m,b);if(!R)return{...us};const U={};Object.entries(R.posParams??{}).forEach(([Ze,Ke])=>{U[Ze]=Ke.path});const Z=R.consumed.length>0?{...U,...R.consumed[R.consumed.length-1].parameters}:U;return{matched:!0,consumedSegments:R.consumed,remainingSegments:p.slice(R.consumed.length),parameters:Z,positionalParamSegments:R.posParams??{}}}function oo(m,b,p,D){return p.length>0&&function lo(m,b,p){return p.some(D=>Is(m,b,D)&&fi(D)!==rt)}(m,p,D)?{segmentGroup:new St(b,xo(D,new St(p,m.children))),slicedSegments:[]}:0===p.length&&function Po(m,b,p){return p.some(D=>Is(m,b,D))}(m,p,D)?{segmentGroup:new St(m.segments,ao(m,0,p,D,m.children)),slicedSegments:p}:{segmentGroup:new St(m.segments,m.children),slicedSegments:p}}function ao(m,b,p,D,R){const U={};for(const Z of D)if(Is(m,p,Z)&&!R[fi(Z)]){const Ze=new St([],{});U[fi(Z)]=Ze}return{...R,...U}}function xo(m,b){const p={};p[rt]=b;for(const D of m)if(""===D.path&&fi(D)!==rt){const R=new St([],{});p[fi(D)]=R}return p}function Is(m,b,p){return(!(m.hasChildren()||b.length>0)||"full"!==p.pathMatch)&&""===p.path}class co{constructor(b,p,D,R,U,Z,Ze){this.injector=b,this.configLoader=p,this.rootComponentType=D,this.config=R,this.urlTree=U,this.paramsInheritanceStrategy=Z,this.urlSerializer=Ze,this.allowRedirects=!0,this.applyRedirects=new Ni(this.urlSerializer,this.urlTree)}noMatchError(b){return new r.wOt(4002,!1)}recognize(){const b=oo(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,b,rt).pipe((0,ne.W)(p=>{if(p instanceof Zo)return this.allowRedirects=!1,this.urlTree=p.urlTree,this.match(p.urlTree);throw p instanceof qr?this.noMatchError(p):p}),(0,Be.T)(p=>{const D=new hi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},rt,this.rootComponentType,null,{}),R=new Yi(D,p),U=new Xr("",R),Z=function Le(m,b,p=null,D=null){return ye(q(m),b,p,D)}(D,[],this.urlTree.queryParams,this.urlTree.fragment);return Z.queryParams=this.urlTree.queryParams,U.url=this.urlSerializer.serialize(Z),this.inheritParamsAndData(U._root),{state:U,tree:Z}}))}match(b){return this.processSegmentGroup(this.injector,this.config,b.root,rt).pipe((0,ne.W)(D=>{throw D instanceof qr?this.noMatchError(D):D}))}inheritParamsAndData(b){const p=b.value,D=di(p,this.paramsInheritanceStrategy);p.params=Object.freeze(D.params),p.data=Object.freeze(D.data),b.children.forEach(R=>this.inheritParamsAndData(R))}processSegmentGroup(b,p,D,R){return 0===D.segments.length&&D.hasChildren()?this.processChildren(b,p,D):this.processSegment(b,p,D,D.segments,R,!0)}processChildren(b,p,D){const R=[];for(const U of Object.keys(D.children))"primary"===U?R.unshift(U):R.push(U);return(0,Q.H)(R).pipe((0,Fe.H)(U=>{const Z=D.children[U],Ze=function on(m,b){const p=m.filter(D=>fi(D)===b);return p.push(...m.filter(D=>fi(D)!==b)),p}(p,U);return this.processSegmentGroup(b,Ze,Z,U)}),function $e(m,b){return(0,Ne.N)(function De(m,b,p,D,R){return(U,Z)=>{let Ze=p,Ke=b,At=0;U.subscribe((0,Qe._)(Z,un=>{const Xn=At++;Ke=Ze?m(Ke,un,Xn):(Ze=!0,un),D&&Z.next(Ke)},R&&(()=>{Ze&&Z.next(Ke),Z.complete()})))}}(m,b,arguments.length>=2,!0))}((U,Z)=>(U.push(...Z),U)),(0,mt.U)(null),function Oe(m,b){const p=arguments.length>=2;return D=>D.pipe(m?(0,lt.p)((R,U)=>m(R,U,D)):Ie.D,It(1),p?(0,mt.U)(b):(0,Ce.v)(()=>new Re.G))}(),(0,Ve.Z)(U=>{if(null===U)return Ki(D);const Z=Os(U);return function zs(m){m.sort((b,p)=>b.value.outlet===rt?-1:p.value.outlet===rt?1:b.value.outlet.localeCompare(p.value.outlet))}(Z),(0,Y.of)(Z)}))}processSegment(b,p,D,R,U,Z){return(0,Q.H)(p).pipe((0,Fe.H)(Ze=>this.processSegmentAgainstRoute(Ze._injector??b,p,Ze,D,R,U,Z).pipe((0,ne.W)(Ke=>{if(Ke instanceof qr)return(0,Y.of)(null);throw Ke}))),(0,He.$)(Ze=>!!Ze),(0,ne.W)(Ze=>{if(an(Ze))return function ko(m,b,p){return 0===b.length&&!m.children[p]}(D,R,U)?(0,Y.of)([]):Ki(D);throw Ze}))}processSegmentAgainstRoute(b,p,D,R,U,Z,Ze){return function Fo(m,b,p,D){return!!(fi(m)===D||D!==rt&&Is(b,p,m))&&("**"===m.path||ks(b,m,p).matched)}(D,R,U,Z)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(b,R,D,U,Z,Ze):Ze&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(b,R,p,D,U,Z):Ki(R):Ki(R)}expandSegmentAgainstRouteUsingRedirect(b,p,D,R,U,Z){return"**"===R.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(b,D,R,Z):this.expandRegularSegmentAgainstRouteUsingRedirect(b,p,D,R,U,Z)}expandWildCardWithParamsAgainstRouteUsingRedirect(b,p,D,R){const U=this.applyRedirects.applyRedirectCommands([],D.redirectTo,{});return D.redirectTo.startsWith("/")?or(U):this.applyRedirects.lineralizeSegments(D,U).pipe((0,Ve.Z)(Z=>{const Ze=new St(Z,{});return this.processSegment(b,p,Ze,Z,R,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(b,p,D,R,U,Z){const{matched:Ze,consumedSegments:Ke,remainingSegments:At,positionalParamSegments:un}=ks(p,R,U);if(!Ze)return Ki(p);const Xn=this.applyRedirects.applyRedirectCommands(Ke,R.redirectTo,un);return R.redirectTo.startsWith("/")?or(Xn):this.applyRedirects.lineralizeSegments(R,Xn).pipe((0,Ve.Z)(xn=>this.processSegment(b,D,p,xn.concat(At),Z,!1)))}matchSegmentAgainstRoute(b,p,D,R,U,Z){let Ze;if("**"===D.path){const Ke=R.length>0?Ee(R).parameters:{},At=new hi(R,Ke,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,_a(D),fi(D),D.component??D._loadedComponent??null,D,B(D));Ze=(0,Y.of)({snapshot:At,consumedSegments:[],remainingSegments:[]}),p.children={}}else Ze=qi(p,D,R,b).pipe((0,Be.T)(({matched:Ke,consumedSegments:At,remainingSegments:un,parameters:Xn})=>Ke?{snapshot:new hi(At,Xn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,_a(D),fi(D),D.component??D._loadedComponent??null,D,B(D)),consumedSegments:At,remainingSegments:un}:null));return Ze.pipe((0,et.n)(Ke=>null===Ke?Ki(p):this.getChildConfig(b=D._injector??b,D,R).pipe((0,et.n)(({routes:At})=>{const un=D._loadedInjector??b,{snapshot:Xn,consumedSegments:xn,remainingSegments:Ns}=Ke,{segmentGroup:fo,slicedSegments:Xs}=oo(p,xn,Ns,At);if(0===Xs.length&&fo.hasChildren())return this.processChildren(un,At,fo).pipe((0,Be.T)(ds=>null===ds?null:[new Yi(Xn,ds)]));if(0===At.length&&0===Xs.length)return(0,Y.of)([new Yi(Xn,[])]);const Bo=fi(D)===U;return this.processSegment(un,At,fo,Xs,Bo?rt:U,!0).pipe((0,Be.T)(ds=>[new Yi(Xn,ds)]))}))))}getChildConfig(b,p,D){return p.children?(0,Y.of)({routes:p.children,injector:b}):p.loadChildren?void 0!==p._loadedRoutes?(0,Y.of)({routes:p._loadedRoutes,injector:p._loadedInjector}):function No(m,b,p,D){const R=b.canLoad;if(void 0===R||0===R.length)return(0,Y.of)(!0);const U=R.map(Z=>{const Ze=Ms(Z,m);return F(function cs(m){return m&&Or(m.canLoad)}(Ze)?Ze.canLoad(b,p):m.runInContext(()=>Ze(b,p)))});return(0,Y.of)(U).pipe(yr(),Ws())}(b,p,D).pipe((0,Ve.Z)(R=>R?this.configLoader.loadChildren(b,p).pipe((0,Ye.M)(U=>{p._loadedRoutes=U.routes,p._loadedInjector=U.injector})):function br(m){return(0,ae.$)(ir(!1,3))}())):(0,Y.of)({routes:[],injector:b})}}function Ks(m){const b=m.value.routeConfig;return b&&""===b.path}function Os(m){const b=[],p=new Set;for(const D of m){if(!Ks(D)){b.push(D);continue}const R=b.find(U=>D.value.routeConfig===U.value.routeConfig);void 0!==R?(R.children.push(...D.children),p.add(R)):b.push(D)}for(const D of p){const R=Os(D.children);b.push(new Yi(D.value,R))}return b.filter(D=>!p.has(D))}function _a(m){return m.data||{}}function B(m){return m.resolve||{}}function me(m){return"string"==typeof m.title||null===m.title}function h(m){return(0,et.n)(b=>{const p=m(b);return p?(0,Q.H)(p).pipe((0,Be.T)(()=>b)):(0,Y.of)(b)})}const I=new r.nKC("ROUTES");let E=(()=>{class m{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,r.WQX)(r.Ql9)}loadComponent(p){if(this.componentLoaders.get(p))return this.componentLoaders.get(p);if(p._loadedComponent)return(0,Y.of)(p._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(p);const D=F(p.loadComponent()).pipe((0,Be.T)(Se),(0,Ye.M)(U=>{this.onLoadEndListener&&this.onLoadEndListener(p),p._loadedComponent=U}),(0,xe.j)(()=>{this.componentLoaders.delete(p)})),R=new _t(D,()=>new We.B).pipe(it());return this.componentLoaders.set(p,R),R}loadChildren(p,D){if(this.childrenLoaders.get(D))return this.childrenLoaders.get(D);if(D._loadedRoutes)return(0,Y.of)({routes:D._loadedRoutes,injector:D._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(D);const U=function A(m,b,p,D){return F(m.loadChildren()).pipe((0,Be.T)(Se),(0,Ve.Z)(R=>R instanceof r.Co$||Array.isArray(R)?(0,Y.of)(R):(0,Q.H)(b.compileModuleAsync(R))),(0,Be.T)(R=>{D&&D(m);let U,Z,Ze=!1;return Array.isArray(R)?(Z=R,!0):(U=R.create(p).injector,Z=U.get(I,[],{optional:!0,self:!0}).flat()),{routes:Z.map(pr),injector:U}}))}(D,this.compiler,p,this.onLoadEndListener).pipe((0,xe.j)(()=>{this.childrenLoaders.delete(D)})),Z=new _t(U,()=>new We.B).pipe(it());return this.childrenLoaders.set(D,Z),Z}static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})();function Se(m){return function K(m){return m&&"object"==typeof m&&"default"in m}(m)?m.default:m}let ke=(()=>{class m{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new We.B,this.transitionAbortSubject=new We.B,this.configLoader=(0,r.WQX)(E),this.environmentInjector=(0,r.WQX)(r.uvJ),this.urlSerializer=(0,r.WQX)(Nn),this.rootContexts=(0,r.WQX)(Kr),this.inputBindingEnabled=null!==(0,r.WQX)(Jt,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,Y.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=R=>this.events.next(new Cr(R)),this.configLoader.onLoadStartListener=R=>this.events.next(new js(R))}complete(){this.transitions?.complete()}handleNavigationRequest(p){const D=++this.navigationId;this.transitions?.next({...this.transitions.value,...p,id:D})}setupNavigations(p,D,R){return this.transitions=new le.t({id:0,currentUrlTree:D,currentRawUrl:D,currentBrowserUrl:D,extractedUrl:p.urlHandlingStrategy.extract(D),urlAfterRedirects:p.urlHandlingStrategy.extract(D),rawUrl:D,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:bi,restoredState:null,currentSnapshot:R.snapshot,targetSnapshot:null,currentRouterState:R,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,lt.p)(U=>0!==U.id),(0,Be.T)(U=>({...U,extractedUrl:p.urlHandlingStrategy.extract(U.rawUrl)})),(0,et.n)(U=>{this.currentTransition=U;let Z=!1,Ze=!1;return(0,Y.of)(U).pipe((0,Ye.M)(Ke=>{this.currentNavigation={id:Ke.id,initialUrl:Ke.rawUrl,extractedUrl:Ke.extractedUrl,trigger:Ke.source,extras:Ke.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,et.n)(Ke=>{const At=Ke.currentBrowserUrl.toString(),un=!p.navigated||Ke.extractedUrl.toString()!==At||At!==Ke.currentUrlTree.toString();if(!un&&"reload"!==(Ke.extras.onSameUrlNavigation??p.onSameUrlNavigation)){const xn="";return this.events.next(new tr(Ke.id,this.urlSerializer.serialize(Ke.rawUrl),xn,0)),Ke.resolve(null),J.w}if(p.urlHandlingStrategy.shouldProcessUrl(Ke.rawUrl))return(0,Y.of)(Ke).pipe((0,et.n)(xn=>{const Ns=this.transitions?.getValue();return this.events.next(new Si(xn.id,this.urlSerializer.serialize(xn.extractedUrl),xn.source,xn.restoredState)),Ns!==this.transitions?.getValue()?J.w:Promise.resolve(xn)}),function f(m,b,p,D,R,U){return(0,Ve.Z)(Z=>function Jo(m,b,p,D,R,U,Z="emptyOnly"){return new co(m,b,p,D,R,Z,U).recognize()}(m,b,p,D,Z.extractedUrl,R,U).pipe((0,Be.T)(({state:Ze,tree:Ke})=>({...Z,targetSnapshot:Ze,urlAfterRedirects:Ke}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,p.config,this.urlSerializer,p.paramsInheritanceStrategy),(0,Ye.M)(xn=>{U.targetSnapshot=xn.targetSnapshot,U.urlAfterRedirects=xn.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:xn.urlAfterRedirects};const Ns=new Wr(xn.id,this.urlSerializer.serialize(xn.extractedUrl),this.urlSerializer.serialize(xn.urlAfterRedirects),xn.targetSnapshot);this.events.next(Ns)}));if(un&&p.urlHandlingStrategy.shouldProcessUrl(Ke.currentRawUrl)){const{id:xn,extractedUrl:Ns,source:fo,restoredState:Xs,extras:Bo}=Ke,ds=new Si(xn,this.urlSerializer.serialize(Ns),fo,Xs);this.events.next(ds);const il=Es(0,this.rootComponentType).snapshot;return this.currentTransition=U={...Ke,targetSnapshot:il,urlAfterRedirects:Ns,extras:{...Bo,skipLocationChange:!1,replaceUrl:!1}},(0,Y.of)(U)}{const xn="";return this.events.next(new tr(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),xn,1)),Ke.resolve(null),J.w}}),(0,Ye.M)(Ke=>{const At=new Us(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),this.urlSerializer.serialize(Ke.urlAfterRedirects),Ke.targetSnapshot);this.events.next(At)}),(0,Be.T)(Ke=>(this.currentTransition=U={...Ke,guards:Br(Ke.targetSnapshot,Ke.currentSnapshot,this.rootContexts)},U)),function Gs(m,b){return(0,Ve.Z)(p=>{const{targetSnapshot:D,currentSnapshot:R,guards:{canActivateChecks:U,canDeactivateChecks:Z}}=p;return 0===Z.length&&0===U.length?(0,Y.of)({...p,guardsResult:!0}):function Ja(m,b,p,D){return(0,Q.H)(m).pipe((0,Ve.Z)(R=>function ro(m,b,p,D,R){const U=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!U||0===U.length)return(0,Y.of)(!0);const Z=U.map(Ze=>{const Ke=Lr(b)??R,At=Ms(Ze,Ke);return F(function C(m){return m&&Or(m.canDeactivate)}(At)?At.canDeactivate(m,b,p,D):Ke.runInContext(()=>At(m,b,p,D))).pipe((0,He.$)())});return(0,Y.of)(Z).pipe(yr())}(R.component,R.route,p,b,D)),(0,He.$)(R=>!0!==R,!0))}(Z,D,R,m).pipe((0,Ve.Z)(Ze=>Ze&&function sr(m){return"boolean"==typeof m}(Ze)?function qa(m,b,p,D){return(0,Q.H)(b).pipe((0,Fe.H)(R=>(0,ue.x)(function Fs(m,b){return null!==m&&b&&b(new rs(m)),(0,Y.of)(!0)}(R.route.parent,D),function pa(m,b){return null!==m&&b&&b(new Hi(m)),(0,Y.of)(!0)}(R.route,D),function ga(m,b,p){const D=b[b.length-1],U=b.slice(0,b.length-1).reverse().map(Z=>function pi(m){const b=m.routeConfig?m.routeConfig.canActivateChild:null;return b&&0!==b.length?{node:m,guards:b}:null}(Z)).filter(Z=>null!==Z).map(Z=>(0,re.v)(()=>{const Ze=Z.guards.map(Ke=>{const At=Lr(Z.node)??p,un=Ms(Ke,At);return F(function L(m){return m&&Or(m.canActivateChild)}(un)?un.canActivateChild(D,m):At.runInContext(()=>un(D,m))).pipe((0,He.$)())});return(0,Y.of)(Ze).pipe(yr())}));return(0,Y.of)(U).pipe(yr())}(m,R.path,p),function io(m,b,p){const D=b.routeConfig?b.routeConfig.canActivate:null;if(!D||0===D.length)return(0,Y.of)(!0);const R=D.map(U=>(0,re.v)(()=>{const Z=Lr(b)??p,Ze=Ms(U,Z);return F(function x(m){return m&&Or(m.canActivate)}(Ze)?Ze.canActivate(b,m):Z.runInContext(()=>Ze(b,m))).pipe((0,He.$)())}));return(0,Y.of)(R).pipe(yr())}(m,R.route,p))),(0,He.$)(R=>!0!==R,!0))}(D,U,m,b):(0,Y.of)(Ze)),(0,Be.T)(Ze=>({...p,guardsResult:Ze})))})}(this.environmentInjector,Ke=>this.events.next(Ke)),(0,Ye.M)(Ke=>{if(U.guardsResult=Ke.guardsResult,Cn(Ke.guardsResult))throw nr(0,Ke.guardsResult);const At=new to(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),this.urlSerializer.serialize(Ke.urlAfterRedirects),Ke.targetSnapshot,!!Ke.guardsResult);this.events.next(At)}),(0,lt.p)(Ke=>!!Ke.guardsResult||(this.cancelNavigationTransition(Ke,"",3),!1)),h(Ke=>{if(Ke.guards.canActivateChecks.length)return(0,Y.of)(Ke).pipe((0,Ye.M)(At=>{const un=new Ao(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot);this.events.next(un)}),(0,et.n)(At=>{let un=!1;return(0,Y.of)(At).pipe(function _(m,b){return(0,Ve.Z)(p=>{const{targetSnapshot:D,guards:{canActivateChecks:R}}=p;if(!R.length)return(0,Y.of)(p);let U=0;return(0,Q.H)(R).pipe((0,Fe.H)(Z=>function T(m,b,p,D){const R=m.routeConfig,U=m._resolve;return void 0!==R?.title&&!me(R)&&(U[ct]=R.title),function V(m,b,p,D){const R=function G(m){return[...Object.keys(m),...Object.getOwnPropertySymbols(m)]}(m);if(0===R.length)return(0,Y.of)({});const U={};return(0,Q.H)(R).pipe((0,Ve.Z)(Z=>function he(m,b,p,D){const R=Lr(b)??D,U=Ms(m,R);return F(U.resolve?U.resolve(b,p):R.runInContext(()=>U(b,p)))}(m[Z],b,p,D).pipe((0,He.$)(),(0,Ye.M)(Ze=>{U[Z]=Ze}))),It(1),(0,de.u)(U),(0,ne.W)(Z=>an(Z)?J.w:(0,ae.$)(Z)))}(U,m,b,D).pipe((0,Be.T)(Z=>(m._resolvedData=Z,m.data=di(m,p).resolve,R&&me(R)&&(m.data[ct]=R.title),null)))}(Z.route,D,m,b)),(0,Ye.M)(()=>U++),It(1),(0,Ve.Z)(Z=>U===R.length?(0,Y.of)(p):J.w))})}(p.paramsInheritanceStrategy,this.environmentInjector),(0,Ye.M)({next:()=>un=!0,complete:()=>{un||this.cancelNavigationTransition(At,"",2)}}))}),(0,Ye.M)(At=>{const un=new Vi(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot);this.events.next(un)}))}),h(Ke=>{const At=un=>{const Xn=[];un.routeConfig?.loadComponent&&!un.routeConfig._loadedComponent&&Xn.push(this.configLoader.loadComponent(un.routeConfig).pipe((0,Ye.M)(xn=>{un.component=xn}),(0,Be.T)(()=>{})));for(const xn of un.children)Xn.push(...At(xn));return Xn};return(0,W.z)(At(Ke.targetSnapshot.root)).pipe((0,mt.U)(),(0,ht.s)(1))}),h(()=>this.afterPreactivation()),(0,Be.T)(Ke=>{const At=function Ui(m,b,p){const D=ii(m,b._root,p?p._root:void 0);return new Pr(D,b)}(p.routeReuseStrategy,Ke.targetSnapshot,Ke.currentRouterState);return this.currentTransition=U={...Ke,targetRouterState:At},U}),(0,Ye.M)(()=>{this.events.next(new Ds)}),((m,b,p,D)=>(0,Be.T)(R=>(new rr(b,R.targetRouterState,R.currentRouterState,p,D).activate(m),R)))(this.rootContexts,p.routeReuseStrategy,Ke=>this.events.next(Ke),this.inputBindingEnabled),(0,ht.s)(1),(0,Ye.M)({next:Ke=>{Z=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ai(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),this.urlSerializer.serialize(Ke.urlAfterRedirects))),p.titleStrategy?.updateTitle(Ke.targetRouterState.snapshot),Ke.resolve(!0)},complete:()=>{Z=!0}}),(0,te.Q)(this.transitionAbortSubject.pipe((0,Ye.M)(Ke=>{throw Ke}))),(0,xe.j)(()=>{Z||Ze||this.cancelNavigationTransition(U,"",1),this.currentNavigation?.id===U.id&&(this.currentNavigation=null)}),(0,ne.W)(Ke=>{if(Ze=!0,Zr(Ke))this.events.next(new Kn(U.id,this.urlSerializer.serialize(U.extractedUrl),Ke.message,Ke.cancellationCode)),function Wt(m){return Zr(m)&&Cn(m.url)}(Ke)?this.events.next(new zr(Ke.url)):U.resolve(!1);else{this.events.next(new dr(U.id,this.urlSerializer.serialize(U.extractedUrl),Ke,U.targetSnapshot??void 0));try{U.resolve(p.errorHandler(Ke))}catch(At){U.reject(At)}}return J.w}))}))}cancelNavigationTransition(p,D,R){const U=new Kn(p.id,this.urlSerializer.serialize(p.extractedUrl),D,R);this.events.next(U),p.resolve(!1)}static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})();function dt(m){return m!==bi}let Xt=(()=>{class m{buildTitle(p){let D,R=p.root;for(;void 0!==R;)D=this.getResolvedTitleForRoute(R)??D,R=R.children.find(U=>U.outlet===rt);return D}getResolvedTitleForRoute(p){return p.data[ct]}static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:function(){return(0,r.WQX)(nn)},providedIn:"root"})}}return m})(),nn=(()=>{class m extends Xt{constructor(p){super(),this.title=p}updateTitle(p){const D=this.buildTitle(p);void 0!==D&&this.title.setTitle(D)}static{this.\u0275fac=function(D){return new(D||m)(r.KVO(tt.hE))}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})(),kt=(()=>{class m{static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:function(){return(0,r.WQX)(mn)},providedIn:"root"})}}return m})();class Kt{shouldDetach(b){return!1}store(b,p){}shouldAttach(b){return!1}retrieve(b){return null}shouldReuseRoute(b,p){return b.routeConfig===p.routeConfig}}let mn=(()=>{class m extends Kt{static{this.\u0275fac=function(){let p;return function(R){return(p||(p=r.xGo(m)))(R||m)}}()}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})();const ln=new r.nKC("",{providedIn:"root",factory:()=>({})});let sn=(()=>{class m{static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:function(){return(0,r.WQX)(_n)},providedIn:"root"})}}return m})(),_n=(()=>{class m{shouldProcessUrl(p){return!0}extract(p){return p}merge(p,D){return p}static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})();var Rn=function(m){return m[m.COMPLETE=0]="COMPLETE",m[m.FAILED=1]="FAILED",m[m.REDIRECTING=2]="REDIRECTING",m}(Rn||{});function Ri(m,b){m.events.pipe((0,lt.p)(p=>p instanceof Ai||p instanceof Kn||p instanceof dr||p instanceof tr),(0,Be.T)(p=>p instanceof Ai||p instanceof tr?Rn.COMPLETE:p instanceof Kn&&(0===p.code||1===p.code)?Rn.REDIRECTING:Rn.FAILED),(0,lt.p)(p=>p!==Rn.REDIRECTING),(0,ht.s)(1)).subscribe(()=>{b()})}function mi(m){throw m}function Vr(m,b,p){return b.parse("/")}const ar={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ei={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Xi=(()=>{class m{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,r.WQX)(r.H3F),this.isNgZoneEnabled=!1,this._events=new We.B,this.options=(0,r.WQX)(ln,{optional:!0})||{},this.pendingTasks=(0,r.WQX)(r.$K3),this.errorHandler=this.options.errorHandler||mi,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Vr,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,r.WQX)(sn),this.routeReuseStrategy=(0,r.WQX)(kt),this.titleStrategy=(0,r.WQX)(Xt),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,r.WQX)(I,{optional:!0})?.flat()??[],this.navigationTransitions=(0,r.WQX)(ke),this.urlSerializer=(0,r.WQX)(Nn),this.location=(0,r.WQX)(_e.aZ),this.componentInputBindingEnabled=!!(0,r.WQX)(Jt,{optional:!0}),this.eventsSubscription=new fe.yU,this.isNgZoneEnabled=(0,r.WQX)(r.SKi)instanceof r.SKi&&r.SKi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Dt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Es(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(p=>{this.lastSuccessfulId=p.id,this.currentPageId=this.browserPageId},p=>{this.console.warn(`Unhandled Navigation Error: ${p}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const p=this.navigationTransitions.events.subscribe(D=>{try{const{currentTransition:R}=this.navigationTransitions;if(null===R)return void(Rt(D)&&this._events.next(D));if(D instanceof Si)dt(R.source)&&(this.browserUrlTree=R.extractedUrl);else if(D instanceof tr)this.rawUrlTree=R.rawUrl;else if(D instanceof Wr){if("eager"===this.urlUpdateStrategy){if(!R.extras.skipLocationChange){const U=this.urlHandlingStrategy.merge(R.urlAfterRedirects,R.rawUrl);this.setBrowserUrl(U,R)}this.browserUrlTree=R.urlAfterRedirects}}else if(D instanceof Ds)this.currentUrlTree=R.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(R.urlAfterRedirects,R.rawUrl),this.routerState=R.targetRouterState,"deferred"===this.urlUpdateStrategy&&(R.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,R),this.browserUrlTree=R.urlAfterRedirects);else if(D instanceof Kn)0!==D.code&&1!==D.code&&(this.navigated=!0),(3===D.code||2===D.code)&&this.restoreHistory(R);else if(D instanceof zr){const U=this.urlHandlingStrategy.merge(D.url,R.currentRawUrl),Z={skipLocationChange:R.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||dt(R.source)};this.scheduleNavigation(U,bi,null,Z,{resolve:R.resolve,reject:R.reject,promise:R.promise})}D instanceof dr&&this.restoreHistory(R,!0),D instanceof Ai&&(this.navigated=!0),Rt(D)&&this._events.next(D)}catch(R){this.navigationTransitions.transitionAbortSubject.next(R)}});this.eventsSubscription.add(p)}resetRootComponentType(p){this.routerState.root.component=p,this.navigationTransitions.rootComponentType=p}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const p=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),bi,p)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(p=>{const D="popstate"===p.type?"popstate":"hashchange";"popstate"===D&&setTimeout(()=>{this.navigateToSyncWithBrowser(p.url,D,p.state)},0)}))}navigateToSyncWithBrowser(p,D,R){const U={replaceUrl:!0},Z=R?.navigationId?R:null;if(R){const Ke={...R};delete Ke.navigationId,delete Ke.\u0275routerPageId,0!==Object.keys(Ke).length&&(U.state=Ke)}const Ze=this.parseUrl(p);this.scheduleNavigation(Ze,D,Z,U)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(p){this.config=p.map(pr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(p,D={}){const{relativeTo:R,queryParams:U,fragment:Z,queryParamsHandling:Ze,preserveFragment:Ke}=D,At=Ke?this.currentUrlTree.fragment:Z;let Xn,un=null;switch(Ze){case"merge":un={...this.currentUrlTree.queryParams,...U};break;case"preserve":un=this.currentUrlTree.queryParams;break;default:un=U||null}null!==un&&(un=this.removeEmptyProps(un));try{Xn=q(R?R.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof p[0]||!p[0].startsWith("/"))&&(p=[]),Xn=this.currentUrlTree.root}return ye(Xn,p,un,At??null)}navigateByUrl(p,D={skipLocationChange:!1}){const R=Cn(p)?p:this.parseUrl(p),U=this.urlHandlingStrategy.merge(R,this.rawUrlTree);return this.scheduleNavigation(U,bi,null,D)}navigate(p,D={skipLocationChange:!1}){return function va(m){for(let b=0;b{const U=p[R];return null!=U&&(D[R]=U),D},{})}scheduleNavigation(p,D,R,U,Z){if(this.disposed)return Promise.resolve(!1);let Ze,Ke,At;Z?(Ze=Z.resolve,Ke=Z.reject,At=Z.promise):At=new Promise((Xn,xn)=>{Ze=Xn,Ke=xn});const un=this.pendingTasks.add();return Ri(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(un))}),this.navigationTransitions.handleNavigationRequest({source:D,restoredState:R,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:p,extras:U,resolve:Ze,reject:Ke,promise:At,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),At.catch(Xn=>Promise.reject(Xn))}setBrowserUrl(p,D){const R=this.urlSerializer.serialize(p);if(this.location.isCurrentPathEqualTo(R)||D.extras.replaceUrl){const Z={...D.extras.state,...this.generateNgRouterState(D.id,this.browserPageId)};this.location.replaceState(R,"",Z)}else{const U={...D.extras.state,...this.generateNgRouterState(D.id,this.browserPageId+1)};this.location.go(R,"",U)}}restoreHistory(p,D=!1){if("computed"===this.canceledNavigationResolution){const U=this.currentPageId-this.browserPageId;0!==U?this.location.historyGo(U):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===U&&(this.resetState(p),this.browserUrlTree=p.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(D&&this.resetState(p),this.resetUrlToCurrentUrlTree())}resetState(p){this.routerState=p.currentRouterState,this.currentUrlTree=p.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,p.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(p,D){return"computed"===this.canceledNavigationResolution?{navigationId:p,\u0275routerPageId:D}:{navigationId:p}}static{this.\u0275fac=function(D){return new(D||m)}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})();function Rt(m){return!(m instanceof Ds||m instanceof zr)}let jt=(()=>{class m{constructor(p,D,R,U,Z,Ze){this.router=p,this.route=D,this.tabIndexAttribute=R,this.renderer=U,this.el=Z,this.locationStrategy=Ze,this.href=null,this.commands=null,this.onChanges=new We.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Ke=Z.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Ke||"area"===Ke,this.isAnchorElement?this.subscription=p.events.subscribe(At=>{At instanceof Ai&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(p){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",p)}ngOnChanges(p){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(p){null!=p?(this.commands=Array.isArray(p)?p:[p],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(p,D,R,U,Z){return!!(null===this.urlTree||this.isAnchorElement&&(0!==p||D||R||U||Z||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const p=null===this.href?null:(0,r.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",p)}applyAttributeValue(p,D){const R=this.renderer,U=this.el.nativeElement;null!==D?R.setAttribute(U,p,D):R.removeAttribute(U,p)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(D){return new(D||m)(r.rXU(Xi),r.rXU(jn),r.kS0("tabindex"),r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(_e.hb))}}static{this.\u0275dir=r.FsC({type:m,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(D,R){1&D&&r.bIt("click",function(Z){return R.onClick(Z.button,Z.ctrlKey,Z.shiftKey,Z.altKey,Z.metaKey)}),2&D&&r.BMQ("target",R.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",r.L39],skipLocationChange:["skipLocationChange","skipLocationChange",r.L39],replaceUrl:["replaceUrl","replaceUrl",r.L39],routerLink:"routerLink"},standalone:!0,features:[r.GFd,r.OA$]})}}return m})(),Zt=(()=>{class m{get isActive(){return this._isActive}constructor(p,D,R,U,Z){this.router=p,this.element=D,this.renderer=R,this.cdr=U,this.link=Z,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new r.bkB,this.routerEventsSubscription=p.events.subscribe(Ze=>{Ze instanceof Ai&&this.update()})}ngAfterContentInit(){(0,Y.of)(this.links.changes,(0,Y.of)(null)).pipe((0,Te.U)()).subscribe(p=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const p=[...this.links.toArray(),this.link].filter(D=>!!D).map(D=>D.onChanges);this.linkInputChangesSubscription=(0,Q.H)(p).pipe((0,Te.U)()).subscribe(D=>{this._isActive!==this.isLinkActive(this.router)(D)&&this.update()})}set routerLinkActive(p){const D=Array.isArray(p)?p:p.split(" ");this.classes=D.filter(R=>!!R)}ngOnChanges(p){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const p=this.hasActiveLinks();this._isActive!==p&&(this._isActive=p,this.cdr.markForCheck(),this.classes.forEach(D=>{p?this.renderer.addClass(this.element.nativeElement,D):this.renderer.removeClass(this.element.nativeElement,D)}),p&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(p))})}isLinkActive(p){const D=function Ht(m){return!!m.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return R=>!!R.urlTree&&p.isActive(R.urlTree,D)}hasActiveLinks(){const p=this.isLinkActive(this.router);return this.link&&p(this.link)||this.links.some(p)}static{this.\u0275fac=function(D){return new(D||m)(r.rXU(Xi),r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(r.gRc),r.rXU(jt,8))}}static{this.\u0275dir=r.FsC({type:m,selectors:[["","routerLinkActive",""]],contentQueries:function(D,R,U){if(1&D&&r.wni(U,jt,5),2&D){let Z;r.mGM(Z=r.lsd())&&(R.links=Z)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[r.OA$]})}}return m})();class wi{}let As=(()=>{class m{constructor(p,D,R,U,Z){this.router=p,this.injector=R,this.preloadingStrategy=U,this.loader=Z}setUpPreloading(){this.subscription=this.router.events.pipe((0,lt.p)(p=>p instanceof Ai),(0,Fe.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(p,D){const R=[];for(const U of D){U.providers&&!U._injector&&(U._injector=(0,r.Ol2)(U.providers,p,`Route: ${U.path}`));const Z=U._injector??p,Ze=U._loadedInjector??Z;(U.loadChildren&&!U._loadedRoutes&&void 0===U.canLoad||U.loadComponent&&!U._loadedComponent)&&R.push(this.preloadConfig(Z,U)),(U.children||U._loadedRoutes)&&R.push(this.processRoutes(Ze,U.children??U._loadedRoutes))}return(0,Q.H)(R).pipe((0,Te.U)())}preloadConfig(p,D){return this.preloadingStrategy.preload(D,()=>{let R;R=D.loadChildren&&void 0===D.canLoad?this.loader.loadChildren(p,D):(0,Y.of)(null);const U=R.pipe((0,Ve.Z)(Z=>null===Z?(0,Y.of)(void 0):(D._loadedRoutes=Z.routes,D._loadedInjector=Z.injector,this.processRoutes(Z.injector??p,Z.routes))));if(D.loadComponent&&!D._loadedComponent){const Z=this.loader.loadComponent(D);return(0,Q.H)([U,Z]).pipe((0,Te.U)())}return U})}static{this.\u0275fac=function(D){return new(D||m)(r.KVO(Xi),r.KVO(r.Ql9),r.KVO(r.uvJ),r.KVO(wi),r.KVO(E))}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})();const Wn=new r.nKC("");let Hr=(()=>{class m{constructor(p,D,R,U,Z={}){this.urlSerializer=p,this.transitions=D,this.viewportScroller=R,this.zone=U,this.options=Z,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Z.scrollPositionRestoration=Z.scrollPositionRestoration||"disabled",Z.anchorScrolling=Z.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(p=>{p instanceof Si?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=p.navigationTrigger,this.restoredId=p.restoredState?p.restoredState.navigationId:0):p instanceof Ai?(this.lastId=p.id,this.scheduleScrollEvent(p,this.urlSerializer.parse(p.urlAfterRedirects).fragment)):p instanceof tr&&0===p.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(p,this.urlSerializer.parse(p.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(p=>{p instanceof bs&&(p.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(p.position):p.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(p.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(p,D){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new bs(p,"popstate"===this.lastSource?this.store[this.restoredId]:null,D))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(D){r.QTQ()}}static{this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac})}}return m})();function er(m,b){return{\u0275kind:m,\u0275providers:b}}function ya(){const m=(0,r.WQX)(r.zZn);return b=>{const p=m.get(r.o8S);if(b!==p.components[0])return;const D=m.get(Xi),R=m.get(qo);1===m.get(Lo)&&D.initialNavigation(),m.get(tl,null,r.$GK.Optional)?.setUpPreloading(),m.get(Wn,null,r.$GK.Optional)?.init(),D.resetRootComponentType(p.componentTypes[0]),R.closed||(R.next(),R.complete(),R.unsubscribe())}}const qo=new r.nKC("",{factory:()=>new We.B}),Lo=new r.nKC("",{providedIn:"root",factory:()=>1}),tl=new r.nKC("");function ba(m){return er(0,[{provide:tl,useExisting:As},{provide:wi,useExisting:m}])}const tc=new r.nKC("ROUTER_FORROOT_GUARD"),Ea=[_e.aZ,{provide:Nn,useClass:vn},Xi,Kr,{provide:jn,useFactory:function Pi(m){return m.routerState.root},deps:[Xi]},E,[]];function nc(){return new r.NEm("Router",Xi)}let ic=(()=>{class m{constructor(p){}static forRoot(p,D){return{ngModule:m,providers:[Ea,[],{provide:I,multi:!0,useValue:p},{provide:tc,useFactory:Ca,deps:[[Xi,new r.Xx1,new r.kdw]]},{provide:ln,useValue:D||{}},D?.useHash?{provide:_e.hb,useClass:_e.fw}:{provide:_e.hb,useClass:_e.Sm},{provide:Wn,useFactory:()=>{const m=(0,r.WQX)(_e.Xr),b=(0,r.WQX)(r.SKi),p=(0,r.WQX)(ln),D=(0,r.WQX)(ke),R=(0,r.WQX)(Nn);return p.scrollOffset&&m.setOffset(p.scrollOffset),new Hr(R,D,m,b,p)}},D?.preloadingStrategy?ba(D.preloadingStrategy).\u0275providers:[],{provide:r.NEm,multi:!0,useFactory:nc},D?.initialNavigation?Oi(D):[],D?.bindToComponentInputs?er(8,[Bn,{provide:Jt,useExisting:Bn}]).\u0275providers:[],[{provide:ho,useFactory:ya},{provide:r.iLQ,multi:!0,useExisting:ho}]]}}static forChild(p){return{ngModule:m,providers:[{provide:I,multi:!0,useValue:p}]}}static{this.\u0275fac=function(D){return new(D||m)(r.KVO(tc,8))}}static{this.\u0275mod=r.$C({type:m})}static{this.\u0275inj=r.G2t({})}}return m})();function Ca(m){return"guarded"}function Oi(m){return["disabled"===m.initialNavigation?er(3,[{provide:r.hnV,multi:!0,useFactory:()=>{const b=(0,r.WQX)(Xi);return()=>{b.setUpLocationChangeListener()}}},{provide:Lo,useValue:2}]).\u0275providers:[],"enabledBlocking"===m.initialNavigation?er(2,[{provide:Lo,useValue:0},{provide:r.hnV,multi:!0,deps:[r.zZn],useFactory:b=>{const p=b.get(_e.hj,Promise.resolve());return()=>p.then(()=>new Promise(D=>{const R=b.get(Xi),U=b.get(qo);Ri(R,()=>{D(!0)}),b.get(ke).afterPreactivation=()=>(D(!0),U.closed?(0,Y.of)(void 0):U),R.initialNavigation()}))}}]).\u0275providers:[]]}const ho=new r.nKC("")},7552:(bt,Ae,O)=>{"use strict";O.d(Ae,{QU:()=>Ue,X7:()=>Re});var r=O(8699),P=O(177),se=O(6354),oe=O(1397),Q=O(9030),Y=O(7673),le=O(1626);const W=new r.nKC("JWT_OPTIONS");let Re=(()=>{class ae{constructor(fe=null){this.tokenGetter=fe&&fe.tokenGetter||function(){}}urlBase64Decode(fe){let Ne=fe.replace(/-/g,"+").replace(/_/g,"/");switch(Ne.length%4){case 0:break;case 2:Ne+="==";break;case 3:Ne+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(Ne)}b64decode(fe){let Qe="";if((fe=String(fe).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let _t,We,it=0,_e=0;We=fe.charAt(_e++);~We&&(_t=it%4?64*_t+We:We,it++%4)?Qe+=String.fromCharCode(255&_t>>(-2*it&6)):0)We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(We);return Qe}b64DecodeUnicode(fe){return decodeURIComponent(Array.prototype.map.call(this.b64decode(fe),Ne=>"%"+("00"+Ne.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(fe=this.tokenGetter()){return fe instanceof Promise?fe.then(Ne=>this._decodeToken(Ne)):this._decodeToken(fe)}_decodeToken(fe){if(!fe||""===fe)return null;const Ne=fe.split(".");if(3!==Ne.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const Qe=this.urlBase64Decode(Ne[1]);if(!Qe)throw new Error("Cannot decode the token.");return JSON.parse(Qe)}getTokenExpirationDate(fe=this.tokenGetter()){return fe instanceof Promise?fe.then(Ne=>this._getTokenExpirationDate(Ne)):this._getTokenExpirationDate(fe)}_getTokenExpirationDate(fe){let Ne;if(Ne=this.decodeToken(fe),!Ne||!Ne.hasOwnProperty("exp"))return null;const Qe=new Date(0);return Qe.setUTCSeconds(Ne.exp),Qe}isTokenExpired(fe=this.tokenGetter(),Ne){return fe instanceof Promise?fe.then(Qe=>this._isTokenExpired(Qe,Ne)):this._isTokenExpired(fe,Ne)}_isTokenExpired(fe,Ne){if(!fe||""===fe)return!0;const Qe=this.getTokenExpirationDate(fe);return Ne=Ne||0,null!==Qe&&!(Qe.valueOf()>(new Date).valueOf()+1e3*Ne)}getAuthScheme(fe,Ne){return"function"==typeof fe?fe(Ne):fe}}return ae.\u0275fac=function(fe){return new(fe||ae)(r.KVO(W))},ae.\u0275prov=r.jDH({token:ae,factory:ae.\u0275fac}),ae})();const ue=ae=>ae instanceof Promise?(0,Q.v)(()=>ae):(0,Y.of)(ae);let re=(()=>{class ae{constructor(fe,Ne,Qe){this.jwtHelper=Ne,this.document=Qe,this.standardPorts=["80","443"],this.tokenGetter=fe.tokenGetter,this.headerName=fe.headerName||"Authorization",this.authScheme=fe.authScheme||""===fe.authScheme?fe.authScheme:"Bearer ",this.allowedDomains=fe.allowedDomains||[],this.disallowedRoutes=fe.disallowedRoutes||[],this.throwNoTokenError=fe.throwNoTokenError||!1,this.skipWhenExpired=fe.skipWhenExpired}isAllowedDomain(fe){const Ne=new URL(fe.url,this.document.location.origin);if(Ne.host===this.document.location.host)return!0;const Qe=`${Ne.hostname}${Ne.port&&!this.standardPorts.includes(Ne.port)?":"+Ne.port:""}`;return this.allowedDomains.findIndex(it=>"string"==typeof it?it===Qe:it instanceof RegExp&&it.test(Qe))>-1}isDisallowedRoute(fe){const Ne=new URL(fe.url,this.document.location.origin);return this.disallowedRoutes.findIndex(Qe=>{if("string"==typeof Qe){const it=new URL(Qe,this.document.location.origin);return it.hostname===Ne.hostname&&it.pathname===Ne.pathname}return Qe instanceof RegExp&&Qe.test(fe.url)})>-1}handleInterception(fe,Ne,Qe){const it=this.jwtHelper.getAuthScheme(this.authScheme,Ne);if(!fe&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let _t=(0,Y.of)(!1);return this.skipWhenExpired&&(_t=fe?ue(this.jwtHelper.isTokenExpired(fe)):(0,Y.of)(!0)),fe?_t.pipe((0,se.T)(We=>We&&this.skipWhenExpired?Ne.clone():Ne.clone({setHeaders:{[this.headerName]:`${it}${fe}`}})),(0,oe.Z)(We=>Qe.handle(We))):Qe.handle(Ne)}intercept(fe,Ne){if(!this.isAllowedDomain(fe)||this.isDisallowedRoute(fe))return Ne.handle(fe);const Qe=this.tokenGetter(fe);return ue(Qe).pipe((0,oe.Z)(it=>this.handleInterception(it,fe,Ne)))}}return ae.\u0275fac=function(fe){return new(fe||ae)(r.KVO(W),r.KVO(Re),r.KVO(P.qQ))},ae.\u0275prov=r.jDH({token:ae,factory:ae.\u0275fac}),ae})(),Ue=(()=>{class ae{constructor(fe){if(fe)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(fe){return{ngModule:ae,providers:[{provide:le.a7,useClass:re,multi:!0},fe.jwtOptionsProvider||{provide:W,useValue:fe.config},Re]}}}return ae.\u0275fac=function(fe){return new(fe||ae)(r.KVO(ae,12))},ae.\u0275mod=r.$C({type:ae}),ae.\u0275inj=r.G2t({}),ae})()},6803:(bt,Ae,O)=>{"use strict";O.d(Ae,{PQ:()=>yo,UA:()=>tl,WP:()=>ec,$R:()=>ba,r6:()=>Da,x7:()=>nl,tW:()=>Nr,_f:()=>Ea,Lw:()=>hl,Cv:()=>pt,oi:()=>Sn,iF:()=>ta,$G:()=>en,HC:()=>b,yB:()=>Ho,IQ:()=>yc,tg:()=>La,_H:()=>Fa,U0:()=>sa,zH:()=>Dc,do:()=>ka,cw:()=>Aa,Bq:()=>gh,LY:()=>wu,UN:()=>Xu,X9:()=>aa,Um:()=>pl,sy:()=>Go,Gx:()=>Mu,WA:()=>la,RI:()=>_h,Pv:()=>Ou,m_:()=>bh,RS:()=>wg,J0:()=>ua,s5:()=>Tc,c9:()=>bo,VR:()=>Do,md:()=>vl,n8:()=>Nc});var r=O(8699),P=O(1985),se=O(983),oe=O(7673),Q=O(1413),Y=O(8750),le=O(1397),W=O(7441),Re=O(8071),ue=O(6450);const re=["addListener","removeListener"],Ue=["addEventListener","removeEventListener"],ae=["on","off"];function J(a,v,s,l){if((0,Re.T)(s)&&(l=s,s=void 0),l)return J(a,v,s).pipe((0,ue.I)(l));const[u,S]=function it(a){return(0,Re.T)(a.addEventListener)&&(0,Re.T)(a.removeEventListener)}(a)?Ue.map(k=>ce=>a[k](v,ce,s)):function Ne(a){return(0,Re.T)(a.addListener)&&(0,Re.T)(a.removeListener)}(a)?re.map(fe(a,v)):function Qe(a){return(0,Re.T)(a.on)&&(0,Re.T)(a.off)}(a)?ae.map(fe(a,v)):[];if(!u&&(0,W.X)(a))return(0,le.Z)(k=>J(k,v,s))((0,Y.Tg)(a));if(!u)throw new TypeError("Invalid event target");return new P.c(k=>{const ce=(...we)=>k.next(1S(ce)})}function fe(a,v){return s=>l=>a[s](v,l)}var _t=O(1584);const{isArray:We}=Array;function _e(a){return 1===a.length&&We(a[0])?a[0]:a}var Be=O(4360);function et(...a){return 1===(a=_e(a)).length?(0,Y.Tg)(a[0]):new P.c(function ht(a){return v=>{let s=[];for(let l=0;s&&!v.closed&&l{if(s){for(let S=0;S{let u=s.map(()=>[]),S=s.map(()=>!1);l.add(()=>{u=S=null});for(let k=0;!l.closed&&k{if(u[k].push(ce),u.every(we=>we.length)){const we=u.map(Xe=>Xe.shift());l.next(v?v(...we):we),u.some((Xe,ze)=>!Xe.length&&S[ze])&&l.complete()}},()=>{S[k]=!0,!u[k].length&&l.complete()}));return()=>{u=S=null}}):se.w}var He=O(8793),Ye=O(6977),ne=O(5964),De=O(6697),$e=O(8141),mt=O(6354),It=O(9974),Ce=O(3669),Ie=O(5343);function Oe(...a){const v=(0,lt.ms)(a);return(0,It.N)((s,l)=>{const u=a.length,S=new Array(u);let k=a.map(()=>!1),ce=!1;for(let we=0;we{S[we]=Xe,!ce&&!k[we]&&(k[we]=!0,(ce=k.every(Ce.D))&&(k=null))},Ie.l));s.subscribe((0,Be._)(l,we=>{if(ce){const Xe=[we,...S];l.next(v?v(...Xe):Xe)}}))})}var de=O(1986),xe=O(5558),te=O(9172),Te=O(3294),tt=O(5245),rt=O(980),ct=O(177),Pt=O(9079),ft=O(9417),tn={left:"right",right:"left",bottom:"top",top:"bottom"};function Lt(a){return a.replace(/left|right|bottom|top/g,function(v){return tn[v]})}function Ft(a){return a.split("-")[0]}var ge={start:"end",end:"start"};function Ee(a){return a.replace(/start|end/g,function(v){return ge[v]})}var F="top",w="bottom",M="right",$="left",Me="auto",z=[F,w,M,$],pe="start",Je="end",Vt="viewport",Dt="popper",wn=z.reduce(function(a,v){return a.concat([v+"-"+pe,v+"-"+Je])},[]),rn=[].concat(z,[Me]).reduce(function(a,v){return a.concat([v,v+"-"+pe,v+"-"+Je])},[]),ai=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qn(a){if(null==a)return window;if("[object Window]"!==a.toString()){var v=a.ownerDocument;return v&&v.defaultView||window}return a}function Yn(a){return a instanceof Qn(a).Element||a instanceof Element}function Un(a){return a instanceof Qn(a).HTMLElement||a instanceof HTMLElement}function li(a){return!(typeof ShadowRoot>"u")&&(a instanceof Qn(a).ShadowRoot||a instanceof ShadowRoot)}function yi(a){return((Yn(a)?a.ownerDocument:a.document)||window.document).documentElement}var Li=Math.max,mr=Math.min,qe=Math.round;function Ge(){var a=navigator.userAgentData;return null!=a&&a.brands&&Array.isArray(a.brands)?a.brands.map(function(v){return v.brand+"/"+v.version}).join(" "):navigator.userAgent}function ee(){return!/^((?!chrome|android).)*safari/i.test(Ge())}function ve(a,v,s){void 0===v&&(v=!1),void 0===s&&(s=!1);var l=a.getBoundingClientRect(),u=1,S=1;v&&Un(a)&&(u=a.offsetWidth>0&&qe(l.width)/a.offsetWidth||1,S=a.offsetHeight>0&&qe(l.height)/a.offsetHeight||1);var ce=(Yn(a)?Qn(a):window).visualViewport,we=!ee()&&s,Xe=(l.left+(we&&ce?ce.offsetLeft:0))/u,ze=(l.top+(we&&ce?ce.offsetTop:0))/S,Et=l.width/u,vt=l.height/S;return{width:Et,height:vt,top:ze,right:Xe+Et,bottom:ze+vt,left:Xe,x:Xe,y:ze}}function st(a){var v=Qn(a);return{scrollLeft:v.pageXOffset,scrollTop:v.pageYOffset}}function Ct(a){return ve(yi(a)).left+st(a).scrollLeft}function qt(a){return Qn(a).getComputedStyle(a)}function $t(a){return a?(a.nodeName||"").toLowerCase():null}function ei(a){return"html"===$t(a)?a:a.assignedSlot||a.parentNode||(li(a)?a.host:null)||yi(a)}function Cn(a){var v=qt(a);return/auto|scroll|overlay|hidden/.test(v.overflow+v.overflowY+v.overflowX)}function Le(a){return["html","body","#document"].indexOf($t(a))>=0?a.ownerDocument.body:Un(a)&&Cn(a)?a:Le(ei(a))}function q(a,v){var s;void 0===v&&(v=[]);var l=Le(a),u=l===(null==(s=a.ownerDocument)?void 0:s.body),S=Qn(l),k=u?[S].concat(S.visualViewport||[],Cn(l)?l:[]):l,ce=v.concat(k);return u?ce:ce.concat(q(ei(k)))}function ye(a){return["table","td","th"].indexOf($t(a))>=0}function at(a){return Un(a)&&"fixed"!==qt(a).position?a.offsetParent:null}function Tt(a){for(var v=Qn(a),s=at(a);s&&ye(s)&&"static"===qt(s).position;)s=at(s);return s&&("html"===$t(s)||"body"===$t(s)&&"static"===qt(s).position)?v:s||function yt(a){var v=/firefox/i.test(Ge());if(/Trident/i.test(Ge())&&Un(a)&&"fixed"===qt(a).position)return null;var u=ei(a);for(li(u)&&(u=u.host);Un(u)&&["html","body"].indexOf($t(u))<0;){var S=qt(u);if("none"!==S.transform||"none"!==S.perspective||"paint"===S.contain||-1!==["transform","perspective"].indexOf(S.willChange)||v&&"filter"===S.willChange||v&&S.filter&&"none"!==S.filter)return u;u=u.parentNode}return null}(a)||v}function Mt(a,v){var s=v.getRootNode&&v.getRootNode();if(a.contains(v))return!0;if(s&&li(s)){var l=v;do{if(l&&a.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Fn(a){return Object.assign({},a,{left:a.x,top:a.y,right:a.x+a.width,bottom:a.y+a.height})}function kn(a,v,s){return v===Vt?Fn(function Bt(a,v){var s=Qn(a),l=yi(a),u=s.visualViewport,S=l.clientWidth,k=l.clientHeight,ce=0,we=0;if(u){S=u.width,k=u.height;var Xe=ee();(Xe||!Xe&&"fixed"===v)&&(ce=u.offsetLeft,we=u.offsetTop)}return{width:S,height:k,x:ce+Ct(a),y:we}}(a,s)):Yn(v)?function Gt(a,v){var s=ve(a,!1,"fixed"===v);return s.top=s.top+a.clientTop,s.left=s.left+a.clientLeft,s.bottom=s.top+a.clientHeight,s.right=s.left+a.clientWidth,s.width=a.clientWidth,s.height=a.clientHeight,s.x=s.left,s.y=s.top,s}(v,s):Fn(function gn(a){var v,s=yi(a),l=st(a),u=null==(v=a.ownerDocument)?void 0:v.body,S=Li(s.scrollWidth,s.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),k=Li(s.scrollHeight,s.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),ce=-l.scrollLeft+Ct(a),we=-l.scrollTop;return"rtl"===qt(u||s).direction&&(ce+=Li(s.clientWidth,u?u.clientWidth:0)-S),{width:S,height:k,x:ce,y:we}}(yi(a)))}function zt(a){return a.split("-")[1]}function Bi(a){return["top","bottom"].indexOf(a)>=0?"x":"y"}function ci(a){var we,v=a.reference,s=a.element,l=a.placement,u=l?Ft(l):null,S=l?zt(l):null,k=v.x+v.width/2-s.width/2,ce=v.y+v.height/2-s.height/2;switch(u){case F:we={x:k,y:v.y-s.height};break;case w:we={x:k,y:v.y+v.height};break;case M:we={x:v.x+v.width,y:ce};break;case $:we={x:v.x-s.width,y:ce};break;default:we={x:v.x,y:v.y}}var Xe=u?Bi(u):null;if(null!=Xe){var ze="y"===Xe?"height":"width";switch(S){case pe:we[Xe]=we[Xe]-(v[ze]/2-s[ze]/2);break;case Je:we[Xe]=we[Xe]+(v[ze]/2-s[ze]/2)}}return we}function Mn(a){return Object.assign({},{top:0,right:0,bottom:0,left:0},a)}function ui(a,v){return v.reduce(function(s,l){return s[l]=a,s},{})}function Gi(a,v){void 0===v&&(v={});var l=v.placement,u=void 0===l?a.placement:l,S=v.strategy,k=void 0===S?a.strategy:S,ce=v.boundary,we=void 0===ce?"clippingParents":ce,Xe=v.rootBoundary,ze=void 0===Xe?Vt:Xe,Et=v.elementContext,vt=void 0===Et?Dt:Et,wt=v.altBoundary,hn=void 0!==wt&&wt,Dn=v.padding,Qt=void 0===Dn?0:Dn,Pn=Mn("number"!=typeof Qt?Qt:ui(Qt,z)),qn=a.rects.popper,En=a.elements[hn?vt===Dt?"reference":Dt:vt],On=function $n(a,v,s,l){var u="clippingParents"===v?function zn(a){var v=q(ei(a)),l=["absolute","fixed"].indexOf(qt(a).position)>=0&&Un(a)?Tt(a):a;return Yn(l)?v.filter(function(u){return Yn(u)&&Mt(u,l)&&"body"!==$t(u)}):[]}(a):[].concat(v),S=[].concat(u,[s]),ce=S.reduce(function(we,Xe){var ze=kn(a,Xe,l);return we.top=Li(ze.top,we.top),we.right=mr(ze.right,we.right),we.bottom=mr(ze.bottom,we.bottom),we.left=Li(ze.left,we.left),we},kn(a,S[0],l));return ce.width=ce.right-ce.left,ce.height=ce.bottom-ce.top,ce.x=ce.left,ce.y=ce.top,ce}(Yn(En)?En:En.contextElement||yi(a.elements.popper),we,ze,k),Gn=ve(a.elements.reference),Ci=ci({reference:Gn,element:qn,strategy:"absolute",placement:u}),Ti=Fn(Object.assign({},qn,Ci)),cr=vt===Dt?Ti:Gn,$i={top:On.top-cr.top+Pn.top,bottom:cr.bottom-On.bottom+Pn.bottom,left:On.left-cr.left+Pn.left,right:cr.right-On.right+Pn.right},Dr=a.modifiersData.offset;if(vt===Dt&&Dr){var Er=Dr[u];Object.keys($i).forEach(function(ur){var Ys=[M,w].indexOf(ur)>=0?1:-1,Eo=[F,w].indexOf(ur)>=0?"y":"x";$i[ur]+=Er[Eo]*Ys})}return $i}const Si={name:"flip",enabled:!0,phase:"main",fn:function ni(a){var v=a.state,s=a.options,l=a.name;if(!v.modifiersData[l]._skip){for(var u=s.mainAxis,S=void 0===u||u,k=s.altAxis,ce=void 0===k||k,we=s.fallbackPlacements,Xe=s.padding,ze=s.boundary,Et=s.rootBoundary,vt=s.altBoundary,wt=s.flipVariations,hn=void 0===wt||wt,Dn=s.allowedAutoPlacements,Qt=v.options.placement,Pn=Ft(Qt),qn=we||(Pn!==Qt&&hn?function bi(a){if(Ft(a)===Me)return[];var v=Lt(a);return[Ee(a),v,Ee(v)]}(Qt):[Lt(Qt)]),En=[Qt].concat(qn).reduce(function($r,ns){return $r.concat(Ft(ns)===Me?function ti(a,v){void 0===v&&(v={});var u=v.boundary,S=v.rootBoundary,k=v.padding,ce=v.flipVariations,we=v.allowedAutoPlacements,Xe=void 0===we?rn:we,ze=zt(v.placement),Et=ze?ce?wn:wn.filter(function(hn){return zt(hn)===ze}):z,vt=Et.filter(function(hn){return Xe.indexOf(hn)>=0});0===vt.length&&(vt=Et);var wt=vt.reduce(function(hn,Dn){return hn[Dn]=Gi(a,{placement:Dn,boundary:u,rootBoundary:S,padding:k})[Ft(Dn)],hn},{});return Object.keys(wt).sort(function(hn,Dn){return wt[hn]-wt[Dn]})}(v,{placement:ns,boundary:ze,rootBoundary:Et,padding:Xe,flipVariations:hn,allowedAutoPlacements:Dn}):ns)},[]),On=v.rects.reference,Gn=v.rects.popper,Ci=new Map,Ti=!0,cr=En[0],$i=0;$i=0,Eo=Ys?"width":"height",jr=Gi(v,{placement:Dr,boundary:ze,rootBoundary:Et,altBoundary:vt,padding:Xe}),gs=Ys?ur?M:$:ur?w:F;On[Eo]>Gn[Eo]&&(gs=Lt(gs));var Vs=Lt(gs),zo=[];if(S&&zo.push(jr[Er]<=0),ce&&zo.push(jr[gs]<=0,jr[Vs]<=0),zo.every(function($r){return $r})){cr=Dr,Ti=!1;break}Ci.set(Dr,zo)}if(Ti)for(var Pc=function(ns){var Ua=En.find(function(El){var Ko=Ci.get(El);if(Ko)return Ko.slice(0,ns).every(function(Fc){return Fc})});if(Ua)return cr=Ua,"break"},Ha=hn?3:1;Ha>0&&"break"!==Pc(Ha);Ha--);v.placement!==cr&&(v.modifiersData[l]._skip=!0,v.placement=cr,v.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Kn(a,v,s){return Li(a,mr(v,s))}function dr(a){var v=ve(a),s=a.offsetWidth,l=a.offsetHeight;return Math.abs(v.width-s)<=1&&(s=v.width),Math.abs(v.height-l)<=1&&(l=v.height),{x:a.offsetLeft,y:a.offsetTop,width:s,height:l}}const Us={name:"preventOverflow",enabled:!0,phase:"main",fn:function Wr(a){var v=a.state,s=a.options,l=a.name,u=s.mainAxis,S=void 0===u||u,k=s.altAxis,ce=void 0!==k&&k,vt=s.tether,wt=void 0===vt||vt,hn=s.tetherOffset,Dn=void 0===hn?0:hn,Qt=Gi(v,{boundary:s.boundary,rootBoundary:s.rootBoundary,padding:s.padding,altBoundary:s.altBoundary}),Pn=Ft(v.placement),In=zt(v.placement),qn=!In,En=Bi(Pn),On=function Ai(a){return"x"===a?"y":"x"}(En),Gn=v.modifiersData.popperOffsets,Ci=v.rects.reference,Ti=v.rects.popper,cr="function"==typeof Dn?Dn(Object.assign({},v.rects,{placement:v.placement})):Dn,$i="number"==typeof cr?{mainAxis:cr,altAxis:cr}:Object.assign({mainAxis:0,altAxis:0},cr),Dr=v.modifiersData.offset?v.modifiersData.offset[v.placement]:null,Er={x:0,y:0};if(Gn){if(S){var ur,Ys="y"===En?F:$,Eo="y"===En?w:M,jr="y"===En?"height":"width",gs=Gn[En],Vs=gs+Qt[Ys],zo=gs-Qt[Eo],bl=wt?-Ti[jr]/2:0,Pc=In===pe?Ci[jr]:Ti[jr],Ha=In===pe?-Ti[jr]:-Ci[jr],Dl=v.elements.arrow,$r=wt&&Dl?dr(Dl):{width:0,height:0},ns=v.modifiersData["arrow#persistent"]?v.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ua=ns[Ys],El=ns[Eo],Ko=Kn(0,Ci[jr],$r[jr]),Fc=qn?Ci[jr]/2-bl-Ko-Ua-$i.mainAxis:Pc-Ko-Ua-$i.mainAxis,Hh=qn?-Ci[jr]/2+bl+Ko+El+$i.mainAxis:Ha+Ko+El+$i.mainAxis,kc=v.elements.arrow&&Tt(v.elements.arrow),Qu=kc?"y"===En?kc.clientTop||0:kc.clientLeft||0:0,Yu=null!=(ur=Dr?.[En])?ur:0,jh=gs+Hh-Yu,Zu=Kn(wt?mr(Vs,gs+Fc-Yu-Qu):Vs,gs,wt?Li(zo,jh):zo);Gn[En]=Zu,Er[En]=Zu-gs}if(ce){var ja,wo=Gn[On],Ga="y"===On?"height":"width",Lc=wo+Qt["x"===En?F:$],$h=wo-Qt["x"===En?w:M],Ju=-1!==[F,$].indexOf(Pn),Gh=null!=(ja=Dr?.[On])?ja:0,wl=Ju?Lc:wo-Ci[Ga]-Ti[Ga]-Gh+$i.altAxis,Cl=Ju?wo+Ci[Ga]+Ti[Ga]-Gh-$i.altAxis:$h,Wh=wt&&Ju?function tr(a,v,s){var l=Kn(a,v,s);return l>s?s:l}(wl,wo,Cl):Kn(wt?wl:Lc,wo,wt?Cl:$h);Gn[On]=Wh,Er[On]=Wh-wo}v.modifiersData[l]=Er}},requiresIfExists:["offset"]},js={name:"arrow",enabled:!0,phase:"main",fn:function Ao(a){var v,s=a.state,l=a.name,u=a.options,S=s.elements.arrow,k=s.modifiersData.popperOffsets,ce=Ft(s.placement),we=Bi(ce),ze=[$,M].indexOf(ce)>=0?"height":"width";if(S&&k){var Et=function(v,s){return Mn("number"!=typeof(v="function"==typeof v?v(Object.assign({},s.rects,{placement:s.placement})):v)?v:ui(v,z))}(u.padding,s),vt=dr(S),wt="y"===we?F:$,hn="y"===we?w:M,Dn=s.rects.reference[ze]+s.rects.reference[we]-k[we]-s.rects.popper[ze],Qt=k[we]-s.rects.reference[we],Pn=Tt(S),In=Pn?"y"===we?Pn.clientHeight||0:Pn.clientWidth||0:0,Gn=In/2-vt[ze]/2+(Dn/2-Qt/2),Ci=Kn(Et[wt],Gn,In-vt[ze]-Et[hn]);s.modifiersData[l]=((v={})[we]=Ci,v.centerOffset=Ci-Gn,v)}},effect:function Vi(a){var v=a.state,l=a.options.element,u=void 0===l?"[data-popper-arrow]":l;null!=u&&("string"==typeof u&&!(u=v.elements.popper.querySelector(u))||Mt(v.elements.popper,u)&&(v.elements.arrow=u))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hi(a,v,s){void 0===s&&(s=!1);var l=Un(v),u=Un(v)&&function ss(a){var v=a.getBoundingClientRect(),s=qe(v.width)/a.offsetWidth||1,l=qe(v.height)/a.offsetHeight||1;return 1!==s||1!==l}(v),S=yi(v),k=ve(a,u,s),ce={scrollLeft:0,scrollTop:0},we={x:0,y:0};return(l||!l&&!s)&&(("body"!==$t(v)||Cn(S))&&(ce=function rs(a){return a!==Qn(a)&&Un(a)?function Cr(a){return{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}}(a):st(a)}(v)),Un(v)?((we=ve(v,!0)).x+=v.clientLeft,we.y+=v.clientTop):S&&(we.x=Ct(S))),{x:k.left+ce.scrollLeft-we.x,y:k.top+ce.scrollTop-we.y,width:k.width,height:k.height}}function ys(a){var v=new Map,s=new Set,l=[];function u(S){s.add(S.name),[].concat(S.requires||[],S.requiresIfExists||[]).forEach(function(ce){if(!s.has(ce)){var we=v.get(ce);we&&u(we)}}),l.push(S)}return a.forEach(function(S){v.set(S.name,S)}),a.forEach(function(S){s.has(S.name)||u(S)}),l}function Ds(a){var v;return function(){return v||(v=new Promise(function(s){Promise.resolve().then(function(){v=void 0,s(a())})})),v}}var no={placement:"bottom",modifiers:[],strategy:"absolute"};function os(){for(var a=arguments.length,v=new Array(a),s=0;s=0?-1:1,S="function"==typeof s?s(Object.assign({},v,{placement:a})):s,k=S[0],ce=S[1];return k=k||0,ce=(ce||0)*u,[$,M].indexOf(l)>=0?{x:ce,y:k}:{x:k,y:ce}}(Et,v.rects,S),ze},{}),ce=k[v.placement],Xe=ce.y;null!=v.modifiersData.popperOffsets&&(v.modifiersData.popperOffsets.x+=ce.x,v.modifiersData.popperOffsets.y+=Xe),v.modifiersData[l]=k}};function nr(a,v){if(1&a){const s=r.RV6();r.j41(0,"button",1),r.bIt("click",function(){r.eBV(s);const u=r.XpG();return r.Njj(u.close())}),r.k0s()}}const ir=["*"],ls=["ngbDatepickerDayView",""],kr=["month"],Zi=["year"];function ri(a,v){if(1&a&&(r.j41(0,"option",5),r.EFF(1),r.k0s()),2&a){const s=v.$implicit,l=r.XpG();r.Y8G("value",s),r.BMQ("aria-label",l.i18n.getMonthFullName(s,l.date.year)),r.R7$(1),r.JRh(l.i18n.getMonthShortName(s,l.date.year))}}function Jr(a,v){if(1&a&&(r.j41(0,"option",5),r.EFF(1),r.k0s()),2&a){const s=v.$implicit,l=r.XpG();r.Y8G("value",s),r.R7$(1),r.JRh(l.i18n.getYearNumerals(s))}}function hr(a,v){if(1&a){const s=r.RV6();r.j41(0,"ngb-datepicker-navigation-select",7),r.bIt("select",function(u){r.eBV(s);const S=r.XpG();return r.Njj(S.select.emit(u))}),r.k0s()}if(2&a){const s=r.XpG();r.Y8G("date",s.date)("disabled",s.disabled)("months",s.selectBoxes.months)("years",s.selectBoxes.years)}}function fr(a,v){1&a&&r.nrm(0,"div",11)}function pr(a,v){1&a&&r.nrm(0,"div",11)}function fi(a,v){if(1&a&&(r.DNE(0,fr,1,0,"div",9),r.j41(1,"div",10),r.EFF(2),r.k0s(),r.DNE(3,pr,1,0,"div",9)),2&a){const s=v.$implicit,l=v.index,u=r.XpG(2);r.Y8G("ngIf",l>0),r.R7$(2),r.SpI(" ",u.i18n.getMonthLabel(s.firstDate)," "),r.R7$(1),r.Y8G("ngIf",l!==u.months.length-1)}}function on(a,v){if(1&a&&r.DNE(0,fi,4,3,"ng-template",8),2&a){const s=r.XpG();r.Y8G("ngForOf",s.months)}}function Lr(a,v){if(1&a&&(r.j41(0,"div",5),r.EFF(1),r.k0s()),2&a){const s=r.XpG(2);r.R7$(1),r.JRh(s.i18n.getWeekLabel())}}function Cs(a,v){if(1&a&&(r.j41(0,"div",6),r.EFF(1),r.k0s()),2&a){const s=v.$implicit;r.R7$(1),r.JRh(s)}}function $s(a,v){if(1&a&&(r.j41(0,"div",2),r.DNE(1,Lr,2,1,"div",3),r.DNE(2,Cs,2,1,"div",4),r.k0s()),2&a){const s=r.XpG();r.R7$(1),r.Y8G("ngIf",s.datepicker.showWeekNumbers),r.R7$(1),r.Y8G("ngForOf",s.viewModel.weekdays)}}function rr(a,v){if(1&a&&(r.j41(0,"div",11),r.EFF(1),r.k0s()),2&a){const s=r.XpG(2).$implicit,l=r.XpG();r.R7$(1),r.JRh(l.i18n.getWeekNumerals(s.number))}}function Ts(a,v){}function Ji(a,v){if(1&a&&r.DNE(0,Ts,0,0,"ng-template",14),2&a){const s=r.XpG().$implicit,l=r.XpG(3);r.Y8G("ngTemplateOutlet",l.datepicker.dayTemplate)("ngTemplateOutletContext",s.context)}}function Br(a,v){if(1&a){const s=r.RV6();r.j41(0,"div",12),r.bIt("click",function(u){const k=r.eBV(s).$implicit;return r.XpG(3).doSelect(k),r.Njj(u.preventDefault())}),r.DNE(1,Ji,1,2,"ng-template",13),r.k0s()}if(2&a){const s=v.$implicit;r.AVh("disabled",s.context.disabled)("hidden",s.hidden)("ngb-dp-today",s.context.today),r.Y8G("tabindex",s.tabindex),r.BMQ("aria-label",s.ariaLabel),r.R7$(1),r.Y8G("ngIf",!s.hidden)}}function pi(a,v){if(1&a&&(r.j41(0,"div",8),r.DNE(1,rr,2,1,"div",9),r.DNE(2,Br,2,9,"div",10),r.k0s()),2&a){const s=r.XpG().$implicit,l=r.XpG();r.R7$(1),r.Y8G("ngIf",l.datepicker.showWeekNumbers),r.R7$(1),r.Y8G("ngForOf",s.days)}}function Ms(a,v){1&a&&r.DNE(0,pi,3,2,"div",7),2&a&&r.Y8G("ngIf",!v.$implicit.collapsed)}const gi=["defaultDayTemplate"],Ii=["content"];function Ss(a,v){if(1&a&&r.nrm(0,"div",8),2&a){const l=v.currentMonth,u=v.selected,S=v.disabled,k=v.focused;r.Y8G("date",v.date)("currentMonth",l)("selected",u)("disabled",S)("focused",k)}}function ji(a,v){if(1&a&&(r.j41(0,"div",13),r.EFF(1),r.k0s()),2&a){const s=r.XpG().$implicit,l=r.XpG(2);r.R7$(1),r.SpI(" ",l.i18n.getMonthLabel(s.firstDate)," ")}}function Or(a,v){if(1&a&&(r.j41(0,"div",10),r.DNE(1,ji,2,1,"div",11),r.nrm(2,"ngb-datepicker-month",12),r.k0s()),2&a){const s=v.$implicit,l=r.XpG(2);r.R7$(1),r.Y8G("ngIf","none"===l.navigation||l.displayMonths>1&&"select"===l.navigation),r.R7$(1),r.Y8G("month",s.firstDate)}}function sr(a,v){if(1&a&&r.DNE(0,Or,3,2,"div",9),2&a){const s=r.XpG();r.Y8G("ngForOf",s.model.months)}}function cs(a,v){if(1&a){const s=r.RV6();r.j41(0,"ngb-datepicker-navigation",14),r.bIt("navigate",function(u){r.eBV(s);const S=r.XpG();return r.Njj(S.onNavigateEvent(u))})("select",function(u){r.eBV(s);const S=r.XpG();return r.Njj(S.onNavigateDateSelect(u))}),r.k0s()}if(2&a){const s=r.XpG();r.Y8G("date",s.model.firstDate)("months",s.model.months)("disabled",s.model.disabled)("showSelect","select"===s.model.navigation)("prevDisabled",s.model.prevDisabled)("nextDisabled",s.model.nextDisabled)("selectBoxes",s.model.selectBoxes)}}function x(a,v){}function L(a,v){}const C=function(a){return{$implicit:a}},j=["dialog"],ie=["ngbNavOutlet",""];function xt(a,v){}function an(a,v){if(1&a&&(r.j41(0,"div",2),r.DNE(1,xt,0,0,"ng-template",3),r.k0s()),2&a){const s=r.XpG().$implicit,l=r.XpG();r.Y8G("item",s)("nav",l.nav)("role",l.paneRole),r.R7$(1),r.Y8G("ngTemplateOutlet",(null==s.contentTpl?null:s.contentTpl.templateRef)||null)("ngTemplateOutletContext",r.eq3(5,C,s.active||l.isPanelTransitioning(s)))}}function zi(a,v){if(1&a&&r.DNE(0,an,2,7,"div",1),2&a){const s=v.$implicit,l=r.XpG();r.Y8G("ngIf",s.isPanelInDom()||l.isPanelTransitioning(s))}}function yr(a,v){1&a&&(r.j41(0,"span",9),r.pXf(1,10),r.k0s())}function Gs(a,v){1&a&&(r.j41(0,"span",9),r.pXf(1,11),r.k0s())}function Ja(a,v){1&a&&(r.j41(0,"span",9),r.pXf(1,12),r.k0s())}function qa(a,v){1&a&&(r.j41(0,"span",9),r.pXf(1,13),r.k0s())}function pa(a,v){1&a&&r.EFF(0,"...")}function Fs(a,v){1&a&&r.EFF(0),2&a&&r.JRh(v.$implicit)}function io(a,v){}const ga=function(a){return{disabled:!0,currentPage:a}};function ro(a,v){if(1&a&&(r.j41(0,"a",18),r.DNE(1,io,0,0,"ng-template",8),r.k0s()),2&a){const s=r.XpG(2).$implicit,l=r.XpG(),u=r.sdS(9);r.R7$(1),r.Y8G("ngTemplateOutlet",(null==l.tplEllipsis?null:l.tplEllipsis.templateRef)||u)("ngTemplateOutletContext",r.eq3(2,ga,s))}}function No(a,v){}const Ws=function(a,v,s){return{disabled:a,$implicit:v,currentPage:s}};function so(a,v){if(1&a){const s=r.RV6();r.j41(0,"a",19),r.bIt("click",function(u){r.eBV(s);const S=r.XpG().$implicit;return r.XpG(2).selectPage(S),r.Njj(u.preventDefault())}),r.DNE(1,No,0,0,"ng-template",8),r.k0s()}if(2&a){const s=r.XpG().$implicit,l=r.XpG(),u=l.disabled,S=l.$implicit,k=r.XpG(),ce=r.sdS(11);r.BMQ("tabindex",u?"-1":null)("aria-disabled",u?"true":null),r.R7$(1),r.Y8G("ngTemplateOutlet",(null==k.tplNumber?null:k.tplNumber.templateRef)||ce)("ngTemplateOutletContext",r.sMw(4,Ws,u,s,S))}}function qr(a,v){if(1&a&&(r.j41(0,"li",15),r.DNE(1,ro,2,4,"a",16),r.DNE(2,so,2,8,"a",17),r.k0s()),2&a){const s=v.$implicit,l=r.XpG(),u=l.$implicit,S=l.disabled,k=r.XpG();r.AVh("active",s===u)("disabled",k.isEllipsis(s)||S),r.BMQ("aria-current",s===u?"page":null),r.R7$(1),r.Y8G("ngIf",k.isEllipsis(s)),r.R7$(1),r.Y8G("ngIf",!k.isEllipsis(s))}}function Zo(a,v){1&a&&r.DNE(0,qr,3,7,"li",14),2&a&&r.Y8G("ngForOf",v.pages)}function Ki(a,v){}const or=function(a,v){return{disabled:a,currentPage:v}};function Ro(a,v){if(1&a){const s=r.RV6();r.j41(0,"li",15)(1,"a",20),r.bIt("click",function(u){return r.eBV(s),r.XpG().selectPage(1),r.Njj(u.preventDefault())}),r.DNE(2,Ki,0,0,"ng-template",8),r.k0s()()}if(2&a){const s=r.XpG(),l=r.sdS(1);r.AVh("disabled",s.previousDisabled()),r.R7$(1),r.BMQ("tabindex",s.previousDisabled()?"-1":null)("aria-disabled",s.previousDisabled()?"true":null),r.R7$(1),r.Y8G("ngTemplateOutlet",(null==s.tplFirst?null:s.tplFirst.templateRef)||l)("ngTemplateOutletContext",r.l_i(6,or,s.previousDisabled(),s.page))}}function br(a,v){}const Ni=function(a){return{disabled:a}};function us(a,v){if(1&a){const s=r.RV6();r.j41(0,"li",15)(1,"a",21),r.bIt("click",function(u){r.eBV(s);const S=r.XpG();return S.selectPage(S.page-1),r.Njj(u.preventDefault())}),r.DNE(2,br,0,0,"ng-template",8),r.k0s()()}if(2&a){const s=r.XpG(),l=r.sdS(3);r.AVh("disabled",s.previousDisabled()),r.R7$(1),r.BMQ("tabindex",s.previousDisabled()?"-1":null)("aria-disabled",s.previousDisabled()?"true":null),r.R7$(1),r.Y8G("ngTemplateOutlet",(null==s.tplPrevious?null:s.tplPrevious.templateRef)||l)("ngTemplateOutletContext",r.eq3(6,Ni,s.previousDisabled()))}}function qi(a,v){}function ks(a,v){}function oo(a,v){if(1&a){const s=r.RV6();r.j41(0,"li",15)(1,"a",22),r.bIt("click",function(u){r.eBV(s);const S=r.XpG();return S.selectPage(S.page+1),r.Njj(u.preventDefault())}),r.DNE(2,ks,0,0,"ng-template",8),r.k0s()()}if(2&a){const s=r.XpG(),l=r.sdS(5);r.AVh("disabled",s.nextDisabled()),r.R7$(1),r.BMQ("tabindex",s.nextDisabled()?"-1":null)("aria-disabled",s.nextDisabled()?"true":null),r.R7$(1),r.Y8G("ngTemplateOutlet",(null==s.tplNext?null:s.tplNext.templateRef)||l)("ngTemplateOutletContext",r.l_i(6,or,s.nextDisabled(),s.page))}}function ao(a,v){}function xo(a,v){if(1&a){const s=r.RV6();r.j41(0,"li",15)(1,"a",23),r.bIt("click",function(u){r.eBV(s);const S=r.XpG();return S.selectPage(S.pageCount),r.Njj(u.preventDefault())}),r.DNE(2,ao,0,0,"ng-template",8),r.k0s()()}if(2&a){const s=r.XpG(),l=r.sdS(7);r.AVh("disabled",s.nextDisabled()),r.R7$(1),r.BMQ("tabindex",s.nextDisabled()?"-1":null)("aria-disabled",s.nextDisabled()?"true":null),r.R7$(1),r.Y8G("ngTemplateOutlet",(null==s.tplLast?null:s.tplLast.templateRef)||l)("ngTemplateOutletContext",r.l_i(6,or,s.nextDisabled(),s.page))}}const lo=function(a,v,s){return{$implicit:a,pages:v,disabled:s}};function kt(a){return parseInt(`${a}`,10)}function ln(a){return"string"==typeof a}function sn(a){return!isNaN(kt(a))}function _n(a){return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a}function Rn(a){return null!=a}function Ri(a){return a&&a.then}function mi(a){return sn(a)?`0${a}`.slice(-2):""}function Ei(a){return(a||document.body).getBoundingClientRect()}function Rt(a=document){const v=a?.activeElement;return v?v.shadowRoot?Rt(v.shadowRoot):v:null}const Zt={animation:!0,transitionTimerDelayMs:5},Ht=()=>{},{transitionTimerDelayMs:wi}=Zt,Qi=new Map,cn=(a,v,s,l)=>{let u=l.context||{};const S=Qi.get(v);if(S)switch(l.runningTransition){case"continue":return se.w;case"stop":a.run(()=>S.transition$.complete()),u=Object.assign(S.context,u),Qi.delete(v)}const k=s(v,l.animation,u)||Ht;if(!l.animation||"none"===window.getComputedStyle(v).transitionProperty)return a.run(()=>k()),(0,oe.of)(void 0).pipe(function Xi(a){return v=>new P.c(s=>v.subscribe({next:k=>a.run(()=>s.next(k)),error:k=>a.run(()=>s.error(k)),complete:()=>a.run(()=>s.complete())}))}(a));const ce=new Q.B,we=new Q.B,Xe=ce.pipe(function Fe(...a){return v=>(0,He.x)(v,(0,oe.of)(...a))}(!0));Qi.set(v,{transition$:ce,complete:()=>{we.next(),we.complete()},context:u});const ze=function jt(a){const{transitionDelay:v,transitionDuration:s}=window.getComputedStyle(a);return 1e3*(parseFloat(v)+parseFloat(s))}(v);return a.runOutsideAngular(()=>{const Et=J(v,"transitionend").pipe((0,Ye.Q)(Xe),(0,ne.p)(({target:wt})=>wt===v));et((0,_t.O)(ze+wi).pipe((0,Ye.Q)(Xe)),Et,we).pipe((0,Ye.Q)(Xe)).subscribe(()=>{Qi.delete(v),a.run(()=>{k(),ce.next(),ce.complete()})})}),ce.asObservable()},Hr=(a,v,s)=>{let{direction:l,maxSize:u,dimension:S}=s;const{classList:k}=a;function ce(){k.add("collapse"),"show"===l?k.add("show"):k.remove("show")}if(v)return u||(u=function Wn(a,v){if(typeof navigator>"u")return"0px";const{classList:s}=a,l=s.contains("show");l||s.add("show"),a.style[v]="";const u=a.getBoundingClientRect()[v]+"px";return l||s.remove("show"),u}(a,S),s.maxSize=u,a.style[S]="show"!==l?u:"0px",k.remove("collapse"),k.remove("collapsing"),k.remove("show"),Ei(a),k.add("collapsing")),a.style[S]="show"===l?u:"0px",()=>{ce(),k.remove("collapsing"),a.style[S]=""};ce()};let xi=(()=>{class a{constructor(){this.animation=Zt.animation}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),Pi=(()=>{class a{constructor(s){this._ngbConfig=s,this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(xi))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),Zl=(()=>{class a{constructor(s){this._ngbConfig=s,this.horizontal=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(xi))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),en=(()=>{class a{set collapsed(s){this._isCollapsed!==s&&(this._isCollapsed=s,this._afterInit&&this._runTransitionWithEvents(s,this.animation))}constructor(s,l,u){this._element=s,this._zone=u,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new r.bkB,this.shown=new r.bkB,this.hidden=new r.bkB,this.animation=l.animation,this.horizontal=l.horizontal}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(s=this._isCollapsed){this.collapsed=!s,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(s,l){return cn(this._zone,this._element.nativeElement,Hr,{animation:l,runningTransition:"stop",context:{direction:s?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(s,l){this._runTransition(s,l).subscribe(()=>{s?this.hidden.emit():this.shown.emit()})}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.aKT),r.rXU(Zl),r.rXU(r.SKi))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(l,u){2&l&&r.AVh("collapse-horizontal",u.horizontal)},inputs:{animation:"animation",collapsed:["ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0})}}return a})(),Jl=0,tl=(()=>{class a{constructor(){this._appRef=(0,r.WQX)(r.o8S),this._element=(0,r.WQX)(r.aKT).nativeElement,this._item=(0,r.WQX)(Nr),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef&&(this._appRef.detachView(this._viewRef),this._viewRef.destroy(),this._viewRef=null)}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._bodyTpl.createEmbeddedView(null),this._viewRef.detectChanges(),this._appRef.attachView(this._viewRef);for(const s of this._viewRef.rootNodes)this._element.appendChild(s)}}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbAccordionBody",""]],contentQueries:function(l,u,S){if(1&l&&r.wni(S,r.C4Q,7),2&l){let k;r.mGM(k=r.lsd())&&(u._bodyTpl=k.first)}},hostVars:2,hostBindings:function(l,u){2&l&&r.AVh("accordion-body",!0)},standalone:!0})}}return a})(),ba=(()=>{class a{constructor(){this.item=(0,r.WQX)(Nr),this.ngbCollapse=(0,r.WQX)(en)}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region"],hostVars:4,hostBindings:function(l,u){2&l&&(r.Mr5("id",u.item.collapseId),r.BMQ("aria-labelledby",u.item.toggleId),r.AVh("accordion-collapse",!0))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[r.nM4([en])]})}}return a})(),ql=(()=>{class a{constructor(){this.item=(0,r.WQX)(Nr),this.accordion=(0,r.WQX)(Da)}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(l,u){1&l&&r.bIt("click",function(){return!u.item.disabled&&u.accordion.toggle(u.item.id)}),2&l&&(r.Mr5("id",u.item.toggleId),r.BMQ("aria-controls",u.item.collapseId)("aria-expanded",!u.item.collapsed),r.AVh("collapsed",u.item.collapsed))},standalone:!0})}}return a})(),ec=(()=>{class a{constructor(){this.item=(0,r.WQX)(Nr)}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275dir=r.FsC({type:a,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button"],hostVars:3,hostBindings:function(l,u){2&l&&(r.Mr5("disabled",u.item.disabled),r.AVh("accordion-button",!0))},standalone:!0,features:[r.nM4([ql])]})}}return a})(),nl=(()=>{class a{constructor(){this.item=(0,r.WQX)(Nr)}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading"],hostVars:4,hostBindings:function(l,u){2&l&&r.AVh("accordion-header",!0)("collapsed",u.item.collapsed)},standalone:!0})}}return a})(),Nr=(()=>{class a{constructor(){this._accordion=(0,r.WQX)(Da),this._cd=(0,r.WQX)(r.gRc),this._destroyRef=(0,r.WQX)(r.abz),this._collapsed=!0,this._id="ngb-accordion-item-"+Jl++,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new r.bkB,this.shown=new r.bkB,this.hide=new r.bkB,this.hidden=new r.bkB}set id(s){ln(s)&&""!==s&&(this._id=s)}set destroyOnHide(s){this._destroyOnHide=s}get destroyOnHide(){return void 0===this._destroyOnHide?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(s){s?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){const{ngbCollapse:s}=this._collapse;s.animation=!1,s.collapsed=this.collapsed,s.animation=this._accordion.animation,s.hidden.pipe((0,Pt.pQ)(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),s.shown.pipe((0,Pt.pQ)(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbAccordionItem",""]],contentQueries:function(l,u,S){if(1&l&&r.wni(S,ba,7),2&l){let k;r.mGM(k=r.lsd())&&(u._collapse=k.first)}},hostVars:3,hostBindings:function(l,u){2&l&&(r.Mr5("id",u.id),r.AVh("accordion-item",!0))},inputs:{id:["ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0})}}return a})(),Da=(()=>{class a{constructor(s){this.show=new r.bkB,this.shown=new r.bkB,this.hide=new r.bkB,this.hidden=new r.bkB,this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=s.animation,this.closeOthers=s.closeOthers,this.destroyOnHide=s.destroyOnHide}toggle(s){this._getItem(s)?.toggle()}expand(s){this._getItem(s)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(s=>!s.collapsed)||this._items.first.expand():this._items.forEach(s=>s.expand()))}collapse(s){this._getItem(s)?.collapse()}collapseAll(){this._items?.forEach(s=>s.collapse())}isExpanded(s){const l=this._getItem(s);return!!l&&!l.collapsed}_ensureCanExpand(s){return!(this.closeOthers&&(this._items?(this._items.find(l=>!l.collapsed&&s!==l)?.collapse(),0):this._anItemWasAlreadyExpandedDuringInitialisation||(this._anItemWasAlreadyExpandedDuringInitialisation=!0,0)))}_getItem(s){return this._items?.find(l=>l.id===s)}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(Pi))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbAccordion",""]],contentQueries:function(l,u,S){if(1&l&&r.wni(S,Nr,4),2&l){let k;r.mGM(k=r.lsd())&&(u._items=k)}},hostVars:2,hostBindings:function(l,u){2&l&&r.AVh("accordion",!0)},inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0})}}return a})(),Ea=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})();const nc=({classList:a})=>{a.remove("show")};let ic=(()=>{class a{constructor(s){this._ngbConfig=s,this.dismissible=!0,this.type="warning"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(xi))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),pt=(()=>{class a{constructor(s,l,u){this._element=l,this._zone=u,this.closed=new r.bkB,this.dismissible=s.dismissible,this.type=s.type,this.animation=s.animation}close(){const s=cn(this._zone,this._element.nativeElement,nc,{animation:this.animation,runningTransition:"continue"});return s.subscribe(()=>this.closed.emit()),s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(ic),r.rXU(r.aKT),r.rXU(r.SKi))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(l,u){2&l&&(r.HbH("alert show"+(u.type?" alert-"+u.type:"")),r.AVh("fade",u.animation)("alert-dismissible",u.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[r.aNF],ngContentSelectors:ir,decls:2,vars:1,consts:function(){let s;return s=$localize`:@@ngb.alert.close:Close`,[["type","button","class","btn-close","aria-label",s,3,"click",4,"ngIf"],["type","button","aria-label",s,1,"btn-close",3,"click"]]},template:function(l,u){1&l&&(r.NAR(),r.SdG(0),r.DNE(1,nr,1,0,"button",0)),2&l&&(r.R7$(1),r.Y8G("ngIf",u.dismissible))},dependencies:[ct.bT],styles:["ngb-alert{display:block}\n"],encapsulation:2,changeDetection:0})}}return a})(),Sn=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),m=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),b=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})();class p{static from(v){return v instanceof p?v:v?new p(v.year,v.month,v.day):null}constructor(v,s,l){this.year=_n(v)?v:null,this.month=_n(s)?s:null,this.day=_n(l)?l:null}equals(v){return null!=v&&this.year===v.year&&this.month===v.month&&this.day===v.day}before(v){return!!v&&(this.year===v.year?this.month===v.month?this.day!==v.day&&this.dayv.day:this.month>v.month:this.year>v.year)}}function D(a,v){return!function U(a,v){return!a&&!v||!!a&&!!v&&a.equals(v)}(a,v)}function R(a,v){return!(!a&&!v||a&&v&&a.year===v.year&&a.month===v.month)}function Ze(a,v,s){return a&&v&&a.before(v)?v:a&&s&&a.after(s)?s:a||null}function Ke(a,v){const{minDate:s,maxDate:l,disabled:u,markDisabled:S}=v;return!(null==a||u||S&&S(a,{year:a.year,month:a.month})||s&&a.before(s)||l&&a.after(l))}function Bo(a){return new p(a.getFullYear(),a.getMonth()+1,a.getDate())}function ds(a){const v=new Date(a.year,a.month-1,a.day,12);return isNaN(v.getTime())||v.setFullYear(a.year),v}let ta=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275prov=r.jDH({token:a,factory:function(){return function il(){return new ac}()},providedIn:"root"})}}return a})(),ac=(()=>{class a extends ta{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(s,l="d",u=1){let S=ds(s),k=!0,ce=S.getMonth();switch(l){case"y":S.setFullYear(S.getFullYear()+u);break;case"m":ce+=u,S.setMonth(ce),ce%=12,ce<0&&(ce+=12);break;case"d":S.setDate(S.getDate()+u),k=!1;break;default:return s}return k&&S.getMonth()!==ce&&S.setDate(0),Bo(S)}getPrev(s,l="d",u=1){return this.getNext(s,l,-u)}getWeekday(s){let u=ds(s).getDay();return 0===u?7:u}getWeekNumber(s,l){7===l&&(l=0);const k=ds(s[(11-l)%7]);k.setDate(k.getDate()+4-(k.getDay()||7));const ce=k.getTime();return k.setMonth(0),k.setDate(1),Math.floor(Math.round((ce-k.getTime())/864e5)/7)+1}getToday(){return Bo(new Date)}isValid(s){if(!(s&&_n(s.year)&&_n(s.month)&&_n(s.day)&&0!==s.year))return!1;const l=ds(s);return!isNaN(l.getTime())&&l.getFullYear()===s.year&&l.getMonth()+1===s.month&&l.getDate()===s.day}static{this.\u0275fac=function(){let s;return function(u){return(s||(s=r.xGo(a)))(u||a)}}()}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac})}}return a})(),Vo=(()=>{class a{getMonthLabel(s){return`${this.getMonthFullName(s.month,s.year)} ${this.getYearNumerals(s.year)}`}getDayNumerals(s){return`${s.day}`}getWeekNumerals(s){return`${s}`}getYearNumerals(s){return`${s}`}getWeekLabel(){return""}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275prov=r.jDH({token:a,factory:function(l){let u=null;return u=l?new l:function Gd(a){return new Rr(a)}(r.KVO(r.xe9)),u},providedIn:"root"})}}return a})(),Rr=(()=>{class a extends Vo{constructor(s){super(),this._locale=s,this._monthsShort=(0,ct.tL)(s,ct.oV.Standalone,ct.cH.Abbreviated),this._monthsFull=(0,ct.tL)(s,ct.oV.Standalone,ct.cH.Wide)}getWeekdayLabel(s,l){const u=(0,ct.XO)(this._locale,ct.oV.Standalone,void 0===l?ct.cH.Short:l);return u.map((k,ce)=>u[(ce+1)%7])[s-1]||""}getMonthShortName(s){return this._monthsShort[s-1]||""}getMonthFullName(s){return this._monthsFull[s-1]||""}getDayAriaLabel(s){const l=new Date(s.year,s.month-1,s.day);return(0,ct.Yq)(l,"fullDate",this._locale)}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(r.xe9))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac})}}return a})(),Qs=(()=>{class a{get model$(){return this._model$.pipe((0,ne.p)(s=>s.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe((0,ne.p)(s=>null!==s))}set(s){let l=Object.keys(s).map(u=>this._VALIDATORS[u](s[u])).reduce((u,S)=>({...u,...S}),{});Object.keys(l).length>0&&this._nextState(l)}constructor(s,l){this._calendar=s,this._i18n=l,this._VALIDATORS={dayTemplateData:u=>{if(this._state.dayTemplateData!==u)return{dayTemplateData:u}},displayMonths:u=>{if(_n(u=kt(u))&&u>0&&this._state.displayMonths!==u)return{displayMonths:u}},disabled:u=>{if(this._state.disabled!==u)return{disabled:u}},firstDayOfWeek:u=>{if(_n(u=kt(u))&&u>=0&&this._state.firstDayOfWeek!==u)return{firstDayOfWeek:u}},focusVisible:u=>{if(this._state.focusVisible!==u&&!this._state.disabled)return{focusVisible:u}},markDisabled:u=>{if(this._state.markDisabled!==u)return{markDisabled:u}},maxDate:u=>{const S=this.toValidDate(u,null);if(D(this._state.maxDate,S))return{maxDate:S}},minDate:u=>{const S=this.toValidDate(u,null);if(D(this._state.minDate,S))return{minDate:S}},navigation:u=>{if(this._state.navigation!==u)return{navigation:u}},outsideDays:u=>{if(this._state.outsideDays!==u)return{outsideDays:u}},weekdays:u=>{const S=!0===u||!1===u?ct.cH.Short:u,k=!0!==u&&!1!==u||u;if(this._state.weekdayWidth!==S||this._state.weekdaysVisible!==k)return{weekdayWidth:S,weekdaysVisible:k}}},this._model$=new Q.B,this._dateSelect$=new Q.B,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:ct.cH.Short,weekdaysVisible:!0}}focus(s){const l=this.toValidDate(s,null);null!=l&&!this._state.disabled&&D(this._state.focusDate,l)&&this._nextState({focusDate:s})}focusSelect(){Ke(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(s){const l=this.toValidDate(s,this._calendar.getToday());null!=l&&!this._state.disabled&&(!this._state.firstDate||R(this._state.firstDate,l))&&this._nextState({firstDate:l})}select(s,l={}){const u=this.toValidDate(s,null);null!=u&&!this._state.disabled&&(D(this._state.selectedDate,u)&&this._nextState({selectedDate:u}),l.emitEvent&&Ke(u,this._state)&&this._dateSelect$.next(u))}toValidDate(s,l){const u=p.from(s);return void 0===l&&(l=this._calendar.getToday()),this._calendar.isValid(u)?u:l}getMonth(s){for(let l of this._state.months)if(s.month===l.number&&s.year===l.year)return l;throw new Error(`month ${s.month} of year ${s.year} not found`)}_nextState(s){const l=this._updateState(s);this._patchContexts(l),this._state=l,this._model$.next(this._state)}_patchContexts(s){const{months:l,displayMonths:u,selectedDate:S,focusDate:k,focusVisible:ce,disabled:we,outsideDays:Xe}=s;s.months.forEach(ze=>{ze.weeks.forEach(Et=>{Et.days.forEach(vt=>{k&&(vt.context.focused=k.equals(vt.date)&&ce),vt.tabindex=!we&&k&&vt.date.equals(k)&&k.month===ze.number?0:-1,!0===we&&(vt.context.disabled=!0),void 0!==S&&(vt.context.selected=null!==S&&S.equals(vt.date)),ze.number!==vt.date.month&&(vt.hidden="hidden"===Xe||"collapsed"===Xe||u>1&&vt.date.after(l[0].firstDate)&&vt.date.before(l[u-1].lastDate))})})})}_updateState(s){const l=Object.assign({},this._state,s);let u=l.firstDate;if(("minDate"in s||"maxDate"in s)&&(function Z(a,v){if(v&&a&&v.before(a))throw new Error(`'maxDate' ${v} should be greater than 'minDate' ${a}`)}(l.minDate,l.maxDate),l.focusDate=Ze(l.focusDate,l.minDate,l.maxDate),l.firstDate=Ze(l.firstDate,l.minDate,l.maxDate),u=l.focusDate),"disabled"in s&&(l.focusVisible=!1),"selectedDate"in s&&0===this._state.months.length&&(u=l.selectedDate),"focusVisible"in s||"focusDate"in s&&(l.focusDate=Ze(l.focusDate,l.minDate,l.maxDate),u=l.focusDate,0!==l.months.length&&l.focusDate&&!l.focusDate.before(l.firstDate)&&!l.focusDate.after(l.lastDate)))return l;if("firstDate"in s&&(l.firstDate=Ze(l.firstDate,l.minDate,l.maxDate),u=l.firstDate),u){const k=function Ns(a,v,s,l,u){const{displayMonths:S,months:k}=s,ce=k.splice(0,k.length);return Array.from({length:S},(Xe,ze)=>{const Et=Object.assign(a.getNext(v,"m",ze),{day:1});if(k[ze]=null,!u){const vt=ce.findIndex(wt=>wt.firstDate.equals(Et));-1!==vt&&(k[ze]=ce.splice(vt,1)[0])}return Et}).forEach((Xe,ze)=>{null===k[ze]&&(k[ze]=function fo(a,v,s,l,u={}){const{dayTemplateData:S,minDate:k,maxDate:ce,firstDayOfWeek:we,markDisabled:Xe,outsideDays:ze,weekdayWidth:Et,weekdaysVisible:vt}=s,wt=a.getToday();u.firstDate=null,u.lastDate=null,u.number=v.month,u.year=v.year,u.weeks=u.weeks||[],u.weekdays=u.weekdays||[],v=function Xs(a,v,s){const l=a.getDaysPerWeek(),u=new p(v.year,v.month,1),S=a.getWeekday(u)%l;return a.getPrev(u,"d",(l+S-s)%l)}(a,v,we),vt||(u.weekdays.length=0);for(let hn=0;hnPn.date),we),Dn.collapsed="collapsed"===ze&&Qt[0].date.month!==u.number&&Qt[Qt.length-1].date.month!==u.number}return u}(a,Xe,s,l,ce.shift()||{}))}),k}(this._calendar,u,l,this._i18n,"dayTemplateData"in s||"firstDayOfWeek"in s||"markDisabled"in s||"minDate"in s||"maxDate"in s||"disabled"in s||"outsideDays"in s||"weekdaysVisible"in s);l.months=k,l.firstDate=k[0].firstDate,l.lastDate=k[k.length-1].lastDate,"selectedDate"in s&&!Ke(l.selectedDate,l)&&(l.selectedDate=null),"firstDate"in s&&(!l.focusDate||l.focusDate.before(l.firstDate)||l.focusDate.after(l.lastDate))&&(l.focusDate=u);const ce=!this._state.firstDate||this._state.firstDate.year!==l.firstDate.year,we=!this._state.firstDate||this._state.firstDate.month!==l.firstDate.month;"select"===l.navigation?(("minDate"in s||"maxDate"in s||0===l.selectBoxes.years.length||ce)&&(l.selectBoxes.years=function un(a,v,s){if(!a)return[];const l=v?Math.max(v.year,a.year-500):a.year-10,S=(s?Math.min(s.year,a.year+500):a.year+10)-l+1,k=Array(S);for(let ce=0;cek===s.month);u=u.slice(S)}if(l&&v.year===l.year){const S=u.findIndex(k=>k===l.month);u=u.slice(0,S+1)}return u}(this._calendar,l.firstDate,l.minDate,l.maxDate))):l.selectBoxes={years:[],months:[]},("arrows"===l.navigation||"select"===l.navigation)&&(we||ce||"minDate"in s||"maxDate"in s||"disabled"in s)&&(l.prevDisabled=l.disabled||function xn(a,v,s){const l=Object.assign(a.getPrev(v,"m"),{day:1});return null!=s&&(l.year===s.year&&l.month{class a{constructor(s){this.i18n=s}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(Vo))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(l,u){2&l&&r.AVh("bg-primary",u.selected)("text-white",u.selected)("text-muted",u.isMuted())("outside",u.isMuted())("active",u.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[r.aNF],attrs:ls,decls:1,vars:1,template:function(l,u){1&l&&r.EFF(0),2&l&&r.JRh(u.i18n.getDayNumerals(u.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0})}}return a})(),Wd=(()=>{class a{constructor(s,l){this.i18n=s,this._renderer=l,this.select=new r.bkB,this._month=-1,this._year=-1}changeMonth(s){this.select.emit(new p(this.date.year,kt(s),1))}changeYear(s){this.select.emit(new p(kt(s),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(Vo),r.rXU(r.sFG))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(l,u){if(1&l&&(r.GBs(kr,7,r.aKT),r.GBs(Zi,7,r.aKT)),2&l){let S;r.mGM(S=r.lsd())&&(u.monthSelect=S.first),r.mGM(S=r.lsd())&&(u.yearSelect=S.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[r.aNF],decls:6,vars:4,consts:function(){let s,l,u,S;return s=$localize`:@@ngb.datepicker.select-month:Select month`,l=$localize`:@@ngb.datepicker.select-month:Select month`,u=$localize`:@@ngb.datepicker.select-year:Select year`,S=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",s,"title",l,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",u,"title",S,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(l,u){1&l&&(r.j41(0,"select",0,1),r.bIt("change",function(k){return u.changeMonth(k.target.value)}),r.DNE(2,ri,2,3,"option",2),r.k0s(),r.j41(3,"select",3,4),r.bIt("change",function(k){return u.changeYear(k.target.value)}),r.DNE(5,Jr,2,2,"option",2),r.k0s()),2&l&&(r.Y8G("disabled",u.disabled),r.R7$(2),r.Y8G("ngForOf",u.months),r.R7$(1),r.Y8G("disabled",u.disabled),r.R7$(2),r.Y8G("ngForOf",u.years))},dependencies:[ct.pM],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0})}}return a})(),zd=(()=>{class a{constructor(s){this.i18n=s,this.navigation=_i,this.months=[],this.navigate=new r.bkB,this.select=new r.bkB}onClickPrev(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(Vo))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[r.aNF],decls:8,vars:4,consts:function(){let s,l,u,S;return s=$localize`:@@ngb.datepicker.previous-month:Previous month`,l=$localize`:@@ngb.datepicker.previous-month:Previous month`,u=$localize`:@@ngb.datepicker.next-month:Next month`,S=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",s,"title",l,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",u,"title",S,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"],[1,"ngb-dp-arrow"]]},template:function(l,u){1&l&&(r.j41(0,"div",0)(1,"button",1),r.bIt("click",function(k){return u.onClickPrev(k)}),r.nrm(2,"span",2),r.k0s()(),r.DNE(3,hr,1,4,"ngb-datepicker-navigation-select",3),r.DNE(4,on,1,1,null,4),r.j41(5,"div",5)(6,"button",6),r.bIt("click",function(k){return u.onClickNext(k)}),r.nrm(7,"span",2),r.k0s()()),2&l&&(r.R7$(1),r.Y8G("disabled",u.prevDisabled),r.R7$(2),r.Y8G("ngIf",u.showSelect),r.R7$(1),r.Y8G("ngIf",!u.showSelect),r.R7$(2),r.Y8G("disabled",u.nextDisabled))},dependencies:[ct.bT,ct.pM,Wd],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0})}}return a})();var Jn=function(a){return a[a.Tab=9]="Tab",a[a.Enter=13]="Enter",a[a.Escape=27]="Escape",a[a.Space=32]="Space",a[a.PageUp=33]="PageUp",a[a.PageDown=34]="PageDown",a[a.End=35]="End",a[a.Home=36]="Home",a[a.ArrowLeft=37]="ArrowLeft",a[a.ArrowUp=38]="ArrowUp",a[a.ArrowRight=39]="ArrowRight",a[a.ArrowDown=40]="ArrowDown",a}(Jn||{});let hu=(()=>{class a{processKey(s,l){const{state:u,calendar:S}=l;switch(s.which){case Jn.PageUp:l.focusDate(S.getPrev(u.focusedDate,s.shiftKey?"y":"m",1));break;case Jn.PageDown:l.focusDate(S.getNext(u.focusedDate,s.shiftKey?"y":"m",1));break;case Jn.End:l.focusDate(s.shiftKey?u.maxDate:u.lastDate);break;case Jn.Home:l.focusDate(s.shiftKey?u.minDate:u.firstDate);break;case Jn.ArrowLeft:l.focusDate(S.getPrev(u.focusedDate,"d",1));break;case Jn.ArrowUp:l.focusDate(S.getPrev(u.focusedDate,"d",S.getDaysPerWeek()));break;case Jn.ArrowRight:l.focusDate(S.getNext(u.focusedDate,"d",1));break;case Jn.ArrowDown:l.focusDate(S.getNext(u.focusedDate,"d",S.getDaysPerWeek()));break;case Jn.Enter:case Jn.Space:l.focusSelect();break;default:return}s.preventDefault(),s.stopPropagation()}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),rl=(()=>{class a{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=ct.cH.Short}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),Bs=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275prov=r.jDH({token:a,factory:function(){return function sl(){return new Kd}()},providedIn:"root"})}}return a})(),Kd=(()=>{class a extends Bs{fromModel(s){return s&&_n(s.year)&&_n(s.month)&&_n(s.day)?{year:s.year,month:s.month,day:s.day}:null}toModel(s){return s&&_n(s.year)&&_n(s.month)&&_n(s.day)?{year:s.year,month:s.month,day:s.day}:null}static{this.\u0275fac=function(){let s;return function(u){return(s||(s=r.xGo(a)))(u||a)}}()}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac})}}return a})(),Ta=(()=>{class a{constructor(s){this.templateRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0})}}return a})(),Ma=(()=>{class a{set month(s){this.viewModel=this._service.getMonth(s)}constructor(s,l,u,S){this.i18n=s,this.datepicker=l,this._keyboardService=u,this._service=S}onKeyDown(s){this._keyboardService.processKey(s,this.datepicker)}doSelect(s){!s.context.disabled&&!s.hidden&&this.datepicker.onDateSelect(s.date)}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(Vo),r.rXU((0,r.Rfq)(()=>Ho)),r.rXU(hu),r.rXU(Qs))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(l,u){1&l&&r.bIt("keydown",function(k){return u.onKeyDown(k)})},inputs:{month:"month"},standalone:!0,features:[r.aNF],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(l,u){1&l&&(r.DNE(0,$s,3,2,"div",0),r.DNE(1,Ms,1,1,"ng-template",1)),2&l&&(r.Y8G("ngIf",u.viewModel.weekdays.length>0),r.R7$(1),r.Y8G("ngForOf",u.viewModel.weeks))},dependencies:[ct.bT,ct.pM,ct.T3],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2})}}return a})(),Ho=(()=>{class a{constructor(s,l,u,S,k,ce,we,Xe){this._service=s,this._calendar=l,this._i18n=u,this._elementRef=ce,this._ngbDateAdapter=we,this._ngZone=Xe,this.injector=(0,r.WQX)(r.zZn),this._controlValue=null,this._destroyed$=new Q.B,this._publicState={},this.navigate=new r.bkB,this.dateSelect=new r.bkB,this.onChange=ze=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(ze=>this[ze]=S[ze]),s.dateSelect$.pipe((0,Ye.Q)(this._destroyed$)).subscribe(ze=>{this.dateSelect.emit(ze)}),s.model$.pipe((0,Ye.Q)(this._destroyed$)).subscribe(ze=>{const Et=ze.firstDate,vt=this.model?this.model.firstDate:null;this._publicState={maxDate:ze.maxDate,minDate:ze.minDate,firstDate:ze.firstDate,lastDate:ze.lastDate,focusedDate:ze.focusDate,months:ze.months.map(Pn=>Pn.firstDate)};let wt=!1;if(!Et.equals(vt)&&(this.navigate.emit({current:vt?{year:vt.year,month:vt.month}:null,next:{year:Et.year,month:Et.month},preventDefault:()=>wt=!0}),wt&&null!==vt))return void this._service.open(vt);const hn=ze.selectedDate,Dn=ze.focusDate,Qt=this.model?this.model.focusDate:null;this.model=ze,D(hn,this._controlValue)&&(this._controlValue=hn,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(hn))),D(Dn,Qt)&&Qt&&ze.focusVisible&&this.focus(),k.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(s){this._service.focus(p.from(s))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe((0,De.s)(1)).subscribe(()=>{const s=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');s&&s.focus()})}navigateTo(s){this._service.open(p.from(s?s.day?s:{...s,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const s=J(this._contentEl.nativeElement,"focusin"),l=J(this._contentEl.nativeElement,"focusout"),{nativeElement:u}=this._elementRef;(0,je.h)(s,l).pipe((0,ne.p)(S=>{const k=S.target,ce=S.relatedTarget;return!(k?.classList.contains("ngb-dp-day")&&ce?.classList.contains("ngb-dp-day")&&u.contains(k)&&u.contains(ce))}),(0,Ye.Q)(this._destroyed$)).subscribe(({type:S})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===S})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const s={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(l=>s[l]=this[l]),this._service.set(s),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(s){const l={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(u=>u in s).forEach(u=>l[u]=this[u]),this._service.set(l),"startDate"in s){const{currentValue:u,previousValue:S}=s.startDate;R(S,u)&&this.navigateTo(this.startDate)}}onDateSelect(s){this._service.focus(s),this._service.select(s,{emitEvent:!0})}onNavigateDateSelect(s){this._service.open(s)}onNavigateEvent(s){switch(s){case _i.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case _i.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this._service.set({disabled:s})}writeValue(s){this._controlValue=p.from(this._ngbDateAdapter.fromModel(s)),this._service.select(this._controlValue)}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(Qs),r.rXU(ta),r.rXU(Vo),r.rXU(rl),r.rXU(r.gRc),r.rXU(r.aKT),r.rXU(Bs),r.rXU(r.SKi))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-datepicker"]],contentQueries:function(l,u,S){if(1&l&&r.wni(S,Ta,7),2&l){let k;r.mGM(k=r.lsd())&&(u.contentTemplateFromContent=k.first)}},viewQuery:function(l,u){if(1&l&&(r.GBs(gi,7),r.GBs(Ii,7)),2&l){let S;r.mGM(S=r.lsd())&&(u._defaultDayTemplate=S.first),r.mGM(S=r.lsd())&&(u._contentEl=S.first)}},hostVars:2,hostBindings:function(l,u){2&l&&r.AVh("disabled",u.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[r.Jv_([{provide:ft.kq,useExisting:(0,r.Rfq)(()=>a),multi:!0},Qs]),r.OA$,r.aNF],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(l,u){if(1&l&&(r.DNE(0,Ss,1,5,"ng-template",null,0,r.C5r),r.DNE(2,sr,1,1,"ng-template",null,1,r.C5r),r.j41(4,"div",2),r.DNE(5,cs,1,7,"ngb-datepicker-navigation",3),r.k0s(),r.j41(6,"div",4,5),r.DNE(8,x,0,0,"ng-template",6),r.k0s(),r.DNE(9,L,0,0,"ng-template",7)),2&l){const S=r.sdS(3);r.R7$(5),r.Y8G("ngIf","none"!==u.navigation),r.R7$(1),r.AVh("ngb-dp-months",!u.contentTemplate),r.R7$(2),r.Y8G("ngTemplateOutlet",u.contentTemplate||(null==u.contentTemplateFromContent?null:u.contentTemplateFromContent.templateRef)||S)("ngTemplateOutletContext",r.eq3(7,C,u))("ngTemplateOutletInjector",u.injector),r.R7$(1),r.Y8G("ngTemplateOutlet",u.footerTemplate)}},dependencies:[ct.bT,ct.pM,ct.T3,du,Ma,zd],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0})}}return a})();const na=(a,v)=>!!v&&v.some(s=>s.contains(a)),lc=(a,v)=>!v||null!=function ar(a,v){return!v||typeof a.closest>"u"?null:a.closest(v)}(a,v),fu=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function po(a,v,s,l,u,S,k,ce){s&&a.runOutsideAngular((a=>fu?()=>setTimeout(()=>a(),100):a)(()=>{const Xe=J(v,"keydown").pipe((0,Ye.Q)(u),(0,ne.p)(vt=>vt.which===Jn.Escape),(0,$e.M)(vt=>vt.preventDefault())),ze=J(v,"mousedown").pipe((0,mt.T)(vt=>{const wt=vt.target;return 2!==vt.button&&!na(wt,k)&&("inside"===s?na(wt,S)&&lc(wt,ce):"outside"===s?!na(wt,S):lc(wt,ce)||!na(wt,S))}),(0,Ye.Q)(u)),Et=J(v,"mouseup").pipe(Oe(ze),(0,ne.p)(([vt,wt])=>wt),(0,de.c)(0),(0,Ye.Q)(u));et([Xe.pipe((0,mt.T)(vt=>0)),Et.pipe((0,mt.T)(vt=>1))]).subscribe(vt=>a.run(()=>l(vt)))}))}const ia=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function cc(a){const v=Array.from(a.querySelectorAll(ia)).filter(s=>-1!==s.tabIndex);return[v[0],v[v.length-1]]}const pu=(a,v,s,l=!1)=>{a.runOutsideAngular(()=>{const u=J(v,"focusin").pipe((0,Ye.Q)(s),(0,mt.T)(S=>S.target));J(v,"keydown").pipe((0,Ye.Q)(s),(0,ne.p)(S=>S.which===Jn.Tab),Oe(u)).subscribe(([S,k])=>{const[ce,we]=cc(v);(k===ce||k===v)&&S.shiftKey&&(we.focus(),S.preventDefault()),k===we&&!S.shiftKey&&(ce.focus(),S.preventDefault())}),l&&J(v,"click").pipe((0,Ye.Q)(s),Oe(u),(0,mt.T)(S=>S[1])).subscribe(S=>S.focus())})};let uc=(()=>{class a{constructor(s){this._element=s.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(ct.qQ))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();const jp=/\s+/,Qd=/ +/gi,Yd={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},Gp=/^left/,dc=/^right/,Sa=/^start/,Zd=/^end/;function ol({placement:a,baseClass:v},s){let l=Array.isArray(a)?a:a.split(jp),S=l.findIndex(Xe=>"auto"===Xe);S>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(Xe){null==l.find(ze=>-1!==ze.search("^"+Xe))&&l.splice(S++,1,Xe)});const k=l.map(Xe=>function $p(a,v){const[s,l]=Yd[a];return v&&l||s}(Xe,s.isRTL()));return{placement:k.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!v,phase:"write",fn({state:Xe}){const ze=new RegExp(v+"(-[a-z]+)*","gi"),Et=Xe.elements.popper,vt=Xe.placement;let wt=Et.className;wt=wt.replace(ze,""),wt+=` ${function Ia(a,v){let[s,l]=v.split("-");const u=s.replace(Gp,"start").replace(dc,"end");let S=[u];if(l){let k=l;("left"===s||"right"===s)&&(k=k.replace(Sa,"top").replace(Zd,"bottom")),S.push(`${u}-${k}`)}return a&&(S=S.map(k=>`${a}-${k}`)),S.join(" ")}(v,vt)}`,wt=wt.trim().replace(Qd," "),Et.className=wt}},Si,Us,js,{enabled:!0,name:"flip",options:{fallbackPlacements:k}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Oa(a){return a}function gu(){const a=(0,r.WQX)(uc);let v=null;return{createPopper(s){if(!v){let u=(s.updatePopperOptions||Oa)(ol(s,a));v=Yr(s.hostElement,s.targetElement,u)}},update(){v&&v.update()},setOptions(s){if(v){let u=(s.updatePopperOptions||Oa)(ol(s,a));v.setOptions(u)}},destroy(){v&&(v.destroy(),v=null)}}}let hc=(()=>{class a extends rl{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s,this.restoreFocus=!0}static{this.\u0275fac=function(){let s;return function(u){return(s||(s=r.xGo(a)))(u||a)}}()}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();function fc(a){return v=>(v.modifiers.push(Ot,{name:"offset",options:{offset:()=>a}}),v)}let Rs=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275prov=r.jDH({token:a,factory:function(){return function Jd(){return new qd}()},providedIn:"root"})}}return a})(),qd=(()=>{class a extends Rs{parse(s){if(null!=s){const l=s.trim().split("-");if(1===l.length&&sn(l[0]))return{year:kt(l[0]),month:null,day:null};if(2===l.length&&sn(l[0])&&sn(l[1]))return{year:kt(l[0]),month:kt(l[1]),day:null};if(3===l.length&&sn(l[0])&&sn(l[1])&&sn(l[2]))return{year:kt(l[0]),month:kt(l[1]),day:kt(l[2])}}return null}format(s){return s?`${s.year}-${sn(s.month)?mi(s.month):""}-${sn(s.day)?mi(s.day):""}`:""}static{this.\u0275fac=function(){let s;return function(u){return(s||(s=r.xGo(a)))(u||a)}}()}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac})}}return a})(),Aa=(()=>{class a{get disabled(){return this._disabled}set disabled(s){this._disabled=""===s||s&&"false"!==s,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}constructor(s,l,u,S,k,ce,we,Xe,ze,Et){this._parserFormatter=s,this._elRef=l,this._vcRef=u,this._renderer=S,this._ngZone=k,this._calendar=ce,this._dateAdapter=we,this._document=Xe,this._changeDetector=ze,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._destroyCloseHandlers$=new Q.B,this.dateSelect=new r.bkB,this.navigate=new r.bkB,this.closed=new r.bkB,this._onChange=vt=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement","popperOptions"].forEach(vt=>this[vt]=Et[vt]),this._positioning=gu()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}registerOnValidatorChange(s){this._validatorChange=s}setDisabledState(s){this.disabled=s}validate(s){const{value:l}=s;if(null!=l){const u=this._fromDateStruct(this._dateAdapter.fromModel(l));if(!u)return{ngbDate:{invalid:l}};if(this.minDate&&u.before(p.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:l}}};if(this.maxDate&&u.after(p.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:l}}}}return null}writeValue(s){this._model=this._fromDateStruct(this._dateAdapter.fromModel(s)),this._writeModelValue(this._model)}manualDateChange(s,l=!1){const u=s!==this._inputValue;u&&(this._inputValue=s,this._model=this._fromDateStruct(this._parserFormatter.parse(s))),(u||!l)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===s?null:s),l&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){let s;if(this._cRef=this._vcRef.createComponent(Ho),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(l=>{this.writeValue(l),this._onChange(l),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,pu(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus()),s=ln(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this._ngZone.runOutsideAngular(()=>{this._cRef&&(this._positioning.createPopper({hostElement:s,targetElement:this._cRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:l=>this.popperOptions(fc([0,2])(l))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),this.positionTarget&&!s)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._setCloseHandlers()}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let s=this._elWithFocus;ln(this.restoreFocus)?s=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(s=this.restoreFocus),s&&s.focus?s.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(s){this.isOpen()&&this._cRef.instance.navigateTo(s)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(s){if((s.minDate||s.maxDate)&&(this._validatorChange(),this.isOpen()&&(s.minDate&&(this._cRef.instance.minDate=this.minDate),s.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(s))),s.datepickerClass){const{currentValue:l,previousValue:u}=s.datepickerClass;this._applyPopupClass(l,u)}s.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(s){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(l=>{void 0!==this[l]&&s.setInput(l,this[l])}),s.setInput("startDate",this.startDate||this._model)}_applyPopupClass(s,l){const u=this._cRef?.location.nativeElement;u&&(s&&this._renderer.addClass(u,s),l&&this._renderer.removeClass(u,l))}_applyPopupStyling(s){this._renderer.addClass(s,"dropdown-menu"),this._renderer.addClass(s,"show"),"body"===this.container&&this._renderer.addClass(s,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(s){s.navigate.subscribe(l=>this.navigate.emit(l)),s.dateSelect.subscribe(l=>{this.dateSelect.emit(l),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(s){const l=this._parserFormatter.format(s);this._inputValue=l,this._renderer.setProperty(this._elRef.nativeElement,"value",l),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(s)),this._onTouched())}_fromDateStruct(s){const l=s?new p(s.year,s.month,s.day):null;return this._calendar.isValid(l)?l:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),po(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(Rs),r.rXU(r.aKT),r.rXU(r.c1b),r.rXU(r.sFG),r.rXU(r.SKi),r.rXU(ta),r.rXU(Bs),r.rXU(ct.qQ),r.rXU(r.gRc),r.rXU(hc))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(l,u){1&l&&r.bIt("input",function(k){return u.manualDateChange(k.target.value)})("change",function(k){return u.manualDateChange(k.target.value,!0)})("focus",function(){return u.onFocus()})("blur",function(){return u.onBlur()}),2&l&&r.Mr5("disabled",u.disabled)},inputs:{autoClose:"autoClose",contentTemplate:"contentTemplate",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],standalone:!0,features:[r.Jv_([{provide:ft.kq,useExisting:(0,r.Rfq)(()=>a),multi:!0},{provide:ft.cz,useExisting:(0,r.Rfq)(()=>a),multi:!0},{provide:rl,useExisting:hc}]),r.OA$]})}}return a})();new Date(1882,10,12),new Date(2174,10,25);let yc=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),uh=(()=>{class a{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),Fa=(()=>{class a{set disabled(s){this._disabled=""===s||!0===s,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}constructor(s,l){this.elementRef=s,this._renderer=l,this._disabled=!1}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.aKT),r.rXU(r.sFG))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(l,u){2&l&&(r.Mr5("tabIndex",u.disabled?-1:0),r.AVh("disabled",u.disabled))},inputs:{disabled:"disabled"},standalone:!0})}}return a})(),sa=(()=>{class a{constructor(s,l){this.dropdown=s,this.placement="bottom",this.isOpen=!1,this.nativeElement=l.nativeElement}static{this.\u0275fac=function(l){return new(l||a)(r.rXU((0,r.Rfq)(()=>La)),r.rXU(r.aKT))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(l,u,S){if(1&l&&r.wni(S,Fa,4),2&l){let k;r.mGM(k=r.lsd())&&(u.menuItems=k)}},hostVars:4,hostBindings:function(l,u){1&l&&r.bIt("keydown.ArrowUp",function(k){return u.dropdown.onKeyDown(k)})("keydown.ArrowDown",function(k){return u.dropdown.onKeyDown(k)})("keydown.Home",function(k){return u.dropdown.onKeyDown(k)})("keydown.End",function(k){return u.dropdown.onKeyDown(k)})("keydown.Enter",function(k){return u.dropdown.onKeyDown(k)})("keydown.Space",function(k){return u.dropdown.onKeyDown(k)})("keydown.Tab",function(k){return u.dropdown.onKeyDown(k)})("keydown.Shift.Tab",function(k){return u.dropdown.onKeyDown(k)}),2&l&&r.AVh("dropdown-menu",!0)("show",u.dropdown.isOpen())},standalone:!0})}}return a})(),ul=(()=>{class a{constructor(s,l){this.dropdown=s,this.nativeElement=l.nativeElement}static{this.\u0275fac=function(l){return new(l||a)(r.rXU((0,r.Rfq)(()=>La)),r.rXU(r.aKT))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(l,u){2&l&&r.BMQ("aria-expanded",u.dropdown.isOpen())},standalone:!0})}}return a})(),ka=(()=>{class a extends ul{constructor(s,l){super(s,l)}static{this.\u0275fac=function(l){return new(l||a)(r.rXU((0,r.Rfq)(()=>La)),r.rXU(r.aKT))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(l,u){1&l&&r.bIt("click",function(){return u.dropdown.toggle()})("keydown.ArrowUp",function(k){return u.dropdown.onKeyDown(k)})("keydown.ArrowDown",function(k){return u.dropdown.onKeyDown(k)})("keydown.Home",function(k){return u.dropdown.onKeyDown(k)})("keydown.End",function(k){return u.dropdown.onKeyDown(k)})("keydown.Tab",function(k){return u.dropdown.onKeyDown(k)})("keydown.Shift.Tab",function(k){return u.dropdown.onKeyDown(k)}),2&l&&r.BMQ("aria-expanded",u.dropdown.isOpen())},standalone:!0,features:[r.Jv_([{provide:ul,useExisting:(0,r.Rfq)(()=>a)}]),r.Vt3]})}}return a})(),La=(()=>{class a{constructor(s,l,u,S,k,ce){this._changeDetector=s,this._document=u,this._ngZone=S,this._elementRef=k,this._renderer=ce,this._destroyCloseHandlers$=new Q.B,this._bodyContainer=null,this._open=!1,this.openChange=new r.bkB,this.placement=l.placement,this.popperOptions=l.popperOptions,this.container=l.container,this.autoClose=l.autoClose,this._positioning=gu()}ngOnInit(){this.display||(this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe((0,De.s)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(s){if(s.container&&this._open&&this._applyContainer(this.container),s.placement&&!s.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),s.dropdownClass){const{currentValue:l,previousValue:u}=s.dropdownClass;this._applyCustomDropdownClass(l,u)}s.autoClose&&this._open&&(this.autoClose=s.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:s=>this.popperOptions(fc([0,2])(s))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),po(this._ngZone,this._document,this.autoClose,s=>{this.close(),0===s&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(s){const l=s.which,u=this._getMenuElements();let S=-1,k=null;const ce=this._isEventFromToggle(s);if(!ce&&u.length&&u.forEach((we,Xe)=>{we.contains(s.target)&&(k=we),we===Rt(this._document)&&(S=Xe)}),l!==Jn.Space&&l!==Jn.Enter){if(l!==Jn.Tab){if(ce||k){if(this.open(),u.length){switch(l){case Jn.ArrowDown:S=Math.min(S+1,u.length-1);break;case Jn.ArrowUp:if(this._isDropup()&&-1===S){S=u.length-1;break}S=Math.max(S-1,0);break;case Jn.Home:S=0;break;case Jn.End:S=u.length-1}u[S].focus()}s.preventDefault()}}else if(s.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===s.target)return void("body"!==this.container||s.shiftKey?s.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const we=this._menu.nativeElement.querySelectorAll(ia);s.shiftKey&&s.target===we[0]?(this._anchor.nativeElement.focus(),s.preventDefault()):!s.shiftKey&&s.target===we[we.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else J(s.target,"focusout").pipe((0,De.s)(1)).subscribe(({relatedTarget:we})=>{this._elementRef.nativeElement.contains(we)||this.close()})}}else k&&(!0===this.autoClose||"inside"===this.autoClose)&&J(k,"click").pipe((0,De.s)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(s){return this._anchor.nativeElement.contains(s.target)}_getMenuElements(){const s=this._menu;return null==s?[]:s.menuItems.filter(l=>!l.disabled).map(l=>l.elementRef.nativeElement)}_positionMenu(){const s=this._menu;this.isOpen()&&s&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(s){return Array.isArray(s)?s[0]:s.split(" ")[0]}_resetContainer(){const s=this._renderer;this._menu&&s.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(s.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(s=null){if(this._resetContainer(),"body"===s){const l=this._renderer,u=this._menu.nativeElement,S=this._bodyContainer=this._bodyContainer||l.createElement("div");l.setStyle(S,"position","absolute"),l.setStyle(u,"position","static"),l.setStyle(S,"z-index","1055"),l.appendChild(S,u),l.appendChild(this._document.body,S)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(s,l){const u="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;u&&(l&&this._renderer.removeClass(u,l),s&&this._renderer.addClass(u,s))}_applyPlacementClasses(s){const l=this._menu;if(l){s||(s=this._getFirstPlacement(this.placement));const u=this._renderer,S=this._elementRef.nativeElement;u.removeClass(S,"dropup"),u.removeClass(S,"dropdown");const{nativeElement:k}=l;"static"===this.display?(l.placement=null,u.setAttribute(k,"data-bs-popper","static")):(l.placement=s,u.removeAttribute(k,"data-bs-popper"));const ce=-1!==s.search("^top")?"dropup":"dropdown";u.addClass(S,ce);const we=this._bodyContainer;we&&(u.removeClass(we,"dropup"),u.removeClass(we,"dropdown"),u.addClass(we,ce))}}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.gRc),r.rXU(uh),r.rXU(ct.qQ),r.rXU(r.SKi),r.rXU(r.aKT),r.rXU(r.sFG))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbDropdown",""]],contentQueries:function(l,u,S){if(1&l&&(r.wni(S,sa,5),r.wni(S,ul,5)),2&l){let k;r.mGM(k=r.lsd())&&(u._menu=k.first),r.mGM(k=r.lsd())&&(u._anchor=k.first)}},hostVars:2,hostBindings:function(l,u){2&l&&r.AVh("show",u.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[r.OA$]})}}return a})(),Dc=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})();class ps{constructor(v,s,l){this.nodes=v,this.viewRef=s,this.componentRef=l}}class Ec{constructor(v,s,l,u,S,k){this._componentType=v,this._injector=s,this._viewContainerRef=l,this._renderer=u,this._ngZone=S,this._applicationRef=k,this._windowRef=null,this._contentRef=null}open(v,s,l=!1){this._windowRef||(this._contentRef=this._getContentRef(v,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:u}=this._windowRef.location,S=this._ngZone.onStable.pipe((0,De.s)(1),(0,le.Z)(()=>cn(this._ngZone,u,({classList:k})=>k.add("show"),{animation:l,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:S}}close(v=!1){return this._windowRef?cn(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:v,runningTransition:"stop"}).pipe((0,$e.M)(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,oe.of)(void 0)}_getContentRef(v,s){if(v){if(v instanceof r.C4Q){const l=v.createEmbeddedView(s);return this._applicationRef.attachView(l),new ps([l.rootNodes],l)}return new ps([[this._renderer.createText(`${v}`)]])}return new ps([])}}let dl=(()=>{class a{constructor(s,l){this._el=s,this._zone=l}ngOnInit(){this._zone.onStable.asObservable().pipe((0,De.s)(1)).subscribe(()=>{cn(this._zone,this._el.nativeElement,(s,l)=>{l&&Ei(s),s.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return cn(this._zone,this._el.nativeElement,({classList:s})=>s.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.aKT),r.rXU(r.SKi))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(l,u){2&l&&(r.HbH("modal-backdrop"+(u.backdropClass?" "+u.backdropClass:"")),r.AVh("show",!u.animation)("fade",u.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[r.aNF],decls:0,vars:0,template:function(l,u){},encapsulation:2})}}return a})();class hl{update(v){}close(v){}dismiss(v){}}const dh=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],hh=["animation","backdropClass"];class oa{_applyWindowOptions(v,s){dh.forEach(l=>{Rn(s[l])&&(v[l]=s[l])})}_applyBackdropOptions(v,s){hh.forEach(l=>{Rn(s[l])&&(v[l]=s[l])})}update(v){this._applyWindowOptions(this._windowCmptRef.instance,v),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,v)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,Ye.Q)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,Ye.Q)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(v,s,l,u){this._windowCmptRef=v,this._contentRef=s,this._backdropCmptRef=l,this._beforeDismiss=u,this._closed=new Q.B,this._dismissed=new Q.B,this._hidden=new Q.B,v.instance.dismissEvent.subscribe(S=>{this.dismiss(S)}),this.result=new Promise((S,k)=>{this._resolve=S,this._reject=k}),this.result.then(null,()=>{})}close(v){this._windowCmptRef&&(this._closed.next(v),this._resolve(v),this._removeModalElements())}_dismiss(v){this._dismissed.next(v),this._reject(v),this._removeModalElements()}dismiss(v){if(this._windowCmptRef)if(this._beforeDismiss){const s=this._beforeDismiss();Ri(s)?s.then(l=>{!1!==l&&this._dismiss(v)},()=>{}):!1!==s&&this._dismiss(v)}else this._dismiss(v)}_removeModalElements(){const v=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,oe.of)(void 0);v.subscribe(()=>{const{nativeElement:l}=this._windowCmptRef.location;l.parentNode.removeChild(l),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:l}=this._backdropCmptRef.location;l.parentNode.removeChild(l),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ve(v,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var yo=function(a){return a[a.BACKDROP_CLICK=0]="BACKDROP_CLICK",a[a.ESC=1]="ESC",a}(yo||{});let fh=(()=>{class a{constructor(s,l,u){this._document=s,this._elRef=l,this._zone=u,this._closed$=new Q.B,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new r.bkB,this.shown=new Q.B,this.hidden=new Q.B}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":ln(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(s){this.dismissEvent.emit(s)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,De.s)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:s}=this._elRef,l={animation:this.animation,runningTransition:"stop"},k=Ve(cn(this._zone,s,()=>s.classList.remove("show"),l),cn(this._zone,this._dialogEl.nativeElement,()=>{},l));return k.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),k}_show(){const s={animation:this.animation,runningTransition:"continue"};Ve(cn(this._zone,this._elRef.nativeElement,(S,k)=>{k&&Ei(S),S.classList.add("show")},s),cn(this._zone,this._dialogEl.nativeElement,()=>{},s)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:s}=this._elRef;this._zone.runOutsideAngular(()=>{J(s,"keydown").pipe((0,Ye.Q)(this._closed$),(0,ne.p)(u=>u.which===Jn.Escape)).subscribe(u=>{this.keyboard?requestAnimationFrame(()=>{u.defaultPrevented||this._zone.run(()=>this.dismiss(yo.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let l=!1;J(this._dialogEl.nativeElement,"mousedown").pipe((0,Ye.Q)(this._closed$),(0,$e.M)(()=>l=!1),(0,xe.n)(()=>J(s,"mouseup").pipe((0,Ye.Q)(this._closed$),(0,De.s)(1))),(0,ne.p)(({target:u})=>s===u)).subscribe(()=>{l=!0}),J(s,"click").pipe((0,Ye.Q)(this._closed$)).subscribe(({target:u})=>{s===u&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!l&&this._zone.run(()=>this.dismiss(yo.BACKDROP_CLICK))),l=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:s}=this._elRef;if(!s.contains(document.activeElement)){const l=s.querySelector("[ngbAutofocus]"),u=cc(s)[0];(l||u||s).focus()}}_restoreFocus(){const s=this._document.body,l=this._elWithFocus;let u;u=l&&l.focus&&s.contains(l)?l:s,this._zone.runOutsideAngular(()=>{setTimeout(()=>u.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&cn(this._zone,this._elRef.nativeElement,({classList:s})=>(s.add("modal-static"),()=>s.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(ct.qQ),r.rXU(r.aKT),r.rXU(r.SKi))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-modal-window"]],viewQuery:function(l,u){if(1&l&&r.GBs(j,7),2&l){let S;r.mGM(S=r.lsd())&&(u._dialogEl=S.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(l,u){2&l&&(r.BMQ("aria-modal",!0)("aria-labelledby",u.ariaLabelledBy)("aria-describedby",u.ariaDescribedBy),r.HbH("modal d-block"+(u.windowClass?" "+u.windowClass:"")),r.AVh("fade",u.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[r.aNF],ngContentSelectors:ir,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(l,u){1&l&&(r.NAR(),r.j41(0,"div",0,1)(2,"div",2),r.SdG(3),r.k0s()()),2&l&&r.HbH("modal-dialog"+(u.size?" modal-"+u.size:"")+(u.centered?" modal-dialog-centered":"")+u.fullscreenClass+(u.scrollable?" modal-dialog-scrollable":"")+(u.modalDialogClass?" "+u.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}}return a})(),ph=(()=>{class a{constructor(s){this._document=s}hide(){const s=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),l=this._document.body,u=l.style,{overflow:S,paddingRight:k}=u;if(s>0){const ce=parseFloat(window.getComputedStyle(l).paddingRight);u.paddingRight=`${ce+s}px`}return u.overflow="hidden",()=>{s>0&&(u.paddingRight=k),u.overflow=S}}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(ct.qQ))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),Eu=(()=>{class a{constructor(s,l,u,S,k,ce,we){this._applicationRef=s,this._injector=l,this._environmentInjector=u,this._document=S,this._scrollBar=k,this._rendererFactory=ce,this._ngZone=we,this._activeWindowCmptHasChanged=new Q.B,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new r.bkB,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const Xe=this._windowCmpts[this._windowCmpts.length-1];pu(this._ngZone,Xe.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(Xe.location.nativeElement)}})}_restoreScrollBar(){const s=this._scrollBarRestoreFn;s&&(this._scrollBarRestoreFn=null,s())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(s,l,u){const S=u.container instanceof HTMLElement?u.container:Rn(u.container)?this._document.querySelector(u.container):this._document.body,k=this._rendererFactory.createRenderer(null,null);if(!S)throw new Error(`The specified modal container "${u.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const ce=new hl,we=(s=u.injector||s).get(r.uvJ,null)||this._environmentInjector,Xe=this._getContentRef(s,we,l,ce,u);let ze=!1!==u.backdrop?this._attachBackdrop(S):void 0,Et=this._attachWindowComponent(S,Xe.nodes),vt=new oa(Et,Xe,ze,u.beforeDismiss);return this._registerModalRef(vt),this._registerWindowCmpt(Et),vt.hidden.pipe((0,De.s)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(k.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),ce.close=wt=>{vt.close(wt)},ce.dismiss=wt=>{vt.dismiss(wt)},ce.update=wt=>{vt.update(wt)},vt.update(u),1===this._modalRefs.length&&k.addClass(this._document.body,"modal-open"),ze&&ze.instance&&ze.changeDetectorRef.detectChanges(),Et.changeDetectorRef.detectChanges(),vt}get activeInstances(){return this._activeInstances}dismissAll(s){this._modalRefs.forEach(l=>l.dismiss(s))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(s){let l=(0,r.a0P)(dl,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(l.hostView),s.appendChild(l.location.nativeElement),l}_attachWindowComponent(s,l){let u=(0,r.a0P)(fh,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:l});return this._applicationRef.attachView(u.hostView),s.appendChild(u.location.nativeElement),u}_getContentRef(s,l,u,S,k){return u?u instanceof r.C4Q?this._createFromTemplateRef(u,S):ln(u)?this._createFromString(u):this._createFromComponent(s,l,u,S,k):new ps([])}_createFromTemplateRef(s,l){const S=s.createEmbeddedView({$implicit:l,close(k){l.close(k)},dismiss(k){l.dismiss(k)}});return this._applicationRef.attachView(S),new ps([S.rootNodes],S)}_createFromString(s){const l=this._document.createTextNode(`${s}`);return new ps([[l]])}_createFromComponent(s,l,u,S,k){const ce=r.zZn.create({providers:[{provide:hl,useValue:S}],parent:s}),we=(0,r.a0P)(u,{environmentInjector:l,elementInjector:ce}),Xe=we.location.nativeElement;return k.scrollable&&Xe.classList.add("component-host-scrollable"),this._applicationRef.attachView(we.hostView),new ps([[Xe]],we.hostView,we)}_setAriaHidden(s){const l=s.parentElement;l&&s!==this._document.body&&(Array.from(l.children).forEach(u=>{u!==s&&"SCRIPT"!==u.nodeName&&(this._ariaHiddenValues.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}),this._setAriaHidden(l))}_revertAriaHidden(){this._ariaHiddenValues.forEach((s,l)=>{s?l.setAttribute("aria-hidden",s):l.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(s){const l=()=>{const u=this._modalRefs.indexOf(s);u>-1&&(this._modalRefs.splice(u,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(s),this._activeInstances.emit(this._modalRefs),s.result.then(l,l)}_registerWindowCmpt(s){this._windowCmpts.push(s),this._activeWindowCmptHasChanged.next(),s.onDestroy(()=>{const l=this._windowCmpts.indexOf(s);l>-1&&(this._windowCmpts.splice(l,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(r.o8S),r.KVO(r.zZn),r.KVO(r.uvJ),r.KVO(ct.qQ),r.KVO(ph),r.KVO(r._9s),r.KVO(r.SKi))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),wu=(()=>{class a{constructor(s){this._ngbConfig=s,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(xi))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),gh=(()=>{class a{constructor(s,l,u){this._injector=s,this._modalStack=l,this._config=u}open(s,l={}){const u={...this._config,animation:this._config.animation,...l};return this._modalStack.open(this._injector,s,u)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(s){this._modalStack.dismissAll(s)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(r.zZn),r.KVO(Eu),r.KVO(wu))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),Cu=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({providers:[gh]})}}return a})(),mh=(()=>{class a{constructor(s){this._ngbConfig=s,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(xi))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();const Tu=a=>Rn(a)&&""!==a;let fl=0,pl=(()=>{class a{constructor(s){this.templateRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["ng-template","ngbNavContent",""]],standalone:!0})}}return a})(),Mu=(()=>{class a{constructor(s,l){this.role=s,this.nav=l}static{this.\u0275fac=function(l){return new(l||a)(r.kS0("role"),r.rXU((0,r.Rfq)(()=>aa)))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbNavItem","",5,"ng-container"]],hostVars:1,hostBindings:function(l,u){2&l&&r.BMQ("role",u.role?u.role:u.nav.roles?"presentation":void 0)},standalone:!0})}}return a})(),Go=(()=>{class a{constructor(s,l){this._nav=s,this.elementRef=l,this.disabled=!1,this.shown=new r.bkB,this.hidden=new r.bkB}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Rn(this.domId)||(this.domId="ngb-nav-"+fl++)}get active(){return this._nav.activeId===this.id}get id(){return Tu(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Rn(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}static{this.\u0275fac=function(l){return new(l||a)(r.rXU((0,r.Rfq)(()=>aa)),r.rXU(r.aKT))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbNavItem",""]],contentQueries:function(l,u,S){if(1&l&&r.wni(S,pl,4),2&l){let k;r.mGM(k=r.lsd())&&(u.contentTpls=k)}},hostVars:2,hostBindings:function(l,u){2&l&&r.AVh("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0})}}return a})(),aa=(()=>{class a{constructor(s,l,u,S){this.role=s,this._cd=u,this._document=S,this.activeIdChange=new r.bkB,this.shown=new r.bkB,this.hidden=new r.bkB,this.destroy$=new Q.B,this.navItemChange$=new Q.B,this.navChange=new r.bkB,this.animation=l.animation,this.destroyOnHide=l.destroyOnHide,this.orientation=l.orientation,this.roles=l.roles,this.keyboard=l.keyboard}click(s){s.disabled||this._updateActiveId(s.id)}onKeyDown(s){if("tablist"!==this.roles||!this.keyboard)return;const l=s.which,u=this.links.filter(ce=>!ce.navItem.disabled),{length:S}=u;let k=-1;if(u.forEach((ce,we)=>{ce.elRef.nativeElement===this._document.activeElement&&(k=we)}),S){switch(l){case Jn.ArrowLeft:if("vertical"===this.orientation)return;k=(k-1+S)%S;break;case Jn.ArrowRight:if("vertical"===this.orientation)return;k=(k+1)%S;break;case Jn.ArrowDown:if("horizontal"===this.orientation)return;k=(k+1)%S;break;case Jn.ArrowUp:if("horizontal"===this.orientation)return;k=(k-1+S)%S;break;case Jn.Home:k=0;break;case Jn.End:k=S-1}"changeWithArrows"===this.keyboard&&this.select(u[k].navItem.id),u[k].elRef.nativeElement.focus(),s.preventDefault()}}select(s){this._updateActiveId(s,!1)}ngAfterContentInit(){if(!Rn(this.activeId)){const s=this.items.first?this.items.first.id:null;Tu(s)&&(this._updateActiveId(s,!1),this._cd.detectChanges())}this.items.changes.pipe((0,Ye.Q)(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:s}){s&&!s.firstChange&&this._notifyItemChanged(s.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(s,l=!0){if(this.activeId!==s){let u=!1;l&&this.navChange.emit({activeId:this.activeId,nextId:s,preventDefault:()=>{u=!0}}),u||(this.activeId=s,this.activeIdChange.emit(s),this._notifyItemChanged(s))}}_notifyItemChanged(s){this.navItemChange$.next(this._getItemById(s))}_getItemById(s){return this.items&&this.items.find(l=>l.id===s)||null}static{this.\u0275fac=function(l){return new(l||a)(r.kS0("role"),r.rXU(mh),r.rXU(r.gRc),r.rXU(ct.qQ))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbNav",""]],contentQueries:function(l,u,S){if(1&l&&(r.wni(S,Go,4),r.wni(S,la,5)),2&l){let k;r.mGM(k=r.lsd())&&(u.items=k),r.mGM(k=r.lsd())&&(u.links=k)}},hostVars:6,hostBindings:function(l,u){1&l&&r.bIt("keydown.arrowLeft",function(k){return u.onKeyDown(k)})("keydown.arrowRight",function(k){return u.onKeyDown(k)})("keydown.arrowDown",function(k){return u.onKeyDown(k)})("keydown.arrowUp",function(k){return u.onKeyDown(k)})("keydown.Home",function(k){return u.onKeyDown(k)})("keydown.End",function(k){return u.onKeyDown(k)}),2&l&&(r.BMQ("aria-orientation","vertical"===u.orientation&&"tablist"===u.roles?"vertical":void 0)("role",u.role?u.role:u.roles?"tablist":void 0),r.AVh("nav",!0)("flex-column","vertical"===u.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[r.OA$]})}}return a})(),la=(()=>{class a{constructor(s,l,u,S){this.role=s,this.navItem=l,this.nav=u,this.elRef=S}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}static{this.\u0275fac=function(l){return new(l||a)(r.kS0("role"),r.rXU(Go),r.rXU(aa),r.rXU(r.aKT))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(l,u){2&l&&(r.Mr5("id",u.navItem.domId),r.BMQ("role",u.role?u.role:u.nav.roles?"tab":void 0)("tabindex",u.navItem.disabled?-1:void 0)("aria-controls",u.navItem.isPanelInDom()?u.navItem.panelDomId:null)("aria-selected",u.navItem.active)("aria-disabled",u.navItem.disabled),r.AVh("nav-link",!0)("nav-item",u.hasNavItemClass())("active",u.navItem.active)("disabled",u.navItem.disabled))},standalone:!0})}}return a})(),_h=(()=>{class a{constructor(s,l){this.navItem=s,this.nav=l}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(Go),r.rXU(aa))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["button","ngbNavLink",""]],hostAttrs:["type","button"],hostVars:1,hostBindings:function(l,u){1&l&&r.bIt("click",function(){return u.nav.click(u.navItem)}),2&l&&r.Mr5("disabled",u.navItem.disabled)},standalone:!0,features:[r.nM4([la])]})}}return a})();const yh=({classList:a})=>(a.remove("show"),()=>a.remove("active")),wc=(a,v)=>{v&&Ei(a),a.classList.add("show")};let Su=(()=>{class a{constructor(s){this.elRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.aKT))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(l,u){2&l&&(r.Mr5("id",u.item.panelDomId),r.BMQ("role",u.role?u.role:u.nav.roles?"tabpanel":void 0)("aria-labelledby",u.item.domId),r.AVh("fade",u.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0})}}return a})(),bh=(()=>{class a{constructor(s,l){this._cd=s,this._ngZone=l,this._activePane=null}isPanelTransitioning(s){return this._activePane?.item===s}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe((0,Ye.Q)(this.nav.destroy$),(0,te.Z)(this._activePane?.item||null),(0,Te.F)(),(0,tt.i)(1)).subscribe(s=>{const l={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?cn(this._ngZone,this._activePane.elRef.nativeElement,yh,l).subscribe(()=>{const u=this._activePane?.item;this._activePane=this._getPaneForItem(s),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),cn(this._ngZone,this._activePane.elRef.nativeElement,wc,l).subscribe(()=>{s&&(s.shown.emit(),this.nav.shown.emit(s.id))})),u&&(u.hidden.emit(),this.nav.hidden.emit(u.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.elRef.nativeElement.classList.add("show"),this._activePane?.elRef.nativeElement.classList.add("active")}_getPaneForItem(s){return this._panes&&this._panes.find(l=>l.item===s)||null}_getActivePane(){return this._panes&&this._panes.find(s=>s.item.active)||null}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.gRc),r.rXU(r.SKi))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["","ngbNavOutlet",""]],viewQuery:function(l,u){if(1&l&&r.GBs(Su,5),2&l){let S;r.mGM(S=r.lsd())&&(u._panes=S)}},hostVars:2,hostBindings:function(l,u){2&l&&r.AVh("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},standalone:!0,features:[r.aNF],attrs:ie,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(l,u){1&l&&r.DNE(0,zi,1,1,"ng-template",0),2&l&&r.Y8G("ngForOf",u.nav.items)},dependencies:[Su,ct.pM,ct.bT,ct.T3],encapsulation:2,changeDetection:0})}}return a})(),Ou=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),ag=(()=>{class a{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),Dh=(()=>{class a{constructor(s){this.templateRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["ng-template","ngbPaginationEllipsis",""]],standalone:!0})}}return a})(),Eh=(()=>{class a{constructor(s){this.templateRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["ng-template","ngbPaginationFirst",""]],standalone:!0})}}return a})(),wh=(()=>{class a{constructor(s){this.templateRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["ng-template","ngbPaginationLast",""]],standalone:!0})}}return a})(),Au=(()=>{class a{constructor(s){this.templateRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["ng-template","ngbPaginationNext",""]],standalone:!0})}}return a})(),Ba=(()=>{class a{constructor(s){this.templateRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["ng-template","ngbPaginationNumber",""]],standalone:!0})}}return a})(),Va=(()=>{class a{constructor(s){this.templateRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["ng-template","ngbPaginationPrevious",""]],standalone:!0})}}return a})(),Cc=(()=>{class a{constructor(s){this.templateRef=s}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.C4Q))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["ng-template","ngbPaginationPages",""]],standalone:!0})}}return a})(),Tc=(()=>{class a{constructor(s){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new r.bkB(!0),this.disabled=s.disabled,this.boundaryLinks=s.boundaryLinks,this.directionLinks=s.directionLinks,this.ellipses=s.ellipses,this.maxSize=s.maxSize,this.pageSize=s.pageSize,this.rotate=s.rotate,this.size=s.size}hasPrevious(){return this.page>1}hasNext(){return this.page0&&(s>2?this.pages.unshift(-1):2===s&&this.pages.unshift(2),this.pages.unshift(1)),l0&&this.pageCount>this.maxSize){let l=0,u=this.pageCount;[l,u]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice(l,u),this._applyEllipses(l,u)}}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(ag))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-pagination"]],contentQueries:function(l,u,S){if(1&l&&(r.wni(S,Dh,5),r.wni(S,Eh,5),r.wni(S,wh,5),r.wni(S,Au,5),r.wni(S,Ba,5),r.wni(S,Va,5),r.wni(S,Cc,5)),2&l){let k;r.mGM(k=r.lsd())&&(u.tplEllipsis=k.first),r.mGM(k=r.lsd())&&(u.tplFirst=k.first),r.mGM(k=r.lsd())&&(u.tplLast=k.first),r.mGM(k=r.lsd())&&(u.tplNext=k.first),r.mGM(k=r.lsd())&&(u.tplNumber=k.first),r.mGM(k=r.lsd())&&(u.tplPrevious=k.first),r.mGM(k=r.lsd())&&(u.tplPages=k.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},standalone:!0,features:[r.OA$,r.aNF],decls:20,vars:12,consts:function(){let s,l,u,S,k,ce,we,Xe;return s=$localize`:@@ngb.pagination.first:««`,l=$localize`:@@ngb.pagination.previous:«`,u=$localize`:@@ngb.pagination.next:»`,S=$localize`:@@ngb.pagination.last:»»`,k=$localize`:@@ngb.pagination.first-aria:First`,ce=$localize`:@@ngb.pagination.previous-aria:Previous`,we=$localize`:@@ngb.pagination.next-aria:Next`,Xe=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],s,l,u,S,["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",k,"href","",1,"page-link",3,"click"],["aria-label",ce,"href","",1,"page-link",3,"click"],["aria-label",we,"href","",1,"page-link",3,"click"],["aria-label",Xe,"href","",1,"page-link",3,"click"]]},template:function(l,u){if(1&l&&(r.DNE(0,yr,2,0,"ng-template",null,0,r.C5r),r.DNE(2,Gs,2,0,"ng-template",null,1,r.C5r),r.DNE(4,Ja,2,0,"ng-template",null,2,r.C5r),r.DNE(6,qa,2,0,"ng-template",null,3,r.C5r),r.DNE(8,pa,1,0,"ng-template",null,4,r.C5r),r.DNE(10,Fs,1,1,"ng-template",null,5,r.C5r),r.DNE(12,Zo,1,1,"ng-template",null,6,r.C5r),r.j41(14,"ul"),r.DNE(15,Ro,3,9,"li",7),r.DNE(16,us,3,8,"li",7),r.DNE(17,qi,0,0,"ng-template",8),r.DNE(18,oo,3,9,"li",7),r.DNE(19,xo,3,9,"li",7),r.k0s()),2&l){const S=r.sdS(13);r.R7$(14),r.HbH("pagination"+(u.size?" pagination-"+u.size:"")),r.R7$(1),r.Y8G("ngIf",u.boundaryLinks),r.R7$(1),r.Y8G("ngIf",u.directionLinks),r.R7$(1),r.Y8G("ngTemplateOutlet",(null==u.tplPages?null:u.tplPages.templateRef)||S)("ngTemplateOutletContext",r.sMw(8,lo,u.page,u.pages,u.disabled)),r.R7$(1),r.Y8G("ngIf",u.directionLinks),r.R7$(1),r.Y8G("ngIf",u.boundaryLinks)}},dependencies:[ct.bT,ct.pM,ct.T3],encapsulation:2,changeDetection:0})}}return a})(),bo=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})();const Nu={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};let xu=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),Fu=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),Ic=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),Bu=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),ca=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),Do=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})(),_l=(()=>{class a{constructor(s){this._ngbConfig=s,this.autoClose=!0,this.placement="auto",this.popperOptions=l=>l,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(xi))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),Uu=0,Ac=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(l,u){2&l&&(r.Mr5("id",u.id),r.HbH("tooltip"+(u.tooltipClass?" "+u.tooltipClass:"")),r.AVh("fade",u.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[r.aNF],ngContentSelectors:ir,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(l,u){1&l&&(r.NAR(),r.nrm(0,"div",0),r.j41(1,"div",1),r.SdG(2),r.k0s())},styles:["ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0}\n"],encapsulation:2,changeDetection:0})}}return a})(),vl=(()=>{class a{constructor(s,l,u,S,k,ce,we,Xe,ze){this._elementRef=s,this._renderer=l,this._ngZone=ce,this._document=we,this._changeDetector=Xe,this.shown=new r.bkB,this.hidden=new r.bkB,this._ngbTooltipWindowId="ngb-tooltip-"+Uu++,this._windowRef=null,this.animation=k.animation,this.autoClose=k.autoClose,this.placement=k.placement,this.popperOptions=k.popperOptions,this.triggers=k.triggers,this.container=k.container,this.disableTooltip=k.disableTooltip,this.tooltipClass=k.tooltipClass,this.openDelay=k.openDelay,this.closeDelay=k.closeDelay,this._popupService=new Ec(Ac,u,S,l,this._ngZone,ze),this._positioning=gu()}set ngbTooltip(s){this._ngbTooltip=s,!s&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(s){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:l,transition$:u}=this._popupService.open(this._ngbTooltip,s??this.tooltipContext,this.animation);this._windowRef=l,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:S=>this.popperOptions(S)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),po(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._elementRef.nativeElement]),u.subscribe(()=>this.shown.emit())}}close(s=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(s).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function gl(a,v,s,l,u,S=0,k=0){const ce=function Ru(a){const v=(a||"").trim();if(0===v.length)return[];const s=v.split(/\s+/).map(u=>u.split(":")).map(u=>Nu[u[0]]||u),l=s.filter(u=>u.includes("manual"));if(l.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===l.length&&s.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return l.length?[]:s}(v);if(0===ce.length)return()=>{};const we=new Set,Xe=[];let ze;function Et(wt,hn){a.addEventListener(wt,hn),Xe.push(()=>a.removeEventListener(wt,hn))}function vt(wt,hn){clearTimeout(ze),hn>0?ze=setTimeout(wt,hn):wt()}for(const[wt,hn]of ce)hn?(Et(wt,()=>{we.add(wt),vt(()=>we.size>0&&l(),S)}),Et(hn,()=>{we.delete(wt),vt(()=>0===we.size&&u(),k)})):Et(wt,()=>s()?vt(u,k):vt(l,S));return()=>Xe.forEach(wt=>wt())}(this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:s}){s&&this.isOpen()&&(this._windowRef.instance.tooltipClass=s.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(ln(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(r.zZn),r.rXU(r.c1b),r.rXU(_l),r.rXU(r.SKi),r.rXU(ct.qQ),r.rXU(r.gRc),r.rXU(r.o8S))}}static{this.\u0275dir=r.FsC({type:a,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[r.OA$]})}}return a})(),Nc=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})();new r.nKC("live announcer delay",{providedIn:"root",factory:function kh(){return 100}});let Gu=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})();class Wu{close(v){}dismiss(v){}}class xc{get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,Ye.Q)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,Ye.Q)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._panelCmptRef.instance.shown.asObservable()}constructor(v,s,l,u){this._panelCmptRef=v,this._contentRef=s,this._backdropCmptRef=l,this._beforeDismiss=u,this._closed=new Q.B,this._dismissed=new Q.B,this._hidden=new Q.B,v.instance.dismissEvent.subscribe(S=>{this.dismiss(S)}),l&&l.instance.dismissEvent.subscribe(S=>{this.dismiss(S)}),this.result=new Promise((S,k)=>{this._resolve=S,this._reject=k}),this.result.then(null,()=>{})}close(v){this._panelCmptRef&&(this._closed.next(v),this._resolve(v),this._removeOffcanvasElements())}_dismiss(v){this._dismissed.next(v),this._reject(v),this._removeOffcanvasElements()}dismiss(v){if(this._panelCmptRef)if(this._beforeDismiss){const s=this._beforeDismiss();Ri(s)?s.then(l=>{!1!==l&&this._dismiss(v)},()=>{}):!1!==s&&this._dismiss(v)}else this._dismiss(v)}_removeOffcanvasElements(){const v=this._panelCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,oe.of)(void 0);v.subscribe(()=>{const{nativeElement:l}=this._panelCmptRef.location;l.parentNode.removeChild(l),this._panelCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._panelCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:l}=this._backdropCmptRef.location;l.parentNode.removeChild(l),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ve(v,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var yl=function(a){return a[a.BACKDROP_CLICK=0]="BACKDROP_CLICK",a[a.ESC=1]="ESC",a}(yl||{});let Wo=(()=>{class a{constructor(s,l){this._el=s,this._zone=l,this.dismissEvent=new r.bkB}ngOnInit(){this._zone.onStable.asObservable().pipe((0,De.s)(1)).subscribe(()=>{cn(this._zone,this._el.nativeElement,(s,l)=>{l&&Ei(s),s.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return cn(this._zone,this._el.nativeElement,({classList:s})=>s.remove("show"),{animation:this.animation,runningTransition:"stop"})}dismiss(){this.static||this.dismissEvent.emit(yl.BACKDROP_CLICK)}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(r.aKT),r.rXU(r.SKi))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-offcanvas-backdrop"]],hostVars:6,hostBindings:function(l,u){1&l&&r.bIt("mousedown",function(){return u.dismiss()}),2&l&&(r.HbH("offcanvas-backdrop"+(u.backdropClass?" "+u.backdropClass:"")),r.AVh("show",!u.animation)("fade",u.animation))},inputs:{animation:"animation",backdropClass:"backdropClass",static:"static"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[r.aNF],decls:0,vars:0,template:function(l,u){},encapsulation:2})}}return a})(),zu=(()=>{class a{constructor(s,l,u){this._document=s,this._elRef=l,this._zone=u,this._closed$=new Q.B,this._elWithFocus=null,this.keyboard=!0,this.position="start",this.dismissEvent=new r.bkB,this.shown=new Q.B,this.hidden=new Q.B}dismiss(s){this.dismissEvent.emit(s)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,De.s)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:s}=this._elRef,u=cn(this._zone,this._elRef.nativeElement,S=>(s.classList.remove("showing"),s.classList.add("hiding"),()=>s.classList.remove("show","hiding")),{animation:this.animation,runningTransition:"stop"});return u.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),u}_show(){cn(this._zone,this._elRef.nativeElement,(u,S)=>(S&&Ei(u),u.classList.add("show","showing"),()=>u.classList.remove("showing")),{animation:this.animation,runningTransition:"continue"}).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:s}=this._elRef;this._zone.runOutsideAngular(()=>{J(s,"keydown").pipe((0,Ye.Q)(this._closed$),(0,ne.p)(l=>l.which===Jn.Escape)).subscribe(l=>{this.keyboard&&requestAnimationFrame(()=>{l.defaultPrevented||this._zone.run(()=>this.dismiss(yl.ESC))})})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:s}=this._elRef;if(!s.contains(document.activeElement)){const l=s.querySelector("[ngbAutofocus]"),u=cc(s)[0];(l||u||s).focus()}}_restoreFocus(){const s=this._document.body,l=this._elWithFocus;let u;u=l&&l.focus&&s.contains(l)?l:s,this._zone.runOutsideAngular(()=>{setTimeout(()=>u.focus()),this._elWithFocus=null})}static{this.\u0275fac=function(l){return new(l||a)(r.rXU(ct.qQ),r.rXU(r.aKT),r.rXU(r.SKi))}}static{this.\u0275cmp=r.VBU({type:a,selectors:[["ngb-offcanvas-panel"]],hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(l,u){2&l&&(r.BMQ("aria-modal",!0)("aria-labelledby",u.ariaLabelledBy)("aria-describedby",u.ariaDescribedBy),r.HbH("offcanvas offcanvas-"+u.position+(u.panelClass?" "+u.panelClass:"")))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",keyboard:"keyboard",panelClass:"panelClass",position:"position"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[r.aNF],ngContentSelectors:ir,decls:1,vars:0,template:function(l,u){1&l&&(r.NAR(),r.SdG(0))},encapsulation:2})}}return a})(),Ku=(()=>{class a{constructor(s,l,u,S,k){this._applicationRef=s,this._injector=l,this._document=u,this._scrollBar=S,this._ngZone=k,this._activePanelCmptHasChanged=new Q.B,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._panelAttributes=["animation","ariaDescribedBy","ariaLabelledBy","keyboard","panelClass","position"],this._activeInstance=new r.bkB,this._activePanelCmptHasChanged.subscribe(()=>{this._panelCmpt&&pu(this._ngZone,this._panelCmpt.location.nativeElement,this._activePanelCmptHasChanged)})}_restoreScrollBar(){const s=this._scrollBarRestoreFn;s&&(this._scrollBarRestoreFn=null,s())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(s,l,u){const S=u.container instanceof HTMLElement?u.container:Rn(u.container)?this._document.querySelector(u.container):this._document.body;if(!S)throw new Error(`The specified offcanvas container "${u.container||"body"}" was not found in the DOM.`);u.scroll||this._hideScrollBar();const k=new Wu,ce=this._getContentRef(u.injector||s,l,k);let we=!1!==u.backdrop?this._attachBackdrop(S):void 0,Xe=this._attachWindowComponent(S,ce.nodes),ze=new xc(Xe,ce,we,u.beforeDismiss);return this._registerOffcanvasRef(ze),this._registerPanelCmpt(Xe),ze.hidden.pipe((0,rt.j)(()=>this._restoreScrollBar())).subscribe(),k.close=Et=>{ze.close(Et)},k.dismiss=Et=>{ze.dismiss(Et)},this._applyPanelOptions(Xe.instance,u),we&&we.instance&&(this._applyBackdropOptions(we.instance,u),we.changeDetectorRef.detectChanges()),Xe.changeDetectorRef.detectChanges(),ze}get activeInstance(){return this._activeInstance}dismiss(s){this._offcanvasRef?.dismiss(s)}hasOpenOffcanvas(){return!!this._offcanvasRef}_attachBackdrop(s){let l=(0,r.a0P)(Wo,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(l.hostView),s.appendChild(l.location.nativeElement),l}_attachWindowComponent(s,l){let u=(0,r.a0P)(zu,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:l});return this._applicationRef.attachView(u.hostView),s.appendChild(u.location.nativeElement),u}_applyPanelOptions(s,l){this._panelAttributes.forEach(u=>{Rn(l[u])&&(s[u]=l[u])})}_applyBackdropOptions(s,l){this._backdropAttributes.forEach(u=>{Rn(l[u])&&(s[u]=l[u])}),s.static="static"===l.backdrop}_getContentRef(s,l,u){return l?l instanceof r.C4Q?this._createFromTemplateRef(l,u):ln(l)?this._createFromString(l):this._createFromComponent(s,l,u):new ps([])}_createFromTemplateRef(s,l){const S=s.createEmbeddedView({$implicit:l,close(k){l.close(k)},dismiss(k){l.dismiss(k)}});return this._applicationRef.attachView(S),new ps([S.rootNodes],S)}_createFromString(s){const l=this._document.createTextNode(`${s}`);return new ps([[l]])}_createFromComponent(s,l,u){const S=r.zZn.create({providers:[{provide:Wu,useValue:u}],parent:s}),k=(0,r.a0P)(l,{environmentInjector:this._applicationRef.injector,elementInjector:S}),ce=k.location.nativeElement;return this._applicationRef.attachView(k.hostView),new ps([[ce]],k.hostView,k)}_registerOffcanvasRef(s){const l=()=>{this._offcanvasRef=void 0,this._activeInstance.emit(this._offcanvasRef)};this._offcanvasRef=s,this._activeInstance.emit(this._offcanvasRef),s.result.then(l,l)}_registerPanelCmpt(s){this._panelCmpt=s,this._activePanelCmptHasChanged.next(),s.onDestroy(()=>{this._panelCmpt=void 0,this._activePanelCmptHasChanged.next()})}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(r.o8S),r.KVO(r.zZn),r.KVO(ct.qQ),r.KVO(ph),r.KVO(r.SKi))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),Bh=(()=>{class a{constructor(s){this._ngbConfig=s,this.backdrop=!0,this.keyboard=!0,this.position="start",this.scroll=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(xi))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),wg=(()=>{class a{constructor(s,l,u){this._injector=s,this._offcanvasStack=l,this._config=u}open(s,l={}){const u={...this._config,animation:this._config.animation,...l};return this._offcanvasStack.open(this._injector,s,u)}get activeInstance(){return this._offcanvasStack.activeInstance}dismiss(s){this._offcanvasStack.dismiss(s)}hasOpenOffcanvas(){return this._offcanvasStack.hasOpenOffcanvas()}static{this.\u0275fac=function(l){return new(l||a)(r.KVO(r.zZn),r.KVO(Ku),r.KVO(Bh))}}static{this.\u0275prov=r.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),ua=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({})}}return a})();const Vh=[Ea,Sn,m,b,yc,Dc,Cu,Ou,ua,bo,xu,Fu,Ic,Bu,ca,Do,Nc,Gu];let Xu=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=r.$C({type:a})}static{this.\u0275inj=r.G2t({imports:[Vh,Ea,Sn,m,b,yc,Dc,Cu,Ou,ua,bo,xu,Fu,Ic,Bu,ca,Do,Nc,Gu]})}}return a})()},5794:(bt,Ae,O)=>{"use strict";O.d(Ae,{_B:()=>mt,tw:()=>Ye});var r=O(8699),P=O(9969),se=O(177),oe=O(1413),Q=O(345);const Y=["toast-component",""];function le(de,xe){if(1&de){const te=r.RV6();r.j41(0,"button",5),r.bIt("click",function(){r.eBV(te);const tt=r.XpG();return r.Njj(tt.remove())}),r.j41(1,"span",6),r.EFF(2,"\xd7"),r.k0s()()}}function W(de,xe){if(1&de&&(r.qex(0),r.EFF(1),r.bVm()),2&de){const te=r.XpG(2);r.R7$(1),r.SpI("[",te.duplicatesCount+1,"]")}}function Re(de,xe){if(1&de&&(r.j41(0,"div"),r.EFF(1),r.DNE(2,W,2,1,"ng-container",4),r.k0s()),2&de){const te=r.XpG();r.HbH(te.options.titleClass),r.BMQ("aria-label",te.title),r.R7$(1),r.SpI(" ",te.title," "),r.R7$(1),r.Y8G("ngIf",te.duplicatesCount)}}function ue(de,xe){if(1&de&&r.nrm(0,"div",7),2&de){const te=r.XpG();r.HbH(te.options.messageClass),r.Y8G("innerHTML",te.message,r.npT)}}function re(de,xe){if(1&de&&(r.j41(0,"div",8),r.EFF(1),r.k0s()),2&de){const te=r.XpG();r.HbH(te.options.messageClass),r.BMQ("aria-label",te.message),r.R7$(1),r.SpI(" ",te.message," ")}}function Ue(de,xe){if(1&de&&(r.j41(0,"div"),r.nrm(1,"div",9),r.k0s()),2&de){const te=r.XpG();r.R7$(1),r.xc7("width",te.width+"%")}}class We{_attachedHost;component;viewContainerRef;injector;constructor(xe,te){this.component=xe,this.injector=te}attach(xe,te){return this._attachedHost=xe,xe.attach(this,te)}detach(){const xe=this._attachedHost;if(xe)return this._attachedHost=void 0,xe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(xe){this._attachedHost=xe}}class _e{_attachedPortal;_disposeFn;attach(xe,te){return this._attachedPortal=xe,this.attachComponentPortal(xe,te)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(xe){this._disposeFn=xe}}class Be{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new oe.B;_activate=new oe.B;_manualClose=new oe.B;_resetTimeout=new oe.B;_countDuplicate=new oe.B;constructor(xe){this._overlayRef=xe}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(xe,te){xe&&this._resetTimeout.next(),te&&this._countDuplicate.next(++this.duplicatesCount)}}class et{toastId;config;message;title;toastType;toastRef;_onTap=new oe.B;_onAction=new oe.B;constructor(xe,te,Te,tt,rt,ct){this.toastId=xe,this.config=te,this.message=Te,this.title=tt,this.toastType=rt,this.toastRef=ct,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(xe){this._onAction.next(xe)}onAction(){return this._onAction.asObservable()}}const je=new r.nKC("ToastConfig");class lt extends _e{_hostDomElement;_componentFactoryResolver;_appRef;constructor(xe,te,Te){super(),this._hostDomElement=xe,this._componentFactoryResolver=te,this._appRef=Te}attachComponentPortal(xe,te){const Te=this._componentFactoryResolver.resolveComponentFactory(xe.component);let tt;return tt=Te.create(xe.injector),this._appRef.attachView(tt.hostView),this.setDisposeFn(()=>{this._appRef.detachView(tt.hostView),tt.destroy()}),te?this._hostDomElement.insertBefore(this._getComponentRootNode(tt),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(tt)),tt}_getComponentRootNode(xe){return xe.hostView.rootNodes[0]}}let Ve=(()=>{class de{_document=(0,r.WQX)(se.qQ);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const te=this._document.createElement("div");te.classList.add("overlay-container"),te.setAttribute("aria-live","polite"),this._document.body.appendChild(te),this._containerElement=te}static \u0275fac=function(Te){return new(Te||de)};static \u0275prov=r.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();class He{_portalHost;constructor(xe){this._portalHost=xe}attach(xe,te=!0){return this._portalHost.attach(xe,te)}detach(){return this._portalHost.detach()}}let Fe=(()=>{class de{_overlayContainer=(0,r.WQX)(Ve);_componentFactoryResolver=(0,r.WQX)(r.OM3);_appRef=(0,r.WQX)(r.o8S);_document=(0,r.WQX)(se.qQ);_paneElements=new Map;create(te,Te){return this._createOverlayRef(this.getPaneElement(te,Te))}getPaneElement(te="",Te){return this._paneElements.get(Te)||this._paneElements.set(Te,{}),this._paneElements.get(Te)[te]||(this._paneElements.get(Te)[te]=this._createPaneElement(te,Te)),this._paneElements.get(Te)[te]}_createPaneElement(te,Te){const tt=this._document.createElement("div");return tt.id="toast-container",tt.classList.add(te),tt.classList.add("toast-container"),Te?Te.getContainerElement().appendChild(tt):this._overlayContainer.getContainerElement().appendChild(tt),tt}_createPortalHost(te){return new lt(te,this._componentFactoryResolver,this._appRef)}_createOverlayRef(te){return new He(this._createPortalHost(te))}static \u0275fac=function(Te){return new(Te||de)};static \u0275prov=r.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})(),Ye=(()=>{class de{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(te,Te,tt,rt,ct){this.overlay=Te,this._injector=tt,this.sanitizer=rt,this.ngZone=ct,this.toastrConfig={...te.default,...te.config},te.config.iconClasses&&(this.toastrConfig.iconClasses={...te.default.iconClasses,...te.config.iconClasses})}show(te,Te,tt={},rt=""){return this._preBuildNotification(rt,te,Te,this.applyConfig(tt))}success(te,Te,tt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",te,Te,this.applyConfig(tt))}error(te,Te,tt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",te,Te,this.applyConfig(tt))}info(te,Te,tt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",te,Te,this.applyConfig(tt))}warning(te,Te,tt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",te,Te,this.applyConfig(tt))}clear(te){for(const Te of this.toasts)if(void 0!==te){if(Te.toastId===te)return void Te.toastRef.manualClose()}else Te.toastRef.manualClose()}remove(te){const Te=this._findToast(te);if(!Te||(Te.activeToast.toastRef.close(),this.toasts.splice(Te.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(te,Te,tt,rt)):this._buildNotification(te,Te,tt,rt)}_buildNotification(te,Te,tt,rt){if(!rt.toastComponent)throw new Error("toastComponent required");const ct=this.findDuplicate(tt,Te,this.toastrConfig.resetTimeoutOnDuplicate&&rt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&tt||Te)&&this.toastrConfig.preventDuplicates&&null!==ct)return ct;this.previousToastMessage=Te;let Pt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Pt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const ft=this.overlay.create(rt.positionClass,this.overlayContainer);this.index=this.index+1;let tn=Te;Te&&rt.enableHtml&&(tn=this.sanitizer.sanitize(r.WPN.HTML,Te));const Lt=new Be(ft),Ft=new et(this.index,rt,tn,tt,te,Lt),Ee=r.zZn.create({providers:[{provide:et,useValue:Ft}],parent:this._injector}),F=new We(rt.toastComponent,Ee),w=ft.attach(F,rt.newestOnTop);Lt.componentInstance=w.instance;const M={toastId:this.index,title:tt||"",message:Te||"",toastRef:Lt,onShown:Lt.afterActivate(),onHidden:Lt.afterClosed(),onTap:Ft.onTap(),onAction:Ft.onAction(),portal:w};return Pt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{M.toastRef.activate()})),this.toasts.push(M),M}static \u0275fac=function(Te){return new(Te||de)(r.KVO(je),r.KVO(Fe),r.KVO(r.zZn),r.KVO(Q.up),r.KVO(r.SKi))};static \u0275prov=r.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();const De={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class de{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(te,Te,tt){this.toastrService=te,this.toastPackage=Te,this.ngZone=tt,this.message=Te.message,this.title=Te.title,this.options=Te.config,this.originalTimeout=Te.config.timeOut,this.toastClasses=`${Te.toastType} ${Te.config.toastClass}`,this.sub=Te.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Te.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Te.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Te.toastRef.countDuplicate().subscribe(rt=>{this.duplicatesCount=rt}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const te=(new Date).getTime();this.width=(this.hideTime-te)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(te,Te){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(te),Te)):this.timeout=setTimeout(()=>te(),Te)}outsideInterval(te,Te){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(te),Te)):this.intervalId=setInterval(()=>te(),Te)}runInsideAngular(te){this.ngZone?this.ngZone.run(()=>te()):te()}static \u0275fac=function(Te){return new(Te||de)(r.rXU(Ye),r.rXU(et),r.rXU(r.SKi))};static \u0275cmp=r.VBU({type:de,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Te,tt){1&Te&&r.bIt("click",function(){return tt.tapToast()})("mouseenter",function(){return tt.stickAround()})("mouseleave",function(){return tt.delayedHideToast()}),2&Te&&(r.zvX("@flyInOut",tt.state),r.HbH(tt.toastClasses),r.xc7("display",tt.displayStyle))},standalone:!0,features:[r.aNF],attrs:Y,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(Te,tt){1&Te&&(r.DNE(0,le,3,0,"button",0),r.DNE(1,Re,3,5,"div",1),r.DNE(2,ue,1,3,"div",2),r.DNE(3,re,2,4,"div",3),r.DNE(4,Ue,2,2,"div",4)),2&Te&&(r.Y8G("ngIf",tt.options.closeButton),r.R7$(1),r.Y8G("ngIf",tt.title),r.R7$(1),r.Y8G("ngIf",tt.message&&tt.options.enableHtml),r.R7$(1),r.Y8G("ngIf",tt.message&&!tt.options.enableHtml),r.R7$(1),r.Y8G("ngIf",tt.options.progressBar))},dependencies:[se.bT],encapsulation:2,data:{animation:[(0,P.hZ)("flyInOut",[(0,P.wk)("inactive",(0,P.iF)({opacity:0})),(0,P.wk)("active",(0,P.iF)({opacity:1})),(0,P.wk)("removed",(0,P.iF)({opacity:0})),(0,P.kY)("inactive => active",(0,P.i0)("{{ easeTime }}ms {{ easing }}")),(0,P.kY)("active => removed",(0,P.i0)("{{ easeTime }}ms {{ easing }}"))])]}})}return de})()},$e=(de={})=>(0,r.EmA)([{provide:je,useValue:{default:De,config:de}}]);let mt=(()=>{class de{static forRoot(te={}){return{ngModule:de,providers:[$e(te)]}}static \u0275fac=function(Te){return new(Te||de)};static \u0275mod=r.$C({type:de});static \u0275inj=r.G2t({})}return de})()},1635:(bt,Ae,O)=>{"use strict";function Ue(Ce,Ie,Oe,de){return new(Oe||(Oe=Promise))(function(te,Te){function tt(Pt){try{ct(de.next(Pt))}catch(ft){Te(ft)}}function rt(Pt){try{ct(de.throw(Pt))}catch(ft){Te(ft)}}function ct(Pt){Pt.done?te(Pt.value):function xe(te){return te instanceof Oe?te:new Oe(function(Te){Te(te)})}(Pt.value).then(tt,rt)}ct((de=de.apply(Ce,Ie||[])).next())})}function _e(Ce){return this instanceof _e?(this.v=Ce,this):new _e(Ce)}function Be(Ce,Ie,Oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var xe,de=Oe.apply(Ce,Ie||[]),te=[];return xe=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),tt("next"),tt("throw"),tt("return",function Te(Lt){return function(Ft){return Promise.resolve(Ft).then(Lt,ft)}}),xe[Symbol.asyncIterator]=function(){return this},xe;function tt(Lt,Ft){de[Lt]&&(xe[Lt]=function(ge){return new Promise(function(Ee,F){te.push([Lt,ge,Ee,F])>1||rt(Lt,ge)})},Ft&&(xe[Lt]=Ft(xe[Lt])))}function rt(Lt,Ft){try{!function ct(Lt){Lt.value instanceof _e?Promise.resolve(Lt.value.v).then(Pt,ft):tn(te[0][2],Lt)}(de[Lt](Ft))}catch(ge){tn(te[0][3],ge)}}function Pt(Lt){rt("next",Lt)}function ft(Lt){rt("throw",Lt)}function tn(Lt,Ft){Lt(Ft),te.shift(),te.length&&rt(te[0][0],te[0][1])}}function ht(Ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Oe,Ie=Ce[Symbol.asyncIterator];return Ie?Ie.call(Ce):(Ce=function Ne(Ce){var Ie="function"==typeof Symbol&&Symbol.iterator,Oe=Ie&&Ce[Ie],de=0;if(Oe)return Oe.call(Ce);if(Ce&&"number"==typeof Ce.length)return{next:function(){return Ce&&de>=Ce.length&&(Ce=void 0),{value:Ce&&Ce[de++],done:!Ce}}};throw new TypeError(Ie?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ce),Oe={},de("next"),de("throw"),de("return"),Oe[Symbol.asyncIterator]=function(){return this},Oe);function de(te){Oe[te]=Ce[te]&&function(Te){return new Promise(function(tt,rt){!function xe(te,Te,tt,rt){Promise.resolve(rt).then(function(ct){te({value:ct,done:tt})},Te)}(tt,rt,(Te=Ce[te](Te)).done,Te.value)})}}}O.d(Ae,{AQ:()=>Be,N3:()=>_e,sH:()=>Ue,xN:()=>ht}),"function"==typeof SuppressedError&&SuppressedError}},bt=>{var Ae=r=>bt(bt.s=r);Ae(4073),Ae(1316)}]);