From a0edef1aad08c9c1b97c9600f375dba8278f48b0 Mon Sep 17 00:00:00 2001 From: Nuri0 Date: Wed, 4 Sep 2024 19:40:16 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20-=20ea6b8?= =?UTF-8?q?73bde2833f1d46f8d45cab47efced49ee86=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- chunk-AVXN7HYR.js | 1 + chunk-NHLG3BPH.js | 7 +++++++ index.html | 2 +- main-3U2K74ZV.js | 5 +++++ 5 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 chunk-AVXN7HYR.js create mode 100644 chunk-NHLG3BPH.js create mode 100644 main-3U2K74ZV.js diff --git a/404.html b/404.html index 7fe5086..3005cee 100644 --- a/404.html +++ b/404.html @@ -12,5 +12,5 @@ Loading... - + diff --git a/chunk-AVXN7HYR.js b/chunk-AVXN7HYR.js new file mode 100644 index 0000000..298ab5a --- /dev/null +++ b/chunk-AVXN7HYR.js @@ -0,0 +1 @@ +import{V as S,Y as gt,a as he,c as pt,rc as E,sc as B,tc as yt,uc as Me,vc as x,wc as Ce,xc as ue}from"./chunk-NHLG3BPH.js";function _t(n){return new S(3e3,!1)}function Ht(){return new S(3100,!1)}function Yt(){return new S(3101,!1)}function Xt(n){return new S(3001,!1)}function Zt(n){return new S(3003,!1)}function Jt(n){return new S(3004,!1)}function xt(n,e){return new S(3005,!1)}function es(){return new S(3006,!1)}function ts(){return new S(3007,!1)}function ss(n,e){return new S(3008,!1)}function is(n){return new S(3002,!1)}function ns(n,e,t,s,i){return new S(3010,!1)}function rs(){return new S(3011,!1)}function as(){return new S(3012,!1)}function os(){return new S(3200,!1)}function ls(){return new S(3202,!1)}function hs(){return new S(3013,!1)}function us(n){return new S(3014,!1)}function cs(n){return new S(3015,!1)}function fs(n){return new S(3016,!1)}function ds(n){return new S(3500,!1)}function ms(n){return new S(3501,!1)}function ps(n,e){return new S(3404,!1)}function gs(n){return new S(3502,!1)}function ys(n){return new S(3503,!1)}function _s(){return new S(3300,!1)}function Ss(n){return new S(3504,!1)}function Es(n){return new S(3301,!1)}function Ts(n,e){return new S(3302,!1)}function vs(n){return new S(3303,!1)}function ws(n,e){return new S(3400,!1)}function bs(n){return new S(3401,!1)}function As(n){return new S(3402,!1)}function Ps(n,e){return new S(3505,!1)}var Ns=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new x;case 1:return n[0];default:return new Ce(n)}}function It(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==a,u=c&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case ue:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),o=u,a=h}),i.length)throw gs(i);return r}function tt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&ke(t,"start",n)));break;case"done":n.onDone(()=>s(t&&ke(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&ke(t,"destroy",n)));break}}function ke(n,e,t){let s=t.totalTime,i=!!t.disabled,r=st(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function st(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function L(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function St(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ms=typeof document>"u"?null:document.documentElement;function it(n){let e=n.parentNode||n.host||null;return e===Ms?null:e}function Cs(n){return n.substring(1,6)=="ebkit"}var H=null,Et=!1;function ks(n){H||(H=Ds()||{},Et=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Cs(n)&&(e=n in H.style,!e&&Et&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in H.style)),e}function Ai(n){return Ns.has(n)}function Ds(){return typeof document<"u"?document.body:null}function zt(n,e){for(;e;){if(e===n)return!0;e=it(e)}return!1}function Kt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var qt=(()=>{let e=class e{validateStyleProperty(s){return ks(s)}containsElement(s,i){return zt(s,i)}getParentElement(s){return it(s)}query(s,i,r){return Kt(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,a,o,l=[],h){return new x(r,a)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac});let n=e;return n})(),ut=class ut{};ut.NOOP=new qt;var Tt=ut,Ie=class{},ze=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Rs=1e3,Bt="{{",Os="}}",nt="ng-enter",ge="ng-leave",ce="ng-trigger",ye=".ng-trigger",vt="ng-animating",Ke=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qe(parseFloat(e[1]),e[2])}function qe(n,e){switch(e){case"s":return n*Rs;default:return n}}function _e(n,e,t){return n.hasOwnProperty("duration")?n:Ls(n,e,t)}function Ls(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(_t(n)),{duration:0,delay:0,easing:""};i=qe(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=qe(parseFloat(l),o[4]));let h=o[5];h&&(a=h)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(Ht()),o=!0),r<0&&(e.push(Yt()),o=!0),o&&e.splice(l,0,_t(n))}return{duration:i,delay:r,easing:a}}function Fs(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function wt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=rt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function X(n,e){e.forEach((t,s)=>{let i=rt(s);n.style[i]=""})}function ie(n){return Array.isArray(n)?n.length==1?n[0]:yt(n):n}function Is(n,e,t){let s=e.params||{},i=Qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Xt(r))})}var Be=new RegExp(`${Bt}\\s*(.+?)\\s*${Os}`,"g");function Qt(n){let e=[];if(typeof n=="string"){let t;for(;t=Be.exec(n);)e.push(t[1]);Be.lastIndex=0}return e}function re(n,e,t){let s=`${n}`,i=s.replace(Be,(r,a)=>{let o=e[a];return o==null&&(t.push(Zt(a)),o=""),o.toString()});return i==s?n:i}var zs=/-+([a-z0-9])/g;function rt(n){return n.replace(zs,(...e)=>e[1].toUpperCase())}function Pi(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ks(n,e){return n===0||e===0}function qs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;ra.set(o,at(n,o)))}}return e}function O(n,e,t){switch(e.type){case E.Trigger:return n.visitTrigger(e,t);case E.State:return n.visitState(e,t);case E.Transition:return n.visitTransition(e,t);case E.Sequence:return n.visitSequence(e,t);case E.Group:return n.visitGroup(e,t);case E.Animate:return n.visitAnimate(e,t);case E.Keyframes:return n.visitKeyframes(e,t);case E.Style:return n.visitStyle(e,t);case E.Reference:return n.visitReference(e,t);case E.AnimateChild:return n.visitAnimateChild(e,t);case E.AnimateRef:return n.visitAnimateRef(e,t);case E.Query:return n.visitQuery(e,t);case E.Stagger:return n.visitStagger(e,t);default:throw Jt(e.type)}}function at(n,e){return window.getComputedStyle(n)[e]}var Bs=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"]),Qe=class extends Ie{normalizePropertyName(e,t){return rt(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(xt(e,s))}return a+r}};var Se="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>$s(s,t,e)):t.push(n),t}function $s(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(cs(n)),e;let i=s[1],r=s[2],a=s[3];e.push(bt(i,a));let o=i==Se&&a==Se;r[0]=="<"&&!o&&e.push(bt(a,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var fe=new Set(["true","1"]),de=new Set(["false","0"]);function bt(n,e){let t=fe.has(n)||de.has(n),s=fe.has(e)||de.has(e);return(i,r)=>{let a=n==Se||n==i,o=e==Se||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?fe.has(n):de.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?fe.has(e):de.has(e)),a&&o}}var $t=":self",Us=new RegExp(`s*${$t}s*,?`,"g");function ot(n,e,t,s){return new $e(n).build(e,t,s)}var At="",$e=class{constructor(e){this._driver=e}build(e,t,s){let i=new Ve(t);return this._resetContextStyleTimingState(i),O(this,ie(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=At,e.collectedStyles=new Map,e.collectedStyles.set(At,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(es()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==E.State){let l=o,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(o.type==E.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(ts())}),{type:E.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{Qt(l).forEach(h=>{a.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(ss(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,ie(e.animation),t),i=Qs(e.expr,t.errors);return{type:E.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:E.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Me({});if(r.type==E.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let h={};s.easing&&(h.easing=s.easing),a=Me(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?s.push(o):t.errors.push(is(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(Bt)>=0){r=!0;break}}}),{type:E.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ns(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Is(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rs()),s;let i=1,r=0,a=[],o=!1,l=!1,h=0,c=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:Gs(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:E.Reference,animation:O(this,ie(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=js(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ie(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:E.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:_e(e.timings,t.errors,!0);return{type:E.Stagger,animation:O(this,ie(e.animation),t),timings:s,options:null}}};function js(n){let e=!!n.split(/\s*,\s*/).find(t=>t==$t);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,ye).replace(/@\w+/g,t=>ye+"-"+t.slice(1)).replace(/:animating/g,Ke),[n,e]}function Ws(n){return n?he({},n):null}var Ve=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Gs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=_e(n,e).duration;return De(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=De(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=_e(t,e);return De(i.duration,i.delay,i.easing)}function Y(n){return n?(n=he({},n),n.params&&(n.params=Ws(n.params))):n={},n}function De(n,e,t){return{duration:n,delay:e,easing:t}}function lt(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var se=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ys=1,Xs=":enter",Zs=new RegExp(Xs,"g"),Js=":leave",xs=new RegExp(Js,"g");function ht(n,e,t,s,i,r=new Map,a=new Map,o,l,h=[]){return new Ue().buildKeyframes(n,e,t,s,i,r,a,o,l,h)}var Ue=class{buildKeyframes(e,t,s,i,r,a,o,l,h,c=[]){h=h||new se;let u=new je(e,t,h,i,r,c,[]);u.options=l;let _=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[lt(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:$(re(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==E.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ee);let a=$(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?re(s,t.params,t.errors):s;return _e(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;o.forwardTime(h*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===E.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ee);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},Ee={},je=class n{constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ee,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Te(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=re(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ee,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new We(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Zs,"."+this._enterClassName),e=e.replace(xs,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),o.push(...h)}return!r&&o.length==0&&a.push(us(t)),o}},Te=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ys,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=ei(e,this._globalTimelineStyles);for(let[o,l]of a){let h=re(l,r,s);this._pendingStyles.set(o,h),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let h=new Map([...this._backFill,...o]);h.forEach((c,u)=>{c===ue?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return lt(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},We=class extends Te{constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",Pt(o)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let _=new Map(e[u]),y=_.get("offset"),d=t+y*s;_.set("offset",Pt(d/a)),r.push(_)}s=a,t=0,i="",e=r}return lt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function Pt(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of i)t.set(r,a)}),t}function Nt(n,e,t,s,i,r,a,o,l,h,c,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:_}}var Re={},ve=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,h,c){let u=[],_=this.ast.options&&this.ast.options.params||Re,y=o&&o.params||Re,d=this.buildStyles(s,y,u),g=l&&l.params||Re,v=this.buildStyles(i,g,u),b=new Set,A=new Map,C=new Map,N=i==="void",Z={params:Vt(g,_),delay:this.ast.options?.delay},K=c?[]:ht(e,t,this.ast.animation,r,a,d,v,Z,h,u),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),u.length?Nt(t,this._triggerName,s,i,N,d,v,[],[],A,C,k,u):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let ct=L(C,j,new Set);D.postStyleProps.forEach(W=>ct.add(W)),j!==t&&b.add(j)}),Nt(t,this._triggerName,s,i,N,d,v,K,[...b.values()],A,C,k))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Vt(n,e){let t=he({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var Ge=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Vt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=re(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function si(n,e,t){return new He(n,e,t)}var He=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Ge(i.style,r,s))}),Mt(this.states,"true","1"),Mt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new ve(e,i,this.states))}),this.fallbackTransition=ii(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(a,o)=>!0],i={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new ve(n,r,e)}function Mt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new se,Ye=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=ot(this._driver,t,s,i);if(s.length)throw ys(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=It(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=ht(this._driver,t,r,nt,ge,new Map,new Map,s,ni,i),a.forEach(c=>{let u=L(o,c.element,new Map);c.postStyleProps.forEach(_=>u.set(_,null))})):(i.push(_s()),a=[]),i.length)throw Ss(i);o.forEach((c,u)=>{c.forEach((_,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=a.map(c=>{let u=o.get(c.element);return this._buildPlayer(c,new Map,u)}),h=U(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Es(e);return t}listen(e,t,s,i){let r=st(t,"","","");return tt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Ct="ng-animate-queued",ri=".ng-animate-queued",Oe="ng-animate-disabled",ai=".ng-animate-disabled",oi="ng-star-inserted",li=".ng-star-inserted",hi=[],Ut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",ae=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:a}=r,o=pt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},ne="void",Le=new ae(ne),Xe=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Ts(s,t);if(s==null||s.length==0)throw vs(t);if(!di(s))throw ws(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ce),I(e,ce+"-"+t),o.set(t,Le)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new oe(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ce),I(e,ce+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),h=new ae(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),o.set(t,h),l||(l=Le),!(h.value===ne)&&l.value===h.value){if(!gi(l.params,h.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:a,isFallbackTransition:d}),d||(I(e,Ct),a.onStart(()=>{ee(e,Ct)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ye,!0);s.forEach(i=>{if(i[z])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,h)=>{if(a.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,ne,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,h=s.get(a)||Le,c=new ae(ne),u=new oe(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===Ut)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=st(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,tt(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ze=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(me(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!me(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Oe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Oe))}removeNode(e,t,s){if(me(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return me(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ye,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ke,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=Ut,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Oe)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ai,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw As(e)}_flushAnimations(e,t){let s=new se,i=[],r=new Map,a=[],o=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,!0);for(let p=0;p{let p=nt+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=Rt(_,Array.from(b));N.forEach((f,m)=>{let p=ge+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let le=F.get(p.triggerName);le.value=G,F.set(p.triggerName,le)}}T.destroy();return}}let q=!u||!this.driver.containsElement(u,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}let mt=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||mt.push(M)}),w.timelines=mt,s.append(P,w.timelines);let Gt={instruction:w,player:T,element:P};a.push(Gt),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((le,Ne)=>F.add(Ne))}}),w.postStyleProps.forEach((M,G)=>{let F=h.get(G);F||h.set(G,F=new Set),M.forEach((le,Ne)=>F.add(Ne))})});if(K.length){let f=[];K.forEach(m=>{f.push(Ps(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>Ot(f,l,h)),J=new Map;Dt(J,this.driver,A,h,B).forEach(f=>{Ot(f,l,h)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Dt(W,this.driver,new Set(f),l,ue)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Pe=[],ft=[],dt={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),i.push(p);return}let P=dt;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===dt)Pe.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),i.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ft.push(p),c.has(m)&&i.push(p)}),ft.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?mi(this,m,P):this.processLeaveNode(m)}return v.length=0,Pe.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Pe}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ne;o.forEach(h=>{h.queued||!l&&h.triggerName!=i||a.push(h)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=L(s,h,[]);this._getPreviousPlayers(h,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,_=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=pi((s.get(g)||hi).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=It(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&i&&u.add(g),b){let k=new oe(e,o,g);k.setRealPlayer(K),h.push(k)}return K});h.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,vt));let y=U(_);return y.onDestroy(()=>{c.forEach(d=>ee(d,vt)),Q(l,t.toStyles)}),u.forEach(d=>{L(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},oe=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new x,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>tt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function fi(n){return n??null}function me(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function kt(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Dt(n,e,t,s,i){let r=[];t.forEach(l=>r.push(kt(l)));let a=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let _=e.computeStyle(h,u,i);c.set(u,_),(!_||_.length==0)&&(h[z]=ui,a.push(h))}),n.set(h,c)});let o=0;return t.forEach(l=>kt(l,r[o++])),a}function Rt(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let h=o.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=a(h),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function mi(n,e,t){U(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return jt(n,e),e}function jt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var we=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(i,r)=>{},this._transitionEngine=new Ze(e.body,t,s),this._timelineEngine=new Ye(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],h=[],c=ot(this._driver,r,l,h);if(l.length)throw ps(i,l);h.length&&void 0,o=si(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=St(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=St(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Fe(e[0]),e.length>1&&(s=Fe(e[e.length-1]))):e instanceof Map&&(t=Fe(e)),t||s?new Je(n,t,s):null}var te=class te{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=te.initialStylesByElement.get(e);i||te.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};te.initialStylesByElement=new WeakMap;var Je=te;function Fe(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var be=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:at(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},xe=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return zt(e,t)}getParentElement(e){return it(e)}query(e,t,s){return Kt(e,t,s)}computeStyle(e,t,s){return at(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let h=new Map,c=a.filter(y=>y instanceof be);Ks(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Fs(t).map(y=>new Map(y));u=qs(e,u,h);let _=yi(e,u);return new be(e,u,l,_)}};function Ni(n,e){return n==="noop"?new we(e,new qt,new ze):new we(e,new xe,new Qe)}var Lt=class{constructor(e,t){this._driver=e;let s=[],i=[],r=ot(e,t,s,i);if(s.length)throw ds(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?wt(t):t,o=Array.isArray(s)?wt(s):s,l=[];r=r||new se;let h=ht(this._driver,e,this._animationAst,nt,ge,a,o,i,r,l);if(l.length)throw ms(l);return h}},pe="@",Wt="@.disabled",Ae=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==pe&&t==Wt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},et=class extends Ae{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==pe?t.charAt(1)=="."&&t==Wt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==pe){let i=Si(e),r=t.slice(1),a="";return r.charAt(0)!=pe&&([r,a]=Ei(r)),this.engine.listen(this.namespaceId,i,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function Si(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ei(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Ft=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new Ae(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=h=>{Array.isArray(h)?h.forEach(o):this.engine.registerTrigger(r,a,e,h.name,h)};return t.data.animation.forEach(o),new et(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{Tt as AnimationDriver,qt as NoopAnimationDriver,Lt as \u0275Animation,we as \u0275AnimationEngine,et as \u0275AnimationRenderer,Ft as \u0275AnimationRendererFactory,Ie as \u0275AnimationStyleNormalizer,Ae as \u0275BaseAnimationRenderer,ze as \u0275NoopAnimationStyleNormalizer,xe as \u0275WebAnimationsDriver,be as \u0275WebAnimationsPlayer,Qe as \u0275WebAnimationsStyleNormalizer,Ks as \u0275allowPreviousPlayerStylesMerge,Pi as \u0275camelCaseToDashCase,zt as \u0275containsElement,Ni as \u0275createEngine,it as \u0275getParentElement,Kt as \u0275invokeQuery,Fs as \u0275normalizeKeyframes,ks as \u0275validateStyleProperty,Ai as \u0275validateWebAnimatableStyleProperty}; diff --git a/chunk-NHLG3BPH.js b/chunk-NHLG3BPH.js new file mode 100644 index 0000000..6ad32d7 --- /dev/null +++ b/chunk-NHLG3BPH.js @@ -0,0 +1,7 @@ +var Xd=Object.create;var Io=Object.defineProperty,ef=Object.defineProperties,tf=Object.getOwnPropertyDescriptor,nf=Object.getOwnPropertyDescriptors,rf=Object.getOwnPropertyNames,Nn=Object.getOwnPropertySymbols,of=Object.getPrototypeOf,wo=Object.prototype.hasOwnProperty,va=Object.prototype.propertyIsEnumerable;var ya=(e,t,n)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ge=(e,t)=>{for(var n in t||={})wo.call(t,n)&&ya(e,n,t[n]);if(Nn)for(var n of Nn(t))va.call(t,n)&&ya(e,n,t[n]);return e},We=(e,t)=>ef(e,nf(t));var aE=(e,t)=>{var n={};for(var r in e)wo.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Nn)for(var r of Nn(e))t.indexOf(r)<0&&va.call(e,r)&&(n[r]=e[r]);return n};var uE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rf(t))!wo.call(e,o)&&o!==n&&Io(e,o,{get:()=>t[o],enumerable:!(r=tf(t,o))||r.enumerable});return e};var cE=(e,t,n)=>(n=e!=null?Xd(of(e)):{},sf(t||!e||!e.__esModule?Io(n,"default",{value:e,enumerable:!0}):n,e));function Da(e,t){return Object.is(e,t)}var z=null,An=!1,On=1,Ne=Symbol("SIGNAL");function M(e){let t=z;return z=e,t}function Ea(){return z}var on={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function _o(e){if(An)throw new Error("");if(z===null)return;z.consumerOnSignalRead(e);let t=z.nextProducerIndex++;if(kn(z),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function xo(e){kn(e);for(let t=0;t0}function kn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function _a(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ma(e){return e.producerNode!==void 0}function xa(e){let t=Object.create(cf);t.computation=e;let n=()=>{if(Ia(t),_o(t),t.value===Fn)throw t.error;return t.value};return n[Ne]=t,n}var Co=Symbol("UNSET"),bo=Symbol("COMPUTING"),Fn=Symbol("ERRORED"),cf=We(Ge({},on),{value:Co,dirty:!0,error:null,equal:Da,producerMustRecompute(e){return e.value===Co||e.value===bo},producerRecomputeValue(e){if(e.value===bo)throw new Error("Detected cycle in computations.");let t=e.value;e.value=bo;let n=Rn(e),r;try{r=e.computation()}catch(o){r=Fn,e.error=o}finally{Mo(e,n)}if(t!==Co&&t!==Fn&&r!==Fn&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function lf(){throw new Error}var Sa=lf;function Ta(){Sa()}function Na(e){Sa=e}var df=null;function Aa(e){let t=Object.create(Fa);t.value=e;let n=()=>(_o(t),t.value);return n[Ne]=t,n}function To(e,t){Ca()||Ta(),e.equal(e.value,t)||(e.value=t,ff(e))}function Oa(e,t){Ca()||Ta(),To(e,t(e.value))}var Fa=We(Ge({},on),{equal:Da,value:void 0});function ff(e){e.version++,af(),wa(e),df?.()}function m(e){return typeof e=="function"}function Tt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ln=Tt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function it(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(m(r))try{r()}catch(i){t=i instanceof Ln?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ra(i)}catch(s){t=t??[],s instanceof Ln?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ln(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ra(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&it(n,t)}remove(t){let{_finalizers:n}=this;n&&it(n,t),t instanceof e&&t._removeParent(this)}};$.EMPTY=(()=>{let e=new $;return e.closed=!0,e})();var No=$.EMPTY;function jn(e){return e instanceof $||e&&"closed"in e&&m(e.remove)&&m(e.add)&&m(e.unsubscribe)}function Ra(e){m(e)?e():e.unsubscribe()}var me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Nt={setTimeout(e,t,...n){let{delegate:r}=Nt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Nt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Vn(e){Nt.setTimeout(()=>{let{onUnhandledError:t}=me;if(t)t(e);else throw e})}function sn(){}var Pa=Ao("C",void 0,void 0);function ka(e){return Ao("E",void 0,e)}function La(e){return Ao("N",e,void 0)}function Ao(e,t,n){return{kind:e,value:t,error:n}}var st=null;function At(e){if(me.useDeprecatedSynchronousErrorHandling){let t=!st;if(t&&(st={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=st;if(st=null,n)throw r}}else e()}function ja(e){me.useDeprecatedSynchronousErrorHandling&&st&&(st.errorThrown=!0,st.error=e)}var at=class extends ${constructor(t){super(),this.isStopped=!1,t?(this.destination=t,jn(t)&&t.add(this)):this.destination=gf}static create(t,n,r){return new Ae(t,n,r)}next(t){this.isStopped?Fo(La(t),this):this._next(t)}error(t){this.isStopped?Fo(ka(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Fo(Pa,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},hf=Function.prototype.bind;function Oo(e,t){return hf.call(e,t)}var Ro=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Bn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Bn(r)}else Bn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Bn(n)}}},Ae=class extends at{constructor(t,n,r){super();let o;if(m(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&me.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Oo(t.next,i),error:t.error&&Oo(t.error,i),complete:t.complete&&Oo(t.complete,i)}):o=t}this.destination=new Ro(o)}};function Bn(e){me.useDeprecatedSynchronousErrorHandling?ja(e):Vn(e)}function pf(e){throw e}function Fo(e,t){let{onStoppedNotification:n}=me;n&&Nt.setTimeout(()=>n(e,t))}var gf={closed:!0,next:sn,error:pf,complete:sn};var Ot=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Q(e){return e}function mf(...e){return Po(e)}function Po(e){return e.length===0?Q:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var x=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=vf(n)?n:new Ae(n,r,o);return At(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Va(r),new r((o,i)=>{let s=new Ae({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ot](){return this}pipe(...n){return Po(n)(this)}toPromise(n){return n=Va(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Va(e){var t;return(t=e??me.Promise)!==null&&t!==void 0?t:Promise}function yf(e){return e&&m(e.next)&&m(e.error)&&m(e.complete)}function vf(e){return e&&e instanceof at||yf(e)&&jn(e)}function ko(e){return m(e?.lift)}function E(e){return t=>{if(ko(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function D(e,t,n,r,o){return new Lo(e,t,n,r,o)}var Lo=class extends at{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function jo(){return E((e,t)=>{let n=null;e._refCount++;let r=D(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Vo=class extends x{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ko(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new $;let n=this.getSubject();t.add(this.source.subscribe(D(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=$.EMPTY)}return t}refCount(){return jo()(this)}};var Ba=Tt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var we=(()=>{class e extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new $n(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ba}next(n){At(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){At(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){At(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?No:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,it(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new x;return n.source=this,n}}return e.create=(t,n)=>new $n(t,n),e})(),$n=class extends we{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:No}};var an=class extends we{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Bo={now(){return(Bo.delegate||Date).now()},delegate:void 0};var Hn=class extends ${constructor(t,n){super()}schedule(t,n=0){return this}};var un={setInterval(e,t,...n){let{delegate:r}=un;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=un;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Un=class extends Hn{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return un.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&un.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,it(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Ft=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Ft.now=Bo.now;var zn=class extends Ft{constructor(t,n=Ft.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var cn=new zn(Un),$a=cn;var ut=new x(e=>e.complete());function Gn(e){return e&&m(e.schedule)}function $o(e){return e[e.length-1]}function Wn(e){return m($o(e))?e.pop():void 0}function Ce(e){return Gn($o(e))?e.pop():void 0}function Ha(e,t){return typeof $o(e)=="number"?e.pop():t}function za(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Ua(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ct(e){return this instanceof ct?(this.v=e,this):new ct(e)}function Ga(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(g){return new Promise(function(T,I){i.push([f,g,T,I])>1||u(f,g)})},p&&(o[f]=p(o[f])))}function u(f,p){try{c(r[f](p))}catch(g){h(i[0][3],g)}}function c(f){f.value instanceof ct?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,p){f(p),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Wa(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ua=="function"?Ua(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Rt=e=>e&&typeof e.length=="number"&&typeof e!="function";function qn(e){return m(e?.then)}function Zn(e){return m(e[Ot])}function Yn(e){return Symbol.asyncIterator&&m(e?.[Symbol.asyncIterator])}function Qn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Df(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Kn=Df();function Jn(e){return m(e?.[Kn])}function Xn(e){return Ga(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield ct(n.read());if(o)return yield ct(void 0);yield yield ct(r)}}finally{n.releaseLock()}})}function er(e){return m(e?.getReader)}function F(e){if(e instanceof x)return e;if(e!=null){if(Zn(e))return Ef(e);if(Rt(e))return If(e);if(qn(e))return wf(e);if(Yn(e))return qa(e);if(Jn(e))return Cf(e);if(er(e))return bf(e)}throw Qn(e)}function Ef(e){return new x(t=>{let n=e[Ot]();if(m(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function If(e){return new x(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Vn)})}function Cf(e){return new x(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function qa(e){return new x(t=>{_f(e,t).catch(n=>t.error(n))})}function bf(e){return qa(Xn(e))}function _f(e,t){var n,r,o,i;return za(this,void 0,void 0,function*(){try{for(n=Wa(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ne(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function tr(e,t=0){return E((n,r)=>{n.subscribe(D(r,o=>ne(r,e,()=>r.next(o),t),()=>ne(r,e,()=>r.complete(),t),o=>ne(r,e,()=>r.error(o),t)))})}function nr(e,t=0){return E((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Za(e,t){return F(e).pipe(nr(t),tr(t))}function Ya(e,t){return F(e).pipe(nr(t),tr(t))}function Qa(e,t){return new x(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ka(e,t){return new x(n=>{let r;return ne(n,t,()=>{r=e[Kn](),ne(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>m(r?.return)&&r.return()})}function rr(e,t){if(!e)throw new Error("Iterable cannot be null");return new x(n=>{ne(n,t,()=>{let r=e[Symbol.asyncIterator]();ne(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ja(e,t){return rr(Xn(e),t)}function Xa(e,t){if(e!=null){if(Zn(e))return Za(e,t);if(Rt(e))return Qa(e,t);if(qn(e))return Ya(e,t);if(Yn(e))return rr(e,t);if(Jn(e))return Ka(e,t);if(er(e))return Ja(e,t)}throw Qn(e)}function be(e,t){return t?Xa(e,t):F(e)}function Mf(...e){let t=Ce(e);return be(e,t)}function xf(e,t){let n=m(e)?e:()=>e,r=o=>o.error(n());return new x(t?o=>t.schedule(r,0,o):r)}function Sf(e){return!!e&&(e instanceof x||m(e.lift)&&m(e.subscribe))}var lt=Tt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function eu(e){return e instanceof Date&&!isNaN(e)}function Oe(e,t){return E((n,r)=>{let o=0;n.subscribe(D(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Tf}=Array;function Nf(e,t){return Tf(t)?e(...t):e(t)}function Pt(e){return Oe(t=>Nf(e,t))}var{isArray:Af}=Array,{getPrototypeOf:Of,prototype:Ff,keys:Rf}=Object;function or(e){if(e.length===1){let t=e[0];if(Af(t))return{args:t,keys:null};if(Pf(t)){let n=Rf(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Pf(e){return e&&typeof e=="object"&&Of(e)===Ff}function ir(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function kf(...e){let t=Ce(e),n=Wn(e),{args:r,keys:o}=or(e);if(r.length===0)return be([],t);let i=new x(Lf(r,t,o?s=>ir(o,s):Q));return n?i.pipe(Pt(n)):i}function Lf(e,t,n=Q){return r=>{tu(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=be(e[u],t),l=!1;c.subscribe(D(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function tu(e,t,n){e?ne(n,e,t):t()}function nu(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&t.complete()},f=g=>c{i&&t.next(g),c++;let T=!1;F(n(g,l++)).subscribe(D(t,I=>{o?.(I),i?f(I):t.next(I)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;u.length&&cp(I)):p(I)}h()}catch(I){t.error(I)}}))};return e.subscribe(D(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Fe(e,t,n=1/0){return m(t)?Fe((r,o)=>Oe((i,s)=>t(r,i,o,s))(F(e(r,o))),n):(typeof t=="number"&&(n=t),E((r,o)=>nu(r,o,e,n)))}function ln(e=1/0){return Fe(Q,e)}function ru(){return ln(1)}function sr(...e){return ru()(be(e,Ce(e)))}function jf(e){return new x(t=>{F(e()).subscribe(t)})}function Vf(...e){let t=Wn(e),{args:n,keys:r}=or(e),o=new x(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?ir(r,a):a),i.complete())}))}});return t?o.pipe(Pt(t)):o}var Bf=["addListener","removeListener"],$f=["addEventListener","removeEventListener"],Hf=["on","off"];function Ho(e,t,n,r){if(m(n)&&(r=n,n=void 0),r)return Ho(e,t,n).pipe(Pt(r));let[o,i]=Gf(e)?$f.map(s=>a=>e[s](t,a,n)):Uf(e)?Bf.map(ou(e,t)):zf(e)?Hf.map(ou(e,t)):[];if(!o&&Rt(e))return Fe(s=>Ho(s,t,n))(F(e));if(!o)throw new TypeError("Invalid event target");return new x(s=>{let a=(...u)=>s.next(1i(a)})}function ou(e,t){return n=>r=>e[n](t,r)}function Uf(e){return m(e.addListener)&&m(e.removeListener)}function zf(e){return m(e.on)&&m(e.off)}function Gf(e){return m(e.addEventListener)&&m(e.removeEventListener)}function iu(e=0,t,n=$a){let r=-1;return t!=null&&(Gn(t)?n=t:r=t),new x(o=>{let i=eu(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Wf(...e){let t=Ce(e),n=Ha(e,1/0),r=e;return r.length?r.length===1?F(r[0]):ln(n)(be(r,t)):ut}function dt(e,t){return E((n,r)=>{let o=0;n.subscribe(D(r,i=>e.call(t,i,o++)&&r.next(i)))})}function su(e){return E((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},u=()=>{i=null,s&&n.complete()};t.subscribe(D(n,c=>{r=!0,o=c,i||F(e(c)).subscribe(i=D(n,a,u))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function qf(e,t=cn){return su(()=>iu(e,t))}function au(e){return E((t,n)=>{let r=null,o=!1,i;r=t.subscribe(D(n,void 0,void 0,s=>{i=F(e(s,au(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function uu(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(D(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function Zf(e,t){return m(t)?Fe(e,t,1):Fe(e,1)}function Yf(e,t=cn){return E((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function dn(e){return E((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Uo(e){return e<=0?()=>ut:E((t,n)=>{let r=0;t.subscribe(D(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Qf(e){return Oe(()=>e)}function Kf(e,t=Q){return e=e??Jf,E((n,r)=>{let o,i=!0;n.subscribe(D(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Jf(e,t){return e===t}function ar(e=Xf){return E((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Xf(){return new lt}function eh(e){return E((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function cu(e,t){let n=arguments.length>=2;return r=>r.pipe(e?dt((o,i)=>e(o,i,r)):Q,Uo(1),n?dn(t):ar(()=>new lt))}function zo(e){return e<=0?()=>ut:E((t,n)=>{let r=[];t.subscribe(D(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function th(e,t){let n=arguments.length>=2;return r=>r.pipe(e?dt((o,i)=>e(o,i,r)):Q,zo(1),n?dn(t):ar(()=>new lt))}function nh(e,t){return E(uu(e,t,arguments.length>=2,!0))}function rh(e={}){let{connector:t=()=>new we,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=u=void 0,l=d=!1},p=()=>{let g=s;f(),g?.unsubscribe()};return E((g,T)=>{c++,!d&&!l&&h();let I=u=u??t();T.add(()=>{c--,c===0&&!d&&!l&&(a=Go(p,o))}),I.subscribe(T),!s&&c>0&&(s=new Ae({next:G=>I.next(G),error:G=>{d=!0,h(),a=Go(f,n,G),I.error(G)},complete:()=>{l=!0,h(),a=Go(f,r),I.complete()}}),F(g).subscribe(s))})(i)}}function Go(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Ae({next:()=>{r.unsubscribe(),e()}});return F(t(...n)).subscribe(r)}function oh(e){return dt((t,n)=>e<=n)}function ih(...e){let t=Ce(e);return E((n,r)=>{(t?sr(e,n,t):sr(e,n)).subscribe(r)})}function sh(e,t){return E((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(D(r,u=>{o?.unsubscribe();let c=0,l=i++;F(e(u,l)).subscribe(o=D(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ah(e){return E((t,n)=>{F(e).subscribe(D(n,()=>n.complete(),sn)),!n.closed&&t.subscribe(n)})}function uh(e,t,n){let r=m(e)||t||n?{next:e,error:t,complete:n}:e;return r?E((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(D(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Q}var Xu="https://g.co/ng/security#xss",S=class extends Error{constructor(t,n){super(ec(t,n)),this.code=t}};function ec(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function bn(e){return{toString:e}.toString()}var ur="__parameters__";function ch(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function tc(e,t,n){return bn(()=>{let r=ch(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(ur)?u[ur]:Object.defineProperty(u,ur,{value:[]})[ur];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var kt=globalThis;function R(e){for(let t in e)if(e[t]===R)return t;throw Error("Could not find renamed property on target object.")}function lh(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(J).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function ai(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var dh=R({__forward_ref__:R});function nc(e){return e.__forward_ref__=nc,e.toString=function(){return J(this())},e}function W(e){return rc(e)?e():e}function rc(e){return typeof e=="function"&&e.hasOwnProperty(dh)&&e.__forward_ref__===nc}function L(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ms(e){return{providers:e.providers||[],imports:e.imports||[]}}function qr(e){return lu(e,oc)||lu(e,ic)}function c0(e){return qr(e)!==null}function lu(e,t){return e.hasOwnProperty(t)?e[t]:null}function fh(e){let t=e&&(e[oc]||e[ic]);return t||null}function du(e){return e&&(e.hasOwnProperty(fu)||e.hasOwnProperty(hh))?e[fu]:null}var oc=R({\u0275prov:R}),fu=R({\u0275inj:R}),ic=R({ngInjectableDef:R}),hh=R({ngInjectorDef:R}),N=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=L({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function sc(e){return e&&!!e.\u0275providers}var ph=R({\u0275cmp:R}),gh=R({\u0275dir:R}),mh=R({\u0275pipe:R}),yh=R({\u0275mod:R}),Er=R({\u0275fac:R}),hn=R({__NG_ELEMENT_ID__:R}),hu=R({__NG_ENV_ID__:R});function ys(e){return typeof e=="string"?e:e==null?"":String(e)}function vh(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ys(e)}function Dh(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new S(-200,e)}function vs(e,t){throw new S(-201,!1)}var w=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}(w||{}),ui;function ac(){return ui}function re(e){let t=ui;return ui=e,t}function uc(e,t,n){let r=qr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&w.Optional)return null;if(t!==void 0)return t;vs(e,"Injector")}var Eh={},pn=Eh,ci="__NG_DI_FLAG__",Ir="ngTempTokenPath",Ih="ngTokenPath",wh=/\n/gm,Ch="\u0275",pu="__source",Bt;function bh(){return Bt}function qe(e){let t=Bt;return Bt=e,t}function _h(e,t=w.Default){if(Bt===void 0)throw new S(-203,!1);return Bt===null?uc(e,void 0,t):Bt.get(e,t&w.Optional?null:void 0,t)}function H(e,t=w.Default){return(ac()||_h)(W(e),t)}function C(e,t=w.Default){return H(e,Zr(t))}function Zr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function li(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):J(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(wh,` + `)}`}var Th=cc(tc("Optional"),8);var Nh=cc(tc("SkipSelf"),4);function gt(e,t){let n=e.hasOwnProperty(Er);return n?e[Er]:null}function Ah(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Ds(n,t):t(n))}function lc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function wr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Fh(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Es(e,t,n){let r=_n(e,t);return r>=0?e[r|1]=n:(r=~r,Rh(e,r,t,n)),r}function Wo(e,t){let n=_n(e,t);if(n>=0)return e[n|1]}function _n(e,t){return Ph(e,t,1)}function Ph(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(ye(r))return!1;s=!0}}}}return ye(r)||s}function ye(e){return(e&1)===0}function $h(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ye(s)&&(t+=mu(i,o),o=""),r=s,i=i||!ye(r);n++}return o!==""&&(t+=mu(i,o)),t}function qh(e){return e.map(Wh).join(",")}function Zh(e){let t=[],n=[],r=1,o=2;for(;r{let t=Ec(e),n=We(Ge({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===hc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||gn.Emulated,styles:e.styles||oe,_:null,schemas:e.schemas||null,tView:null,id:""});Ic(n);let r=e.dependencies;return n.directiveDefs=vu(r,!1),n.pipeDefs=vu(r,!0),n.id=Jh(n),n})}function Yh(e){return Ke(e)||bs(e)}function Qh(e){return e!==null}function ws(e){return bn(()=>({type:e.type,bootstrap:e.bootstrap||oe,declarations:e.declarations||oe,imports:e.imports||oe,exports:e.exports||oe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yu(e,t){if(e==null)return Re;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Qe.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Qe.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Cs(e){return bn(()=>{let t=Ec(e);return Ic(t),t})}function yc(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ke(e){return e[ph]||null}function bs(e){return e[gh]||null}function vc(e){return e[mh]||null}function Kh(e){let t=Ke(e)||bs(e)||vc(e);return t!==null?t.standalone:!1}function Dc(e,t){let n=e[yh]||null;if(!n&&t===!0)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}function Ec(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Re,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||oe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yu(e.inputs,t),outputs:yu(e.outputs),debugInfo:null}}function Ic(e){e.features?.forEach(t=>t(e))}function vu(e,t){if(!e)return null;let n=t?vc:Yh;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Qh)}function Jh(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function d0(e){return{\u0275providers:e}}function Xh(...e){return{\u0275providers:wc(!0,e),\u0275fromNgModule:!0}}function wc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ds(t,s=>{let a=s;fi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Cc(o,i),n}function Cc(e,t){for(let n=0;n{t(i,r)})}}function fi(e,t,n,r){if(e=W(e),!e)return!1;let o=null,i=du(e),s=!i&&Ke(e);if(!i&&!s){let u=e.ngModule;if(i=du(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)fi(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Ds(i.imports,l=>{fi(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Cc(c,t)}if(!a){let c=gt(o)||(()=>new o);t({provide:o,useFactory:c,deps:oe},o),t({provide:fc,useValue:o,multi:!0},o),t({provide:Cr,useValue:()=>H(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;_s(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function _s(e,t){for(let n of e)sc(n)&&(n=n.\u0275providers),Array.isArray(n)?_s(n,t):t(n)}var ep=R({provide:String,useValue:R});function bc(e){return e!==null&&typeof e=="object"&&ep in e}function tp(e){return!!(e&&e.useExisting)}function np(e){return!!(e&&e.useFactory)}function Ht(e){return typeof e=="function"}function rp(e){return!!e.useClass}var _c=new N(""),pr={},op={},qo;function Ms(){return qo===void 0&&(qo=new br),qo}var Je=class{},yn=class extends Je{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pi(t,s=>this.processProvider(s)),this.records.set(dc,Lt(void 0,this)),o.has("environment")&&this.records.set(Je,Lt(void 0,this));let i=this.records.get(_c);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(fc,oe,w.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=M(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),M(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=qe(this),r=re(void 0),o;try{return t()}finally{qe(n),re(r)}}get(t,n=pn,r=w.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(hu))return t[hu](this);r=Zr(r);let o,i=qe(this),s=re(void 0);try{if(!(r&w.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=cp(t)&&qr(t);c&&this.injectableDefInScope(c)?u=Lt(hi(t),pr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&w.Self?Ms():this.parent;return n=r&w.Optional&&n===pn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ir]=a[Ir]||[]).unshift(J(t)),i)throw a;return xh(a,t,"R3InjectorError",this.source)}else throw a}finally{re(s),qe(i)}}resolveInjectorInitializers(){let t=M(null),n=qe(this),r=re(void 0),o;try{let i=this.get(Cr,oe,w.Self);for(let s of i)s()}finally{qe(n),re(r),M(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(J(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(t){t=W(t);let n=Ht(t)?t:W(t&&t.provide),r=sp(t);if(!Ht(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Lt(void 0,pr,!0),o.factory=()=>li(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=M(null);try{return n.value===pr&&(n.value=op,n.value=n.factory()),typeof n.value=="object"&&n.value&&up(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{M(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=W(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function hi(e){let t=qr(e),n=t!==null?t.factory:gt(e);if(n!==null)return n;if(e instanceof N)throw new S(204,!1);if(e instanceof Function)return ip(e);throw new S(204,!1)}function ip(e){if(e.length>0)throw new S(204,!1);let n=fh(e);return n!==null?()=>n.factory(e):()=>new e}function sp(e){if(bc(e))return Lt(void 0,e.useValue);{let t=Mc(e);return Lt(t,pr)}}function Mc(e,t,n){let r;if(Ht(e)){let o=W(e);return gt(o)||hi(o)}else if(bc(e))r=()=>W(e.useValue);else if(np(e))r=()=>e.useFactory(...li(e.deps||[]));else if(tp(e))r=()=>H(W(e.useExisting));else{let o=W(e&&(e.useClass||e.provide));if(ap(e))r=()=>new o(...li(e.deps));else return gt(o)||hi(o)}return r}function Lt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ap(e){return!!e.deps}function up(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function cp(e){return typeof e=="function"||typeof e=="object"&&e instanceof N}function pi(e,t){for(let n of e)Array.isArray(n)?pi(n,t):n&&sc(n)?pi(n.\u0275providers,t):t(n)}function lp(e,t){e instanceof yn&&e.assertNotDestroyed();let n,r=qe(e),o=re(void 0);try{return t()}finally{qe(r),re(o)}}function xc(){return ac()!==void 0||bh()!=null}function Sc(e){if(!xc())throw new S(-203,!1)}function dp(e){return typeof e=="function"}var je=0,v=1,y=2,Z=3,Ee=4,se=5,Ut=6,_r=7,ie=8,zt=9,Pe=10,j=11,vn=12,Du=13,Jt=14,ae=15,mt=16,jt=17,ke=18,Yr=19,Tc=20,Ze=21,Zo=22,de=23,ue=25,Nc=1;var yt=7,Mr=8,Gt=9,q=10,xr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(xr||{});function Ye(e){return Array.isArray(e)&&typeof e[Nc]=="object"}function Ve(e){return Array.isArray(e)&&e[Nc]===!0}function Ac(e){return(e.flags&4)!==0}function Qr(e){return e.componentOffset>-1}function xs(e){return(e.flags&1)===1}function Xe(e){return!!e.template}function gi(e){return(e[y]&512)!==0}var mi=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Oc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Fc(){return Rc}function Rc(e){return e.type.prototype.ngOnChanges&&(e.setInput=hp),fp}Fc.ngInherit=!0;function fp(){let e=kc(this),t=e?.current;if(t){let n=e.previous;if(n===Re)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function hp(e,t,n,r,o){let i=this.declaredInputs[r],s=kc(e)||pp(e,{previous:Re,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new mi(c&&c.currentValue,n,u===Re),Oc(e,t,o,n)}var Pc="__ngSimpleChanges__";function kc(e){return e[Pc]||null}function pp(e,t){return e[Pc]=t}var Eu=null;var _e=function(e,t,n){Eu?.(e,t,n)},gp="svg",mp="math";function xe(e){for(;Array.isArray(e);)e=e[je];return e}function Lc(e,t){return xe(t[e])}function fe(e,t){return xe(t[e.index])}function Ss(e,t){return e.data[t]}function yp(e,t){return e[t]}function nt(e,t){let n=t[e];return Ye(n)?n:n[je]}function vp(e){return(e[y]&4)===4}function Ts(e){return(e[y]&128)===128}function Dp(e){return Ve(e[Z])}function Wt(e,t){return t==null?null:e[t]}function jc(e){e[jt]=0}function Vc(e){e[y]&1024||(e[y]|=1024,Ts(e)&&Kr(e))}function Ep(e,t){for(;e>0;)t=t[Jt],e--;return t}function Dn(e){return!!(e[y]&9216||e[de]?.dirty)}function yi(e){e[Pe].changeDetectionScheduler?.notify(7),e[y]&64&&(e[y]|=1024),Dn(e)&&Kr(e)}function Kr(e){e[Pe].changeDetectionScheduler?.notify(0);let t=vt(e);for(;t!==null&&!(t[y]&8192||(t[y]|=8192,!Ts(t)));)t=vt(t)}function Bc(e,t){if((e[y]&256)===256)throw new S(911,!1);e[Ze]===null&&(e[Ze]=[]),e[Ze].push(t)}function Ip(e,t){if(e[Ze]===null)return;let n=e[Ze].indexOf(t);n!==-1&&e[Ze].splice(n,1)}function vt(e){let t=e[Z];return Ve(t)?t[Z]:t}var b={lFrame:Jc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var $c=!1;function wp(){return b.lFrame.elementDepthCount}function Cp(){b.lFrame.elementDepthCount++}function bp(){b.lFrame.elementDepthCount--}function Hc(){return b.bindingsEnabled}function Uc(){return b.skipHydrationRootTNode!==null}function _p(e){return b.skipHydrationRootTNode===e}function Mp(){b.skipHydrationRootTNode=null}function _(){return b.lFrame.lView}function V(){return b.lFrame.tView}function Y(){let e=zc();for(;e!==null&&e.type===64;)e=e.parent;return e}function zc(){return b.lFrame.currentTNode}function xp(){let e=b.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Mn(e,t){let n=b.lFrame;n.currentTNode=e,n.isParent=t}function Gc(){return b.lFrame.isParent}function Wc(){b.lFrame.isParent=!1}function qc(){return $c}function Iu(e){$c=e}function Sp(){let e=b.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Tp(e){return b.lFrame.bindingIndex=e}function Xt(){return b.lFrame.bindingIndex++}function Zc(e){let t=b.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Np(){return b.lFrame.inI18n}function Ap(e,t){let n=b.lFrame;n.bindingIndex=n.bindingRootIndex=e,vi(t)}function Op(){return b.lFrame.currentDirectiveIndex}function vi(e){b.lFrame.currentDirectiveIndex=e}function Fp(e){let t=b.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Yc(){return b.lFrame.currentQueryIndex}function Ns(e){b.lFrame.currentQueryIndex=e}function Rp(e){let t=e[v];return t.type===2?t.declTNode:t.type===1?e[se]:null}function Qc(e,t,n){if(n&w.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&w.Host);)if(o=Rp(i),o===null||(i=i[Jt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=b.lFrame=Kc();return r.currentTNode=t,r.lView=e,!0}function As(e){let t=Kc(),n=e[v];b.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kc(){let e=b.lFrame,t=e===null?null:e.child;return t===null?Jc(e):t}function Jc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Xc(){let e=b.lFrame;return b.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var el=Xc;function Os(){let e=Xc();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 Pp(e){return(b.lFrame.contextLView=Ep(e,b.lFrame.contextLView))[ie]}function rt(){return b.lFrame.selectedIndex}function Dt(e){b.lFrame.selectedIndex=e}function Jr(){let e=b.lFrame;return Ss(e.tView,e.selectedIndex)}function kp(){return b.lFrame.currentNamespace}var tl=!0;function Fs(){return tl}function Rs(e){tl=e}function Lp(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Rc(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Ps(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[jt]+=65536),(a>14>16&&(e[y]&3)===t&&(e[y]+=16384,wu(a,i)):wu(a,i)}var $t=-1,Et=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Vp(e){return e instanceof Et}function Bp(e){return(e.flags&8)!==0}function $p(e){return(e.flags&16)!==0}var Qo={},Di=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Zr(r);let o=this.injector.get(t,Qo,r);return o!==Qo||n===Qo?o:this.parentInjector.get(t,n,r)}};function rl(e){return e!==$t}function Sr(e){return e&32767}function Hp(e){return e>>16}function Tr(e,t){let n=Hp(e),r=t;for(;n>0;)r=r[Jt],n--;return r}var Ei=!0;function Nr(e){let t=Ei;return Ei=e,t}var Up=256,ol=Up-1,il=5,zp=0,Me={};function Gp(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(hn)&&(r=n[hn]),r==null&&(r=n[hn]=zp++);let o=r&ol,i=1<>il)]|=i}function Ar(e,t){let n=sl(e,t);if(n!==-1)return n;let r=t[v];r.firstCreatePass&&(e.injectorIndex=t.length,Ko(r.data,e),Ko(t,null),Ko(r.blueprint,null));let o=ks(e,t),i=e.injectorIndex;if(rl(o)){let s=Sr(o),a=Tr(o,t),u=a[v].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function Ko(e,t){e.push(0,0,0,0,0,0,0,0,t)}function sl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ks(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=dl(o),r===null)return $t;if(n++,o=o[Jt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return $t}function Ii(e,t,n){Gp(e,t,n)}function Wp(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:c;for(let f=d;f=u&&p.type===n)return f}if(o){let f=s[u];if(f&&Xe(f)&&f.type===n)return u}return null}function It(e,t,n,r){let o=e[n],i=t.data;if(Vp(o)){let s=o;s.resolving&&Dh(vh(i[n]));let a=Nr(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?re(s.injectImpl):null,l=Qc(e,r,w.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Lp(n,i[n],t)}finally{c!==null&&re(c),Nr(a),s.resolving=!1,el()}}return o}function Zp(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(hn)?e[hn]:void 0;return typeof t=="number"?t>=0?t&ol:Yp:t}function Cu(e,t,n){let r=1<>il)]&r)}function bu(e,t){return!(e&w.Self)&&!(e&w.Host&&t)}var pt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return cl(this._tNode,this._lView,t,Zr(r),n)}};function Yp(){return new pt(Y(),_())}function f0(e){return bn(()=>{let t=e.prototype.constructor,n=t[Er]||wi(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Er]||wi(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wi(e){return rc(e)?()=>{let t=wi(W(e));return t&&t()}:gt(e)}function Qp(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[y]&2048&&!(s[y]&512);){let a=ll(i,s,n,r|w.Self,Me);if(a!==Me)return a;let u=i.parent;if(!u){let c=s[Tc];if(c){let l=c.get(n,Me,r);if(l!==Me)return l}u=dl(s),s=s[Jt]}i=u}return o}function dl(e){let t=e[v],n=t.type;return n===2?t.declTNode:n===1?e[se]:null}function Kp(e){return Wp(Y(),e)}function _u(e,t=null,n=null,r){let o=fl(e,t,n,r);return o.resolveInjectorInitializers(),o}function fl(e,t=null,n=null,r,o=new Set){let i=[n||oe,Xh(e)];return r=r||(typeof e=="object"?void 0:J(e)),new yn(i,t||Ms(),r||null,o)}var ht=class ht{static create(t,n){if(Array.isArray(t))return _u({name:""},n,t,"");{let r=t.name??"";return _u({name:r},t.parent,t.providers,r)}}};ht.THROW_IF_NOT_FOUND=pn,ht.NULL=new br,ht.\u0275prov=L({token:ht,providedIn:"any",factory:()=>H(dc)}),ht.__NG_ELEMENT_ID__=-1;var et=ht;var Jp=new N("");Jp.__NG_ELEMENT_ID__=e=>{let t=Y();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&w.Optional)return null;throw new S(204,!1)};var Xp="ngOriginalError";function Jo(e){return e[Xp]}var Ls=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=eg,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),Ci=class extends Ls{constructor(t){super(),this._lView=t}onDestroy(t){return Bc(this._lView,t),()=>Ip(this._lView,t)}};function eg(){return new Ci(_())}var Xr=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new an(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275prov=L({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();var bi=class extends we{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,xc()&&(this.destroyRef=C(Ls,{optional:!0})??void 0,this.pendingTasks=C(Xr,{optional:!0})??void 0)}emit(t){let n=M(null);try{super.next(t)}finally{M(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof $&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},De=bi;function Or(...e){}function hl(e){let t,n;function r(){e=Or;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Mu(e){return queueMicrotask(()=>e()),()=>{e=Or}}var js="isAngularZone",Fr=js+"_ID",tg=0,X=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new De(!1),this.onMicrotaskEmpty=new De(!1),this.onStable=new De(!1),this.onError=new De(!1),typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let 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=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,og(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(js)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,ng,Or,Or);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},ng={};function Vs(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function rg(e){e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,Zone.root.run(()=>{hl(()=>{e.callbackScheduled=!1,_i(e),e.isCheckStableRunning=!0,Vs(e),e.isCheckStableRunning=!1})}),_i(e))}function og(e){let t=()=>{rg(e)},n=tg++;e._inner=e._inner.fork({name:"angular",properties:{[js]:!0,[Fr]:n,[Fr+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(ig(u))return r.invokeTask(i,s,a,u);try{return xu(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Su(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return xu(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!sg(u)&&t(),Su(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,_i(e),Vs(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function _i(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function xu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Su(e){e._nesting--,Vs(e)}var Mi=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new De,this.onMicrotaskEmpty=new De,this.onStable=new De,this.onError=new De}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function ig(e){return pl(e,"__ignore_ng_zone__")}function sg(e){return pl(e,"__scheduler_tick__")}function pl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var qt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Jo(t);for(;n&&Jo(n);)n=Jo(n);return n||null}},ag=new N("",{providedIn:"root",factory:()=>{let e=C(X),t=C(qt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function ug(){return en(Y(),_())}function en(e,t){return new tn(fe(e,t))}var tn=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=ug;let e=t;return e})();function cg(e){return e instanceof tn?e.nativeElement:e}function lg(){return this._results[Symbol.iterator]()}var xi=class e{get changes(){return this._changes??=new De}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=lg)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Oh(t);(this._changesDetected=!Ah(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function gl(e){return(e.flags&128)===128}var ml=new Map,dg=0;function fg(){return dg++}function hg(e){ml.set(e[Yr],e)}function pg(e){ml.delete(e[Yr])}var Tu="__ngContext__";function wt(e,t){Ye(t)?(e[Tu]=t[Yr],hg(t)):e[Tu]=t}function yl(e){return Dl(e[vn])}function vl(e){return Dl(e[Ee])}function Dl(e){for(;e!==null&&!Ve(e);)e=e[Ee];return e}var Si;function h0(e){Si=e}function gg(){if(Si!==void 0)return Si;if(typeof document<"u")return document;throw new S(210,!1)}var p0=new N("",{providedIn:"root",factory:()=>mg}),mg="ng",yg=new N(""),Bs=new N("",{providedIn:"platform",factory:()=>"unknown"});var g0=new N(""),m0=new N("",{providedIn:"root",factory:()=>gg().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var vg="h",Dg="b";var Eg=()=>null;function $s(e,t,n=!1){return Eg(e,t,n)}var El=!1,Ig=new N("",{providedIn:"root",factory:()=>El});var cr;function wg(){if(cr===void 0&&(cr=null,kt.trustedTypes))try{cr=kt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return cr}function eo(e){return wg()?.createHTML(e)||e}var Le=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Xu})`}},Ti=class extends Le{getTypeName(){return"HTML"}},Ni=class extends Le{getTypeName(){return"Style"}},Ai=class extends Le{getTypeName(){return"Script"}},Oi=class extends Le{getTypeName(){return"URL"}},Fi=class extends Le{getTypeName(){return"ResourceURL"}};function Hs(e){return e instanceof Le?e.changingThisBreaksApplicationSecurity:e}function y0(e,t){let n=Cg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Xu})`)}return n===t}function Cg(e){return e instanceof Le&&e.getTypeName()||null}function v0(e){return new Ti(e)}function D0(e){return new Ni(e)}function E0(e){return new Ai(e)}function I0(e){return new Oi(e)}function w0(e){return new Fi(e)}function bg(e){let t=new Pi(e);return _g()?new Ri(t):t}var Ri=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(eo(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Pi=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=eo(t),n}};function _g(){try{return!!new window.DOMParser().parseFromString(eo(""),"text/html")}catch{return!1}}var Mg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function xg(e){return e=String(e),e.match(Mg)?e:"unsafe:"+e}function Be(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function xn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Il=Be("area,br,col,hr,img,wbr"),wl=Be("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Cl=Be("rp,rt"),Sg=xn(Cl,wl),Tg=xn(wl,Be("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")),Ng=xn(Cl,Be("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")),Nu=xn(Il,Tg,Ng,Sg),bl=Be("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ag=Be("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"),Og=Be("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"),Fg=xn(bl,Ag,Og),Rg=Be("script,style,template"),ki=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Lg(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=kg(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Au(t).toLowerCase();if(!Nu.hasOwnProperty(n))return this.sanitizedSomething=!0,!Rg.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Au(t).toLowerCase();Nu.hasOwnProperty(n)&&!Il.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Ou(t))}};function Pg(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw _l(t);return t}function Lg(e){let t=e.firstChild;if(t&&Pg(e,t))throw _l(t);return t}function Au(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function _l(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var jg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vg=/([^\#-~ |!])/g;function Ou(e){return e.replace(/&/g,"&").replace(jg,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Vg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var lr;function C0(e,t){let n=null;try{lr=lr||bg(e);let r=t?String(t):"";n=lr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=lr.getInertBodyElement(r)}while(r!==i);let a=new ki().sanitizeChildren(Fu(n)||n);return eo(a)}finally{if(n){let r=Fu(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Fu(e){return"content"in e&&Bg(e)?e.content:null}function Bg(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var $g=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}($g||{});function Ml(e){return e instanceof Function?e():e}function xl(e){return(e??C(et)).get(Bs)==="browser"}var Rr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Rr||{}),Hg;function Us(e,t){return Hg(e,t)}function Vt(e,t,n,r,o){if(r!=null){let i,s=!1;Ve(r)?i=r:Ye(r)&&(s=!0,r=r[je]);let a=xe(r);e===0&&n!==null?o==null?Ol(t,n,a):Pr(t,n,a,o||null,!0):e===1&&n!==null?Pr(t,n,a,o||null,!0):e===2?tm(t,a,s):e===3&&t.destroyNode(a),i!=null&&rm(t,e,i,n,o)}}function Ug(e,t){return e.createText(t)}function zg(e,t,n){e.setValue(t,n)}function Sl(e,t,n){return e.createElement(t,n)}function Gg(e,t){Tl(e,t),t[je]=null,t[se]=null}function Wg(e,t,n,r,o,i){r[je]=o,r[se]=t,no(e,r,n,1,o,i)}function Tl(e,t){t[Pe].changeDetectionScheduler?.notify(8),no(e,t,t[j],2,null,null)}function qg(e){let t=e[vn];if(!t)return Xo(e[v],e);for(;t;){let n=null;if(Ye(t))n=t[vn];else{let r=t[q];r&&(n=r)}if(!n){for(;t&&!t[Ee]&&t!==e;)Ye(t)&&Xo(t[v],t),t=t[Z];t===null&&(t=e),Ye(t)&&Xo(t[v],t),n=t&&t[Ee]}t=n}}function Zg(e,t,n,r){let o=q+r,i=n.length;r>0&&(n[o-1][Ee]=t),r0&&(e[n-1][Ee]=r[Ee]);let i=wr(e,q+t);Gg(r[v],r);let s=i[ke];s!==null&&s.detachView(i[v]),r[Z]=null,r[Ee]=null,r[y]&=-129}return r}function to(e,t){if(!(t[y]&256)){let n=t[j];n.destroyNode&&no(e,t,n,3,null,null),qg(t)}}function Xo(e,t){if(t[y]&256)return;let n=M(null);try{t[y]&=-129,t[y]|=256,t[de]&&So(t[de]),Qg(e,t),Yg(e,t),t[v].type===1&&t[j].destroy();let r=t[mt];if(r!==null&&Ve(t[Z])){r!==t[Z]&&zs(r,t);let o=t[ke];o!==null&&o.detachView(e)}pg(t)}finally{M(n)}}function Yg(e,t){let n=e.cleanup,r=t[_r];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[_r]=null);let o=t[Ze];if(o!==null){t[Ze]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===gn.None||i===gn.Emulated)return null}return fe(r,n)}}function Pr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Ol(e,t,n){e.appendChild(t,n)}function Ru(e,t,n,r,o){r!==null?Pr(e,t,n,r,o):Ol(e,t,n)}function Fl(e,t){return e.parentNode(t)}function Jg(e,t){return e.nextSibling(t)}function Rl(e,t,n){return em(e,t,n)}function Xg(e,t,n){return e.type&40?fe(e,n):null}var em=Xg,Pu;function Gs(e,t,n,r){let o=Al(e,r,t),i=t[j],s=r.parent||t[se],a=Rl(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uue&&Vl(e,t,ue,!1),_e(s?2:0,o),n(r,o)}finally{Dt(i),_e(s?3:1,o)}}function Ul(e,t,n){if(Ac(t)){let r=M(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function fm(e,t,n,r){let o=Jl(t);o.push(n),e.firstCreatePass&&Xl(e).push(r,o.length-1)}function hm(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Uc()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ku(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=Qe.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Lu(r,n,c,a,u):Lu(r,n,c,a)}return r}function Lu(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function pm(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Dm(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Qr(n)&&Mm(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Ar(n,t),wt(r,t);let s=n.initialInputs;for(let a=o;a{Kr(e.lView)},consumerOnSignalRead(){this.lView[de]=this}});function Hm(e){let t=e[de]??Object.create(Um);return t.lView=e,t}var Um=We(Ge({},on),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=vt(e.lView);for(;t&&!nd(t[v]);)t=vt(t);t&&Vc(t)},consumerOnSignalRead(){this.lView[de]=this}});function nd(e){return e.type!==2}var zm=100;function rd(e,t=!0,n=0){let r=e[Pe],o=r.rendererFactory,i=!1;i||o.begin?.();try{Gm(e,n)}catch(s){throw t&&ed(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Gm(e,t){let n=qc();try{Iu(!0),Bi(e,t);let r=0;for(;Dn(e);){if(r===zm)throw new S(103,!1);r++,Bi(e,1)}}finally{Iu(n)}}function Wm(e,t,n,r){let o=t[y];if((o&256)===256)return;let i=!1,s=!1;!i&&t[Pe].inlineEffectRunner?.flush(),As(t);let a=!0,u=null,c=null;i||(nd(e)?(c=jm(t),u=Rn(c)):Ea()===null?(a=!1,c=Hm(t),u=Rn(c)):t[de]&&(So(t[de]),t[de]=null));try{jc(t),Tp(e.bindingStartIndex),n!==null&&Hl(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&gr(t,f,null)}else{let f=e.preOrderHooks;f!==null&&mr(t,f,0,null),Yo(t,0)}if(s||qm(t),od(t,0),e.contentQueries!==null&&Kl(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&gr(t,f)}else{let f=e.contentHooks;f!==null&&mr(t,f,1),Yo(t,1)}sm(e,t);let d=e.components;d!==null&&sd(t,d,0);let h=e.viewQuery;if(h!==null&&Vi(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&gr(t,f)}else{let f=e.viewHooks;f!==null&&mr(t,f,2),Yo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Zo]){for(let f of t[Zo])f();t[Zo]=null}i||(t[y]&=-73)}catch(l){throw i||Kr(t),l}finally{c!==null&&(Mo(c,u),a&&Bm(c)),Os()}}function od(e,t){for(let n=yl(e);n!==null;n=vl(n))for(let r=q;r-1&&(En(t,r),wr(n,r))}this._attachedToViewContainer=!1}to(this._lView[v],this._lView)}onDestroy(t){Bc(this._lView,t)}markForCheck(){Ks(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[y]&=-129}reattach(){yi(this._lView),this._lView[y]|=128}detectChanges(){this._lView[y]|=1024,rd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=gi(this._lView),n=this._lView[mt];n!==null&&!t&&zs(n,this._lView),Tl(this._lView[v],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=gi(this._lView),r=this._lView[mt];r!==null&&!n&&Nl(r,this._lView),yi(this._lView)}},bt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Km;let e=t;return e})(),Ym=bt,Qm=class extends Ym{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=io(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Ct(o)}};function Km(){return Js(Y(),_())}function Js(e,t){return e.type&4?new Qm(t,e,en(e,t)):null}var x0=new RegExp(`^(\\d+)*(${Dg}|${vg})*(.*)`);var Jm=()=>null;function wn(e,t){return Jm(e,t)}var Zt=class{},ad=new N("",{providedIn:"root",factory:()=>!1});var ud=new N(""),$i=class{},Lr=class{};function Xm(e){let t=Error(`No component factory found for ${J(e)}.`);return t[ey]=e,t}var ey="ngComponent";var Hi=class{resolveComponentFactory(t){throw Xm(t)}},oa=class oa{};oa.NULL=new Hi;var Yt=oa,jr=class{},cd=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>ty();let e=t;return e})();function ty(){let e=_(),t=Y(),n=nt(t.index,e);return(Ye(n)?n:e)[j]}var ny=(()=>{let t=class t{};t.\u0275prov=L({token:t,providedIn:"root",factory:()=>null});let e=t;return e})();var ju=new Set;function Mt(e){ju.has(e)||(ju.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var K=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(K||{}),ld={destroy(){}};function ry(e,t){!t&&Sc(ry);let n=t?.injector??C(et);return xl(n)?(Mt("NgAfterRender"),dd(e,n,!1,t?.phase??K.MixedReadWrite)):ld}function oy(e,t){!t&&Sc(oy);let n=t?.injector??C(et);return xl(n)?(Mt("NgAfterNextRender"),dd(e,n,!0,t?.phase??K.MixedReadWrite)):ld}function iy(e,t){if(e instanceof Function)switch(t){case K.EarlyRead:return{earlyRead:e};case K.Write:return{write:e};case K.MixedReadWrite:return{mixedReadWrite:e};case K.Read:return{read:e}}return e}function dd(e,t,n,r){let o=iy(e,r),i=t.get(Xs),s=i.handler??=new zi,a=[],u=[],c=()=>{for(let f of u)s.unregister(f);l()},l=t.get(Ls).onDestroy(c),d=0,h=(f,p)=>{if(!p)return;let g=n?(...I)=>(d--,d<1&&c(),p(...I)):p,T=lp(t,()=>new Ui(f,a,g));s.register(T),u.push(T),d++};return h(K.EarlyRead,o.earlyRead),h(K.Write,o.write),h(K.MixedReadWrite,o.mixedReadWrite),h(K.Read,o.read),{destroy:c}}var Ui=class{constructor(t,n,r){this.phase=t,this.pipelinedArgs=n,this.callbackFn=r,this.zone=C(X),this.errorHandler=C(qt,{optional:!0}),C(Zt,{optional:!0})?.notify(6)}invoke(){try{let t=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,t)}catch(t){this.errorHandler?.handleError(t)}}},zi=class{constructor(){this.executingCallbacks=!1,this.buckets={[K.EarlyRead]:new Set,[K.Write]:new Set,[K.MixedReadWrite]:new Set,[K.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(let t of Object.values(this.buckets))for(let n of t)n.invoke();this.executingCallbacks=!1;for(let t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(let t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}},Xs=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=L({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Gi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Ll(e,n,i.join(" "))}}function fy(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=py;let e=t;return e})();function py(){let e=Y();return hd(e,_())}var gy=nn,fd=class extends gy{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return en(this._hostTNode,this._hostLView)}get injector(){return new pt(this._hostTNode,this._hostLView)}get parentInjector(){let t=ks(this._hostTNode,this._hostLView);if(rl(t)){let n=Tr(t,this._hostLView),r=Sr(t),o=n[v].data[r+8];return new pt(o,n)}else return new pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Bu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-q}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=wn(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,In(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!dp(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let u=s?t:new Qt(Ke(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let g=(s?c:this.parentInjector).get(Je,null);g&&(i=g)}let l=Ke(u.componentType??{}),d=wn(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,o,h,i);return this.insertImpl(f.hostView,a,In(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Dp(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[Z],c=new fd(u,u[se],u[Z]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return so(s,o,i,r),t.attachToViewContainerRef(),lc(ei(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Bu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=En(this._lContainer,n);r&&(wr(ei(this._lContainer),n),to(r[v],r))}detach(t){let n=this._adjustIndex(t,-1),r=En(this._lContainer,n);return r&&wr(ei(this._lContainer),n)!=null?new Ct(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Bu(e){return e[Mr]}function ei(e){return e[Mr]||(e[Mr]=[])}function hd(e,t){let n,r=t[e.index];return Ve(r)?n=r:(n=Ql(r,t,null,e),t[e.index]=n,oo(t,n)),yy(n,t,e,r),new fd(n,e,t)}function my(e,t){let n=e[j],r=n.createComment(""),o=fe(t,e),i=Fl(n,o);return Pr(n,i,r,Jg(n,o),!1),r}var yy=Ey,vy=()=>!1;function Dy(e,t,n){return vy(e,t,n)}function Ey(e,t,n,r){if(e[yt])return;let o;n.type&8?o=xe(r):o=my(t,n),e[yt]=o}var qi=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Zi=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=q;dt.trim())}function md(e,t,n){e.queries===null&&(e.queries=new Yi),e.queries.track(new Qi(t,n))}function Ty(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function ea(e,t){return e.queries.getByIndex(t)}function Ny(e,t){let n=e[v],r=ea(n,t);return r.crossesNgTemplate?Ki(n,e,t,[]):pd(n,e,r,t)}function Ay(e){return typeof e=="function"&&e[Ne]!==void 0}function T0(e,t){Mt("NgSignals");let n=Aa(e),r=n[Ne];return t?.equal&&(r.equal=t.equal),n.set=o=>To(r,o),n.update=o=>Oa(r,o),n.asReadonly=Oy.bind(n),n}function Oy(){let e=this[Ne];if(e.readonlyFn===void 0){let t=()=>this();t[Ne]=e,e.readonlyFn=t}return e.readonlyFn}function yd(e){return Ay(e)&&typeof e.set=="function"}function Fy(e){return Object.getPrototypeOf(e.prototype).constructor}function Ry(e){let t=Fy(e.type),n=!0,r=[e];for(;t;){let o;if(Xe(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=dr(e.inputs),s.inputTransforms=dr(e.inputTransforms),s.declaredInputs=dr(e.declaredInputs),s.outputs=dr(e.outputs);let a=o.hostBindings;a&&Vy(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Ly(e,u),c&&jy(e,c),Py(e,o),lh(e.outputs,o.outputs),Xe(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=mn(o.hostAttrs,n=mn(n,o.hostAttrs))}}function dr(e){return e===Re?{}:e===oe?[]:e}function Ly(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function jy(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Vy(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function N0(e){let t=n=>{let r=(Array.isArray(e)?e:e()).map(o=>typeof o=="function"?{directive:W(o),inputs:Re,outputs:Re}:{directive:W(o.directive),inputs:$u(o.inputs),outputs:$u(o.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=vd,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function vd(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives){let o=bs(r.directive);By(o.declaredInputs,r.inputs),vd(o,t,n),n.set(o,r),t.push(o)}}function $u(e){if(e===void 0||e.length===0)return Re;let t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},es=class extends Ji{constructor(t){super(),this.moduleType=t}create(t){return new Xi(this.moduleType,t,[])}};var $r=class extends tt{constructor(t){super(),this.componentFactoryResolver=new Vr(this),this.instance=null;let n=new yn([...t.providers,{provide:tt,useValue:this},{provide:Yt,useValue:this.componentFactoryResolver}],t.parent||Ms(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Hy(e,t,n=null){return new $r({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function Dd(e){return zy(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Uy(e,t){if(Array.isArray(e))for(let n=0;n>17&32767}function ev(e){return(e&2)==2}function tv(e,t){return e&131071|t<<17}function ts(e){return e|2}function Kt(e){return(e&131068)>>2}function ti(e,t){return e&-131069|t<<2}function nv(e){return(e&1)===1}function ns(e){return e|1}function rv(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=_t(s),u=Kt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||_n(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let h=_t(e[a+1]);e[r+1]=fr(h,a),h!==0&&(e[h+1]=ti(e[h+1],r)),e[a+1]=tv(e[a+1],r)}else e[r+1]=fr(a,0),a!==0&&(e[a+1]=ti(e[a+1],r)),a=r;else e[r+1]=fr(u,0),a===0?a=r:e[u+1]=ti(e[u+1],r),u=r;c&&(e[r+1]=ts(e[r+1])),Hu(e,l,r,!0),Hu(e,l,r,!1),ov(t,l,e,r,i),s=fr(a,u),i?t.classBindings=s:t.styleBindings=s}function ov(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&_n(i,t)>=0&&(n[r+1]=ns(n[r+1]))}function Hu(e,t,n,r){let o=e[n+1],i=t===null,s=r?_t(o):Kt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];iv(u,t)&&(a=!0,e[s+1]=r?ns(c):ts(c)),s=r?_t(c):Kt(c)}a&&(e[n+1]=r?ts(o):ns(o))}function iv(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?_n(e,t)>=0:!1}var ve={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sv(e){return e.substring(ve.key,ve.keyEnd)}function av(e){return uv(e),Ed(e,Id(e,0,ve.textEnd))}function Ed(e,t){let n=ve.textEnd;return n===t?-1:(t=ve.keyEnd=cv(e,ve.key=t,n),Id(e,t,n))}function uv(e){ve.key=0,ve.keyEnd=0,ve.value=0,ve.valueEnd=0,ve.textEnd=e.length}function Id(e,t,n){for(;t32;)t++;return t}function lv(e,t,n){let r=_(),o=Xt();if(Se(r,o,t)){let i=V(),s=Jr();Zs(i,s,r,e,t,r[j],n,!1)}return lv}function rs(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Ys(e,n,i[s],s,r)}function wd(e,t,n){return Cd(e,t,n,!1),wd}function dv(e,t){return Cd(e,t,null,!0),dv}function A0(e){hv(Dv,fv,e,!0)}function fv(e,t){for(let n=av(t);n>=0;n=Ed(t,n))Es(e,sv(t),!0)}function Cd(e,t,n,r){let o=_(),i=V(),s=Zc(2);if(i.firstUpdatePass&&_d(i,e,s,r),t!==$e&&Se(o,s,t)){let a=i.data[rt()];Md(i,a,o,o[j],e,o[s+1]=Iv(t,n),r,s)}}function hv(e,t,n,r){let o=V(),i=Zc(2);o.firstUpdatePass&&_d(o,null,i,r);let s=_();if(n!==$e&&Se(s,i,n)){let a=o.data[rt()];if(xd(a,r)&&!bd(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=ai(u,n||"")),rs(o,a,s,n,r)}else Ev(o,a,s,s[j],s[i+1],s[i+1]=vv(e,t,n),r,i)}}function bd(e,t){return t>=e.expandoStartIndex}function _d(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[rt()],s=bd(e,n);xd(i,r)&&t===null&&!s&&(t=!1),t=pv(o,i,t,r),rv(o,i,t,n,s,r)}}function pv(e,t,n,r){let o=Fp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ni(null,e,t,n,r),n=Cn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ni(o,e,t,n,r),i===null){let u=gv(e,t,r);u!==void 0&&Array.isArray(u)&&(u=ni(null,e,t,u[1],r),u=Cn(u,t.attrs,r),mv(e,t,r,u))}else i=yv(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function gv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Kt(r)!==0)return e[_t(r)]}function mv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[_t(o)]=r}function yv(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[o+1];h===$e&&(h=d?oe:void 0);let f=d?Wo(h,r):l===r?h:void 0;if(c&&!Ur(f)&&(f=Wo(u,r)),Ur(f)&&(a=f,s))return a;let p=e[o+1];o=s?_t(p):Kt(p)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=Wo(u,r))}return a}function Ur(e){return e!==void 0}function Iv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=J(Hs(e)))),e}function xd(e,t){return(e.flags&(t?8:16))!==0}var os=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function ri(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function wv(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=ri(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[u],p=ri(s,h,u,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,u--;continue}let g=n(i,c),T=n(s,h),I=n(i,l);if(Object.is(I,T)){let G=n(u,f);Object.is(G,g)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new zr,o??=Gu(e,i,s,n),is(e,r,i,I))e.updateValue(i,l),i++,s++;else if(o.has(I))r.set(g,e.detach(i)),s--;else{let G=e.create(i,t[i]);e.attach(i,G),i++,s++}}for(;i<=u;)zu(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,h=ri(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new zr,o??=Gu(e,i,s,n);let f=n(i,d);if(is(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let p=n(i,l);r.set(p,e.detach(i)),s--}}}for(;!c.done;)zu(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function is(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function zu(e,t,n,r,o){if(is(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Gu(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var zr=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};var ss=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-q}};var as=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function O0(e,t,n,r,o,i,s,a,u,c,l,d,h){Mt("NgControlFlow");let f=_(),p=V(),g=u!==void 0,T=_(),I=a?s.bind(T[ae][ie]):s,G=new as(g,I);T[ue+e]=G,Hr(f,p,e+1,t,n,r,o,Wt(p.consts,i)),g&&Hr(f,p,e+2,u,c,l,d,Wt(p.consts,h))}var us=class extends os{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-q}at(t){return this.getLView(t)[ie].$implicit}attach(t,n){let r=n[Ut];this.needsIndexUpdate||=t!==this.length,so(this.lContainer,n,t,In(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Cv(this.lContainer,t)}create(t,n){let r=wn(this.lContainer,this.templateTNode.tView.ssrId),o=io(this.hostLView,this.templateTNode,new ss(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){to(t[v],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[ie].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Rs(!0),Sl(r,o,kp()));function Sv(e,t,n){let r=_(),o=Xt();if(Se(r,o,t)){let i=V(),s=Jr();Zs(i,s,r,e,t,r[j],n,!0)}return Sv}var ft=void 0;function Tv(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var Nv=["en",[["a","p"],["AM","PM"],ft],[["AM","PM"],ft,ft],[["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"]],ft,[["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"]],ft,[["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}",ft,"{1} 'at' {0}",ft],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Tv],oi={};function he(e){let t=Av(e),n=Zu(t);if(n)return n;let r=t.split("-")[0];if(n=Zu(r),n)return n;if(r==="en")return Nv;throw new S(701,!1)}function Zu(e){return e in oi||(oi[e]=kt.ng&&kt.ng.common&&kt.ng.common.locales&&kt.ng.common.locales[e]),oi[e]}var B=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}(B||{});function Av(e){return e.toLowerCase().replace(/_/g,"-")}var Gr="en-US";var Ov=Gr;function Fv(e){typeof e=="string"&&(Ov=e.toLowerCase().replace(/_/g,"-"))}var Rv=(e,t,n)=>{};function Pv(e,t,n,r){let o=_(),i=V(),s=Y();return Nd(i,o,o[j],s,e,t,r),Pv}function kv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function Nd(e,t,n,r,o,i,s){let a=xs(r),c=e.firstCreatePass&&Xl(e),l=t[ie],d=Jl(t),h=!0;if(r.type&3||s){let g=fe(r,t),T=s?s(g):g,I=d.length,G=s?Te=>s(xe(Te[r.index])):r.index,te=null;if(!s&&a&&(te=kv(e,t,o,r.index)),te!==null){let Te=te.__ngLastListenerFn__||te;Te.__ngNextListenerFn__=i,te.__ngLastListenerFn__=i,h=!1}else{i=Qu(r,t,l,i),Rv(g,o,i);let Te=n.listen(T,o,i);d.push(i,Te),c&&c.push(o,G,I,I+1)}}else i=Qu(r,t,l,i);let f=r.outputs,p;if(h&&f!==null&&(p=f[o])){let g=p.length;if(g)for(let T=0;T-1?nt(e.index,t):t;Ks(s,5);let a=Yu(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=Yu(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function R0(e=1){return Pp(e)}function Lv(e,t){let n=null,r=Hh(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function $0(e,t=""){let n=_(),r=V(),o=e+ue,i=r.firstCreatePass?Sn(r,o,1,t,null):r.data[o],s=Bv(r,n,i,t,e);n[o]=s,Fs()&&Gs(r,n,s,i),Mn(i,!1)}var Bv=(e,t,n,r,o)=>(Rs(!0),Ug(t[j],r));function $v(e){return Ad("",e,""),$v}function Ad(e,t,n){let r=_(),o=Xy(r,e,t,n);return o!==$e&&Am(r,rt(),o),Ad}function Hv(e,t,n){yd(t)&&(t=t());let r=_(),o=Xt();if(Se(r,o,t)){let i=V(),s=Jr();Zs(i,s,r,e,t,r[j],n,!1)}return Hv}function H0(e,t){let n=yd(e);return n&&e.set(t),n}function Uv(e,t){let n=_(),r=V(),o=Y();return Nd(r,n,n[j],o,e,t),Uv}function zv(e,t,n){let r=V();if(r.firstCreatePass){let o=Xe(e);cs(n,r.data,r.blueprint,o,!0),cs(t,r.data,r.blueprint,o,!1)}}function cs(e,t,n,r,o){if(e=W(e),Array.isArray(e))for(let i=0;i>20;if(Ht(e)||!e.multi){let f=new Et(c,o,ce),p=si(u,t,o?l:l+h,d);p===-1?(Ii(Ar(a,s),i,u),ii(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=si(u,t,l+h,d),p=si(u,t,l,l+h),g=f>=0&&n[f],T=p>=0&&n[p];if(o&&!T||!o&&!g){Ii(Ar(a,s),i,u);let I=qv(o?Wv:Gv,n.length,o,r,c);!o&&T&&(n[p].providerFactory=I),ii(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=Od(n[o?p:f],c,!o&&r);ii(i,e,f>-1?f:p,I)}!o&&r&&T&&n[p].componentProviders++}}}function ii(e,t,n,r){let o=Ht(t),i=rp(t);if(o||i){let u=(i?W(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Od(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function si(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>zv(r,o?o(e):e,t)}}var Zv=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=wc(!1,r.type),i=o.length>0?Hy([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=L({token:t,providedIn:"environment",factory:()=>new t(H(Je))});let e=t;return e})();function z0(e){Mt("NgStandalone"),e.getStandaloneInjector=t=>t.get(Zv).getOrCreateStandaloneInjector(e)}function Yv(e,t){let n=e[t];return n===$e?void 0:n}function Qv(e,t,n,r,o,i,s){let a=t+n;return Wy(e,a,o,i)?Gy(e,a+2,s?r.call(s,o,i):r(o,i)):Yv(e,a+2)}function G0(e,t){let n=V(),r,o=e+ue;n.firstCreatePass?(r=Kv(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=gt(r.type,!0)),s,a=re(ce);try{let u=Nr(!1),c=i();return Nr(u),Vv(n,_(),o,c),c}finally{re(a)}}function Kv(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function W0(e,t,n,r){let o=e+ue,i=_(),s=yp(i,o);return Jv(i,o)?Qv(i,Sp(),t,s.transform,n,r,s):s.transform(n,r)}function Jv(e,t){return e[v].data[t].pure}var q0=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var Xv=new N(""),eD=new N(""),Z0=(()=>{let t=class t{constructor(r,o,i){this._ngZone=r,this.registry=o,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,ta||(nD(i),i.addToWindow(o)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(r)?(clearTimeout(o.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r()},o)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:i})}whenStable(r,o,i){if(i&&!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(r,o,i),this._runCallbacksIfReady()}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,o,i){return[]}};t.\u0275fac=function(o){return new(o||t)(H(X),H(tD),H(eD))},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})(),tD=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(r,o){this._applications.set(r,o)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,o=!0){return ta?.findTestabilityInTree(this,r,o)??null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function nD(e){ta=e}var ta;function na(e){return!!e&&typeof e.then=="function"}function Fd(e){return!!e&&typeof e.subscribe=="function"}var rD=new N(""),Rd=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=C(rD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(na(s))r.push(s);else if(Fd(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),oD=new N("");function iD(){Na(()=>{throw new S(600,!1)})}function sD(e){return e.isBoundToModule}var aD=10;function uD(e,t,n){try{let r=n();return na(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Tn=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=C(ag),this.afterRenderEffectManager=C(Xs),this.zonelessEnabled=C(ad),this.externalTestViews=new Set,this.beforeRender=new we,this.afterTick=new we,this.componentTypes=[],this.components=[],this.isStable=C(Xr).hasPendingTasks.pipe(Oe(r=>!r)),this._injector=C(Je)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let r;return new Promise(o=>{r=this.isStable.subscribe({next:i=>{i&&o()}})}).finally(()=>{r.unsubscribe()})}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof Lr;if(!this._injector.get(Rd).done){let f=!i&&Kh(r),p=!1;throw new S(405,p)}let a;i?a=r:a=this._injector.get(Yt).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=sD(a)?void 0:this._injector.get(tt),c=o||a.selector,l=a.create(et.NULL,[],c,u),d=l.location.nativeElement,h=l.injector.get(Xv,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),vr(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new S(101,!1);let o=M(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,M(o),this.afterTick.next()}}detectChangesInAttachedViews(r){let o=null;this._injector.destroyed||(o=this._injector.get(jr,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iDn(u))&&(s.execute(),!this.allViews.some(({_lView:u})=>Dn(u))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;vr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(oD,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>vr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new S(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function vr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function cD(e,t,n,r){if(!n&&!Dn(e))return;rd(e,t,n&&!r?0:1)}var ds=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Y0=(()=>{let t=class t{compileModuleSync(r){return new es(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=Dc(r),s=Ml(i.declarations).reduce((a,u)=>{let c=Ke(u);return c&&a.push(new Qt(c)),a},[]);return new ds(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var lD=(()=>{let t=class t{constructor(){this.zone=C(X),this.changeDetectionScheduler=C(Zt),this.applicationRef=C(Tn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function dD({ngZoneFactory:e,ignoreChangesOutsideZone:t}){return e??=()=>new X(fD()),[{provide:X,useFactory:e},{provide:Cr,multi:!0,useFactory:()=>{let n=C(lD,{optional:!0});return()=>n.initialize()}},{provide:Cr,multi:!0,useFactory:()=>{let n=C(hD);return()=>{n.initialize()}}},t===!0?{provide:ud,useValue:!0}:[]]}function fD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var hD=(()=>{let t=class t{constructor(){this.subscription=new $,this.initialized=!1,this.zone=C(X),this.pendingTasks=C(Xr)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{X.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var pD=(()=>{let t=class t{constructor(){this.appRef=C(Tn),this.taskService=C(Xr),this.ngZone=C(X),this.zonelessEnabled=C(ad),this.disableScheduling=C(ud,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new $,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Fr):null,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Mi||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?Mu:hl;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Fr+this.angularZoneId))}tick(r){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Mu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function gD(){return typeof $localize<"u"&&$localize.locale||Gr}var ao=new N("",{providedIn:"root",factory:()=>C(ao,w.Optional|w.SkipSelf)||gD()});var Pd=new N("");function hr(e){return!!e.platformInjector}function mD(e){let t=hr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(X);return n.run(()=>{hr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(qt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),hr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Pd);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else e.moduleRef.onDestroy(()=>{vr(e.allPlatformModules,e.moduleRef),o.unsubscribe()});return uD(r,n,()=>{let i=t.get(Rd);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ao,Gr);if(Fv(s||Gr),hr(e)){let a=t.get(Tn);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return yD(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function yD(e,t){let n=e.injector.get(Tn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new S(-403,!1);t.push(e)}var Dr=null;function vD(e=[],t){return et.create({name:t,providers:[{provide:_c,useValue:"platform"},{provide:Pd,useValue:new Set([()=>Dr=null])},...e]})}function DD(e=[]){if(Dr)return Dr;let t=vD(e);return Dr=t,iD(),ED(t),t}function ED(e){e.get(yg,null)?.forEach(n=>n())}var kd=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=ID;let e=t;return e})();function ID(e){return wD(Y(),_(),(e&16)===16)}function wD(e,t,n){if(Qr(e)&&!n){let r=nt(e.index,t);return new Ct(r,r)}else if(e.type&175){let r=t[ae];return new Ct(r,t)}return null}var fs=class{constructor(){}supports(t){return Dd(t)}create(t){return new hs(t)}},CD=(e,t)=>t,hs=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||CD}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ps(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Wr),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Wr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},ps=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},gs=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Wr=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new gs,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Ku(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||Ju()),deps:[[t,new Nh,new Th]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new S(901,!1)}};t.\u0275prov=L({token:t,providedIn:"root",factory:Ju});let e=t;return e})();var Q0=(()=>{let t=class t{constructor(r){}};t.\u0275fac=function(o){return new(o||t)(H(Tn))},t.\u0275mod=ws({type:t}),t.\u0275inj=ms({});let e=t;return e})();function K0(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=DD(r),i=[dD({}),{provide:Zt,useExisting:pD},...n||[]],s=new $r({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return mD({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}var J0=new N("");function bD(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function X0(e,t){Mt("NgSignals");let n=xa(e);return t?.equal&&(n[Ne].equal=t.equal),n}function _D(e){let t=M(null);try{return e()}finally{M(t)}}function ex(e){let t=Ke(e);if(!t)return null;let n=new Qt(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}}}var zd=null;function ia(){return zd}function _x(e){zd??=e}var Ld=class{};var ha=new N(""),pa=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:()=>C(xD),providedIn:"platform"});let e=t;return e})(),Mx=new N(""),xD=(()=>{let t=class t extends pa{constructor(){super(),this._doc=C(ha),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ia().getBaseHref(this._doc)}onPopState(r){let o=ia().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=ia().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function ga(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function jd(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Ue(e){return e&&e[0]!=="?"?"?"+e:e}var vo=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=L({token:t,factory:()=>C(SD),providedIn:"root"});let e=t;return e})(),Gd=new N(""),SD=(()=>{let t=class t extends vo{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??C(ha).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return ga(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Ue(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Ue(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Ue(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(H(pa),H(Gd,8))},t.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),xx=(()=>{let t=class t extends vo{constructor(r,o){super(),this._platformLocation=r,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}path(r=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(r){let o=ga(this._baseHref,r);return o.length>0?"#"+o:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Ue(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Ue(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(H(pa),H(Gd,8))},t.\u0275prov=L({token:t,factory:t.\u0275fac});let e=t;return e})(),TD=(()=>{let t=class t{constructor(r){this._subject=new De,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=OD(jd(Vd(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Ue(o))}normalize(r){return t.stripTrailingSlash(AD(this._basePath,Vd(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ue(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ue(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};t.normalizeQueryParams=Ue,t.joinWithSlash=ga,t.stripTrailingSlash=jd,t.\u0275fac=function(o){return new(o||t)(H(vo))},t.\u0275prov=L({token:t,factory:()=>ND(),providedIn:"root"});let e=t;return e})();function ND(){return new TD(H(vo))}function AD(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Vd(e){return e.replace(/\/index.html$/,"")}function OD(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var ee=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(ee||{}),P=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(P||{}),le=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(le||{}),ot={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function FD(e){return he(e)[B.LocaleId]}function RD(e,t,n){let r=he(e),o=[r[B.DayPeriodsFormat],r[B.DayPeriodsStandalone]],i=pe(o,t);return pe(i,n)}function PD(e,t,n){let r=he(e),o=[r[B.DaysFormat],r[B.DaysStandalone]],i=pe(o,t);return pe(i,n)}function kD(e,t,n){let r=he(e),o=[r[B.MonthsFormat],r[B.MonthsStandalone]],i=pe(o,t);return pe(i,n)}function LD(e,t){let r=he(e)[B.Eras];return pe(r,t)}function uo(e,t){let n=he(e);return pe(n[B.DateFormat],t)}function co(e,t){let n=he(e);return pe(n[B.TimeFormat],t)}function lo(e,t){let r=he(e)[B.DateTimeFormat];return pe(r,t)}function Do(e,t){let n=he(e),r=n[B.NumberSymbols][t];if(typeof r>"u"){if(t===ot.CurrencyDecimal)return n[B.NumberSymbols][ot.Decimal];if(t===ot.CurrencyGroup)return n[B.NumberSymbols][ot.Group]}return r}function Wd(e){if(!e[B.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[B.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function jD(e){let t=he(e);return Wd(t),(t[B.ExtraData][2]||[]).map(r=>typeof r=="string"?sa(r):[sa(r[0]),sa(r[1])])}function VD(e,t,n){let r=he(e);Wd(r);let o=[r[B.ExtraData][0],r[B.ExtraData][1]],i=pe(o,t)||[];return pe(i,n)||[]}function pe(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function sa(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var BD=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fo={},$D=/((?:[^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]*)/,ze=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(ze||{}),O=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(O||{}),A=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(A||{});function HD(e,t,n,r){let o=KD(e);t=He(n,t)||t;let s=[],a;for(;t;)if(a=$D.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let u=o.getTimezoneOffset();r&&(u=Zd(r,u),o=QD(o,r,!0));let c="";return s.forEach(l=>{let d=ZD(l);c+=d?d(o,n,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function yo(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function He(e,t){let n=FD(e);if(fo[n]??={},fo[n][t])return fo[n][t];let r="";switch(t){case"shortDate":r=uo(e,le.Short);break;case"mediumDate":r=uo(e,le.Medium);break;case"longDate":r=uo(e,le.Long);break;case"fullDate":r=uo(e,le.Full);break;case"shortTime":r=co(e,le.Short);break;case"mediumTime":r=co(e,le.Medium);break;case"longTime":r=co(e,le.Long);break;case"fullTime":r=co(e,le.Full);break;case"short":let o=He(e,"shortTime"),i=He(e,"shortDate");r=ho(lo(e,le.Short),[o,i]);break;case"medium":let s=He(e,"mediumTime"),a=He(e,"mediumDate");r=ho(lo(e,le.Medium),[s,a]);break;case"long":let u=He(e,"longTime"),c=He(e,"longDate");r=ho(lo(e,le.Long),[u,c]);break;case"full":let l=He(e,"fullTime"),d=He(e,"fullDate");r=ho(lo(e,le.Full),[l,d]);break}return r&&(fo[n][t]=r),r}function ho(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Ie(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===O.Hours)a===0&&n===-12&&(a=12);else if(e===O.FractionalSeconds)return UD(a,t);let u=Do(s,ot.MinusSign);return Ie(a,t,u,r,o)}}function zD(e,t){switch(e){case O.FullYear:return t.getFullYear();case O.Month:return t.getMonth();case O.Date:return t.getDate();case O.Hours:return t.getHours();case O.Minutes:return t.getMinutes();case O.Seconds:return t.getSeconds();case O.FractionalSeconds:return t.getMilliseconds();case O.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function k(e,t,n=ee.Format,r=!1){return function(o,i){return GD(o,i,e,t,n,r)}}function GD(e,t,n,r,o,i){switch(n){case A.Months:return kD(t,o,r)[e.getMonth()];case A.Days:return PD(t,o,r)[e.getDay()];case A.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let c=jD(t),l=VD(t,o,r),d=c.findIndex(h=>{if(Array.isArray(h)){let[f,p]=h,g=s>=f.hours&&a>=f.minutes,T=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case ze.Short:return(o>=0?"+":"")+Ie(s,2,i)+Ie(Math.abs(o%60),2,i);case ze.ShortGMT:return"GMT"+(o>=0?"+":"")+Ie(s,1,i);case ze.Long:return"GMT"+(o>=0?"+":"")+Ie(s,2,i)+":"+Ie(Math.abs(o%60),2,i);case ze.Extended:return r===0?"Z":(o>=0?"+":"")+Ie(s,2,i)+":"+Ie(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var WD=0,mo=4;function qD(e){let t=yo(e,WD,1).getDay();return yo(e,0,1+(t<=mo?mo:mo+7)-t)}function qd(e){let t=e.getDay(),n=t===0?-3:mo-t;return yo(e.getFullYear(),e.getMonth(),e.getDate()+n)}function aa(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=qd(n),s=qD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ie(o,e,Do(r,ot.MinusSign))}}function go(e,t=!1){return function(n,r){let i=qd(n).getFullYear();return Ie(i,e,Do(r,ot.MinusSign),t)}}var ua={};function ZD(e){if(ua[e])return ua[e];let t;switch(e){case"G":case"GG":case"GGG":t=k(A.Eras,P.Abbreviated);break;case"GGGG":t=k(A.Eras,P.Wide);break;case"GGGGG":t=k(A.Eras,P.Narrow);break;case"y":t=U(O.FullYear,1,0,!1,!0);break;case"yy":t=U(O.FullYear,2,0,!0,!0);break;case"yyy":t=U(O.FullYear,3,0,!1,!0);break;case"yyyy":t=U(O.FullYear,4,0,!1,!0);break;case"Y":t=go(1);break;case"YY":t=go(2,!0);break;case"YYY":t=go(3);break;case"YYYY":t=go(4);break;case"M":case"L":t=U(O.Month,1,1);break;case"MM":case"LL":t=U(O.Month,2,1);break;case"MMM":t=k(A.Months,P.Abbreviated);break;case"MMMM":t=k(A.Months,P.Wide);break;case"MMMMM":t=k(A.Months,P.Narrow);break;case"LLL":t=k(A.Months,P.Abbreviated,ee.Standalone);break;case"LLLL":t=k(A.Months,P.Wide,ee.Standalone);break;case"LLLLL":t=k(A.Months,P.Narrow,ee.Standalone);break;case"w":t=aa(1);break;case"ww":t=aa(2);break;case"W":t=aa(1,!0);break;case"d":t=U(O.Date,1);break;case"dd":t=U(O.Date,2);break;case"c":case"cc":t=U(O.Day,1);break;case"ccc":t=k(A.Days,P.Abbreviated,ee.Standalone);break;case"cccc":t=k(A.Days,P.Wide,ee.Standalone);break;case"ccccc":t=k(A.Days,P.Narrow,ee.Standalone);break;case"cccccc":t=k(A.Days,P.Short,ee.Standalone);break;case"E":case"EE":case"EEE":t=k(A.Days,P.Abbreviated);break;case"EEEE":t=k(A.Days,P.Wide);break;case"EEEEE":t=k(A.Days,P.Narrow);break;case"EEEEEE":t=k(A.Days,P.Short);break;case"a":case"aa":case"aaa":t=k(A.DayPeriods,P.Abbreviated);break;case"aaaa":t=k(A.DayPeriods,P.Wide);break;case"aaaaa":t=k(A.DayPeriods,P.Narrow);break;case"b":case"bb":case"bbb":t=k(A.DayPeriods,P.Abbreviated,ee.Standalone,!0);break;case"bbbb":t=k(A.DayPeriods,P.Wide,ee.Standalone,!0);break;case"bbbbb":t=k(A.DayPeriods,P.Narrow,ee.Standalone,!0);break;case"B":case"BB":case"BBB":t=k(A.DayPeriods,P.Abbreviated,ee.Format,!0);break;case"BBBB":t=k(A.DayPeriods,P.Wide,ee.Format,!0);break;case"BBBBB":t=k(A.DayPeriods,P.Narrow,ee.Format,!0);break;case"h":t=U(O.Hours,1,-12);break;case"hh":t=U(O.Hours,2,-12);break;case"H":t=U(O.Hours,1);break;case"HH":t=U(O.Hours,2);break;case"m":t=U(O.Minutes,1);break;case"mm":t=U(O.Minutes,2);break;case"s":t=U(O.Seconds,1);break;case"ss":t=U(O.Seconds,2);break;case"S":t=U(O.FractionalSeconds,1);break;case"SS":t=U(O.FractionalSeconds,2);break;case"SSS":t=U(O.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=po(ze.Short);break;case"ZZZZZ":t=po(ze.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=po(ze.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=po(ze.Long);break;default:return null}return ua[e]=t,t}function Zd(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function YD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function QD(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=Zd(t,o);return YD(e,r*(i-o))}function KD(e){if(Bd(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return yo(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(BD))return JD(r)}let t=new Date(e);if(!Bd(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function JD(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,u=Number(e[6]||0),c=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,u,c),t}function Bd(e){return e instanceof Date&&!isNaN(e.valueOf())}function Sx(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var ca=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Tx=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new ca(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),$d(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);$d(s,i)})}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(ce(nn),ce(bt),ce(ra))},t.\u0275dir=Cs({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function $d(e,t){e.context.$implicit=t.item}var Nx=(()=>{let t=class t{constructor(r,o){this._viewContainer=r,this._context=new la,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){Hd("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Hd("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(ce(nn),ce(bt))},t.\u0275dir=Cs({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),la=class{constructor(){this.$implicit=null,this.ngIf=null}};function Hd(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${J(t)}'.`)}function XD(e,t){return new S(2100,!1)}var eE="mediumDate",tE=new N(""),nE=new N(""),Ax=(()=>{let t=class t{constructor(r,o,i){this.locale=r,this.defaultTimezone=o,this.defaultOptions=i}transform(r,o,i,s){if(r==null||r===""||r!==r)return null;try{let a=o??this.defaultOptions?.dateFormat??eE,u=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return HD(r,a,s||this.locale,u)}catch(a){throw XD(t,a.message)}}};t.\u0275fac=function(o){return new(o||t)(ce(ao,16),ce(tE,24),ce(nE,24))},t.\u0275pipe=yc({name:"date",type:t,pure:!0,standalone:!0});let e=t;return e})();var Ox=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ws({type:t}),t.\u0275inj=ms({});let e=t;return e})(),rE="browser",oE="server";function iE(e){return e===rE}function Fx(e){return e===oE}var Rx=(()=>{let t=class t{};t.\u0275prov=L({token:t,providedIn:"root",factory:()=>iE(C(Bs))?new da(C(ha),window):new fa});let e=t;return e})(),da=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=sE(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function sE(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var fa=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Ud=class{};var ma=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(ma||{}),Lx="*";function jx(e,t=null){return{type:ma.Sequence,steps:e,options:t}}function Vx(e){return{type:ma.Style,styles:e,offset:null}}var Yd=class{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Qd=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Bx="!";export{Ge as a,We as b,aE as c,uE as d,cE as e,$ as f,mf as g,x as h,jo as i,Vo as j,we as k,an as l,ut as m,be as n,Mf as o,xf as p,Sf as q,lt as r,Oe as s,kf as t,Fe as u,ln as v,sr as w,jf as x,Vf as y,Ho as z,Wf as A,dt as B,qf as C,au as D,Zf as E,Yf as F,dn as G,Uo as H,Qf as I,Kf as J,eh as K,cu as L,zo as M,th as N,nh as O,rh as P,oh as Q,ih as R,sh as S,ah as T,uh as U,S as V,kt as W,nc as X,L as Y,ms as Z,c0 as _,N as $,w as aa,H as ba,C as ca,Th as da,Nh as ea,gn as fa,l0 as ga,ws as ha,Cs as ia,d0 as ja,Xh as ka,_c as la,Je as ma,lp as na,Fc as oa,f0 as pa,Kp as qa,et as ra,Xr as sa,De as ta,X as ua,qt as va,tn as wa,h0 as xa,p0 as ya,yg as za,Bs as Aa,g0 as Ba,m0 as Ca,Hs as Da,y0 as Ea,v0 as Fa,D0 as Ga,E0 as Ha,I0 as Ia,w0 as Ja,xg as Ka,C0 as La,$g as Ma,Rr as Na,b0 as Oa,ce as Pa,_0 as Qa,bt as Ra,Zt as Sa,Yt as Ta,jr as Ua,cd as Va,Mt as Wa,ry as Xa,oy as Ya,nn as Za,T0 as _a,Ry as $a,N0 as ab,$y as bb,Ji as cb,Hy as db,Yy as eb,Jy as fb,lv as gb,wd as hb,dv as ib,A0 as jb,O0 as kb,F0 as lb,Sd as mb,Td as nb,Mv as ob,Sv as pb,Pv as qb,R0 as rb,P0 as sb,k0 as tb,L0 as ub,j0 as vb,V0 as wb,B0 as xb,$0 as yb,$v as zb,Ad as Ab,Hv as Bb,H0 as Cb,Uv as Db,U0 as Eb,z0 as Fb,G0 as Gb,W0 as Hb,q0 as Ib,Xv as Jb,eD as Kb,Z0 as Lb,tD as Mb,na as Nb,rD as Ob,oD as Pb,Tn as Qb,Y0 as Rb,kd as Sb,Q0 as Tb,K0 as Ub,J0 as Vb,bD as Wb,X0 as Xb,_D as Yb,ex as Zb,ia as _b,_x as $b,Ld as ac,ha as bc,Mx as cc,vo as dc,SD as ec,xx as fc,TD as gc,Sx as hc,Tx as ic,Nx as jc,Ax as kc,Ox as lc,rE as mc,iE as nc,Fx as oc,Rx as pc,Ud as qc,ma as rc,Lx as sc,jx as tc,Vx as uc,Yd as vc,Qd as wc,Bx as xc}; diff --git a/index.html b/index.html index 7fe5086..3005cee 100644 --- a/index.html +++ b/index.html @@ -12,5 +12,5 @@ Loading... - + diff --git a/main-3U2K74ZV.js b/main-3U2K74ZV.js new file mode 100644 index 0000000..e938f31 --- /dev/null +++ b/main-3U2K74ZV.js @@ -0,0 +1,5 @@ +import{$ as w,$a as et,$b as $a,A as An,Aa as De,Ab as Xe,B as X,Ba as Dt,Bb as Yt,C as io,Ca as xi,Cb as qt,D as ae,Da as Ge,Db as Xt,E as ce,Ea as He,Eb as at,F as no,Fa as Ea,Fb as z,G as ro,Ga as Da,Gb as Pa,H as ot,Ha as Ia,Hb as Na,I as ma,Ia as xa,Ib as Vn,J as oo,Ja as Aa,Jb as ja,K as Ce,Ka as Sa,Kb as Bn,L as le,La as Ra,Lb as Un,M as so,Ma as ft,Mb as po,N as pa,Na as Ai,Nb as zn,O as fa,Oa as L,Ob as fo,P as ga,Pa as g,Pb as La,Q as Sn,Qa as We,Qb as Ri,R as Ht,Ra as Si,Rb as $n,S as pt,Sa as Ma,Sb as Zt,T as Nt,Ta as Tn,Tb as Va,U as W,Ua as On,Ub as Ba,V as H,Va as kn,Vb as Ua,W as de,Wa as Ta,Wb as _t,X as Ei,Xa as Oa,Xb as Gn,Y as b,Ya as he,Yb as Kt,Z as A,Za as Ye,Zb as za,_ as va,_a as Fn,_b as Se,a as f,aa as ao,ab as ka,ac as Ga,b as P,ba as m,bb as Vt,bc as E,ca as v,cb as Fa,cc as Ha,d as Pt,da as Rn,db as uo,dc as go,e as da,ea as co,eb as st,ec as Wa,f as Gt,fa as Di,fb as gt,fc as Ya,g as ua,ga as U,gb as vt,gc as Qt,h as ze,ha as S,hb as ho,hc as qa,i as Qr,ia as k,ib as rt,ic as Hn,j as Jr,ja as Mn,jb as qe,jc as Ze,k as O,ka as ba,kb as Pn,kc as Xa,l as dt,la as _a,lb as Nn,lc as Wn,m as se,ma as ue,mb as C,mc as Za,n as nt,na as jt,nb as D,nc as Ka,o as _,oa as Wt,ob as bt,oc as vo,p as ye,pa as Lt,pb as jn,pc as Qa,q as Dn,qa as lo,qb as Z,qc as Ja,r as ha,ra as Q,rb as Bt,s as I,sa as ya,sb as Mt,t as $e,ta as J,tb as ut,u as mt,ua as M,ub as mo,v as to,va as Ee,vb as Ln,w as In,wa as N,wb as Ie,x as we,xa as wa,xb as xe,y as xn,ya as Ii,yb as V,z as eo,za as Ca,zb as Ae}from"./chunk-NHLG3BPH.js";var Ad=Pt((xd,na)=>{(function(n,t,r){function e(a){var c=this,l=s();c.next=function(){var d=2091639*c.s0+c.c*23283064365386963e-26;return c.s0=c.s1,c.s1=c.s2,c.s2=d-(c.c=d|0)},c.c=1,c.s0=l(" "),c.s1=l(" "),c.s2=l(" "),c.s0-=l(a),c.s0<0&&(c.s0+=1),c.s1-=l(a),c.s1<0&&(c.s1+=1),c.s2-=l(a),c.s2<0&&(c.s2+=1),l=null}function i(a,c){return c.c=a.c,c.s0=a.s0,c.s1=a.s1,c.s2=a.s2,c}function o(a,c){var l=new e(a),d=c&&c.state,u=l.next;return u.int32=function(){return l.next()*4294967296|0},u.double=function(){return u()+(u()*2097152|0)*11102230246251565e-32},u.quick=u,d&&(typeof d=="object"&&i(d,l),u.state=function(){return i(l,{})}),u}function s(){var a=4022871197,c=function(l){l=String(l);for(var d=0;d>>0,u-=a,u*=a,a=u>>>0,u-=a,a+=u*4294967296}return(a>>>0)*23283064365386963e-26};return c}t&&t.exports?t.exports=o:r&&r.amd?r(function(){return o}):this.alea=o})(xd,typeof na=="object"&&na,typeof define=="function"&&define)});var Rd=Pt((Sd,ra)=>{(function(n,t,r){function e(s){var a=this,c="";a.x=0,a.y=0,a.z=0,a.w=0,a.next=function(){var d=a.x^a.x<<11;return a.x=a.y,a.y=a.z,a.z=a.w,a.w^=a.w>>>19^d^d>>>8},s===(s|0)?a.x=s:c+=s;for(var l=0;l>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,h=(c.next()>>>0)/4294967296,p=(u+h)/(1<<21);while(p===0);return p},d.int32=c.next,d.quick=d,l&&(typeof l=="object"&&i(l,c),d.state=function(){return i(c,{})}),d}t&&t.exports?t.exports=o:r&&r.amd?r(function(){return o}):this.xor128=o})(Sd,typeof ra=="object"&&ra,typeof define=="function"&&define)});var Td=Pt((Md,oa)=>{(function(n,t,r){function e(s){var a=this,c="";a.next=function(){var d=a.x^a.x>>>2;return a.x=a.y,a.y=a.z,a.z=a.w,a.w=a.v,(a.d=a.d+362437|0)+(a.v=a.v^a.v<<4^(d^d<<1))|0},a.x=0,a.y=0,a.z=0,a.w=0,a.v=0,s===(s|0)?a.x=s:c+=s;for(var l=0;l>>4),a.next()}function i(s,a){return a.x=s.x,a.y=s.y,a.z=s.z,a.w=s.w,a.v=s.v,a.d=s.d,a}function o(s,a){var c=new e(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,h=(c.next()>>>0)/4294967296,p=(u+h)/(1<<21);while(p===0);return p},d.int32=c.next,d.quick=d,l&&(typeof l=="object"&&i(l,c),d.state=function(){return i(c,{})}),d}t&&t.exports?t.exports=o:r&&r.amd?r(function(){return o}):this.xorwow=o})(Md,typeof oa=="object"&&oa,typeof define=="function"&&define)});var kd=Pt((Od,sa)=>{(function(n,t,r){function e(s){var a=this;a.next=function(){var l=a.x,d=a.i,u,h,p;return u=l[d],u^=u>>>7,h=u^u<<24,u=l[d+1&7],h^=u^u>>>10,u=l[d+3&7],h^=u^u>>>3,u=l[d+4&7],h^=u^u<<7,u=l[d+7&7],u=u^u<<13,h^=u^u<<9,l[d]=h,a.i=d+1&7,h};function c(l,d){var u,h,p=[];if(d===(d|0))h=p[0]=d;else for(d=""+d,u=0;u0;--u)l.next()}c(a,s)}function i(s,a){return a.x=s.x.slice(),a.i=s.i,a}function o(s,a){s==null&&(s=+new Date);var c=new e(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,h=(c.next()>>>0)/4294967296,p=(u+h)/(1<<21);while(p===0);return p},d.int32=c.next,d.quick=d,l&&(l.x&&i(l,c),d.state=function(){return i(c,{})}),d}t&&t.exports?t.exports=o:r&&r.amd?r(function(){return o}):this.xorshift7=o})(Od,typeof sa=="object"&&sa,typeof define=="function"&&define)});var Pd=Pt((Fd,aa)=>{(function(n,t,r){function e(s){var a=this;a.next=function(){var l=a.w,d=a.X,u=a.i,h,p;return a.w=l=l+1640531527|0,p=d[u+34&127],h=d[u=u+1&127],p^=p<<13,h^=h<<17,p^=p>>>15,h^=h>>>12,p=d[u]=p^h,a.i=u,p+(l^l>>>16)|0};function c(l,d){var u,h,p,y,R,F=[],ct=128;for(d===(d|0)?(h=d,d=null):(d=d+"\0",h=0,ct=Math.max(ct,d.length)),p=0,y=-32;y>>15,h^=h<<4,h^=h>>>13,y>=0&&(R=R+1640531527|0,u=F[y&127]^=h+R,p=u==0?p+1:0);for(p>=128&&(F[(d&&d.length||0)&127]=-1),p=127,y=4*128;y>0;--y)h=F[p+34&127],u=F[p=p+1&127],h^=h<<13,u^=u<<17,h^=h>>>15,u^=u>>>12,F[p]=h^u;l.w=R,l.X=F,l.i=p}c(a,s)}function i(s,a){return a.i=s.i,a.w=s.w,a.X=s.X.slice(),a}function o(s,a){s==null&&(s=+new Date);var c=new e(s),l=a&&a.state,d=function(){return(c.next()>>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,h=(c.next()>>>0)/4294967296,p=(u+h)/(1<<21);while(p===0);return p},d.int32=c.next,d.quick=d,l&&(l.X&&i(l,c),d.state=function(){return i(c,{})}),d}t&&t.exports?t.exports=o:r&&r.amd?r(function(){return o}):this.xor4096=o})(Fd,typeof aa=="object"&&aa,typeof define=="function"&&define)});var jd=Pt((Nd,ca)=>{(function(n,t,r){function e(s){var a=this,c="";a.next=function(){var d=a.b,u=a.c,h=a.d,p=a.a;return d=d<<25^d>>>7^u,u=u-h|0,h=h<<24^h>>>8^p,p=p-d|0,a.b=d=d<<20^d>>>12^u,a.c=u=u-h|0,a.d=h<<16^u>>>16^p,a.a=p-d|0},a.a=0,a.b=0,a.c=-1640531527,a.d=1367130551,s===Math.floor(s)?(a.a=s/4294967296|0,a.b=s|0):c+=s;for(var l=0;l>>0)/4294967296};return d.double=function(){do var u=c.next()>>>11,h=(c.next()>>>0)/4294967296,p=(u+h)/(1<<21);while(p===0);return p},d.int32=c.next,d.quick=d,l&&(typeof l=="object"&&i(l,c),d.state=function(){return i(c,{})}),d}t&&t.exports?t.exports=o:r&&r.amd?r(function(){return o}):this.tychei=o})(Nd,typeof ca=="object"&&ca,typeof define=="function"&&define)});var Ld=Pt(()=>{});var Bd=Pt((Vd,Xr)=>{(function(n,t,r){var e=256,i=6,o=52,s="random",a=r.pow(e,i),c=r.pow(2,o),l=c*2,d=e-1,u;function h(T,$,lt){var K=[];$=$==!0?{entropy:!0}:$||{};var q=F(R($.entropy?[T,ht(t)]:T??ct(),3),K),Ct=new p(K),Rt=function(){for(var Et=Ct.g(i),$t=a,Ft=0;Et=l;)Et/=2,$t/=2,Ft>>>=1;return(Et+Ft)/$t};return Rt.int32=function(){return Ct.g(4)|0},Rt.quick=function(){return Ct.g(4)/4294967296},Rt.double=Rt,F(ht(Ct.S),t),($.pass||lt||function(Et,$t,Ft,oe){return oe&&(oe.S&&y(oe,Ct),Et.state=function(){return y(Ct,{})}),Ft?(r[s]=Et,$t):Et})(Rt,q,"global"in $?$.global:this==r,$.state)}function p(T){var $,lt=T.length,K=this,q=0,Ct=K.i=K.j=0,Rt=K.S=[];for(lt||(T=[lt++]);q{var jf=Ad(),Lf=Rd(),Vf=Td(),Bf=kd(),Uf=Pd(),zf=jd(),Ue=Bd();Ue.alea=jf;Ue.xor128=Lf;Ue.xorwow=Vf;Ue.xorshift7=Bf;Ue.xor4096=Uf;Ue.tychei=zf;Ud.exports=Ue});var Gd=Pt(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.Md5=void 0;var $d=function(){function n(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}return n.hashStr=function(t,r){return r===void 0&&(r=!1),this.onePassHasher.start().appendStr(t).end(r)},n.hashAsciiStr=function(t,r){return r===void 0&&(r=!1),this.onePassHasher.start().appendAsciiStr(t).end(r)},n._hex=function(t){var r=n.hexChars,e=n.hexOut,i,o,s,a;for(a=0;a<4;a+=1)for(o=a*8,i=t[a],s=0;s<8;s+=2)e[o+1+s]=r.charAt(i&15),i>>>=4,e[o+0+s]=r.charAt(i&15),i>>>=4;return e.join("")},n._md5cycle=function(t,r){var e=t[0],i=t[1],o=t[2],s=t[3];e+=(i&o|~i&s)+r[0]-680876936|0,e=(e<<7|e>>>25)+i|0,s+=(e&i|~e&o)+r[1]-389564586|0,s=(s<<12|s>>>20)+e|0,o+=(s&e|~s&i)+r[2]+606105819|0,o=(o<<17|o>>>15)+s|0,i+=(o&s|~o&e)+r[3]-1044525330|0,i=(i<<22|i>>>10)+o|0,e+=(i&o|~i&s)+r[4]-176418897|0,e=(e<<7|e>>>25)+i|0,s+=(e&i|~e&o)+r[5]+1200080426|0,s=(s<<12|s>>>20)+e|0,o+=(s&e|~s&i)+r[6]-1473231341|0,o=(o<<17|o>>>15)+s|0,i+=(o&s|~o&e)+r[7]-45705983|0,i=(i<<22|i>>>10)+o|0,e+=(i&o|~i&s)+r[8]+1770035416|0,e=(e<<7|e>>>25)+i|0,s+=(e&i|~e&o)+r[9]-1958414417|0,s=(s<<12|s>>>20)+e|0,o+=(s&e|~s&i)+r[10]-42063|0,o=(o<<17|o>>>15)+s|0,i+=(o&s|~o&e)+r[11]-1990404162|0,i=(i<<22|i>>>10)+o|0,e+=(i&o|~i&s)+r[12]+1804603682|0,e=(e<<7|e>>>25)+i|0,s+=(e&i|~e&o)+r[13]-40341101|0,s=(s<<12|s>>>20)+e|0,o+=(s&e|~s&i)+r[14]-1502002290|0,o=(o<<17|o>>>15)+s|0,i+=(o&s|~o&e)+r[15]+1236535329|0,i=(i<<22|i>>>10)+o|0,e+=(i&s|o&~s)+r[1]-165796510|0,e=(e<<5|e>>>27)+i|0,s+=(e&o|i&~o)+r[6]-1069501632|0,s=(s<<9|s>>>23)+e|0,o+=(s&i|e&~i)+r[11]+643717713|0,o=(o<<14|o>>>18)+s|0,i+=(o&e|s&~e)+r[0]-373897302|0,i=(i<<20|i>>>12)+o|0,e+=(i&s|o&~s)+r[5]-701558691|0,e=(e<<5|e>>>27)+i|0,s+=(e&o|i&~o)+r[10]+38016083|0,s=(s<<9|s>>>23)+e|0,o+=(s&i|e&~i)+r[15]-660478335|0,o=(o<<14|o>>>18)+s|0,i+=(o&e|s&~e)+r[4]-405537848|0,i=(i<<20|i>>>12)+o|0,e+=(i&s|o&~s)+r[9]+568446438|0,e=(e<<5|e>>>27)+i|0,s+=(e&o|i&~o)+r[14]-1019803690|0,s=(s<<9|s>>>23)+e|0,o+=(s&i|e&~i)+r[3]-187363961|0,o=(o<<14|o>>>18)+s|0,i+=(o&e|s&~e)+r[8]+1163531501|0,i=(i<<20|i>>>12)+o|0,e+=(i&s|o&~s)+r[13]-1444681467|0,e=(e<<5|e>>>27)+i|0,s+=(e&o|i&~o)+r[2]-51403784|0,s=(s<<9|s>>>23)+e|0,o+=(s&i|e&~i)+r[7]+1735328473|0,o=(o<<14|o>>>18)+s|0,i+=(o&e|s&~e)+r[12]-1926607734|0,i=(i<<20|i>>>12)+o|0,e+=(i^o^s)+r[5]-378558|0,e=(e<<4|e>>>28)+i|0,s+=(e^i^o)+r[8]-2022574463|0,s=(s<<11|s>>>21)+e|0,o+=(s^e^i)+r[11]+1839030562|0,o=(o<<16|o>>>16)+s|0,i+=(o^s^e)+r[14]-35309556|0,i=(i<<23|i>>>9)+o|0,e+=(i^o^s)+r[1]-1530992060|0,e=(e<<4|e>>>28)+i|0,s+=(e^i^o)+r[4]+1272893353|0,s=(s<<11|s>>>21)+e|0,o+=(s^e^i)+r[7]-155497632|0,o=(o<<16|o>>>16)+s|0,i+=(o^s^e)+r[10]-1094730640|0,i=(i<<23|i>>>9)+o|0,e+=(i^o^s)+r[13]+681279174|0,e=(e<<4|e>>>28)+i|0,s+=(e^i^o)+r[0]-358537222|0,s=(s<<11|s>>>21)+e|0,o+=(s^e^i)+r[3]-722521979|0,o=(o<<16|o>>>16)+s|0,i+=(o^s^e)+r[6]+76029189|0,i=(i<<23|i>>>9)+o|0,e+=(i^o^s)+r[9]-640364487|0,e=(e<<4|e>>>28)+i|0,s+=(e^i^o)+r[12]-421815835|0,s=(s<<11|s>>>21)+e|0,o+=(s^e^i)+r[15]+530742520|0,o=(o<<16|o>>>16)+s|0,i+=(o^s^e)+r[2]-995338651|0,i=(i<<23|i>>>9)+o|0,e+=(o^(i|~s))+r[0]-198630844|0,e=(e<<6|e>>>26)+i|0,s+=(i^(e|~o))+r[7]+1126891415|0,s=(s<<10|s>>>22)+e|0,o+=(e^(s|~i))+r[14]-1416354905|0,o=(o<<15|o>>>17)+s|0,i+=(s^(o|~e))+r[5]-57434055|0,i=(i<<21|i>>>11)+o|0,e+=(o^(i|~s))+r[12]+1700485571|0,e=(e<<6|e>>>26)+i|0,s+=(i^(e|~o))+r[3]-1894986606|0,s=(s<<10|s>>>22)+e|0,o+=(e^(s|~i))+r[10]-1051523|0,o=(o<<15|o>>>17)+s|0,i+=(s^(o|~e))+r[1]-2054922799|0,i=(i<<21|i>>>11)+o|0,e+=(o^(i|~s))+r[8]+1873313359|0,e=(e<<6|e>>>26)+i|0,s+=(i^(e|~o))+r[15]-30611744|0,s=(s<<10|s>>>22)+e|0,o+=(e^(s|~i))+r[6]-1560198380|0,o=(o<<15|o>>>17)+s|0,i+=(s^(o|~e))+r[13]+1309151649|0,i=(i<<21|i>>>11)+o|0,e+=(o^(i|~s))+r[4]-145523070|0,e=(e<<6|e>>>26)+i|0,s+=(i^(e|~o))+r[11]-1120210379|0,s=(s<<10|s>>>22)+e|0,o+=(e^(s|~i))+r[2]+718787259|0,o=(o<<15|o>>>17)+s|0,i+=(s^(o|~e))+r[9]-343485551|0,i=(i<<21|i>>>11)+o|0,t[0]=e+t[0]|0,t[1]=i+t[1]|0,t[2]=o+t[2]|0,t[3]=s+t[3]|0},n.prototype.start=function(){return this._dataLength=0,this._bufferLength=0,this._state.set(n.stateIdentity),this},n.prototype.appendStr=function(t){var r=this._buffer8,e=this._buffer32,i=this._bufferLength,o,s;for(s=0;s>>6)+192,r[i++]=o&63|128;else if(o<55296||o>56319)r[i++]=(o>>>12)+224,r[i++]=o>>>6&63|128,r[i++]=o&63|128;else{if(o=(o-55296)*1024+(t.charCodeAt(++s)-56320)+65536,o>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");r[i++]=(o>>>18)+240,r[i++]=o>>>12&63|128,r[i++]=o>>>6&63|128,r[i++]=o&63|128}i>=64&&(this._dataLength+=64,n._md5cycle(this._state,e),i-=64,e[0]=e[16])}return this._bufferLength=i,this},n.prototype.appendAsciiStr=function(t){for(var r=this._buffer8,e=this._buffer32,i=this._bufferLength,o,s=0;;){for(o=Math.min(t.length-s,64-i);o--;)r[i++]=t.charCodeAt(s++);if(i<64)break;this._dataLength+=64,n._md5cycle(this._state,e),i=0}return this._bufferLength=i,this},n.prototype.appendByteArray=function(t){for(var r=this._buffer8,e=this._buffer32,i=this._bufferLength,o,s=0;;){for(o=Math.min(t.length-s,64-i);o--;)r[i++]=t[s++];if(i<64)break;this._dataLength+=64,n._md5cycle(this._state,e),i=0}return this._bufferLength=i,this},n.prototype.getState=function(){var t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}},n.prototype.setState=function(t){var r=t.buffer,e=t.state,i=this._state,o;for(this._dataLength=t.length,this._bufferLength=t.buflen,i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],o=0;o>2)+1;this._dataLength+=r;var s=this._dataLength*8;if(e[r]=128,e[r+1]=e[r+2]=e[r+3]=0,i.set(n.buffer32Identity.subarray(o),o),r>55&&(n._md5cycle(this._state,i),i.set(n.buffer32Identity)),s<=4294967295)i[14]=s;else{var a=s.toString(16).match(/(.*?)(.{0,8})$/);if(a===null)return;var c=parseInt(a[2],16),l=parseInt(a[1],16)||0;i[14]=c,i[15]=l}return n._md5cycle(this._state,i),t?this._state:n._hex(this._state)},n.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),n.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n.hexChars="0123456789abcdef",n.hexOut=[],n.onePassHasher=new n,n}();Zr.Md5=$d;if($d.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.")});var lc=(()=>{let t=class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}};t.\u0275fac=function(i){return new(i||t)(g(kn),g(N))},t.\u0275dir=k({type:t});let n=t;return n})(),dc=(()=>{let t=class t extends lc{};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Lt(t)))(o||t)}})(),t.\u0275dir=k({type:t,features:[et]});let n=t;return n})(),Eo=new w("");var tu={provide:Eo,useExisting:Ei(()=>me),multi:!0};function eu(){let n=Se()?Se().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var iu=new w(""),me=(()=>{let t=class t extends lc{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!eu())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}};t.\u0275fac=function(i){return new(i||t)(g(kn),g(N),g(iu,8))},t.\u0275dir=k({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Z("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[at([tu]),et]});let n=t;return n})();function tc(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}var uc=new w(""),nu=new w("");function ru(n){return t=>{if(tc(t.value)||tc(n))return null;let r=parseFloat(t.value);return!isNaN(r)&&r{t=r!=null?f(f({},t),r):t}),Object.keys(t).length===0?null:t}function fc(n,t){return t.map(r=>r(n))}function ou(n){return!n.validate}function gc(n){return n.map(t=>ou(t)?t:r=>t.validate(r))}function su(n){if(!n)return null;let t=n.filter(hc);return t.length==0?null:function(r){return pc(fc(r,t))}}function vc(n){return n!=null?su(gc(n)):null}function au(n){if(!n)return null;let t=n.filter(hc);return t.length==0?null:function(r){let e=fc(r,t).map(mc);return xn(e).pipe(I(pc))}}function bc(n){return n!=null?au(gc(n)):null}function ic(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function cu(n){return n._rawValidators}function lu(n){return n._rawAsyncValidators}function bo(n){return n?Array.isArray(n)?n:[n]:[]}function qn(n,t){return Array.isArray(n)?n.includes(t):n===t}function nc(n,t){let r=bo(t);return bo(n).forEach(i=>{qn(r,i)||r.push(i)}),r}function rc(n,t){return bo(t).filter(r=>!qn(n,r))}var Xn=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=vc(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=bc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,r){return this.control?this.control.hasError(t,r):!1}getError(t,r){return this.control?this.control.getError(t,r):null}},_o=class extends Xn{get formDirective(){return null}get path(){return null}},Fi=class extends Xn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},yo=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},du={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},yg=P(f({},du),{"[class.ng-submitted]":"isSubmitted"}),ti=(()=>{let t=class t extends yo{constructor(e){super(e)}};t.\u0275fac=function(i){return new(i||t)(g(Fi,2))},t.\u0275dir=k({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&rt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[et]});let n=t;return n})();var Mi="VALID",Yn="INVALID",Ke="PENDING",Ti="DISABLED",Je=class{},Zn=class extends Je{constructor(t,r){super(),this.value=t,this.source=r}},Oi=class extends Je{constructor(t,r){super(),this.pristine=t,this.source=r}},ki=class extends Je{constructor(t,r){super(),this.touched=t,this.source=r}},Qe=class extends Je{constructor(t,r){super(),this.status=t,this.source=r}};function uu(n){return(Kn(n)?n.validators:n)||null}function hu(n){return Array.isArray(n)?vc(n):n||null}function mu(n,t){return(Kn(t)?t.asyncValidators:n)||null}function pu(n){return Array.isArray(n)?bc(n):n||null}function Kn(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}var wo=class{constructor(t,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Gn(()=>this.statusReactive()),this.statusReactive=Fn(void 0),this._pristine=Gn(()=>this.pristineReactive()),this.pristineReactive=Fn(!0),this._touched=Gn(()=>this.touchedReactive()),this.touchedReactive=Fn(!1),this._events=new O,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Kt(this.statusReactive)}set status(t){Kt(()=>this.statusReactive.set(t))}get valid(){return this.status===Mi}get invalid(){return this.status===Yn}get pending(){return this.status==Ke}get disabled(){return this.status===Ti}get enabled(){return this.status!==Ti}get pristine(){return Kt(this.pristineReactive)}set pristine(t){Kt(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return Kt(this.touchedReactive)}set touched(t){Kt(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(nc(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(nc(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(rc(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(rc(t,this._rawAsyncValidators))}hasValidator(t){return qn(this._rawValidators,t)}hasAsyncValidator(t){return qn(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let r=this.touched===!1;this.touched=!0;let e=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(P(f({},t),{sourceControl:e})),r&&t.emitEvent!==!1&&this._events.next(new ki(!0,e))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(t))}markAsUntouched(t={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let e=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:e})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e),r&&t.emitEvent!==!1&&this._events.next(new ki(!1,e))}markAsDirty(t={}){let r=this.pristine===!0;this.pristine=!1;let e=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(P(f({},t),{sourceControl:e})),r&&t.emitEvent!==!1&&this._events.next(new Oi(!1,e))}markAsPristine(t={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let e=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&t.emitEvent!==!1&&this._events.next(new Oi(!0,e))}markAsPending(t={}){this.status=Ke;let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Qe(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(P(f({},t),{sourceControl:r}))}disable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=Ti,this.errors=null,this._forEachChild(i=>{i.disable(P(f({},t),{onlySelf:!0}))}),this._updateValue();let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Zn(this.value,e)),this._events.next(new Qe(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(P(f({},t),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=Mi,this._forEachChild(e=>{e.enable(P(f({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(P(f({},t),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(t,r){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let e=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mi||this.status===Ke)&&this._runAsyncValidator(e,t.emitEvent)}let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Zn(this.value,r)),this._events.next(new Qe(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(P(f({},t),{sourceControl:r}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ti:Mi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,r){if(this.asyncValidator){this.status=Ke,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let e=mc(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,r={}){this.errors=t,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(t){let r=t;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((e,i)=>e&&e._find(i),this)}getError(t,r){let e=r?this.get(r):this;return e&&e.errors?e.errors[t]:null}hasError(t,r){return!!this.getError(t,r)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,r,e){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||e)&&this._events.next(new Qe(this.status,r)),this._parent&&this._parent._updateControlsErrors(t,r,e)}_initObservables(){this.valueChanges=new J,this.statusChanges=new J}_calculateStatus(){return this._allControlsDisabled()?Ti:this.errors?Yn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ke)?Ke:this._anyControlsHaveStatus(Yn)?Yn:Mi}_anyControlsHaveStatus(t){return this._anyControls(r=>r.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,r){let e=!this._anyControlsDirty(),i=this.pristine!==e;this.pristine=e,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),i&&this._events.next(new Oi(this.pristine,r))}_updateTouched(t={},r){this.touched=this._anyControlsTouched(),this._events.next(new ki(this.touched,r)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Kn(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let r=this._parent&&this._parent.dirty;return!t&&!!r&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=hu(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=pu(this._rawAsyncValidators)}};var _c=new w("CallSetDisabledState",{providedIn:"root",factory:()=>Do}),Do="always";function fu(n,t){return[...t.path,n]}function gu(n,t,r=Do){bu(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||r==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),_u(n,t),wu(n,t),yu(n,t),vu(n,t)}function oc(n,t){n.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(t)})}function vu(n,t){if(t.valueAccessor.setDisabledState){let r=e=>{t.valueAccessor.setDisabledState(e)};n.registerOnDisabledChange(r),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(r)})}}function bu(n,t){let r=cu(n);t.validator!==null?n.setValidators(ic(r,t.validator)):typeof r=="function"&&n.setValidators([r]);let e=lu(n);t.asyncValidator!==null?n.setAsyncValidators(ic(e,t.asyncValidator)):typeof e=="function"&&n.setAsyncValidators([e]);let i=()=>n.updateValueAndValidity();oc(t._rawValidators,i),oc(t._rawAsyncValidators,i)}function _u(n,t){t.valueAccessor.registerOnChange(r=>{n._pendingValue=r,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&yc(n,t)})}function yu(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&yc(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function yc(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function wu(n,t){let r=(e,i)=>{t.valueAccessor.writeValue(e),i&&t.viewToModelUpdate(e)};n.registerOnChange(r),t._registerOnDestroy(()=>{n._unregisterOnChange(r)})}function Cu(n,t){if(!n.hasOwnProperty("model"))return!1;let r=n.model;return r.isFirstChange()?!0:!Object.is(t,r.currentValue)}function Eu(n){return Object.getPrototypeOf(n.constructor)===dc}function Du(n,t){if(!t)return null;Array.isArray(t);let r,e,i;return t.forEach(o=>{o.constructor===me?r=o:Eu(o)?e=o:i=o}),i||e||r||null}function sc(n,t){let r=n.indexOf(t);r>-1&&n.splice(r,1)}function ac(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var Iu=class extends wo{constructor(t=null,r,e){super(uu(r),mu(e,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Kn(r)&&(r.nonNullable||r.initialValueIsDefault)&&(ac(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,r={}){this.value=this._pendingValue=t,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(e=>e(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(t,r={}){this.setValue(t,r)}reset(t=this.defaultValue,r={}){this._applyFormState(t),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){sc(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){sc(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){ac(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var xu={provide:Fi,useExisting:Ei(()=>Re)},cc=Promise.resolve(),Re=(()=>{let t=class t extends Fi{constructor(e,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Iu,this._registered=!1,this.name="",this.update=new J,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Du(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Cu(e,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(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){gu(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){cc.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,o=i!==0&&_t(i);cc.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?fu(e,this._parent):[e]}};t.\u0275fac=function(i){return new(i||t)(g(_o,9),g(uc,10),g(nu,10),g(Eo,10),g(Zt,8),g(_c,8))},t.\u0275dir=k({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[at([xu]),et,Wt]});let n=t;return n})();var Au={provide:Eo,useExisting:Ei(()=>Pi),multi:!0},Pi=(()=>{let t=class t extends dc{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Lt(t)))(o||t)}})(),t.\u0275dir=k({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){i&1&&Z("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[at([Au]),et]});let n=t;return n})();function Su(n){return typeof n=="number"?n:parseFloat(n)}var Ru=(()=>{let t=class t{constructor(){this._validator=ec}ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):ec,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=k({type:t,features:[Wt]});let n=t;return n})();var Mu={provide:uc,useExisting:Ei(()=>Io),multi:!0},Io=(()=>{let t=class t extends Ru{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>Su(e),this.createValidator=e=>ru(e)}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Lt(t)))(o||t)}})(),t.\u0275dir=k({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,o){i&2&>("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[at([Mu]),et]});let n=t;return n})();var Tu=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({});let n=t;return n})();var pe=(()=>{let t=class t{static withConfig(e){return{ngModule:t,providers:[{provide:_c,useValue:e.callSetDisabledState??Do}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[Tu]});let n=t;return n})();var So=class{};var ei=class n{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(r=>{let e=r.indexOf(":");if(e>0){let i=r.slice(0,e),o=i.toLowerCase(),s=r.slice(e+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((r,e)=>{this.setHeaderEntries(e,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([r,e])=>{this.setHeaderEntries(r,e)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let r=this.headers.get(t.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,r){return this.clone({name:t,value:r,op:"a"})}set(t,r){return this.clone({name:t,value:r,op:"s"})}delete(t,r){return this.clone({name:t,value:r,op:"d"})}maybeSetNormalizedName(t,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(r=>{this.headers.set(r,t.headers.get(r)),this.normalizedNames.set(r,t.normalizedNames.get(r))})}clone(t){let r=new n;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([t]),r}applyUpdate(t){let r=t.name.toLowerCase();switch(t.op){case"a":case"s":let e=t.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(t.name,r);let i=(t.op==="a"?this.headers.get(r):void 0)||[];i.push(...e),this.headers.set(r,i);break;case"d":let o=t.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(t,r){let e=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,e),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>t(this.normalizedNames.get(r),this.headers.get(r)))}};var Ro=class{encodeKey(t){return wc(t)}encodeValue(t){return wc(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Ou(n,t){let r=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var ku=/%(\d[a-f0-9])/gi,Fu={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function wc(n){return encodeURIComponent(n).replace(ku,(t,r)=>Fu[r]??t)}function Qn(n){return`${n}`}var fe=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ro,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Ou(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(r=>{let e=t.fromObject[r],i=Array.isArray(e)?e.map(Qn):[Qn(e)];this.map.set(r,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let r=this.map.get(t);return r?r[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,r){return this.clone({param:t,value:r,op:"a"})}appendAll(t){let r=[];return Object.keys(t).forEach(e=>{let i=t[e];Array.isArray(i)?i.forEach(o=>{r.push({param:e,value:o,op:"a"})}):r.push({param:e,value:i,op:"a"})}),this.clone(r)}set(t,r){return this.clone({param:t,value:r,op:"s"})}delete(t,r){return this.clone({param:t,value:r,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let r=this.encoder.encodeKey(t);return this.map.get(t).map(e=>r+"="+this.encoder.encodeValue(e)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let r=new n({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(t),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let r=(t.op==="a"?this.map.get(t.param):void 0)||[];r.push(Qn(t.value)),this.map.set(t.param,r);break;case"d":if(t.value!==void 0){let e=this.map.get(t.param)||[],i=e.indexOf(Qn(t.value));i!==-1&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Mo=class{constructor(){this.map=new Map}set(t,r){return this.map.set(t,r),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Pu(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Cc(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Ec(n){return typeof Blob<"u"&&n instanceof Blob}function Dc(n){return typeof FormData<"u"&&n instanceof FormData}function Nu(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Ni=class n{constructor(t,r,e,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(Pu(this.method)||i?(this.body=e!==void 0?e:null,o=i):o=e,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new ei,this.context??=new Mo,!this.params)this.params=new fe,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":ah.set(p,t.setHeaders[p]),l)),t.setParams&&(d=Object.keys(t.setParams).reduce((h,p)=>h.set(p,t.setParams[p]),d)),new n(r,e,s,{params:d,headers:l,context:u,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},Ic=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(Ic||{}),To=class{constructor(t,r=200,e="OK"){this.headers=t.headers||new ei,this.status=t.status!==void 0?t.status:r,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}};var Oo=class n extends To{constructor(t={}){super(t),this.type=Ic.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}};function Ao(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var xc=(()=>{let t=class t{constructor(e){this.handler=e}request(e,i,o={}){let s;if(e instanceof Ni)s=e;else{let l;o.headers instanceof ei?l=o.headers:l=new ei(o.headers);let d;o.params&&(o.params instanceof fe?d=o.params:d=new fe({fromObject:o.params})),s=new Ni(e,i,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=_(s).pipe(ce(l=>this.handler.handle(l)));if(e instanceof Ni||o.observe==="events")return a;let c=a.pipe(X(l=>l instanceof Oo));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(I(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(I(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(I(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(I(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new fe().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,Ao(o,i))}post(e,i,o={}){return this.request("POST",e,Ao(o,i))}put(e,i,o={}){return this.request("PUT",e,Ao(o,i))}};t.\u0275fac=function(i){return new(i||t)(m(So))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();var Po=class extends Ga{constructor(){super(...arguments),this.supportsDOMEvents=!0}},No=class n extends Po{static makeCurrent(){$a(new n)}onAndCancel(t,r,e){return t.addEventListener(r,e),()=>{t.removeEventListener(r,e)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.remove()}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=Vu();return r==null?null:Bu(r)}resetBaseElement(){ji=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return qa(document.cookie,t)}},ji=null;function Vu(){return ji=ji||document.querySelector("base"),ji?ji.getAttribute("href"):null}function Bu(n){return new URL(n,document.baseURI).pathname}var jo=class{addToWindow(t){de.getAngularTestability=(e,i=!0)=>{let o=t.findTestabilityInTree(e,i);if(o==null)throw new H(5103,!1);return o},de.getAllAngularTestabilities=()=>t.getAllTestabilities(),de.getAllAngularRootElements=()=>t.getAllRootElements();let r=e=>{let i=de.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&e()};i.forEach(a=>{a.whenStable(s)})};de.frameworkStabilizers||(de.frameworkStabilizers=[]),de.frameworkStabilizers.push(r)}findTestabilityInTree(t,r,e){if(r==null)return null;let i=t.getTestability(r);return i??(e?Se().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},Uu=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Jn=new w(""),Rc=(()=>{let t=class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(s=>s.supports(e)),!i)throw new H(5101,!1);return this._eventNameToPlugin.set(e,i),i}};t.\u0275fac=function(i){return new(i||t)(m(Jn),m(M))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Li=class{constructor(t){this._doc=t}},ko="ng-app-id",Mc=(()=>{let t=class t{constructor(e,i,o,s={}){this.doc=e,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=vo(s),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(o=>o.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${ko}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(e,i){let o=this.styleRef;if(o.has(e)){let s=o.get(e);return s.usage+=i,s.usage}return o.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===e)return o.delete(i),s.removeAttribute(ko),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(ko,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){let o=this.getStyleElement(e,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(m(E),m(Ii),m(xi,8),m(De))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Fo={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Vo=/%COMP%/g,Tc="%COMP%",zu=`_nghost-${Tc}`,$u=`_ngcontent-${Tc}`,Gu=!0,Hu=new w("",{providedIn:"root",factory:()=>Gu});function Wu(n){return $u.replace(Vo,n)}function Yu(n){return zu.replace(Vo,n)}function Oc(n,t){return t.map(r=>r.replace(Vo,n))}var tr=(()=>{let t=class t{constructor(e,i,o,s,a,c,l,d=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=vo(c),this.defaultRenderer=new Vi(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Di.ShadowDom&&(i=P(f({},i),{encapsulation:Di.Emulated}));let o=this.getOrCreateRenderer(e,i);return o instanceof er?o.applyToHost(e):o instanceof Bi&&o.applyStyles(),o}getOrCreateRenderer(e,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case Di.Emulated:s=new er(l,d,i,this.appId,u,a,c,h);break;case Di.ShadowDom:return new Lo(l,d,e,i,a,c,this.nonce,h);default:s=new Bi(l,d,i,u,a,c,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(m(Rc),m(Mc),m(Ii),m(Hu),m(E),m(De),m(M),m(xi))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Vi=class{constructor(t,r,e,i){this.eventManager=t,this.doc=r,this.ngZone=e,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(Fo[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(Ac(t)?t.content:t).appendChild(r)}insertBefore(t,r,e){t&&(Ac(t)?t.content:t).insertBefore(r,e)}removeChild(t,r){r.remove()}selectRootElement(t,r){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new H(-5104,!1);return r||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,e,i){if(i){r=i+":"+r;let o=Fo[i];o?t.setAttributeNS(o,r,e):t.setAttribute(r,e)}else t.setAttribute(r,e)}removeAttribute(t,r,e){if(e){let i=Fo[e];i?t.removeAttributeNS(i,r):t.removeAttribute(`${e}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,e,i){i&(Ai.DashCase|Ai.Important)?t.style.setProperty(r,e,i&Ai.Important?"important":""):t.style[r]=e}removeStyle(t,r,e){e&Ai.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,e){t!=null&&(t[r]=e)}setValue(t,r){t.nodeValue=r}listen(t,r,e){if(typeof t=="string"&&(t=Se().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(e))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function Ac(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Lo=class extends Vi{constructor(t,r,e,i,o,s,a,c){super(t,o,s,c),this.sharedStylesHost=r,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Oc(i.id,i.styles);for(let d of l){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,e){return super.insertBefore(this.nodeOrShadowRoot(t),r,e)}removeChild(t,r){return super.removeChild(null,r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Bi=class extends Vi{constructor(t,r,e,i,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?Oc(c,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},er=class extends Bi{constructor(t,r,e,i,o,s,a,c){let l=i+"-"+e.id;super(t,r,e,o,s,a,c,l),this.contentAttr=Wu(l),this.hostAttr=Yu(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let e=super.createElement(t,r);return super.setAttribute(e,this.contentAttr,""),e}},qu=(()=>{let t=class t extends Li{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}};t.\u0275fac=function(i){return new(i||t)(m(E))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Xu=(()=>{let t=class t extends Li{constructor(e){super(e),this.delegate=v(Ua,{optional:!0})}supports(e){return this.delegate?this.delegate.supports(e):!1}addEventListener(e,i,o){return this.delegate.addEventListener(e,i,o)}removeEventListener(e,i,o){return this.delegate.removeEventListener(e,i,o)}};t.\u0275fac=function(i){return new(i||t)(m(E))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Sc=["alt","control","meta","shift"],Zu={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ku={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Qu=(()=>{let t=class t extends Li{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Se().onAndCancel(e,s.domEventName,a))}static parseEventName(e){let i=e.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),Sc.forEach(d=>{let u=i.indexOf(d);u>-1&&(i.splice(u,1),a+=d+".")}),a+=s,i.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let o=Zu[e.key]||e.key,s="";return i.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Sc.forEach(a=>{if(a!==o){let c=Ku[a];c(e)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(e,i,o){return s=>{t.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>i(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(i){return new(i||t)(m(E))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function kc(n,t){return Ba(f({rootComponent:n},Ju(t)))}function Ju(n){return{appProviders:[...Fc,...n?.providers??[]],platformProviders:nh}}function th(){No.makeCurrent()}function eh(){return new Ee}function ih(){return wa(document),document}var nh=[{provide:De,useValue:Za},{provide:Ca,useValue:th,multi:!0},{provide:E,useFactory:ih,deps:[]}];var rh=new w(""),oh=[{provide:Bn,useClass:jo,deps:[]},{provide:ja,useClass:Un,deps:[M,po,Bn]},{provide:Un,useClass:Un,deps:[M,po,Bn]}],Fc=[{provide:_a,useValue:"root"},{provide:Ee,useFactory:eh,deps:[]},{provide:Jn,useClass:qu,multi:!0,deps:[E,M,De]},{provide:Jn,useClass:Qu,multi:!0,deps:[E]},{provide:Jn,useClass:Xu,multi:!0},tr,Mc,Rc,{provide:On,useExisting:tr},{provide:Ja,useClass:Uu,deps:[]},[]],Pc=(()=>{let t=class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ii,useValue:e.appId}]}}};t.\u0275fac=function(i){return new(i||t)(m(rh,12))},t.\u0275mod=S({type:t}),t.\u0275inj=A({providers:[...Fc,...oh],imports:[Wn,Va]});let n=t;return n})();var Nc=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(i){return new(i||t)(m(E))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Bo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=m(sh),o},providedIn:"root"});let n=t;return n})(),sh=(()=>{let t=class t extends Bo{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case ft.NONE:return i;case ft.HTML:return He(i,"HTML")?Ge(i):Ra(this._doc,String(i)).toString();case ft.STYLE:return He(i,"Style")?Ge(i):i;case ft.SCRIPT:if(He(i,"Script"))return Ge(i);throw new H(5200,!1);case ft.URL:return He(i,"URL")?Ge(i):Sa(String(i));case ft.RESOURCE_URL:if(He(i,"ResourceURL"))return Ge(i);throw new H(5201,!1);default:throw new H(5202,!1)}}bypassSecurityTrustHtml(e){return Ea(e)}bypassSecurityTrustStyle(e){return Da(e)}bypassSecurityTrustScript(e){return Ia(e)}bypassSecurityTrustUrl(e){return xa(e)}bypassSecurityTrustResourceUrl(e){return Aa(e)}};t.\u0275fac=function(i){return new(i||t)(m(E))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ah="@",ch=(()=>{let t=class t{constructor(e,i,o,s,a){this.doc=e,this.delegate=i,this.zone=o,this.animationType=s,this.moduleImpl=a,this._rendererFactoryPromise=null,this.scheduler=v(Ma,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-AVXN7HYR.js").then(i=>i)).catch(i=>{throw new H(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:o})=>{this._engine=i(this.animationType,this.doc);let s=new o(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(e,i){let o=this.delegate.createRenderer(e,i);if(o.\u0275type===0)return o;typeof o.throwOnSyntheticProps=="boolean"&&(o.throwOnSyntheticProps=!1);let s=new Uo(o);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let c=a.createRenderer(e,i);s.use(c),this.scheduler?.notify(9)}).catch(a=>{s.use(o)}),s}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(i){We()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Uo=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let r of this.replay)r(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,r){return this.delegate.createElement(t,r)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,r){this.delegate.appendChild(t,r)}insertBefore(t,r,e,i){this.delegate.insertBefore(t,r,e,i)}removeChild(t,r,e){this.delegate.removeChild(t,r,e)}selectRootElement(t,r){return this.delegate.selectRootElement(t,r)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,r,e,i){this.delegate.setAttribute(t,r,e,i)}removeAttribute(t,r,e){this.delegate.removeAttribute(t,r,e)}addClass(t,r){this.delegate.addClass(t,r)}removeClass(t,r){this.delegate.removeClass(t,r)}setStyle(t,r,e,i){this.delegate.setStyle(t,r,e,i)}removeStyle(t,r,e){this.delegate.removeStyle(t,r,e)}setProperty(t,r,e){this.shouldReplay(r)&&this.replay.push(i=>i.setProperty(t,r,e)),this.delegate.setProperty(t,r,e)}setValue(t,r){this.delegate.setValue(t,r)}listen(t,r,e){return this.shouldReplay(r)&&this.replay.push(i=>i.listen(t,r,e)),this.delegate.listen(t,r,e)}shouldReplay(t){return this.replay!==null&&t.startsWith(ah)}};function Lc(n="animations"){return Ta("NgAsyncAnimations"),Mn([{provide:On,useFactory:(t,r,e)=>new ch(t,r,e,n),deps:[E,tr,M]},{provide:Dt,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var x="primary",en=Symbol("RouteTitle"),Wo=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r[0]:r}return null}getAll(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function ai(n){return new Wo(n)}function lh(n,t,r){let e=r.path.split("/");if(e.length>n.length||r.pathMatch==="full"&&(t.hasChildren()||e.lengthe[o]===i)}else return n===t}function Zc(n){return n.length>0?n[n.length-1]:null}function be(n){return Dn(n)?n:zn(n)?nt(Promise.resolve(n)):_(n)}var uh={exact:Qc,subset:Jc},Kc={exact:hh,subset:mh,ignored:()=>!0};function Vc(n,t,r){return uh[r.paths](n.root,t.root,r.matrixParams)&&Kc[r.queryParams](n.queryParams,t.queryParams)&&!(r.fragment==="exact"&&n.fragment!==t.fragment)}function hh(n,t){return Ut(n,t)}function Qc(n,t,r){if(!Te(n.segments,t.segments)||!rr(n.segments,t.segments,r)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let e in t.children)if(!n.children[e]||!Qc(n.children[e],t.children[e],r))return!1;return!0}function mh(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(r=>Xc(n[r],t[r]))}function Jc(n,t,r){return tl(n,t,t.segments,r)}function tl(n,t,r,e){if(n.segments.length>r.length){let i=n.segments.slice(0,r.length);return!(!Te(i,r)||t.hasChildren()||!rr(i,r,e))}else if(n.segments.length===r.length){if(!Te(n.segments,r)||!rr(n.segments,r,e))return!1;for(let i in t.children)if(!n.children[i]||!Jc(n.children[i],t.children[i],e))return!1;return!0}else{let i=r.slice(0,n.segments.length),o=r.slice(n.segments.length);return!Te(n.segments,i)||!rr(n.segments,i,e)||!n.children[x]?!1:tl(n.children[x],t,o,e)}}function rr(n,t,r){return t.every((e,i)=>Kc[r](n[i].parameters,e.parameters))}var te=class{constructor(t=new j([],{}),r={},e=null){this.root=t,this.queryParams=r,this.fragment=e}get queryParamMap(){return this._queryParamMap??=ai(this.queryParams),this._queryParamMap}toString(){return gh.serialize(this)}},j=class{constructor(t,r){this.segments=t,this.children=r,this.parent=null,Object.values(r).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return or(this)}},Me=class{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap??=ai(this.parameters),this._parameterMap}toString(){return il(this)}};function ph(n,t){return Te(n,t)&&n.every((r,e)=>Ut(r.parameters,t[e].parameters))}function Te(n,t){return n.length!==t.length?!1:n.every((r,e)=>r.path===t[e].path)}function fh(n,t){let r=[];return Object.entries(n.children).forEach(([e,i])=>{e===x&&(r=r.concat(t(i,e)))}),Object.entries(n.children).forEach(([e,i])=>{e!==x&&(r=r.concat(t(i,e)))}),r}var nn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>new ci,providedIn:"root"});let n=t;return n})(),ci=class{parse(t){let r=new Xo(t);return new te(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){let r=`/${Ui(t.root,!0)}`,e=_h(t.queryParams),i=typeof t.fragment=="string"?`#${vh(t.fragment)}`:"";return`${r}${e}${i}`}},gh=new ci;function or(n){return n.segments.map(t=>il(t)).join("/")}function Ui(n,t){if(!n.hasChildren())return or(n);if(t){let r=n.children[x]?Ui(n.children[x],!1):"",e=[];return Object.entries(n.children).forEach(([i,o])=>{i!==x&&e.push(`${i}:${Ui(o,!1)}`)}),e.length>0?`${r}(${e.join("//")})`:r}else{let r=fh(n,(e,i)=>i===x?[Ui(n.children[x],!1)]:[`${i}:${Ui(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[x]!=null?`${or(n)}/${r[0]}`:`${or(n)}/(${r.join("//")})`}}function el(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ir(n){return el(n).replace(/%3B/gi,";")}function vh(n){return encodeURI(n)}function qo(n){return el(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function sr(n){return decodeURIComponent(n)}function Bc(n){return sr(n.replace(/\+/g,"%20"))}function il(n){return`${qo(n.path)}${bh(n.parameters)}`}function bh(n){return Object.entries(n).map(([t,r])=>`;${qo(t)}=${qo(r)}`).join("")}function _h(n){let t=Object.entries(n).map(([r,e])=>Array.isArray(e)?e.map(i=>`${ir(r)}=${ir(i)}`).join("&"):`${ir(r)}=${ir(e)}`).filter(r=>r);return t.length?`?${t.join("&")}`:""}var yh=/^[^\/()?;#]+/;function zo(n){let t=n.match(yh);return t?t[0]:""}var wh=/^[^\/()?;=#]+/;function Ch(n){let t=n.match(wh);return t?t[0]:""}var Eh=/^[^=?&#]+/;function Dh(n){let t=n.match(Eh);return t?t[0]:""}var Ih=/^[^&#]+/;function xh(n){let t=n.match(Ih);return t?t[0]:""}var Xo=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new j([],{}):new j([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(r).length>0)&&(e[x]=new j(t,r)),e}parseSegment(){let t=zo(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new H(4009,!1);return this.capture(t),new Me(sr(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let r=Ch(this.remaining);if(!r)return;this.capture(r);let e="";if(this.consumeOptional("=")){let i=zo(this.remaining);i&&(e=i,this.capture(e))}t[sr(r)]=sr(e)}parseQueryParam(t){let r=Dh(this.remaining);if(!r)return;this.capture(r);let e="";if(this.consumeOptional("=")){let s=xh(this.remaining);s&&(e=s,this.capture(e))}let i=Bc(r),o=Bc(e);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let e=zo(this.remaining),i=this.remaining[e.length];if(i!=="/"&&i!==")"&&i!==";")throw new H(4010,!1);let o;e.indexOf(":")>-1?(o=e.slice(0,e.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=x);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[x]:new j([],s),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new H(4011,!1)}};function nl(n){return n.segments.length>0?new j([],{[x]:n}):n}function rl(n){let t={};for(let[e,i]of Object.entries(n.children)){let o=rl(i);if(e===x&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[e]=o)}let r=new j(n.segments,t);return Ah(r)}function Ah(n){if(n.numberOfChildren===1&&n.children[x]){let t=n.children[x];return new j(n.segments.concat(t.segments),t.children)}return n}function Yi(n){return n instanceof te}function Sh(n,t,r=null,e=null){let i=ol(n);return sl(i,t,r,e)}function ol(n){let t;function r(o){let s={};for(let c of o.children){let l=r(c);s[c.outlet]=l}let a=new j(o.url,s);return o===n&&(t=a),a}let e=r(n.root),i=nl(e);return t??i}function sl(n,t,r,e){let i=n;for(;i.parent;)i=i.parent;if(t.length===0)return $o(i,i,i,r,e);let o=Rh(t);if(o.toRoot())return $o(i,i,new j([],{}),r,e);let s=Mh(o,i,n),a=s.processChildren?Gi(s.segmentGroup,s.index,o.commands):cl(s.segmentGroup,s.index,o.commands);return $o(i,s.segmentGroup,a,r,e)}function ar(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function qi(n){return typeof n=="object"&&n!=null&&n.outlets}function $o(n,t,r,e,i){let o={};e&&Object.entries(e).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let s;n===t?s=r:s=al(n,t,r);let a=nl(rl(s));return new te(a,o,i)}function al(n,t,r){let e={};return Object.entries(n.children).forEach(([i,o])=>{o===t?e[i]=r:e[i]=al(o,t,r)}),new j(n.segments,e)}var cr=class{constructor(t,r,e){if(this.isAbsolute=t,this.numberOfDoubleDots=r,this.commands=e,t&&e.length>0&&ar(e[0]))throw new H(4003,!1);let i=e.find(qi);if(i&&i!==Zc(e))throw new H(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Rh(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new cr(!0,0,n);let t=0,r=!1,e=n.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new cr(r,t,e)}var ri=class{constructor(t,r,e){this.segmentGroup=t,this.processChildren=r,this.index=e}};function Mh(n,t,r){if(n.isAbsolute)return new ri(t,!0,0);if(!r)return new ri(t,!1,NaN);if(r.parent===null)return new ri(r,!0,0);let e=ar(n.commands[0])?0:1,i=r.segments.length-1+e;return Th(r,i,n.numberOfDoubleDots)}function Th(n,t,r){let e=n,i=t,o=r;for(;o>i;){if(o-=i,e=e.parent,!e)throw new H(4005,!1);i=e.segments.length}return new ri(e,!1,i-o)}function Oh(n){return qi(n[0])?n[0].outlets:{[x]:n}}function cl(n,t,r){if(n??=new j([],{}),n.segments.length===0&&n.hasChildren())return Gi(n,t,r);let e=kh(n,t,r),i=r.slice(e.commandIndex);if(e.match&&e.pathIndexo!==x)&&n.children[x]&&n.numberOfChildren===1&&n.children[x].segments.length===0){let o=Gi(n.children[x],t,r);return new j(n.segments,o.children)}return Object.entries(e).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=cl(n.children[o],t,s))}),Object.entries(n.children).forEach(([o,s])=>{e[o]===void 0&&(i[o]=s)}),new j(n.segments,i)}}function kh(n,t,r){let e=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=n.segments[i],a=r[e];if(qi(a))break;let c=`${a}`,l=e0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!zc(c,l,s))return o;e+=2}else{if(!zc(c,{},s))return o;e++}i++}return{match:!0,pathIndex:i,commandIndex:e}}function Zo(n,t,r){let e=n.segments.slice(0,t),i=0;for(;i{typeof e=="string"&&(e=[e]),e!==null&&(t[r]=Zo(new j([],{}),0,e))}),t}function Uc(n){let t={};return Object.entries(n).forEach(([r,e])=>t[r]=`${e}`),t}function zc(n,t,r){return n==r.path&&Ut(t,r.parameters)}var Hi="imperative",tt=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(tt||{}),It=class{constructor(t,r){this.id=t,this.url=r}},li=class extends It{constructor(t,r,e="imperative",i=null){super(t,r),this.type=tt.NavigationStart,this.navigationTrigger=e,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ee=class extends It{constructor(t,r,e){super(t,r),this.urlAfterRedirects=e,this.type=tt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},wt=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(wt||{}),lr=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(lr||{}),Jt=class extends It{constructor(t,r,e,i){super(t,r),this.reason=e,this.code=i,this.type=tt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ge=class extends It{constructor(t,r,e,i){super(t,r),this.reason=e,this.code=i,this.type=tt.NavigationSkipped}},Xi=class extends It{constructor(t,r,e,i){super(t,r),this.error=e,this.target=i,this.type=tt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},dr=class extends It{constructor(t,r,e,i){super(t,r),this.urlAfterRedirects=e,this.state=i,this.type=tt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ko=class extends It{constructor(t,r,e,i){super(t,r),this.urlAfterRedirects=e,this.state=i,this.type=tt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qo=class extends It{constructor(t,r,e,i,o){super(t,r),this.urlAfterRedirects=e,this.state=i,this.shouldActivate=o,this.type=tt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Jo=class extends It{constructor(t,r,e,i){super(t,r),this.urlAfterRedirects=e,this.state=i,this.type=tt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ts=class extends It{constructor(t,r,e,i){super(t,r),this.urlAfterRedirects=e,this.state=i,this.type=tt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},es=class{constructor(t){this.route=t,this.type=tt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},is=class{constructor(t){this.route=t,this.type=tt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ns=class{constructor(t){this.snapshot=t,this.type=tt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rs=class{constructor(t){this.snapshot=t,this.type=tt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},os=class{constructor(t){this.snapshot=t,this.type=tt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ss=class{constructor(t){this.snapshot=t,this.type=tt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ur=class{constructor(t,r,e){this.routerEvent=t,this.position=r,this.anchor=e,this.type=tt.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Zi=class{},di=class{constructor(t,r){this.url=t,this.navigationBehaviorOptions=r}};function Ph(n,t){return n.providers&&!n._injector&&(n._injector=uo(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Tt(n){return n.outlet||x}function Nh(n,t){let r=n.filter(e=>Tt(e)===t);return r.push(...n.filter(e=>Tt(e)!==t)),r}function rn(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let r=t.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var as=class{get injector(){return rn(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new on(this.rootInjector),this.attachRef=null}},on=(()=>{let t=class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,i){let o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new as(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}};t.\u0275fac=function(i){return new(i||t)(m(ue))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),hr=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let r=this.pathFromRoot(t);return r.length>1?r[r.length-2]:null}children(t){let r=cs(t,this._root);return r?r.children.map(e=>e.value):[]}firstChild(t){let r=cs(t,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(t){let r=ls(t,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return ls(t,this._root).map(r=>r.value)}};function cs(n,t){if(n===t.value)return t;for(let r of t.children){let e=cs(n,r);if(e)return e}return null}function ls(n,t){if(n===t.value)return[t];for(let r of t.children){let e=ls(n,r);if(e.length)return e.unshift(t),e}return[]}var yt=class{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}};function ni(n){let t={};return n&&n.children.forEach(r=>t[r.value.outlet]=r),t}var mr=class extends hr{constructor(t,r){super(t),this.snapshot=r,bs(this,t)}toString(){return this.snapshot.toString()}};function ll(n){let t=jh(n),r=new dt([new Me("",{})]),e=new dt({}),i=new dt({}),o=new dt({}),s=new dt(""),a=new ve(r,e,o,s,i,x,n,t.root);return a.snapshot=t.root,new mr(new yt(a,[]),t)}function jh(n){let t={},r={},e={},i="",o=new oi([],t,e,i,r,x,n,null,{});return new fr("",new yt(o,[]))}var ve=class{constructor(t,r,e,i,o,s,a,c){this.urlSubject=t,this.paramsSubject=r,this.queryParamsSubject=e,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(l=>l[en]))??_(void 0),this.url=t,this.params=r,this.queryParams=e,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(I(t=>ai(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(t=>ai(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function pr(n,t,r="emptyOnly"){let e,{routeConfig:i}=n;return t!==null&&(r==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?e={params:f(f({},t.params),n.params),data:f(f({},t.data),n.data),resolve:f(f(f(f({},n.data),t.data),i?.data),n._resolvedData)}:e={params:f({},n.params),data:f({},n.data),resolve:f(f({},n.data),n._resolvedData??{})},i&&ul(i)&&(e.resolve[en]=i.title),e}var oi=class{get title(){return this.data?.[en]}constructor(t,r,e,i,o,s,a,c,l){this.url=t,this.params=r,this.queryParams=e,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ai(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ai(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(e=>e.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${r}')`}},fr=class extends hr{constructor(t,r){super(r),this.url=t,bs(this,r)}toString(){return dl(this._root)}};function bs(n,t){t.value._routerState=n,t.children.forEach(r=>bs(n,r))}function dl(n){let t=n.children.length>0?` { ${n.children.map(dl).join(", ")} } `:"";return`${n.value}${t}`}function Go(n){if(n.snapshot){let t=n.snapshot,r=n._futureSnapshot;n.snapshot=r,Ut(t.queryParams,r.queryParams)||n.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&n.fragmentSubject.next(r.fragment),Ut(t.params,r.params)||n.paramsSubject.next(r.params),dh(t.url,r.url)||n.urlSubject.next(r.url),Ut(t.data,r.data)||n.dataSubject.next(r.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function ds(n,t){let r=Ut(n.params,t.params)&&ph(n.url,t.url),e=!n.parent!=!t.parent;return r&&!e&&(!n.parent||ds(n.parent,t.parent))}function ul(n){return typeof n.title=="string"||n.title===null}var _s=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=x,this.activateEvents=new J,this.deactivateEvents=new J,this.attachEvents=new J,this.detachEvents=new J,this.parentContexts=v(on),this.location=v(Ye),this.changeDetector=v(Zt),this.inputBinder=v(yr,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new H(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new H(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new H(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new H(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new us(e,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=k({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Wt]});let n=t;return n})(),us=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,r,e){this.route=t,this.childContexts=r,this.parent=e}get(t,r){return t===ve?this.route:t===on?this.childContexts:this.parent.get(t,r)}},yr=new w(""),$c=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,o=$e([i.queryParams,i.params,i.data]).pipe(pt(([s,a,c],l)=>(c=f(f(f({},s),a),c),l===0?_(c):Promise.resolve(c)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=za(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:c}of a.inputs)e.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(e,o)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Lh(n,t,r){let e=Ki(n,t._root,r?r._root:void 0);return new mr(e,t)}function Ki(n,t,r){if(r&&n.shouldReuseRoute(t.value,r.value.snapshot)){let e=r.value;e._futureSnapshot=t.value;let i=Vh(n,t,r);return new yt(e,i)}else{if(n.shouldAttach(t.value)){let o=n.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Ki(n,a)),s}}let e=Bh(t.value),i=t.children.map(o=>Ki(n,o));return new yt(e,i)}}function Vh(n,t,r){return t.children.map(e=>{for(let i of r.children)if(n.shouldReuseRoute(e.value,i.value.snapshot))return Ki(n,e,i);return Ki(n,e)})}function Bh(n){return new ve(new dt(n.url),new dt(n.params),new dt(n.queryParams),new dt(n.fragment),new dt(n.data),n.outlet,n.component,n)}var Qi=class{constructor(t,r){this.redirectTo=t,this.navigationBehaviorOptions=r}},hl="ngNavigationCancelingError";function gr(n,t){let{redirectTo:r,navigationBehaviorOptions:e}=Yi(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=ml(!1,wt.Redirect);return i.url=r,i.navigationBehaviorOptions=e,i}function ml(n,t){let r=new Error(`NavigationCancelingError: ${n||""}`);return r[hl]=!0,r.cancellationCode=t,r}function Uh(n){return pl(n)&&Yi(n.url)}function pl(n){return!!n&&n[hl]}var zh=(n,t,r,e)=>I(i=>(new hs(t,i.targetRouterState,i.currentRouterState,r,e).activate(n),i)),hs=class{constructor(t,r,e,i,o){this.routeReuseStrategy=t,this.futureState=r,this.currState=e,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let r=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,e,t),Go(this.futureState.root),this.activateChildRoutes(r,e,t)}deactivateChildRoutes(t,r,e){let i=ni(r);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],e),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,e)})}deactivateRoutes(t,r,e){let i=t.value,o=r?r.value:null;if(i===o)if(i.component){let s=e.getContext(i.outlet);s&&this.deactivateChildRoutes(t,r,s.children)}else this.deactivateChildRoutes(t,r,e);else o&&this.deactivateRouteAndItsChildren(r,e)}deactivateRouteAndItsChildren(t,r){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,r):this.deactivateRouteAndOutlet(t,r)}detachAndStoreRouteSubtree(t,r){let e=r.getContext(t.value.outlet),i=e&&t.value.component?e.children:r,o=ni(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(e&&e.outlet){let s=e.outlet.detach(),a=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,r){let e=r.getContext(t.value.outlet),i=e&&t.value.component?e.children:r,o=ni(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(t,r,e){let i=ni(r);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],e),this.forwardEvent(new ss(o.value.snapshot))}),t.children.length&&this.forwardEvent(new rs(t.value.snapshot))}activateRoutes(t,r,e){let i=t.value,o=r?r.value:null;if(Go(i),i===o)if(i.component){let s=e.getOrCreateContext(i.outlet);this.activateChildRoutes(t,r,s.children)}else this.activateChildRoutes(t,r,e);else if(i.component){let s=e.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Go(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,e)}},vr=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},si=class{constructor(t,r){this.component=t,this.route=r}};function $h(n,t,r){let e=n._root,i=t?t._root:null;return zi(e,i,r,[e.value])}function Gh(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function hi(n,t){let r=Symbol(),e=t.get(n,r);return e===r?typeof n=="function"&&!va(n)?n:t.get(n):e}function zi(n,t,r,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ni(t);return n.children.forEach(s=>{Hh(s,o[s.value.outlet],r,e.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Wi(a,r.getContext(s),i)),i}function Hh(n,t,r,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=t?t.value:null,a=r?r.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Wh(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new vr(e)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?zi(n,t,a?a.children:null,e,i):zi(n,t,r,e,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new si(a.outlet.component,s))}else s&&Wi(t,a,i),i.canActivateChecks.push(new vr(e)),o.component?zi(n,null,a?a.children:null,e,i):zi(n,null,r,e,i);return i}function Wh(n,t,r){if(typeof r=="function")return r(n,t);switch(r){case"pathParamsChange":return!Te(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Te(n.url,t.url)||!Ut(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ds(n,t)||!Ut(n.queryParams,t.queryParams);case"paramsChange":default:return!ds(n,t)}}function Wi(n,t,r){let e=ni(n),i=n.value;Object.entries(e).forEach(([o,s])=>{i.component?t?Wi(s,t.children.getContext(o),r):Wi(s,null,r):Wi(s,t,r)}),i.component?t&&t.outlet&&t.outlet.isActivated?r.canDeactivateChecks.push(new si(t.outlet.component,i)):r.canDeactivateChecks.push(new si(null,i)):r.canDeactivateChecks.push(new si(null,i))}function sn(n){return typeof n=="function"}function Yh(n){return typeof n=="boolean"}function qh(n){return n&&sn(n.canLoad)}function Xh(n){return n&&sn(n.canActivate)}function Zh(n){return n&&sn(n.canActivateChild)}function Kh(n){return n&&sn(n.canDeactivate)}function Qh(n){return n&&sn(n.canMatch)}function fl(n){return n instanceof ha||n?.name==="EmptyError"}var nr=Symbol("INITIAL_VALUE");function ui(){return pt(n=>$e(n.map(t=>t.pipe(ot(1),Ht(nr)))).pipe(I(t=>{for(let r of t)if(r!==!0){if(r===nr)return nr;if(r===!1||Jh(r))return r}return!0}),X(t=>t!==nr),ot(1)))}function Jh(n){return Yi(n)||n instanceof Qi}function tm(n,t){return mt(r=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?_(P(f({},r),{guardsResult:!0})):em(s,e,i,n).pipe(mt(a=>a&&Yh(a)?im(e,o,n,t):_(a)),I(a=>P(f({},r),{guardsResult:a})))})}function em(n,t,r,e){return nt(n).pipe(mt(i=>am(i.component,i.route,r,t,e)),le(i=>i!==!0,!0))}function im(n,t,r,e){return nt(t).pipe(ce(i=>In(rm(i.route.parent,e),nm(i.route,e),sm(n,i.path,r),om(n,i.route,r))),le(i=>i!==!0,!0))}function nm(n,t){return n!==null&&t&&t(new os(n)),_(!0)}function rm(n,t){return n!==null&&t&&t(new ns(n)),_(!0)}function om(n,t,r){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return _(!0);let i=e.map(o=>we(()=>{let s=rn(t)??r,a=hi(o,s),c=Xh(a)?a.canActivate(t,n):jt(s,()=>a(t,n));return be(c).pipe(le())}));return _(i).pipe(ui())}function sm(n,t,r){let e=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>Gh(s)).filter(s=>s!==null).map(s=>we(()=>{let a=s.guards.map(c=>{let l=rn(s.node)??r,d=hi(c,l),u=Zh(d)?d.canActivateChild(e,n):jt(l,()=>d(e,n));return be(u).pipe(le())});return _(a).pipe(ui())}));return _(o).pipe(ui())}function am(n,t,r,e,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return _(!0);let s=o.map(a=>{let c=rn(t)??i,l=hi(a,c),d=Kh(l)?l.canDeactivate(n,t,r,e):jt(c,()=>l(n,t,r,e));return be(d).pipe(le())});return _(s).pipe(ui())}function cm(n,t,r,e){let i=t.canLoad;if(i===void 0||i.length===0)return _(!0);let o=i.map(s=>{let a=hi(s,n),c=qh(a)?a.canLoad(t,r):jt(n,()=>a(t,r));return be(c)});return _(o).pipe(ui(),gl(e))}function gl(n){return ua(W(t=>{if(typeof t!="boolean")throw gr(n,t)}),I(t=>t===!0))}function lm(n,t,r,e){let i=t.canMatch;if(!i||i.length===0)return _(!0);let o=i.map(s=>{let a=hi(s,n),c=Qh(a)?a.canMatch(t,r):jt(n,()=>a(t,r));return be(c)});return _(o).pipe(ui(),gl(e))}var Ji=class{constructor(t){this.segmentGroup=t||null}},tn=class extends Error{constructor(t){super(),this.urlTree=t}};function ii(n){return ye(new Ji(n))}function dm(n){return ye(new H(4e3,!1))}function um(n){return ye(ml(!1,wt.GuardRejected))}var ms=class{constructor(t,r){this.urlSerializer=t,this.urlTree=r}lineralizeSegments(t,r){let e=[],i=r.root;for(;;){if(e=e.concat(i.segments),i.numberOfChildren===0)return _(e);if(i.numberOfChildren>1||!i.children[x])return dm(`${t.redirectTo}`);i=i.children[x]}}applyRedirectCommands(t,r,e,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:l,routeConfig:d,url:u,outlet:h,params:p,data:y,title:R}=i,F=jt(o,()=>a({params:p,data:y,queryParams:c,fragment:l,routeConfig:d,url:u,outlet:h,title:R}));if(F instanceof te)throw new tn(F);r=F}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),t,e);if(r[0]==="/")throw new tn(s);return s}applyRedirectCreateUrlTree(t,r,e,i){let o=this.createSegmentGroup(t,r.root,e,i);return new te(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(t,r){let e={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);e[i]=r[a]}else e[i]=o}),e}createSegmentGroup(t,r,e,i){let o=this.createSegments(t,r.segments,e,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,e,i)}),new j(o,s)}createSegments(t,r,e,i){return r.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,e))}findPosParam(t,r,e){let i=e[r.path.substring(1)];if(!i)throw new H(4001,!1);return i}findOrReturn(t,r){let e=0;for(let i of r){if(i.path===t.path)return r.splice(e),i;e++}return t}},ps={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function hm(n,t,r,e,i){let o=ys(n,t,r);return o.matched?(e=Ph(t,e),lm(e,t,r,i).pipe(I(s=>s===!0?o:f({},ps)))):_(o)}function ys(n,t,r){if(t.path==="**")return mm(r);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||r.length>0)?f({},ps):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(t.matcher||lh)(r,n,t);if(!i)return f({},ps);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?f(f({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function mm(n){return{matched:!0,parameters:n.length>0?Zc(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Gc(n,t,r,e){return r.length>0&&gm(n,r,e)?{segmentGroup:new j(t,fm(e,new j(r,n.children))),slicedSegments:[]}:r.length===0&&vm(n,r,e)?{segmentGroup:new j(n.segments,pm(n,r,e,n.children)),slicedSegments:r}:{segmentGroup:new j(n.segments,n.children),slicedSegments:r}}function pm(n,t,r,e){let i={};for(let o of r)if(wr(n,t,o)&&!e[Tt(o)]){let s=new j([],{});i[Tt(o)]=s}return f(f({},e),i)}function fm(n,t){let r={};r[x]=t;for(let e of n)if(e.path===""&&Tt(e)!==x){let i=new j([],{});r[Tt(e)]=i}return r}function gm(n,t,r){return r.some(e=>wr(n,t,e)&&Tt(e)!==x)}function vm(n,t,r){return r.some(e=>wr(n,t,e))}function wr(n,t,r){return(n.hasChildren()||t.length>0)&&r.pathMatch==="full"?!1:r.path===""}function bm(n,t,r,e){return Tt(n)!==e&&(e===x||!wr(t,r,n))?!1:ys(t,n,r).matched}function _m(n,t,r){return t.length===0&&!n.children[r]}var fs=class{};function ym(n,t,r,e,i,o,s="emptyOnly"){return new gs(n,t,r,e,i,s,o).recognize()}var wm=31,gs=class{constructor(t,r,e,i,o,s,a){this.injector=t,this.configLoader=r,this.rootComponentType=e,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ms(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new H(4002,`'${t.segmentGroup}'`)}recognize(){let t=Gc(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(I(({children:r,rootSnapshot:e})=>{let i=new yt(e,r),o=new fr("",i),s=Sh(e,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let r=new oi([],Object.freeze({}),Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),x,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,x,r).pipe(I(e=>({children:e,rootSnapshot:r})),ae(e=>{if(e instanceof tn)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof Ji?this.noMatchError(e):e}))}processSegmentGroup(t,r,e,i,o){return e.segments.length===0&&e.hasChildren()?this.processChildren(t,r,e,o):this.processSegment(t,r,e,e.segments,i,!0,o).pipe(I(s=>s instanceof yt?[s]:[]))}processChildren(t,r,e,i){let o=[];for(let s of Object.keys(e.children))s==="primary"?o.unshift(s):o.push(s);return nt(o).pipe(ce(s=>{let a=e.children[s],c=Nh(r,s);return this.processSegmentGroup(t,c,a,s,i)}),fa((s,a)=>(s.push(...a),s)),ro(null),pa(),mt(s=>{if(s===null)return ii(e);let a=vl(s);return Cm(a),_(a)}))}processSegment(t,r,e,i,o,s,a){return nt(r).pipe(ce(c=>this.processSegmentAgainstRoute(c._injector??t,r,c,e,i,o,s,a).pipe(ae(l=>{if(l instanceof Ji)return _(null);throw l}))),le(c=>!!c),ae(c=>{if(fl(c))return _m(e,i,o)?_(new fs):ii(e);throw c}))}processSegmentAgainstRoute(t,r,e,i,o,s,a,c){return bm(e,i,o,s)?e.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,e,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,r,e,o,s,c):ii(i):ii(i)}expandSegmentAgainstRouteUsingRedirect(t,r,e,i,o,s,a){let{matched:c,parameters:l,consumedSegments:d,positionalParamSegments:u,remainingSegments:h}=ys(r,i,o);if(!c)return ii(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>wm&&(this.allowRedirects=!1));let p=new oi(o,l,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Hc(i),Tt(i),i.component??i._loadedComponent??null,i,Wc(i)),y=pr(p,a,this.paramsInheritanceStrategy);p.params=Object.freeze(y.params),p.data=Object.freeze(y.data);let R=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,u,p,t);return this.applyRedirects.lineralizeSegments(i,R).pipe(mt(F=>this.processSegment(t,e,r,F.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,r,e,i,o,s){let a=hm(r,e,i,t,this.urlSerializer);return e.path==="**"&&(r.children={}),a.pipe(pt(c=>c.matched?(t=e._injector??t,this.getChildConfig(t,e,i).pipe(pt(({routes:l})=>{let d=e._loadedInjector??t,{parameters:u,consumedSegments:h,remainingSegments:p}=c,y=new oi(h,u,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Hc(e),Tt(e),e.component??e._loadedComponent??null,e,Wc(e)),R=pr(y,s,this.paramsInheritanceStrategy);y.params=Object.freeze(R.params),y.data=Object.freeze(R.data);let{segmentGroup:F,slicedSegments:ct}=Gc(r,h,p,l);if(ct.length===0&&F.hasChildren())return this.processChildren(d,l,F,y).pipe(I(T=>new yt(y,T)));if(l.length===0&&ct.length===0)return _(new yt(y,[]));let ht=Tt(e)===o;return this.processSegment(d,l,F,ct,ht?x:o,!0,y).pipe(I(T=>new yt(y,T instanceof yt?[T]:[])))}))):ii(r)))}getChildConfig(t,r,e){return r.children?_({routes:r.children,injector:t}):r.loadChildren?r._loadedRoutes!==void 0?_({routes:r._loadedRoutes,injector:r._loadedInjector}):cm(t,r,e,this.urlSerializer).pipe(mt(i=>i?this.configLoader.loadChildren(t,r).pipe(W(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):um(r))):_({routes:[],injector:t})}};function Cm(n){n.sort((t,r)=>t.value.outlet===x?-1:r.value.outlet===x?1:t.value.outlet.localeCompare(r.value.outlet))}function Em(n){let t=n.value.routeConfig;return t&&t.path===""}function vl(n){let t=[],r=new Set;for(let e of n){if(!Em(e)){t.push(e);continue}let i=t.find(o=>e.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...e.children),r.add(i)):t.push(e)}for(let e of r){let i=vl(e.children);t.push(new yt(e.value,i))}return t.filter(e=>!r.has(e))}function Hc(n){return n.data||{}}function Wc(n){return n.resolve||{}}function Dm(n,t,r,e,i,o){return mt(s=>ym(n,t,r,e,s.extractedUrl,i,o).pipe(I(({state:a,tree:c})=>P(f({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Im(n,t){return mt(r=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=r;if(!i.length)return _(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of bl(c))s.add(l);let a=0;return nt(s).pipe(ce(c=>o.has(c)?xm(c,e,n,t):(c.data=pr(c,c.parent,n).resolve,_(void 0))),W(()=>a++),so(1),mt(c=>a===s.size?_(r):se))})}function bl(n){let t=n.children.map(r=>bl(r)).flat();return[n,...t]}function xm(n,t,r,e){let i=n.routeConfig,o=n._resolve;return i?.title!==void 0&&!ul(i)&&(o[en]=i.title),Am(o,n,t,e).pipe(I(s=>(n._resolvedData=s,n.data=pr(n,n.parent,r).resolve,null)))}function Am(n,t,r,e){let i=Yo(n);if(i.length===0)return _({});let o={};return nt(i).pipe(mt(s=>Sm(n[s],t,r,e).pipe(le(),W(a=>{if(a instanceof Qi)throw gr(new ci,a);o[s]=a}))),so(1),ma(o),ae(s=>fl(s)?se:ye(s)))}function Sm(n,t,r,e){let i=rn(t)??e,o=hi(n,i),s=o.resolve?o.resolve(t,r):jt(i,()=>o(t,r));return be(s)}function Ho(n){return pt(t=>{let r=n(t);return r?nt(r).pipe(I(()=>t)):_(t)})}var _l=(()=>{let t=class t{buildTitle(e){let i,o=e.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===x);return i}getResolvedTitleForRoute(e){return e.data[en]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>v(Rm),providedIn:"root"});let n=t;return n})(),Rm=(()=>{let t=class t extends _l{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(m(Nc))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),an=new w("",{providedIn:"root",factory:()=>({})}),Mm=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=U({type:t,selectors:[["ng-component"]],standalone:!0,features:[z],decls:1,vars:0,template:function(i,o){i&1&&bt(0,"router-outlet")},dependencies:[_s],encapsulation:2});let n=t;return n})();function ws(n){let t=n.children&&n.children.map(ws),r=t?P(f({},n),{children:t}):f({},n);return!r.component&&!r.loadComponent&&(t||r.loadChildren)&&r.outlet&&r.outlet!==x&&(r.component=Mm),r}var br=new w(""),Cs=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=v($n)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return _(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=be(e.loadComponent()).pipe(I(yl),W(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Ce(()=>{this.componentLoaders.delete(e)})),o=new Jr(i,()=>new O).pipe(Qr());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return _({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=Tm(i,this.compiler,e,this.onLoadEndListener).pipe(Ce(()=>{this.childrenLoaders.delete(i)})),a=new Jr(s,()=>new O).pipe(Qr());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Tm(n,t,r,e){return be(n.loadChildren()).pipe(I(yl),mt(i=>i instanceof Fa||Array.isArray(i)?_(i):nt(t.compileModuleAsync(i))),I(i=>{e&&e(n);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(br,[],{optional:!0,self:!0}).flat()),{routes:s.map(ws),injector:o}}))}function Om(n){return n&&typeof n=="object"&&"default"in n}function yl(n){return Om(n)?n.default:n}var Es=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>v(km),providedIn:"root"});let n=t;return n})(),km=(()=>{let t=class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),wl=new w(""),Cl=new w("");function Fm(n,t,r){let e=n.get(Cl),i=n.get(E);return n.get(M).runOutsideAngular(()=>{if(!i.startViewTransition||e.skipNextTransition)return e.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),Pm(n))),{onViewTransitionCreated:c}=e;return c&&jt(n,()=>c({transition:a,from:t,to:r})),s})}function Pm(n){return new Promise(t=>{he({read:()=>setTimeout(t)},{injector:n})})}var Nm=new w(""),Ds=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new O,this.transitionAbortSubject=new O,this.configLoader=v(Cs),this.environmentInjector=v(ue),this.urlSerializer=v(nn),this.rootContexts=v(on),this.location=v(Qt),this.inputBindingEnabled=v(yr,{optional:!0})!==null,this.titleStrategy=v(_l),this.options=v(an,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=v(Es),this.createViewTransition=v(wl,{optional:!0}),this.navigationErrorHandler=v(Nm,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>_(void 0),this.rootComponentType=null;let e=o=>this.events.next(new es(o)),i=o=>this.events.next(new is(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(P(f(f({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,o){return this.transitions=new dt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Hi,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(s=>s.id!==0),I(s=>P(f({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),pt(s=>{let a=!1,c=!1;return _(s).pipe(pt(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",wt.SupersededByNewNavigation),se;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?P(f({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&u!=="reload"){let h="";return this.events.next(new ge(l.id,this.urlSerializer.serialize(l.rawUrl),h,lr.IgnoredSameUrlNavigation)),l.resolve(!1),se}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return _(l).pipe(pt(h=>{let p=this.transitions?.getValue();return this.events.next(new li(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),p!==this.transitions?.getValue()?se:Promise.resolve(h)}),Dm(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),W(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=P(f({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let p=new dr(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(p)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:h,extractedUrl:p,source:y,restoredState:R,extras:F}=l,ct=new li(h,this.urlSerializer.serialize(p),y,R);this.events.next(ct);let ht=ll(this.rootComponentType).snapshot;return this.currentTransition=s=P(f({},l),{targetSnapshot:ht,urlAfterRedirects:p,extras:P(f({},F),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,_(s)}else{let h="";return this.events.next(new ge(l.id,this.urlSerializer.serialize(l.extractedUrl),h,lr.IgnoredByUrlHandlingStrategy)),l.resolve(!1),se}}),W(l=>{let d=new Ko(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),I(l=>(this.currentTransition=s=P(f({},l),{guards:$h(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),tm(this.environmentInjector,l=>this.events.next(l)),W(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw gr(this.urlSerializer,l.guardsResult);let d=new Qo(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),X(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",wt.GuardRejected),!1)),Ho(l=>{if(l.guards.canActivateChecks.length)return _(l).pipe(W(d=>{let u=new Jo(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),pt(d=>{let u=!1;return _(d).pipe(Im(this.paramsInheritanceStrategy,this.environmentInjector),W({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",wt.NoDataFromResolver)}}))}),W(d=>{let u=new ts(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),Ho(l=>{let d=u=>{let h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(W(p=>{u.component=p}),I(()=>{})));for(let p of u.children)h.push(...d(p));return h};return $e(d(l.targetSnapshot.root)).pipe(ro(null),ot(1))}),Ho(()=>this.afterPreactivation()),pt(()=>{let{currentSnapshot:l,targetSnapshot:d}=s,u=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return u?nt(u).pipe(I(()=>s)):_(s)}),I(l=>{let d=Lh(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=P(f({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,s}),W(()=>{this.events.next(new Zi)}),zh(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ot(1),W({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Nt(this.transitionAbortSubject.pipe(W(l=>{throw l}))),Ce(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",wt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ae(l=>{if(c=!0,pl(l))this.events.next(new Jt(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),Uh(l)?this.events.next(new di(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let d=new Xi(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let u=jt(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(u instanceof Qi){let{message:h,cancellationCode:p}=gr(this.urlSerializer,u);this.events.next(new Jt(s.id,this.urlSerializer.serialize(s.extractedUrl),h,p)),this.events.next(new di(u.redirectTo,u.navigationBehaviorOptions))}else{this.events.next(d);let h=e.errorHandler(l);s.resolve(!!h)}}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return se}))}))}cancelNavigationTransition(e,i,o){let s=new Jt(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function jm(n){return n!==Hi}var Lm=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>v(Vm),providedIn:"root"});let n=t;return n})(),vs=class{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}},Vm=(()=>{let t=class t extends vs{};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Lt(t)))(o||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),El=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>v(Bm),providedIn:"root"});let n=t;return n})(),Bm=(()=>{let t=class t extends El{constructor(){super(...arguments),this.location=v(Qt),this.urlSerializer=v(nn),this.options=v(an,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=v(Es),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new te,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ll(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof li)this.stateMemento=this.createStateMemento();else if(e instanceof ge)this.rawUrlTree=i.initialUrl;else if(e instanceof dr){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else e instanceof Zi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof Jt&&(e.code===wt.GuardRejected||e.code===wt.NoDataFromResolver)?this.restoreHistory(i):e instanceof Xi?this.restoreHistory(i,!0):e instanceof ee&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let o=e instanceof te?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=f(f({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=f(f({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Lt(t)))(o||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),$i=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}($i||{});function Dl(n,t){n.events.pipe(X(r=>r instanceof ee||r instanceof Jt||r instanceof Xi||r instanceof ge),I(r=>r instanceof ee||r instanceof ge?$i.COMPLETE:(r instanceof Jt?r.code===wt.Redirect||r.code===wt.SupersededByNewNavigation:!1)?$i.REDIRECTING:$i.FAILED),X(r=>r!==$i.REDIRECTING),ot(1)).subscribe(()=>{t()})}function Um(n){throw n}var zm={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$m={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Oe=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=v(Vn),this.stateManager=v(El),this.options=v(an,{optional:!0})||{},this.pendingTasks=v(ya),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=v(Ds),this.urlSerializer=v(nn),this.location=v(Qt),this.urlHandlingStrategy=v(Es),this._events=new O,this.errorHandler=this.options.errorHandler||Um,this.navigated=!1,this.routeReuseStrategy=v(Lm),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=v(br,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!v(yr,{optional:!0}),this.eventsSubscription=new Gt,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Jt&&i.code!==wt.Redirect&&i.code!==wt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ee)this.navigated=!0;else if(i instanceof di){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),l=f({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||jm(o.source)},a);this.scheduleNavigation(c,Hi,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Hm(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Hi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=f({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(e);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ws),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=i,d=l?this.currentUrlTree.fragment:a,u=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":u=f(f({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let h;try{let p=o?o.snapshot:this.routerState.snapshot.root;h=ol(p)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return sl(h,e,u,d??null)}navigateByUrl(e,i={skipLocationChange:!1}){let o=Yi(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Hi,null,i)}navigate(e,i={skipLocationChange:!1}){return Gm(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let o;if(i===!0?o=f({},zm):i===!1?o=f({},$m):o=i,Yi(e))return Vc(this.currentUrlTree,e,o);let s=this.parseUrl(e);return Vc(this.currentUrlTree,s,o)}removeEmptyProps(e){return Object.entries(e).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(e,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,d;a?(c=a.resolve,l=a.reject,d=a.promise):d=new Promise((h,p)=>{c=h,l=p});let u=this.pendingTasks.add();return Dl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Gm(n){for(let t=0;t{let t=class t{constructor(e,i,o,s,a){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof ee),ce(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=uo(s.providers,e,`Route: ${s.path}`));let a=s._injector??e,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return nt(o).pipe(to())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(e,i):o=_(null);let s=o.pipe(mt(a=>a===null?_(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return nt([s,a]).pipe(to())}else return s})}};t.\u0275fac=function(i){return new(i||t)(m(Oe),m($n),m(ue),m(_r),m(Cs))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Il=new w(""),Ym=(()=>{let t=class t{constructor(e,i,o,s,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof li?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ee?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof ge&&e.code===lr.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ur&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ur(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(i){We()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function qm(n){return n.routerState.root}function cn(n,t){return{\u0275kind:n,\u0275providers:t}}function Xm(){let n=v(Q);return t=>{let r=n.get(Ri);if(t!==r.components[0])return;let e=n.get(Oe),i=n.get(xl);n.get(Is)===1&&e.initialNavigation(),n.get(Al,null,ao.Optional)?.setUpPreloading(),n.get(Il,null,ao.Optional)?.init(),e.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var xl=new w("",{factory:()=>new O}),Is=new w("",{providedIn:"root",factory:()=>1});function Zm(){return cn(2,[{provide:Is,useValue:0},{provide:fo,multi:!0,deps:[Q],useFactory:t=>{let r=t.get(Ha,Promise.resolve());return()=>r.then(()=>new Promise(e=>{let i=t.get(Oe),o=t.get(xl);Dl(i,()=>{e(!0)}),t.get(Ds).afterPreactivation=()=>(e(!0),o.closed?_(void 0):o),i.initialNavigation()}))}}])}function Km(){return cn(3,[{provide:fo,multi:!0,useFactory:()=>{let t=v(Oe);return()=>{t.setUpLocationChangeListener()}}},{provide:Is,useValue:2}])}var Al=new w("");function Qm(n){return cn(0,[{provide:Al,useExisting:Wm},{provide:_r,useExisting:n}])}function Jm(){return cn(8,[$c,{provide:yr,useExisting:$c}])}function tp(n){let t=[{provide:wl,useValue:Fm},{provide:Cl,useValue:f({skipNextTransition:!!n?.skipInitialTransition},n)}];return cn(9,t)}var Yc=new w("ROUTER_FORROOT_GUARD"),ep=[Qt,{provide:nn,useClass:ci},Oe,on,{provide:ve,useFactory:qm,deps:[Oe]},Cs,[]],xs=(()=>{let t=class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[ep,[],{provide:br,multi:!0,useValue:e},{provide:Yc,useFactory:op,deps:[[Oe,new Rn,new co]]},{provide:an,useValue:i||{}},i?.useHash?np():rp(),ip(),i?.preloadingStrategy?Qm(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?sp(i):[],i?.bindToComponentInputs?Jm().\u0275providers:[],i?.enableViewTransitions?tp().\u0275providers:[],ap()]}}static forChild(e){return{ngModule:t,providers:[{provide:br,multi:!0,useValue:e}]}}};t.\u0275fac=function(i){return new(i||t)(m(Yc,8))},t.\u0275mod=S({type:t}),t.\u0275inj=A({});let n=t;return n})();function ip(){return{provide:Il,useFactory:()=>{let n=v(Qa),t=v(M),r=v(an),e=v(Ds),i=v(nn);return r.scrollOffset&&n.setOffset(r.scrollOffset),new Ym(i,e,n,t,r)}}}function np(){return{provide:go,useClass:Ya}}function rp(){return{provide:go,useClass:Wa}}function op(n){return"guarded"}function sp(n){return[n.initialNavigation==="disabled"?Km().\u0275providers:[],n.initialNavigation==="enabledBlocking"?Zm().\u0275providers:[]]}var qc=new w("");function ap(){return[{provide:qc,useFactory:Xm},{provide:La,multi:!0,useExisting:qc}]}var Ss;try{Ss=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ss=!1}var G=(()=>{let t=class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Ka(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Ss)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(i){return new(i||t)(m(De))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ln;function lp(){if(ln==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ln=!0}))}finally{ln=ln||!1}return ln}function mi(n){return lp()?n:!!n.capture}var Ot=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(Ot||{}),Cr,ke;function Er(){if(ke==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ke=!1,ke;if("scrollBehavior"in document.documentElement.style)ke=!0;else{let n=Element.prototype.scrollTo;n?ke=!/\{\s*\[native code\]\s*\}/.test(n.toString()):ke=!1}}return ke}function pi(){if(typeof document!="object"||!document)return Ot.NORMAL;if(Cr==null){let n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let r=document.createElement("div"),e=r.style;e.width="2px",e.height="1px",n.appendChild(r),document.body.appendChild(n),Cr=Ot.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,Cr=n.scrollLeft===0?Ot.NEGATED:Ot.INVERTED),n.remove()}return Cr}var As;function dp(){if(As==null){let n=typeof document<"u"?document.head:null;As=!!(n&&(n.createShadowRoot||n.attachShadow))}return As}function Sl(n){if(dp()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function dn(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function xt(n){return n.composedPath?n.composedPath()[0]:n.target}function un(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Dr(n,...t){return t.length?t.some(r=>n[r]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function hn(n,t=0){return up(n)?Number(n):arguments.length===2?t:0}function up(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function fi(n){return Array.isArray(n)?n:[n]}function Y(n){return n==null?"":typeof n=="string"?n:`${n}px`}function ie(n){return n instanceof N?n.nativeElement:n}var hp=(()=>{let t=class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Rl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({providers:[hp]});let n=t;return n})();var Ml=new Set,Pe,mp=(()=>{let t=class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):fp}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&pp(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(i){return new(i||t)(m(G),m(xi,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function pp(n,t){if(!Ml.has(n))try{Pe||(Pe=document.createElement("style"),t&&Pe.setAttribute("nonce",t),Pe.setAttribute("type","text/css"),document.head.appendChild(Pe)),Pe.sheet&&(Pe.sheet.insertRule(`@media ${n} {body{ }}`,0),Ml.add(n))}catch(r){console.error(r)}}function fp(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Ol=(()=>{let t=class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new O}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Tl(fi(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=Tl(fi(e)).map(a=>this._registerQuery(a).observable),s=$e(o);return s=In(s.pipe(ot(1)),s.pipe(Sn(1),no(0))),s.pipe(I(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:d})=>{c.matches=c.matches||l,c.breakpoints[d]=l}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),s={observable:new ze(a=>{let c=l=>this._zone.run(()=>a.next(l));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(Ht(i),I(({matches:a})=>({query:e,matches:a})),Nt(this._destroySubject)),mql:i};return this._queries.set(e,s),s}};t.\u0275fac=function(i){return new(i||t)(m(mp),m(M))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Tl(n){return n.map(t=>t.split(",")).reduce((t,r)=>t.concat(r)).map(t=>t.trim())}var mn=(()=>{let t=class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return vp(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=gp(Ip(e));if(i&&(kl(i)===-1||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),s=kl(e);return e.hasAttribute("contenteditable")?s!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Ep(e)?!1:o==="audio"?e.hasAttribute("controls")?s!==-1:!1:o==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return Dp(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}};t.\u0275fac=function(i){return new(i||t)(m(G))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function gp(n){try{return n.frameElement}catch{return null}}function vp(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function bp(n){let t=n.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function _p(n){return wp(n)&&n.type=="hidden"}function yp(n){return Cp(n)&&n.hasAttribute("href")}function wp(n){return n.nodeName.toLowerCase()=="input"}function Cp(n){return n.nodeName.toLowerCase()=="a"}function Nl(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let t=n.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function kl(n){if(!Nl(n))return null;let t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function Ep(n){let t=n.nodeName.toLowerCase(),r=t==="input"&&n.type;return r==="text"||r==="password"||t==="select"||t==="textarea"}function Dp(n){return _p(n)?!1:bp(n)||yp(n)||n.hasAttribute("contenteditable")||Nl(n)}function Ip(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var Ms=class{get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}constructor(t,r,e,i,o=!1,s){this._element=t,this._checker=r,this._ngZone=e,this._document=i,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let t=this._startAnchor,r=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),r&&(r.removeEventListener("focus",this.endAnchorListener),r.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(r=>{this._executeOnStable(()=>r(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(r=>{this._executeOnStable(()=>r(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(r=>{this._executeOnStable(()=>r(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let r=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?r.length?r[0]:this._getFirstTabbableElement(this._element):r.length?r[r.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let r=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(r){if(!this._checker.isFocusable(r)){let e=this._getFirstTabbableElement(r);return e?.focus(t),!!e}return r.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let r=this._getRegionBoundary("start");return r&&r.focus(t),!!r}focusLastTabbableElement(t){let r=this._getRegionBoundary("end");return r&&r.focus(t),!!r}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let r=t.children;for(let e=0;e=0;e--){let i=r[e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(r[e]):null;if(i)return i}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,r){t?r.setAttribute("tabindex","0"):r.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._injector?he(t,{injector:this._injector}):setTimeout(t)}},Ar=(()=>{let t=class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._injector=v(Q),this._document=o}create(e,i=!1){return new Ms(e,this._checker,this._ngZone,this._document,i,this._injector)}};t.\u0275fac=function(i){return new(i||t)(m(mn),m(M),m(E))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Ts(n){return n.buttons===0||n.detail===0}function Os(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var xp=new w("cdk-input-modality-detector-options"),Ap={ignoreKeys:[18,17,224,91,16]},jl=650,gi=mi({passive:!0,capture:!0}),Sp=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(e,i,o,s){this._platform=e,this._mostRecentTarget=null,this._modality=new dt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=xt(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(Os(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=xt(a)},this._options=f(f({},Ap),s),this.modalityDetected=this._modality.pipe(Sn(1)),this.modalityChanged=this.modalityDetected.pipe(oo()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,gi),o.addEventListener("mousedown",this._onMousedown,gi),o.addEventListener("touchstart",this._onTouchstart,gi)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,gi),document.removeEventListener("mousedown",this._onMousedown,gi),document.removeEventListener("touchstart",this._onTouchstart,gi))}};t.\u0275fac=function(i){return new(i||t)(m(G),m(M),m(E),m(xp,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var xr=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(xr||{}),Rp=new w("cdk-focus-monitor-default-options"),Ir=mi({passive:!0,capture:!0}),vi=(()=>{let t=class t{constructor(e,i,o,s,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new O,this._rootNodeFocusAndBlurListener=c=>{let l=xt(c);for(let d=l;d;d=d.parentElement)c.type==="focus"?this._onFocus(c,d):this._onBlur(c,d)},this._document=s,this._detectionMode=a?.detectionMode||xr.IMMEDIATE}monitor(e,i=!1){let o=ie(e);if(!this._platform.isBrowser||o.nodeType!==1)return _();let s=Sl(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return i&&(a.checkChildren=!0),a.subject;let c={checkChildren:i,subject:new O,rootNode:s};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){let i=ie(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){let s=ie(e),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([c,l])=>this._originChanged(c,i,l)):(this._setOrigin(i),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===xr.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===xr.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?jl:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,i){let o=this._elementInfo.get(i),s=xt(e);!o||!o.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),o)}_onBlur(e,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ir),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ir)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Nt(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ir),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ir),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((o,s)=>{(s===e||o.checkChildren&&s.contains(e))&&i.push([s,o])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let s=e.labels;if(s){for(let a=0;a{let t=class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=v(Ol).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ne.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ne.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ne.BLACK_ON_WHITE}return Ne.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Rs,Fl,Pl),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Ne.BLACK_ON_WHITE?e.add(Rs,Fl):i===Ne.WHITE_ON_BLACK&&e.add(Rs,Pl)}}};t.\u0275fac=function(i){return new(i||t)(m(G),m(E))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ll=(()=>{let t=class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}};t.\u0275fac=function(i){return new(i||t)(m(ks))},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[Rl]});let n=t;return n})();var Mp=new w("cdk-dir-doc",{providedIn:"root",factory:Tp});function Tp(){return v(E)}var Op=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function kp(n){let t=n?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?Op.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var je=(()=>{let t=class t{constructor(e){if(this.value="ltr",this.change=new J,e){let i=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.value=kp(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}};t.\u0275fac=function(i){return new(i||t)(m(Mp,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var _e=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({});let n=t;return n})();function Fp(){return!0}var Pp=new w("mat-sanity-checks",{providedIn:"root",factory:Fp}),it=(()=>{let t=class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return un()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}};t.\u0275fac=function(i){return new(i||t)(m(ks),m(Pp,8),m(E))},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[_e,_e]});let n=t;return n})();var At=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(At||{}),js=class{constructor(t,r,e,i=!1){this._renderer=t,this.element=r,this.config=e,this._animationForciblyDisabledThroughCss=i,this.state=At.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},Bl=mi({passive:!0,capture:!0}),Ls=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let r=xt(t);r&&this._events.get(t.type)?.forEach((e,i)=>{(i===r||i.contains(r))&&e.forEach(o=>o.handleEvent(t))})}}addHandler(t,r,e,i){let o=this._events.get(r);if(o){let s=o.get(e);s?s.add(i):o.set(e,new Set([i]))}else this._events.set(r,new Map([[e,new Set([i])]])),t.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,Bl)})}removeHandler(t,r,e){let i=this._events.get(t);if(!i)return;let o=i.get(r);o&&(o.delete(e),o.size===0&&i.delete(r),i.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,Bl)))}},Ul={enterDuration:225,exitDuration:150},Np=800,zl=mi({passive:!0,capture:!0}),$l=["mousedown","touchstart"],Gl=["mouseup","mouseleave","touchend","touchcancel"],pn=class pn{constructor(t,r,e,i){this._target=t,this._ngZone=r,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=ie(e))}fadeInRipple(t,r,e={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=f(f({},Ul),e.animation);e.centered&&(t=i.left+i.width/2,r=i.top+i.height/2);let s=e.radius||jp(t,r,i),a=t-i.left,c=r-i.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-s}px`,d.style.top=`${c-s}px`,d.style.height=`${s*2}px`,d.style.width=`${s*2}px`,e.color!=null&&(d.style.backgroundColor=e.color),d.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),h=u.transitionProperty,p=u.transitionDuration,y=h==="none"||p==="0s"||p==="0s, 0s"||i.width===0&&i.height===0,R=new js(this,d,e,y);d.style.transform="scale3d(1, 1, 1)",R.state=At.FADING_IN,e.persistent||(this._mostRecentTransientRipple=R);let F=null;return!y&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let ct=()=>{F&&(F.fallbackTimer=null),clearTimeout(T),this._finishRippleTransition(R)},ht=()=>this._destroyRipple(R),T=setTimeout(ht,l+100);d.addEventListener("transitionend",ct),d.addEventListener("transitioncancel",ht),F={onTransitionEnd:ct,onTransitionCancel:ht,fallbackTimer:T}}),this._activeRipples.set(R,F),(y||!l)&&this._finishRippleTransition(R),R}fadeOutRipple(t){if(t.state===At.FADING_OUT||t.state===At.HIDDEN)return;let r=t.element,e=f(f({},Ul),t.config.animation);r.style.transitionDuration=`${e.exitDuration}ms`,r.style.opacity="0",t.state=At.FADING_OUT,(t._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let r=ie(t);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,$l.forEach(e=>{pn._eventManager.addHandler(this._ngZone,e,r,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Gl.forEach(r=>{this._triggerElement.addEventListener(r,this,zl)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===At.FADING_IN?this._startFadeOutTransition(t):t.state===At.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let r=t===this._mostRecentTransientRipple,{persistent:e}=t.config;t.state=At.VISIBLE,!e&&(!r||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let r=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=At.HIDDEN,r!==null&&(t.element.removeEventListener("transitionend",r.onTransitionEnd),t.element.removeEventListener("transitioncancel",r.onTransitionCancel),r.fallbackTimer!==null&&clearTimeout(r.fallbackTimer)),t.element.remove()}_onMousedown(t){let r=Ts(t),e=this._lastTouchStartEvent&&Date.now(){let r=t.state===At.VISIBLE||t.config.terminateOnPointerUp&&t.state===At.FADING_IN;!t.config.persistent&&r&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&($l.forEach(r=>pn._eventManager.removeHandler(r,t,this)),this._pointerUpEventsRegistered&&(Gl.forEach(r=>t.removeEventListener(r,this,zl)),this._pointerUpEventsRegistered=!1))}};pn._eventManager=new Ls;var Vs=pn;function jp(n,t,r){let e=Math.max(Math.abs(n-r.left),Math.abs(n-r.right)),i=Math.max(Math.abs(t-r.top),Math.abs(t-r.bottom));return Math.sqrt(e*e+i*i)}var ql=new w("mat-ripple-global-options"),Lp=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,o,s,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new Vs(this,i,e,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:f(f(f({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,f(f({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,f(f({},this.rippleConfig),e))}};t.\u0275fac=function(i){return new(i||t)(g(N),g(M),g(G),g(ql,8),g(Dt,8))},t.\u0275dir=k({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&rt("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=t;return n})(),Xl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[it,it]});let n=t;return n})();var Hl={capture:!0},Wl=["focus","mousedown","mouseenter","touchstart"],Ps="mat-ripple-loader-uninitialized",Ns="mat-ripple-loader-class-name",Yl="mat-ripple-loader-centered",Sr="mat-ripple-loader-disabled",Zl=(()=>{let t=class t{constructor(){this._document=v(E,{optional:!0}),this._animationMode=v(Dt,{optional:!0}),this._globalRippleOptions=v(ql,{optional:!0}),this._platform=v(G),this._ngZone=v(M),this._hosts=new Map,this._onInteraction=e=>{let i=xt(e);if(i instanceof HTMLElement){let o=i.closest(`[${Ps}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let e of Wl)this._document?.addEventListener(e,this._onInteraction,Hl)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of Wl)this._document?.removeEventListener(i,this._onInteraction,Hl)}configureRipple(e,i){e.setAttribute(Ps,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Ns))&&e.setAttribute(Ns,i.className||""),i.centered&&e.setAttribute(Yl,""),i.disabled&&e.setAttribute(Sr,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let o=this._hosts.get(e);if(o){o.disabled=i;return}i?e.setAttribute(Sr,""):e.removeAttribute(Sr)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(Ns)),e.append(o);let s=new Lp(new N(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=e,s.centered=e.hasAttribute(Yl),s.disabled=e.hasAttribute(Sr),this.attachRipple(e,s),s}attachRipple(e,i){e.removeAttribute(Ps),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Vp=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var Bp=["mat-icon-button",""],Up=["*"];var zp=new w("MAT_BUTTON_CONFIG");var $p=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Gp=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,o,s){this._elementRef=e,this._platform=i,this._ngZone=o,this._animationMode=s,this._focusMonitor=v(vi),this._rippleLoader=v(Zl),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=v(zp,{optional:!0}),c=e.nativeElement,l=c.classList;this.disabledInteractive=a?.disabledInteractive??!1,this.color=a?.color??null,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:d,mdcClasses:u}of $p)c.hasAttribute(d)&&l.add(...u)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};t.\u0275fac=function(i){We()},t.\u0275dir=k({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",_t],disabled:[2,"disabled","disabled",_t],ariaDisabled:[2,"aria-disabled","ariaDisabled",_t],disabledInteractive:[2,"disabledInteractive","disabledInteractive",_t]},features:[Vt]});let n=t;return n})();var Rr=(()=>{let t=class t extends Gp{constructor(e,i,o,s){super(e,i,o,s),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(i){return new(i||t)(g(N),g(G),g(M),g(Dt,8))},t.\u0275cmp=U({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(gt("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),qe(o.color?"mat-"+o.color:""),rt("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[et,z],attrs:Bp,ngContentSelectors:Up,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(Mt(),bt(0,"span",0),ut(1),bt(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',Vp],encapsulation:2,changeDetection:0});let n=t;return n})();var Mr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[it,Xl,it]});let n=t;return n})();var Hp=["*"];var Wp=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Yp=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, + [mat-card-title], [mat-card-subtitle], + [matCardTitle], [matCardSubtitle]`,"*"],qp=new w("MAT_CARD_CONFIG"),Tr=(()=>{let t=class t{constructor(e){this.appearance=e?.appearance||"raised"}};t.\u0275fac=function(i){return new(i||t)(g(qp,8))},t.\u0275cmp=U({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,o){i&2&&rt("mat-mdc-card-outlined",o.appearance==="outlined")("mdc-card--outlined",o.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[z],ngContentSelectors:Hp,decls:1,vars:0,template:function(i,o){i&1&&(Mt(),ut(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-app-surface));border-color:var(--mdc-elevated-card-container-color, var(--mat-app-surface));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-app-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-app-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-app-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-app-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-app-corner-medium));border-width:var(--mdc-outlined-card-outline-width);border-color:var(--mdc-outlined-card-outline-color, var(--mat-app-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-app-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-app-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-app-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-app-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-app-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-app-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-app-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-app-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-app-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-app-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-app-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-app-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0});let n=t;return n})(),Or=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=k({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"],standalone:!0});let n=t;return n})();var kr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=k({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"],standalone:!0});let n=t;return n})();var Fr=(()=>{let t=class t{constructor(){this.align="start"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=k({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,o){i&2&&rt("mat-mdc-card-actions-align-end",o.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"],standalone:!0});let n=t;return n})(),Pr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=U({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],standalone:!0,features:[z],ngContentSelectors:Yp,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,o){i&1&&(Mt(Wp),ut(0),C(1,"div",0),ut(2,1),D(),ut(3,2))},encapsulation:2,changeDetection:0});let n=t;return n})();var Nr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[it,Wn,it]});let n=t;return n})();var Xp=20,Bs=(()=>{let t=class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new O,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=Xp){return this._platform.isBrowser?new ze(i=>{this._globalSubscription||this._addGlobalListener();let o=e>0?this._scrolled.pipe(io(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):_()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(X(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=ie(i),s=e.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return eo(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(m(M),m(G),m(E,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),td=(()=>{let t=class t{constructor(e,i,o,s){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=s,this._destroyed=new O,this._elementScrolled=new ze(a=>this.ngZone.runOutsideAngular(()=>eo(this.elementRef.nativeElement,"scroll").pipe(Nt(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&pi()!=Ot.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),pi()==Ot.INVERTED?e.left=e.right:pi()==Ot.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;Er()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",o="right",s=this.elementRef.nativeElement;if(e=="top")return s.scrollTop;if(e=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:i:e=="end"&&(e=a?i:o),a&&pi()==Ot.INVERTED?e==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&pi()==Ot.NEGATED?e==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};t.\u0275fac=function(i){return new(i||t)(g(N),g(Bs),g(M),g(je,8))},t.\u0275dir=k({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let n=t;return n})(),Zp=20,Us=(()=>{let t=class t{constructor(e,i,o){this._platform=e,this._change=new O,this._changeListener=s=>{this._change.next(s)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),o=e.documentElement,s=o.getBoundingClientRect(),a=-s.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,c=-s.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0;return{top:a,left:c}}change(e=Zp){return e>0?this._change.pipe(io(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}};t.\u0275fac=function(i){return new(i||t)(m(G),m(M),m(E,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Jl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({});let n=t;return n})(),zs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[_e,Jl,_e,Jl]});let n=t;return n})();var fn=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},bi=class extends fn{constructor(t,r,e,i,o){super(),this.component=t,this.viewContainerRef=r,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=o}},_i=class extends fn{constructor(t,r,e,i){super(),this.templateRef=t,this.viewContainerRef=r,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,r=this.context){return this.context=r,super.attach(t)}detach(){return this.context=void 0,super.detach()}},$s=class extends fn{constructor(t){super(),this.element=t instanceof N?t.nativeElement:t}},yi=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof bi)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof _i)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof $s)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var jr=class extends yi{constructor(t,r,e,i,o){super(),this.outletElement=t,this._componentFactoryResolver=r,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||Q.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let r=t.viewContainerRef,e=r.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=r.indexOf(e);i!==-1&&r.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var gn=(()=>{let t=class t extends yi{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new J,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let c=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(s,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(g(Tn),g(Ye),g(E))},t.\u0275dir=k({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[et]});let n=t;return n})();var Le=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({});let n=t;return n})();var id=Er(),Gs=class{constructor(t,r){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Y(-this._previousScrollPosition.left),t.style.top=Y(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,r=this._document.body,e=t.style,i=r.style,o=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),id&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),id&&(e.scrollBehavior=o,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,e=this._viewportRuler.getViewportSize();return r.scrollHeight>e.height||r.scrollWidth>e.width}};var Hs=class{constructor(t,r,e,i){this._scrollDispatcher=t,this._ngZone=r,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(X(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Lr=class{enable(){}disable(){}attach(){}};function Ws(n,t){return t.some(r=>{let e=n.bottomr.bottom,o=n.rightr.right;return e||i||o||s})}function nd(n,t){return t.some(r=>{let e=n.topr.bottom,o=n.leftr.right;return e||i||o||s})}var Ys=class{constructor(t,r,e,i){this._scrollDispatcher=t,this._viewportRuler=r,this._ngZone=e,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Ws(r,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Qp=(()=>{let t=class t{constructor(e,i,o,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new Lr,this.close=a=>new Hs(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Gs(this._viewportRuler,this._document),this.reposition=a=>new Ys(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};t.\u0275fac=function(i){return new(i||t)(m(Bs),m(Us),m(M),m(E))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),vn=class{constructor(t){if(this.scrollStrategy=new Lr,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let r=Object.keys(t);for(let e of r)t[e]!==void 0&&(this[e]=t[e])}}};var qs=class{constructor(t,r){this.connectionPair=t,this.scrollableViewProperties=r}};var ld=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(m(E))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Jp=(()=>{let t=class t extends ld{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let c=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};t.\u0275fac=function(i){return new(i||t)(m(E),m(M,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),tf=(()=>{let t=class t extends ld{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=xt(s)},this._clickListener=s=>{let a=xt(s),c=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){let u=l[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(rd(u.overlayElement,a)||rd(u.overlayElement,c))break;let h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(s)):h.next(s)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}};t.\u0275fac=function(i){return new(i||t)(m(E),m(G),m(M,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function rd(n,t){let r=typeof ShadowRoot<"u"&&ShadowRoot,e=t;for(;e;){if(e===n)return!0;e=r&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var wi=(()=>{let t=class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||un()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;sthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new O,this._outsidePointerEvents=new O,this._renders=new O,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=Kt(()=>Oa(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),he(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=f(f({},this._config),t),this._updateElementSize()}setDirection(t){this._config=P(f({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=Y(this._config.width),t.height=Y(this._config.height),t.minWidth=Y(this._config.minWidth),t.minHeight=Y(this._config.minHeight),t.maxWidth=Y(this._config.maxWidth),t.maxHeight=Y(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,r,e){let i=fi(r||[]).filter(o=>!!o);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(Nt(An(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},od="cdk-overlay-connected-position-bounding-box",ef=/([A-Za-z%]+)$/,Xs=class{get positions(){return this._preferredPositions}constructor(t,r,e,i,o){this._viewportRuler=r,this._document=e,this._platform=i,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new O,this._resizeSubscription=Gt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(od),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,r=this._overlayRect,e=this._viewportRect,i=this._containerRect,o=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(t,i,a),l=this._getOverlayPoint(c,r,a),d=this._getOverlayFit(l,r,e,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(d,l,e)){o.push({position:a,origin:c,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(c=d,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ve(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(od),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,r)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,r,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?s:a}r.left<0&&(i-=r.left);let o;return e.originY=="center"?o=t.top+t.height/2:o=e.originY=="top"?t.top:t.bottom,r.top<0&&(o-=r.top),{x:i,y:o}}_getOverlayPoint(t,r,e){let i;e.overlayX=="center"?i=-r.width/2:e.overlayX==="start"?i=this._isRtl()?-r.width:0:i=this._isRtl()?0:-r.width;let o;return e.overlayY=="center"?o=-r.height/2:o=e.overlayY=="top"?0:-r.height,{x:t.x+i,y:t.y+o}}_getOverlayFit(t,r,e,i){let o=ad(r),{x:s,y:a}=t,c=this._getOffset(i,"x"),l=this._getOffset(i,"y");c&&(s+=c),l&&(a+=l);let d=0-s,u=s+o.width-e.width,h=0-a,p=a+o.height-e.height,y=this._subtractOverflows(o.width,d,u),R=this._subtractOverflows(o.height,h,p),F=y*R;return{visibleArea:F,isCompletelyWithinViewport:o.width*o.height===F,fitsInViewportVertically:R===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(t,r,e){if(this._hasFlexibleDimensions){let i=e.bottom-r.y,o=e.right-r.x,s=sd(this._overlayRef.getConfig().minHeight),a=sd(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportVertically||s!=null&&s<=i,l=t.fitsInViewportHorizontally||a!=null&&a<=o;return c&&l}return!1}_pushOverlayOnScreen(t,r,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=ad(r),o=this._viewportRect,s=Math.max(t.x+i.width-o.width,0),a=Math.max(t.y+i.height-o.height,0),c=Math.max(o.top-e.top-t.y,0),l=Math.max(o.left-e.left-t.x,0),d=0,u=0;return i.width<=o.width?d=l||-s:d=t.xy&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-y/2)}let c=r.overlayX==="start"&&!i||r.overlayX==="end"&&i,l=r.overlayX==="end"&&!i||r.overlayX==="start"&&i,d,u,h;if(l)h=e.width-t.x+this._viewportMargin*2,d=t.x-this._viewportMargin;else if(c)u=t.x,d=e.right-t.x;else{let p=Math.min(e.right-t.x+e.left,t.x),y=this._lastBoundingBoxSize.width;d=p*2,u=t.x-p,d>y&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-y/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(t,r){let e=this._calculateBoundingBoxRect(t,r);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Y(e.height),i.top=Y(e.top),i.bottom=Y(e.bottom),i.width=Y(e.width),i.left=Y(e.left),i.right=Y(e.right),r.overlayX==="center"?i.alignItems="center":i.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?i.justifyContent="center":i.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(i.maxHeight=Y(o)),s&&(i.maxWidth=Y(s))}this._lastBoundingBoxSize=e,Ve(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Ve(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ve(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,r){let e={},i=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){let d=this._viewportRuler.getViewportScrollPosition();Ve(e,this._getExactOverlayY(r,t,d)),Ve(e,this._getExactOverlayX(r,t,d))}else e.position="static";let a="",c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),e.transform=a.trim(),s.maxHeight&&(i?e.maxHeight=Y(s.maxHeight):o&&(e.maxHeight="")),s.maxWidth&&(i?e.maxWidth=Y(s.maxWidth):o&&(e.maxWidth="")),Ve(this._pane.style,e)}_getExactOverlayY(t,r,e){let i={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,t);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,e)),t.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;i.bottom=`${s-(o.y+this._overlayRect.height)}px`}else i.top=Y(o.y);return i}_getExactOverlayX(t,r,e){let i={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,e));let s;if(this._isRtl()?s=t.overlayX==="end"?"left":"right":s=t.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(o.x+this._overlayRect.width)}px`}else i.left=Y(o.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),r=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:nd(t,e),isOriginOutsideView:Ws(t,e),isOverlayClipped:nd(r,e),isOverlayOutsideView:Ws(r,e)}}_subtractOverflows(t,...r){return r.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+r-this._viewportMargin,width:t-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,r){return r==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&fi(t).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof N)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let r=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+r,height:e,width:r}}};function Ve(n,t){for(let r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}function sd(n){if(typeof n!="number"&&n!=null){let[t,r]=n.split(ef);return!r||r==="px"?parseFloat(t):null}return n||null}function ad(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function nf(n,t){return n===t?!0:n.isOriginClipped===t.isOriginClipped&&n.isOriginOutsideView===t.isOriginOutsideView&&n.isOverlayClipped===t.isOverlayClipped&&n.isOverlayOutsideView===t.isOverlayOutsideView}var cd="cdk-global-overlay-wrapper",Zs=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let r=t.getConfig();this._overlayRef=t,this._width&&!r.width&&t.updateSize({width:this._width}),this._height&&!r.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(cd),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:o,maxWidth:s,maxHeight:a}=e,c=(i==="100%"||i==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",p="",y="",R="";c?R="flex-start":d==="center"?(R="center",h?y=u:p=u):h?d==="left"||d==="end"?(R="flex-end",p=u):(d==="right"||d==="start")&&(R="flex-start",y=u):d==="left"||d==="start"?(R="flex-start",p=u):(d==="right"||d==="end")&&(R="flex-end",y=u),t.position=this._cssPosition,t.marginLeft=c?"0":p,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=c?"0":y,r.justifyContent=R,r.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,e=r.style;r.classList.remove(cd),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},rf=(()=>{let t=class t{constructor(e,i,o,s){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=s}global(){return new Zs}flexibleConnectedTo(e){return new Xs(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(m(Us),m(E),m(G),m(wi))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),of=0,kt=(()=>{let t=class t{constructor(e,i,o,s,a,c,l,d,u,h,p,y){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=c,this._ngZone=l,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=p,this._animationsModuleType=y}create(e){let i=this._createHostElement(),o=this._createPaneElement(i),s=this._createPortalOutlet(o),a=new vn(e);return a.direction=a.direction||this._directionality.value,new ne(s,i,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(ue))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${of++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ri)),new jr(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(m(Qp),m(wi),m(Tn),m(rf),m(Jp),m(Q),m(M),m(E),m(je),m(Qt),m(tf),m(Dt,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var sf=new w("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=v(kt);return()=>n.scrollStrategies.reposition()}});function af(n){return()=>n.scrollStrategies.reposition()}var cf={provide:sf,deps:[kt],useFactory:af},Vr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({providers:[kt,cf],imports:[_e,Le,zs,zs]});let n=t;return n})();function lf(n,t){}var Be=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var Js=(()=>{let t=class t extends yi{constructor(e,i,o,s,a,c,l,d){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=s,this._interactivityChecker=a,this._ngZone=c,this._overlayRef=l,this._focusMonitor=d,this._platform=v(G),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=v(Zt),this._injector=v(Q),this._isDestroyed=!1,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();let h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_trapFocus(){this._isDestroyed||he(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let o=dn(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=dn();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=dn()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};t.\u0275fac=function(i){return new(i||t)(g(N),g(Ar),g(E,8),g(Be),g(mn),g(M),g(ne),g(vi))},t.\u0275cmp=U({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,o){if(i&1&&Ln(gn,7),i&2){let s;Ie(s=xe())&&(o._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,o){i&2&>("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[et,z],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,o){i&1&&st(0,lf,0,0,"ng-template",0)},dependencies:[gn],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let n=t;return n})(),bn=class{constructor(t,r){this.overlayRef=t,this.config=r,this.closed=new O,this.disableClose=r.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=r.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!Dr(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=t.detachments().subscribe(()=>{r.closeOnOverlayDetachments!==!1&&this.close()})}close(t,r){if(this.containerInstance){let e=this.closed;this.containerInstance._closeInteractionType=r?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(t),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",r=""){return this.overlayRef.updateSize({width:t,height:r}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}},df=new w("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=v(kt);return()=>n.scrollStrategies.block()}}),uf=new w("DialogData"),hf=new w("DefaultDialogConfig");var mf=0,ta=(()=>{let t=class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,o,s,a,c){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=s,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new O,this._afterOpenedAtThisLevel=new O,this._ariaHiddenElements=new Map,this.afterAllClosed=we(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ht(void 0))),this._scrollStrategy=c}open(e,i){let o=this._defaultOptions||new Be;i=f(f({},o),i),i.id=i.id||`cdk-dialog-${mf++}`,i.id&&this.getDialogById(i.id);let s=this._getOverlayConfig(i),a=this._overlay.create(s),c=new bn(a,i),l=this._attachContainer(a,c,i);return c.containerInstance=l,this._attachDialogContent(e,c,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){Ks(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){Ks(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),Ks(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new vn({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,o){let s=o.injector||o.viewContainerRef?.injector,a=[{provide:Be,useValue:o},{provide:bn,useValue:i},{provide:ne,useValue:e}],c;o.container?typeof o.container=="function"?c=o.container:(c=o.container.type,a.push(...o.container.providers(o))):c=Js;let l=new bi(c,o.viewContainerRef,Q.create({parent:s||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,o,s){if(e instanceof Si){let a=this._createInjector(s,i,o,void 0),c={$implicit:s.data,dialogRef:i};s.templateContext&&(c=f(f({},c),typeof s.templateContext=="function"?s.templateContext():s.templateContext)),o.attachTemplatePortal(new _i(e,null,c,a))}else{let a=this._createInjector(s,i,o,this._injector),c=o.attachComponentPortal(new bi(e,s.viewContainerRef,a,s.componentFactoryResolver));i.componentRef=c,i.componentInstance=c.instance}}_createInjector(e,i,o,s){let a=e.injector||e.viewContainerRef?.injector,c=[{provide:uf,useValue:e.data},{provide:bn,useValue:i}];return e.providers&&(typeof e.providers=="function"?c.push(...e.providers(i,e,o)):c.push(...e.providers)),e.direction&&(!a||!a.get(je,null,{optional:!0}))&&c.push({provide:je,useValue:{value:e.direction,change:_()}}),Q.create({parent:a||s,providers:c})}_removeOpenDialog(e,i){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,a)=>{s?a.setAttribute("aria-hidden",s):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){let s=i[o];s!==e&&s.nodeName!=="SCRIPT"&&s.nodeName!=="STYLE"&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}};t.\u0275fac=function(i){return new(i||t)(m(kt),m(Q),m(hf,8),m(t,12),m(wi),m(df))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Ks(n,t){let r=n.length;for(;r--;)t(n[r])}var ud=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({providers:[ta],imports:[Vr,Le,Ll,Le]});let n=t;return n})();function pf(n,t){}var _n=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},ea="mdc-dialog--open",hd="mdc-dialog--opening",md="mdc-dialog--closing",ff=150,gf=75,vf=(()=>{let t=class t extends Js{constructor(e,i,o,s,a,c,l,d,u){super(e,i,o,s,a,c,l,u),this._animationMode=d,this._animationStateChanged=new J,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?fd(this._config.enterAnimationDuration)??ff:0,this._exitAnimationDuration=this._animationsEnabled?fd(this._config.exitAnimationDuration)??gf:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(pd,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(hd,ea)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ea),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ea),this._animationsEnabled?(this._hostElement.style.setProperty(pd,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(md)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(hd,md)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}};t.\u0275fac=function(i){return new(i||t)(g(N),g(Ar),g(E,8),g(_n),g(mn),g(M),g(ne),g(Dt,8),g(vi))},t.\u0275cmp=U({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,o){i&2&&(jn("id",o._config.id),gt("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),rt("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[et,z],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,o){i&1&&(C(0,"div",0)(1,"div",1),st(2,pf,0,0,"ng-template",2),D()())},dependencies:[gn],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let n=t;return n})(),pd="--mat-dialog-transition-duration";function fd(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?hn(n.substring(0,n.length-2)):n.endsWith("s")?hn(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var Br=function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n}(Br||{}),Ur=class{constructor(t,r,e){this._ref=t,this._containerInstance=e,this._afterOpened=new O,this._beforeClosed=new O,this._state=Br.OPEN,this.disableClose=r.disableClose,this.id=t.id,t.addPanelClass("mat-mdc-dialog-panel"),e._animationStateChanged.pipe(X(i=>i.state==="opened"),ot(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(X(i=>i.state==="closed"),ot(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),An(this.backdropClick(),this.keydownEvents().pipe(X(i=>i.keyCode===27&&!this.disableClose&&!Dr(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),bf(this,i.type==="keydown"?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(X(r=>r.state==="closing"),ot(1)).subscribe(r=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),r.totalTime+100)}),this._state=Br.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let r=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?r.left(t.left):r.right(t.right):r.centerHorizontally(),t&&(t.top||t.bottom)?t.top?r.top(t.top):r.bottom(t.bottom):r.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",r=""){return this._ref.updateSize(t,r),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=Br.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function bf(n,t,r){return n._closeInteractionType=t,n.close(r)}var ia=new w("MatMdcDialogData"),_f=new w("mat-mdc-dialog-default-options"),yf=new w("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=v(kt);return()=>n.scrollStrategies.block()}});var wf=0,zr=(()=>{let t=class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,o,s,a,c,l,d){this._overlay=e,this._defaultOptions=s,this._scrollStrategy=a,this._parentDialog=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new O,this._afterOpenedAtThisLevel=new O,this.dialogConfigClass=_n,this.afterAllClosed=we(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ht(void 0))),this._dialog=i.get(ta),this._dialogRefConstructor=Ur,this._dialogContainerType=vf,this._dialogDataToken=ia}open(e,i){let o;i=f(f({},this._defaultOptions||new _n),i),i.id=i.id||`mat-mdc-dialog-${wf++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let s=this._dialog.open(e,P(f({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:Be,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(a,c,l)=>(o=new this._dialogRefConstructor(a,i,l),o.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=s.componentRef,o.componentInstance=s.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}};t.\u0275fac=function(i){return new(i||t)(m(kt),m(Q),m(Qt,8),m(_f,8),m(yf),m(t,12),m(wi),m(Dt,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Cf=0;var Ef=(()=>{let t=class t{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o}ngOnInit(){this._dialogRef||(this._dialogRef=Df(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};t.\u0275fac=function(i){return new(i||t)(g(Ur,8),g(N),g(zr))},t.\u0275dir=k({type:t,standalone:!0});let n=t;return n})(),gd=(()=>{let t=class t extends Ef{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${Cf++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Lt(t)))(o||t)}})(),t.\u0275dir=k({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,o){i&2&&jn("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[et]});let n=t;return n})(),vd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=k({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[ka([td])]});let n=t;return n})();function Df(n,t){let r=n.nativeElement.parentElement;for(;r&&!r.classList.contains("mat-mdc-dialog-container");)r=r.parentElement;return r?t.find(e=>e.id===r.id):null}var bd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({providers:[zr],imports:[ud,Vr,Le,it,it]});let n=t;return n})();var xf=["*"],$r;function Af(){if($r===void 0&&($r=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&($r=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return $r}function yn(n){return Af()?.createHTML(n)||n}function _d(n){return Error(`Unable to find icon with the name "${n}"`)}function Sf(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function yd(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function wd(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var re=class{constructor(t,r,e){this.url=t,this.svgText=r,this.options=e}},Rf=(()=>{let t=class t{constructor(e,i,o,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,s){return this._addSvgIconConfig(e,i,new re(o,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,s){let a=this._sanitizer.sanitize(ft.HTML,o);if(!a)throw wd(o);let c=yn(a);return this._addSvgIconConfig(e,i,new re("",c,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new re(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){let s=this._sanitizer.sanitize(ft.HTML,i);if(!s)throw wd(i);let a=yn(s);return this._addSvgIconSetConfig(e,new re("",a,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(ft.RESOURCE_URL,e);if(!i)throw yd(e);let o=this._cachedIconsByUrl.get(i);return o?_(Gr(o)):this._loadSvgIconFromConfig(new re(e,null)).pipe(W(s=>this._cachedIconsByUrl.set(i,s)),I(s=>Gr(s)))}getNamedSvgIcon(e,i=""){let o=Cd(i,e),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):ye(_d(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?_(Gr(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(I(i=>Gr(i)))}_getSvgFromIconSetConfigs(e,i){let o=this._extractIconWithNameFromAnySet(e,i);if(o)return _(o);let s=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ae(c=>{let d=`Loading icon set URL: ${this._sanitizer.sanitize(ft.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(d)),_(null)})));return xn(s).pipe(I(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw _d(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){let s=i[o];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(s),c=this._extractSvgIconFromSet(a,e,s.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(W(i=>e.svgText=i),I(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?_(null):this._fetchIcon(e).pipe(W(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){let s=e.querySelector(`[id="${i}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let c=this._svgElementFromString(yn(""));return c.appendChild(a),this._setSvgAttributes(c,o)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let o=i.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let i=this._svgElementFromString(yn("")),o=e.attributes;for(let s=0;syn(d)),Ce(()=>this._inProgressUrlFetches.delete(a)),ga());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(Cd(e,i),o),this}_addSvgIconSetConfig(e,i){let o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;ot?t.pathname+t.search:""}}var Ed=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ff=Ed.map(n=>`[${n}]`).join(", "),Pf=/^url\(['"]?#(.*?)['"]?\)$/,Hr=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,o,s,a,c){this._elementRef=e,this._iconRegistry=i,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Gt.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let o=e.childNodes[i];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),i.forEach(o=>e.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(Ff),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{let c=i[s],l=c.getAttribute(a),d=l?l.match(Pf):null;if(d){let u=o.get(c);u||(u=[],o.set(c,u)),u.push({name:a,value:d[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(ot(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${i}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};t.\u0275fac=function(i){return new(i||t)(g(N),g(Rf),lo("aria-hidden"),g(Of),g(Ee),g(Tf,8))},t.\u0275cmp=U({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,o){i&2&&(gt("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),qe(o.color?"mat-"+o.color:""),rt("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",_t],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Vt,z],ngContentSelectors:xf,decls:1,vars:0,template:function(i,o){i&1&&(Mt(),ut(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let n=t;return n})(),Wr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[it,it]});let n=t;return n})();var Yr=(()=>{let t=class t{constructor(){}save(e,i){localStorage.setItem(e,JSON.stringify(i))}get(e){let i=localStorage.getItem(e);if(i)return JSON.parse(i)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();var zt=(()=>{let t=class t{constructor(e){this.lss=e,this.choicesSaveString="choices",this.lastChoiceIdSaveString="lastChoiceId",this.lastChoiceGroupIdSaveString="lastChoiceGroup",this.lastChoiceId=0,this.lastChoiceGroupId=0,this.groups=[],this.groups=e.get(this.choicesSaveString)||[],this.lastChoiceId=e.get(this.lastChoiceIdSaveString)||0,this.lastChoiceGroupId=e.get(this.lastChoiceGroupIdSaveString)||0}save(){this.lss.save(this.choicesSaveString,this.groups),this.lss.save(this.lastChoiceIdSaveString,this.lastChoiceId),this.lss.save(this.lastChoiceGroupIdSaveString,this.lastChoiceGroupId)}addChoiceGroup(e){return e.id||(e.id=++this.lastChoiceGroupId),this.groups.push(e),this.save(),this}deleteChoiceGroupById(e){return this.groups=this.groups.filter(i=>i.id!==e),this.save(),this}getAllChoiceGroups(){return this.groups}getChoiceGroupById(e){return this.groups.filter(i=>i.id===e).pop()}updateChoiceGroupById(e,i={}){let o=this.getChoiceGroupById(e);if(o)return Object.assign(o,i),this.save(),o}addChoice(e,i){e.id||(e.id=++this.lastChoiceId);let o=this.getChoiceGroupById(i);return o&&o.choices.push(e),this.save(),this}deleteChoiceById(e,i){let o=this.getChoiceGroupById(i);return o&&(o.choices=o.choices.filter(s=>s.id!==e)),this.save(),this}getChoiceById(e,i){let o=this.getChoiceGroupById(i);if(o)return o.choices.filter(s=>s.id===e).pop()}updateChoiceById(e,i,o={}){let s=this.getChoiceById(e,i);if(s)return Object.assign(s,o),this.save(),s}};t.\u0275fac=function(i){return new(i||t)(m(Yr))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();var Id=(()=>{let t=class t{constructor(e){this.choiceDataService=e}ngOnInit(){}choiceUpdated(){console.log("Hey"),this.choiceDataService.updateChoiceById(this.choice.id,this.groupId,this.choice)}deleteChoice(){confirm("Do you really want to delete this choice?")&&this.choiceDataService.deleteChoiceById(this.choice.id,this.groupId)}};t.\u0275fac=function(i){return new(i||t)(g(zt))},t.\u0275cmp=U({type:t,selectors:[["choice-card"]],inputs:{choice:"choice",groupId:"groupId"},standalone:!0,features:[z],decls:22,vars:3,consts:[["appearance","outlined",1,"choice-card"],["type","color",3,"ngModelChange","input","ngModel"],["type","number","min","0",3,"ngModelChange","input","ngModel"],["align","end"],["mat-icon-button","",3,"click"]],template:function(i,o){i&1&&(C(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),V(3),D()(),C(4,"mat-card-content")(5,"table")(6,"tr")(7,"td")(8,"b"),V(9,"Color:"),D()(),C(10,"td")(11,"input",1),Xt("ngModelChange",function(a){return qt(o.choice.color,a)||(o.choice.color=a),a}),Z("input",function(){return o.choiceUpdated()}),D()()(),C(12,"tr")(13,"td")(14,"b"),V(15,"Weight:"),D()(),C(16,"td")(17,"input",2),Xt("ngModelChange",function(a){return qt(o.choice.weight,a)||(o.choice.weight=a),a}),Z("input",function(){return o.choiceUpdated()}),D()()()()(),C(18,"mat-card-actions",3)(19,"button",4),Z("click",function(){return o.deleteChoice()}),C(20,"mat-icon"),V(21,"delete"),D()()()()),i&2&&(L(3),Ae(o.choice.title),L(8),Yt("ngModel",o.choice.color),L(6),Yt("ngModel",o.choice.weight))},dependencies:[pe,me,Pi,ti,Io,Re,Nr,Tr,Fr,kr,Pr,Or,Wr,Hr,Mr,Rr],styles:[".choice-card[_ngcontent-%COMP%]{max-width:fit-content}"]});let n=t;return n})();var wn=class{constructor(t={}){this.color="#000000",this.weight=1,Object.assign(this,t)}};var Hd=da(zd()),Wd=da(Gd());var St=(()=>{let t=class t{constructor(){}formatDate(e){return e.getDate()+"."+(e.getMonth()+1)+"."+e.getFullYear()}getMd5ForDate(e){return""+Wd.Md5.hashStr(this.formatDate(e))}hexStringToDecimal(e){let i=parseInt(e,16);for(;i>1;)i/=10;return i}splitString(e,i){for(var o=[];e.length>0;){var s=Math.ceil(e.length/i);o.push(e.slice(0,s)),e=e.slice(s),i--}return o}getChoicesForDate(e,i=new Date){let o=e.choicesPerDay,s=this.getMd5ForDate(i),a=this.splitString(s,o);var c=[];return a.forEach(l=>{let d=(0,Hd.default)(l)(),u=e.choices.reduce((y,R)=>y+R.weight,0),h=e.choices[0].weight/u,p=0;for(;ht.id;function Gf(n,t){if(n&1&&bt(0,"choice-card",7),n&2){let r=t.$implicit,e=Bt(2);vt("choice",r)("groupId",e.choiceGroup.id)}}function Hf(n,t){if(n&1&&(C(0,"div")(1,"ul",6),Pn(2,Gf,1,2,"choice-card",7,$f),D()()),n&2){let r=Bt();L(2),Nn(r.choiceGroup.choices)}}function Wf(n,t){if(n&1&&(C(0,"tr")(1,"td"),V(2),D(),C(3,"td"),V(4),D()()),n&2){let r=t.$implicit;L(2),Ae(r.choice),L(2),Ae(r.amount)}}function Yf(n,t){if(n&1&&(C(0,"table")(1,"tr")(2,"th"),V(3,"Choice"),D(),C(4,"th"),V(5,"How often?"),D()(),st(6,Wf,5,2,"tr",8),D()),n&2){let r=Bt();L(6),vt("ngForOf",r.analytics)}}var Kr=(()=>{let t=class t{constructor(e,i,o){this.route=e,this.choiceDataService=i,this.md5Service=o,this.choiceGroupId=v(ia),this.numberOfDays=100,this.newChoice=new wn,this.analytics=[]}addChoice(){this.choiceDataService.addChoice(this.newChoice,this.choiceGroup.id),this.newChoice=new wn}ngOnInit(){this.choiceGroup=this.choiceDataService.getChoiceGroupById(this.choiceGroupId)}choiceUpdated(e){this.choiceDataService.updateChoiceById(e.id,this.choiceGroup.id,e)}choiceGroupUpdated(){this.choiceDataService.updateChoiceGroupById(this.choiceGroup.id,this.choiceGroup)}startAnalytics(){let e=new Date,i={};this.choiceGroup.choices.forEach(o=>{i[o.title]=0});for(let o=0;o{i[a.choice.title]++}),e.setDate(e.getDate()+1);this.analytics=[],this.analytics=Object.keys(i).map(o=>({choice:o,amount:i[o]}))}};t.\u0275fac=function(i){return new(i||t)(g(ve),g(zt),g(St))},t.\u0275cmp=U({type:t,selectors:[["app-choice-group-detail"]],standalone:!0,features:[at([St]),z],decls:21,vars:6,consts:[["mat-dialog-title",""],["placeholder","Name for a new choice",3,"ngModelChange","keyup.enter","ngModel"],[4,"ngIf"],["type","number",3,"ngModelChange","input","ngModel"],["type","number","value","100",3,"ngModelChange","ngModel"],[3,"click"],[1,"choice-list"],[3,"choice","groupId"],[4,"ngFor","ngForOf"]],template:function(i,o){i&1&&(C(0,"h2",0),V(1,"Choices"),D(),C(2,"mat-dialog-content"),V(3," Add a new choice "),C(4,"input",1),Xt("ngModelChange",function(a){return qt(o.newChoice.title,a)||(o.newChoice.title=a),a}),Z("keyup.enter",function(){return o.addChoice()}),D(),st(5,Hf,4,0,"div",2),C(6,"h2"),V(7,"Settings"),D(),V(8," Selections/Day "),C(9,"input",3),Xt("ngModelChange",function(a){return qt(o.choiceGroup.choicesPerDay,a)||(o.choiceGroup.choicesPerDay=a),a}),Z("input",function(){return o.choiceGroupUpdated()}),D(),C(10,"h2"),V(11,"Analytics"),D(),C(12,"h3"),V(13),D(),C(14,"div")(15,"label"),V(16,"Number of Days"),D(),C(17,"input",4),Xt("ngModelChange",function(a){return qt(o.numberOfDays,a)||(o.numberOfDays=a),a}),D()(),C(18,"button",5),Z("click",function(){return o.startAnalytics()}),V(19,"Analyze"),D(),st(20,Yf,7,1,"table",2),D()),i&2&&(L(4),Yt("ngModel",o.newChoice.title),L(),vt("ngIf",o.choiceGroup.choices.length),L(4),Yt("ngModel",o.choiceGroup.choicesPerDay),L(4),Xe("Distribution of choices for the next ",o.numberOfDays," days"),L(4),Yt("ngModel",o.numberOfDays),L(3),vt("ngIf",o.analytics.length!=0))},dependencies:[pe,me,Pi,ti,Re,Ze,Hn,Id,bd,gd,vd],styles:[".choice-list[_ngcontent-%COMP%]{display:flex;list-style-type:none;flex-wrap:wrap;gap:16px}"]});let n=t;return n})();function qf(n,t){if(n&1&&(C(0,"td")(1,"div",6),V(2),D()()),n&2){let r=t.$implicit,e=Bt(3);L(),ho("background",r.choice.color)("color",e.isColorLight(r.choice.color)?"#000":"#FFF"),L(),Xe(" ",r.choice.title," ")}}function Xf(n,t){if(n&1&&(C(0,"tr")(1,"td")(2,"b"),V(3),Pa(4,"date"),D()(),st(5,qf,3,5,"td",5),D()),n&2){let r=t.$implicit;L(3),Ae(Na(4,2,r.day,"EEEE")),L(2),vt("ngForOf",r.selections)}}function Zf(n,t){if(n&1&&(C(0,"div",4)(1,"table"),st(2,Xf,6,5,"tr",5),D()()),n&2){let r=Bt();L(2),vt("ngForOf",r.getNextDaysSelections())}}var Yd=(()=>{let t=class t{constructor(e,i){this.choiceDataService=e,this.md5Service=i,this.dialog=v(zr)}deleteChoiceGroup(){confirm("Do you really want to delete this group?")&&this.choiceDataService.deleteChoiceGroupById(this.group.id)}isColorLight(e){let i=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&")),o=i>>16,s=i>>8&255,a=i&255;return Math.sqrt(.299*(o*o)+.587*(s*s)+.114*(a*a))>127.5}getNextDaysSelections(){let e=[],i=new Date;for(let o=0;o<8;o++)e.push({day:new Date(i.getTime()),selections:this.md5Service.getChoicesForDate(this.group,i)}),i.setDate(i.getDate()+1);return e}getTodaysSelections(){let e=new Date;return this.md5Service.getChoicesForDate(this.group,e)}openDialog(){let e=this.dialog.open(Kr,{data:this.group.id,minWidth:"0",maxWidth:"100%",width:"80%",height:"80%"})}};t.\u0275fac=function(i){return new(i||t)(g(zt),g(St))},t.\u0275cmp=U({type:t,selectors:[["choice-group-overview"]],inputs:{group:"group"},standalone:!0,features:[at([St]),z],decls:13,vars:2,consts:[["appearance","outlined",1,"choice-group-card"],["class","next-days",4,"ngIf"],["align","end"],["mat-icon-button","",3,"click"],[1,"next-days"],[4,"ngFor","ngForOf"],[1,"choice-overview"]],template:function(i,o){i&1&&(C(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title"),V(3),D()(),C(4,"mat-card-content"),st(5,Zf,3,1,"div",1),D(),C(6,"mat-card-actions",2)(7,"button",3),Z("click",function(){return o.openDialog()}),C(8,"mat-icon"),V(9,"edit"),D()(),C(10,"button",3),Z("click",function(){return o.deleteChoiceGroup()}),C(11,"mat-icon"),V(12,"delete"),D()()()()),i&2&&(L(3),Xe(" ",o.group.title," "),L(2),vt("ngIf",o.group.choices.length>0))},dependencies:[Ze,Hn,Xa,Nr,Tr,Fr,kr,Pr,Or,Mr,Rr,Wr,Hr],styles:[".choice-group-card[_ngcontent-%COMP%]{max-width:fit-content}.choice-overview[_ngcontent-%COMP%]{border-radius:5px;padding:5px;display:inline-block}@media (prefers-color-scheme: light){.choice-overview[_ngcontent-%COMP%]{border:2px solid black}}@media (prefers-color-scheme: dark){.choice-overview[_ngcontent-%COMP%]{border:2px solid white}}.overview-header[_ngcontent-%COMP%]{overflow:hidden;margin:5px 10px 10px}.next-days[_ngcontent-%COMP%]{margin:10px}"]});let n=t;return n})();var Cn=class{constructor(t={}){this.choices=[],this.choicesPerDay=1,Object.assign(this,t)}};var Kf=(n,t)=>t.id;function Qf(n,t){if(n&1&&bt(0,"choice-group-overview",3),n&2){let r=t.$implicit;vt("group",r)}}function Jf(n,t){if(n&1&&(C(0,"section",2),Pn(1,Qf,1,1,"choice-group-overview",3,Kf),D()),n&2){let r=Bt();L(),Nn(r.choiceGroups)}}var qd=(()=>{let t=class t{constructor(e,i){this.choiceDataService=e,this.md5Service=i,this.newChoiceGroup=new Cn}addChoiceGroup(){this.choiceDataService.addChoiceGroup(this.newChoiceGroup),this.newChoiceGroup=new Cn}get choiceGroups(){return this.choiceDataService.getAllChoiceGroups()}ngOnInit(){}};t.\u0275fac=function(i){return new(i||t)(g(zt),g(St))},t.\u0275cmp=U({type:t,selectors:[["app-dashboard"]],standalone:!0,features:[at([St]),z],decls:3,vars:2,consts:[["placeholder","Name for a new choice group",3,"ngModelChange","keyup.enter","ngModel"],["class","main",4,"ngIf"],[1,"main"],[3,"group"]],template:function(i,o){i&1&&(V(0,` +Add a new Choice Group `),C(1,"input",0),Xt("ngModelChange",function(a){return qt(o.newChoiceGroup.title,a)||(o.newChoiceGroup.title=a),a}),Z("keyup.enter",function(){return o.addChoiceGroup()}),D(),st(2,Jf,3,0,"section",1)),i&2&&(L(),Yt("ngModel",o.newChoiceGroup.title),L(),vt("ngIf",o.choiceGroups.length>0))},dependencies:[pe,me,ti,Re,Ze,Yd],styles:[".main[_ngcontent-%COMP%]{padding-top:32px;display:flex;gap:16px}"]});let n=t;return n})();var tg=[{path:"dashboard",component:qd},{path:"choice-group-detail/:id",component:Kr},{path:"",redirectTo:"/dashboard",pathMatch:"full"}],Xd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[xs.forRoot(tg),xs]});let n=t;return n})();var eg=["*",[["mat-toolbar-row"]]],ig=["*","mat-toolbar-row"],ng=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=k({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let n=t;return n})(),Zd=(()=>{let t=class t{constructor(e,i,o){this._elementRef=e,this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(i){return new(i||t)(g(N),g(G),g(E))},t.\u0275cmp=U({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,o,s){if(i&1&&mo(s,ng,5),i&2){let a;Ie(a=xe())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,o){i&2&&(qe(o.color?"mat-"+o.color:""),rt("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[z],ngContentSelectors:ig,decls:2,vars:0,template:function(i,o){i&1&&(Mt(eg),ut(0),ut(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-app-surface));color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-app-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-app-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-app-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-app-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-app-title-large-tracking));margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let n=t;return n})();var Kd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=S({type:t}),t.\u0275inj=A({imports:[it,it]});let n=t;return n})();var Qd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=U({type:t,selectors:[["app-root"]],standalone:!0,features:[z],decls:5,vars:0,consts:[[1,"outlet"]],template:function(i,o){i&1&&(C(0,"mat-toolbar")(1,"span"),V(2,"Daily Random Scheduler"),D()(),C(3,"div",0),bt(4,"router-outlet"),D())},dependencies:[_s,Kd,Zd],styles:[".outlet[_ngcontent-%COMP%]{margin:16px}"]});let n=t;return n})();var Jd={production:!0};Jd.production&&void 0;kc(Qd,{providers:[ba(Pc,pe,Xd),zt,Yr,Lc()]});