(e)
| 74 | `+t+"\n```":t}parseMarked(A,t,n=!1){if(t.renderer){let o=P({},t.renderer);delete o.\u0275NgxMarkdownRendererExtendedForExtensions,delete o.\u0275NgxMarkdownRendererExtendedForMermaid,delete t.renderer,lo.use({renderer:o})}return n?lo.parseInline(A,t):lo.parse(A,t)}parseEmoji(A){if(!U0(this.platform))return A;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(AnA);return joypixels.shortnameToUnicode(A)}renderKatex(A,t){if(U0(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error(enA);renderMathInElement(A,t)}}renderClipboard(A,t,n){if(!U0(this.platform))return;if(typeof ClipboardJS>"u")throw new Error(inA);if(!t)throw new Error(nnA);let{buttonComponent:o,buttonTemplate:a}=n,r=A.querySelectorAll("pre");for(let s=0;s<r.length;s++){let l=r.item(s),g=document.createElement("div");g.style.position="relative",l.parentNode.insertBefore(g,l),g.appendChild(l);let C=document.createElement("div");C.classList.add("markdown-clipboard-toolbar"),C.style.position="absolute",C.style.top=".5em",C.style.right=".5em",C.style.zIndex="1",g.insertAdjacentElement("beforeend",C),g.onmouseenter=()=>C.classList.add("hover"),g.onmouseleave=()=>C.classList.remove("hover");let d;if(o){let u=t.createComponent(o);d=u.hostView,u.changeDetectorRef.markForCheck()}else if(a)d=t.createEmbeddedView(a);else{let u=t.createComponent(jiA);d=u.hostView,u.changeDetectorRef.markForCheck()}let B;d.rootNodes.forEach(u=>{C.appendChild(u),B=new ClipboardJS(u,{text:()=>l.innerText})}),d.onDestroy(()=>B.destroy())}}renderMermaid(A,t=this.DEFAULT_MERMAID_OPTIONS){if(!U0(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(tnA);let n=A.querySelectorAll(".mermaid");n.length!==0&&(mermaid.initialize(t),mermaid.run({nodes:n}))}trimIndentation(A){if(!A)return"";let t;return A.split(` |
| 75 | `).map(n=>{let o=t;return n.length>0&&(o=isNaN(o)?n.search(/\S|$/):Math.min(n.search(/\S|$/),o)),isNaN(t)&&(t=o),o?n.substring(o):n}).join(` |
| 76 | `)}sanitizeHtml(A){return re(this,null,function*(){return $iA(this.sanitize)?this.sanitize(yield A):this.sanitize!==Ng.NONE?this.sanitizer.sanitize(this.sanitize??this.DEFAULT_SECURITY_CONTEXT,A)??"":A})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=jA({token:i,factory:i.\u0275fac})}}return i})(),wb=(function(i){return i.CommandLine="command-line",i.LineHighlight="line-highlight",i.LineNumbers="line-numbers",i})(wb||{}),DK=(()=>{class i{constructor(){this.element=w(ce),this.markdownService=w(yK),this.viewContainerRef=w(Jo),this.error=new FA,this.load=new FA,this.ready=new FA,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new ne}get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(A){this._disableSanitizer=this.coerceBooleanProperty(A)}get inline(){return this._inline}set inline(A){this._inline=this.coerceBooleanProperty(A)}get clipboard(){return this._clipboard}set clipboard(A){this._clipboard=this.coerceBooleanProperty(A)}get emoji(){return this._emoji}set emoji(A){this._emoji=this.coerceBooleanProperty(A)}get katex(){return this._katex}set katex(A){this._katex=this.coerceBooleanProperty(A)}get mermaid(){return this._mermaid}set mermaid(A){this._mermaid=this.coerceBooleanProperty(A)}get lineHighlight(){return this._lineHighlight}set lineHighlight(A){this._lineHighlight=this.coerceBooleanProperty(A)}get lineNumbers(){return this._lineNumbers}set lineNumbers(A){this._lineNumbers=this.coerceBooleanProperty(A)}get commandLine(){return this._commandLine}set commandLine(A){this._commandLine=this.coerceBooleanProperty(A)}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(yt(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(A,t=!1){return re(this,null,function*(){let n={decodeHtml:t,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},o={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},a=yield this.markdownService.parse(A,n);this.element.nativeElement.innerHTML=a,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,o,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(A){return A!=null&&`${String(A)}`!="false"}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:A=>{this.render(A).then(()=>{this.load.emit(A)})},error:A=>this.error.emit(A)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,wb.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,wb.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(A,t){let n=A.querySelectorAll("pre");for(let o=0;o<n.length;o++){let a=t instanceof Array?t:[t];n.item(o).classList.add(...a)}}setPluginOptions(A,t){let n=A.querySelectorAll("pre");for(let o=0;o<n.length;o++)Object.keys(t).forEach(a=>{let r=t[a];if(r){let s=this.toLispCase(a);n.item(o).setAttribute(s,r.toString())}})}toLispCase(A){let t=A.match(/([A-Z])/g);if(!t)return A;let n=A.toString();for(let o=0,a=t.length;o<a;o++)n=n.replace(new RegExp(t[o]),"-"+t[o].toLowerCase());return n.slice(0,1)==="-"&&(n=n.slice(1)),n}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=vA({type:i,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[ii],ngContentSelectors:HiA,decls:1,vars:0,template:function(t,n){t&1&&(Ot(),Ze(0))},encapsulation:2})}}return i})();function GQ(i){return[yK,i?.loader??[],i?.clipboardOptions??[],i?.markedOptions??[],i?.mermaidOptions??[],i?.markedExtensions??[],i?.sanitize??[]]}var vK=(()=>{class i{static forRoot(A){return{ngModule:i,providers:[GQ(A)]}}static forChild(){return{ngModule:i}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=et({type:i})}static{this.\u0275inj=At({})}}return i})();var Yi="primary",qQ=Symbol("RouteTitle"),Mb=class{params;constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let A=this.params[e];return Array.isArray(A)?A[0]:A}return null}getAll(e){if(this.has(e)){let A=this.params[e];return Array.isArray(A)?A:[A]}return[]}get keys(){return Object.keys(this.params)}};function X1(i){return new Mb(i)}function yb(i,e,A){for(let t=0;t<i.length;t++){let n=i[t],o=e[t];if(n[0]===":")A[n.substring(1)]=o;else if(n!==o.path)return!1}return!0}function NK(i,e,A){let t=A.path.split("/"),n=t.indexOf("**");if(n===-1){if(t.length>i.length||A.pathMatch==="full"&&(e.hasChildren()||t.length<i.length))return null;let s={},l=i.slice(0,t.length);return yb(t,l,s)?{consumed:l,posParams:s}:null}if(n!==t.lastIndexOf("**"))return null;let o=t.slice(0,n),a=t.slice(n+1);if(o.length+a.length>i.length||A.pathMatch==="full"&&e.hasChildren()&&A.path!=="**")return null;let r={};return!yb(o,i.slice(0,o.length),r)||!yb(a,i.slice(i.length-a.length),r)?null:{consumed:i,posParams:r}}function Df(i){return new Promise((e,A)=>{i.pipe(oo()).subscribe({next:t=>e(t),error:t=>A(t)})})}function snA(i,e){if(i.length!==e.length)return!1;for(let A=0;A<i.length;++A)if(!zc(i[A],e[A]))return!1;return!0}function zc(i,e){let A=i?Sb(i):void 0,t=e?Sb(e):void 0;if(!A||!t||A.length!=t.length)return!1;let n;for(let o=0;o<A.length;o++)if(n=A[o],!FK(i[n],e[n]))return!1;return!0}function Sb(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}function FK(i,e){if(Array.isArray(i)&&Array.isArray(e)){if(i.length!==e.length)return!1;let A=[...i].sort(),t=[...e].sort();return A.every((n,o)=>t[o]===n)}else return i===e}function lnA(i){return i.length>0?i[i.length-1]:null}function Ad(i){return fI(i)?i:l3(i)?Yr(Promise.resolve(i)):oe(i)}function LK(i){return fI(i)?Df(i):Promise.resolve(i)}var gnA={exact:UK,subset:TK},GK={exact:cnA,subset:CnA,ignored:()=>!0},KK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function bK(i,e,A){return gnA[A.paths](i.root,e.root,A.matrixParams)&&GK[A.queryParams](i.queryParams,e.queryParams)&&!(A.fragment==="exact"&&i.fragment!==e.fragment)}function cnA(i,e){return zc(i,e)}function UK(i,e,A){if(!Z1(i.segments,e.segments)||!mf(i.segments,e.segments,A)||i.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!i.children[t]||!UK(i.children[t],e.children[t],A))return!1;return!0}function CnA(i,e){return Object.keys(e).length<=Object.keys(i).length&&Object.keys(e).every(A=>FK(i[A],e[A]))}function TK(i,e,A){return OK(i,e,e.segments,A)}function OK(i,e,A,t){if(i.segments.length>A.length){let n=i.segments.slice(0,A.length);return!(!Z1(n,A)||e.hasChildren()||!mf(n,A,t))}else if(i.segments.length===A.length){if(!Z1(i.segments,A)||!mf(i.segments,A,t))return!1;for(let n in e.children)if(!i.children[n]||!TK(i.children[n],e.children[n],t))return!1;return!0}else{let n=A.slice(0,i.segments.length),o=A.slice(i.segments.length);return!Z1(i.segments,n)||!mf(i.segments,n,t)||!i.children[Yi]?!1:OK(i.children[Yi],e,o,t)}}function mf(i,e,A){return e.every((t,n)=>GK[A](i[n].parameters,t.parameters))}var Xl=class{root;queryParams;fragment;_queryParamMap;constructor(e=new yo([],{}),A={},t=null){this.root=e,this.queryParams=A,this.fragment=t}get queryParamMap(){return this._queryParamMap??=X1(this.queryParams),this._queryParamMap}toString(){return BnA.serialize(this)}},yo=class{segments;children;parent=null;constructor(e,A){this.segments=e,this.children=A,Object.values(A).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wf(this)}},t2=class{path;parameters;_parameterMap;constructor(e,A){this.path=e,this.parameters=A}get parameterMap(){return this._parameterMap??=X1(this.parameters),this._parameterMap}toString(){return YK(this)}};function dnA(i,e){return Z1(i,e)&&i.every((A,t)=>zc(A.parameters,e[t].parameters))}function Z1(i,e){return i.length!==e.length?!1:i.every((A,t)=>A.path===e[t].path)}function InA(i,e){let A=[];return Object.entries(i.children).forEach(([t,n])=>{t===Yi&&(A=A.concat(e(n,t)))}),Object.entries(i.children).forEach(([t,n])=>{t!==Yi&&(A=A.concat(e(n,t)))}),A}var ed=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>new z0,providedIn:"root"})}return i})(),z0=class{parse(e){let A=new xb(e);return new Xl(A.parseRootSegment(),A.parseQueryParams(),A.parseFragment())}serialize(e){let A=`/${KQ(e.root,!0)}`,t=QnA(e.queryParams),n=typeof e.fragment=="string"?`#${hnA(e.fragment)}`:"";return`${A}${t}${n}`}},BnA=new z0;function wf(i){return i.segments.map(e=>YK(e)).join("/")}function KQ(i,e){if(!i.hasChildren())return wf(i);if(e){let A=i.children[Yi]?KQ(i.children[Yi],!1):"",t=[];return Object.entries(i.children).forEach(([n,o])=>{n!==Yi&&t.push(`${n}:${KQ(o,!1)}`)}),t.length>0?`${A}(${t.join("//")})`:A}else{let A=InA(i,(t,n)=>n===Yi?[KQ(i.children[Yi],!1)]:[`${n}:${KQ(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[Yi]!=null?`${wf(i)}/${A[0]}`:`${wf(i)}/(${A.join("//")})`}}function JK(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pf(i){return JK(i).replace(/%3B/gi,";")}function hnA(i){return encodeURI(i)}function _b(i){return JK(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yf(i){return decodeURIComponent(i)}function MK(i){return yf(i.replace(/\+/g,"%20"))}function YK(i){return`${_b(i.path)}${EnA(i.parameters)}`}function EnA(i){return Object.entries(i).map(([e,A])=>`;${_b(e)}=${_b(A)}`).join("")}function QnA(i){let e=Object.entries(i).map(([A,t])=>Array.isArray(t)?t.map(n=>`${pf(A)}=${pf(n)}`).join("&"):`${pf(A)}=${pf(t)}`).filter(A=>A);return e.length?`?${e.join("&")}`:""}var unA=/^[^\/()?;#]+/;function Db(i){let e=i.match(unA);return e?e[0]:""}var pnA=/^[^\/()?;=#]+/;function fnA(i){let e=i.match(pnA);return e?e[0]:""}var mnA=/^[^=?&#]+/;function wnA(i){let e=i.match(mnA);return e?e[0]:""}var ynA=/^[^&#]+/;function DnA(i){let e=i.match(ynA);return e?e[0]:""}var xb=class{url;remaining;constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new yo([],{}):new yo([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(e=0){if(e>50)throw new Nt(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let A=[];for(this.peekStartsWith("(")||A.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),A.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0,e));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1,e)),(A.length>0||Object.keys(t).length>0)&&(n[Yi]=new yo(A,t)),n}parseSegment(){let e=Db(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Nt(4009,!1);return this.capture(e),new t2(yf(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let A=fnA(this.remaining);if(!A)return;this.capture(A);let t="";if(this.consumeOptional("=")){let n=Db(this.remaining);n&&(t=n,this.capture(t))}e[yf(A)]=yf(t)}parseQueryParam(e){let A=wnA(this.remaining);if(!A)return;this.capture(A);let t="";if(this.consumeOptional("=")){let a=DnA(this.remaining);a&&(t=a,this.capture(t))}let n=MK(A),o=MK(t);if(e.hasOwnProperty(n)){let a=e[n];Array.isArray(a)||(a=[a],e[n]=a),a.push(o)}else e[n]=o}parseParens(e,A){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Db(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new Nt(4010,!1);let a;n.indexOf(":")>-1?(a=n.slice(0,n.indexOf(":")),this.capture(a),this.capture(":")):e&&(a=Yi);let r=this.parseChildren(A+1);t[a??Yi]=Object.keys(r).length===1&&r[Yi]?r[Yi]:new yo([],r),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new Nt(4011,!1)}};function HK(i){return i.segments.length>0?new yo([],{[Yi]:i}):i}function zK(i){let e={};for(let[t,n]of Object.entries(i.children)){let o=zK(n);if(t===Yi&&o.segments.length===0&&o.hasChildren())for(let[a,r]of Object.entries(o.children))e[a]=r;else(o.segments.length>0||o.hasChildren())&&(e[t]=o)}let A=new yo(i.segments,e);return vnA(A)}function vnA(i){if(i.numberOfChildren===1&&i.children[Yi]){let e=i.children[Yi];return new yo(i.segments.concat(e.segments),e.children)}return i}function tB(i){return i instanceof Xl}function PK(i,e,A=null,t=null,n=new z0){let o=jK(i);return VK(o,e,A,t,n)}function jK(i){let e;function A(o){let a={};for(let s of o.children){let l=A(s);a[s.outlet]=l}let r=new yo(o.url,a);return o===i&&(e=r),r}let t=A(i.root),n=HK(t);return e??n}function VK(i,e,A,t,n){let o=i;for(;o.parent;)o=o.parent;if(e.length===0)return vb(o,o,o,A,t,n);let a=bnA(e);if(a.toRoot())return vb(o,o,new yo([],{}),A,t,n);let r=MnA(a,o,i),s=r.processChildren?TQ(r.segmentGroup,r.index,a.commands):WK(r.segmentGroup,r.index,a.commands);return vb(o,r.segmentGroup,s,A,t,n)}function vf(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function JQ(i){return typeof i=="object"&&i!=null&&i.outlets}function SK(i,e,A){i||="\u0275";let t=new Xl;return t.queryParams={[i]:e},A.parse(A.serialize(t)).queryParams[i]}function vb(i,e,A,t,n,o){let a={};for(let[l,g]of Object.entries(t??{}))a[l]=Array.isArray(g)?g.map(C=>SK(l,C,o)):SK(l,g,o);let r;i===e?r=A:r=qK(i,e,A);let s=HK(zK(r));return new Xl(s,a,n)}function qK(i,e,A){let t={};return Object.entries(i.children).forEach(([n,o])=>{o===e?t[n]=A:t[n]=qK(o,e,A)}),new yo(i.segments,t)}var bf=class{isAbsolute;numberOfDoubleDots;commands;constructor(e,A,t){if(this.isAbsolute=e,this.numberOfDoubleDots=A,this.commands=t,e&&t.length>0&&vf(t[0]))throw new Nt(4003,!1);let n=t.find(JQ);if(n&&n!==lnA(t))throw new Nt(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function bnA(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new bf(!0,0,i);let e=0,A=!1,t=i.reduce((n,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let r={};return Object.entries(o.outlets).forEach(([s,l])=>{r[s]=typeof l=="string"?l.split("/"):l}),[...n,{outlets:r}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:a===0?(o.split("/").forEach((r,s)=>{s==0&&r==="."||(s==0&&r===""?A=!0:r===".."?e++:r!=""&&n.push(r))}),n):[...n,o]},[]);return new bf(A,e,t)}var $I=class{segmentGroup;processChildren;index;constructor(e,A,t){this.segmentGroup=e,this.processChildren=A,this.index=t}};function MnA(i,e,A){if(i.isAbsolute)return new $I(e,!0,0);if(!A)return new $I(e,!1,NaN);if(A.parent===null)return new $I(A,!0,0);let t=vf(i.commands[0])?0:1,n=A.segments.length-1+t;return SnA(A,n,i.numberOfDoubleDots)}function SnA(i,e,A){let t=i,n=e,o=A;for(;o>n;){if(o-=n,t=t.parent,!t)throw new Nt(4005,!1);n=t.segments.length}return new $I(t,!1,n-o)}function knA(i){return JQ(i[0])?i[0].outlets:{[Yi]:i}}function WK(i,e,A){if(i??=new yo([],{}),i.segments.length===0&&i.hasChildren())return TQ(i,e,A);let t=_nA(i,e,A),n=A.slice(t.commandIndex);if(t.match&&t.pathIndex<i.segments.length){let o=new yo(i.segments.slice(0,t.pathIndex),{});return o.children[Yi]=new yo(i.segments.slice(t.pathIndex),i.children),TQ(o,0,n)}else return t.match&&n.length===0?new yo(i.segments,{}):t.match&&!i.hasChildren()?Rb(i,e,A):t.match?TQ(i,0,n):Rb(i,e,A)}function TQ(i,e,A){if(A.length===0)return new yo(i.segments,{});{let t=knA(A),n={};if(Object.keys(t).some(o=>o!==Yi)&&i.children[Yi]&&i.numberOfChildren===1&&i.children[Yi].segments.length===0){let o=TQ(i.children[Yi],e,A);return new yo(i.segments,o.children)}return Object.entries(t).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(n[o]=WK(i.children[o],e,a))}),Object.entries(i.children).forEach(([o,a])=>{t[o]===void 0&&(n[o]=a)}),new yo(i.segments,n)}}function _nA(i,e,A){let t=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n<i.segments.length;){if(t>=A.length)return o;let a=i.segments[n],r=A[t];if(JQ(r))break;let s=`${r}`,l=t<A.length-1?A[t+1]:null;if(n>0&&s===void 0)break;if(s&&l&&typeof l=="object"&&l.outlets===void 0){if(!_K(s,l,a))return o;t+=2}else{if(!_K(s,{},a))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function Rb(i,e,A){let t=i.segments.slice(0,e),n=0;for(;n<A.length;){let o=A[n];if(JQ(o)){let s=xnA(o.outlets);return new yo(t,s)}if(n===0&&vf(A[0])){let s=i.segments[e];t.push(new t2(s.path,kK(A[0]))),n++;continue}let a=JQ(o)?o.outlets[Yi]:`${o}`,r=n<A.length-1?A[n+1]:null;a&&r&&vf(r)?(t.push(new t2(a,kK(r))),n+=2):(t.push(new t2(a,{})),n++)}return new yo(t,{})}function xnA(i){let e={};return Object.entries(i).forEach(([A,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(e[A]=Rb(new yo([],{}),0,t))}),e}function kK(i){let e={};return Object.entries(i).forEach(([A,t])=>e[A]=`${t}`),e}function _K(i,e,A){return i==A.path&&zc(e,A.parameters)}var AB="imperative",ur=(function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i})(ur||{}),Sl=class{id;url;constructor(e,A){this.id=e,this.url=A}},i2=class extends Sl{type=ur.NavigationStart;navigationTrigger;restoredState;constructor(e,A,t="imperative",n=null){super(e,A),this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Jg=class extends Sl{urlAfterRedirects;type=ur.NavigationEnd;constructor(e,A,t){super(e,A),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ds=(function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i[i.Aborted=4]="Aborted",i})(ds||{}),iB=(function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i})(iB||{}),Zl=class extends Sl{reason;code;type=ur.NavigationCancel;constructor(e,A,t,n){super(e,A),this.reason=t,this.code=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function ZK(i){return i instanceof Zl&&(i.code===ds.Redirect||i.code===ds.SupersededByNewNavigation)}var jc=class extends Sl{reason;code;type=ur.NavigationSkipped;constructor(e,A,t,n){super(e,A),this.reason=t,this.code=n}},$1=class extends Sl{error;target;type=ur.NavigationError;constructor(e,A,t,n){super(e,A),this.error=t,this.target=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},YQ=class extends Sl{urlAfterRedirects;state;type=ur.RoutesRecognized;constructor(e,A,t,n){super(e,A),this.urlAfterRedirects=t,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mf=class extends Sl{urlAfterRedirects;state;type=ur.GuardsCheckStart;constructor(e,A,t,n){super(e,A),this.urlAfterRedirects=t,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sf=class extends Sl{urlAfterRedirects;state;shouldActivate;type=ur.GuardsCheckEnd;constructor(e,A,t,n,o){super(e,A),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},kf=class extends Sl{urlAfterRedirects;state;type=ur.ResolveStart;constructor(e,A,t,n){super(e,A),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_f=class extends Sl{urlAfterRedirects;state;type=ur.ResolveEnd;constructor(e,A,t,n){super(e,A),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xf=class{route;type=ur.RouteConfigLoadStart;constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rf=class{route;type=ur.RouteConfigLoadEnd;constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Nf=class{snapshot;type=ur.ChildActivationStart;constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ff=class{snapshot;type=ur.ChildActivationEnd;constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lf=class{snapshot;type=ur.ActivationStart;constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gf=class{snapshot;type=ur.ActivationEnd;constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nB=class{routerEvent;position;anchor;scrollBehavior;type=ur.Scroll;constructor(e,A,t,n){this.routerEvent=e,this.position=A,this.anchor=t,this.scrollBehavior=n}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},oB=class{},HQ=class{},aB=class{url;navigationBehaviorOptions;constructor(e,A){this.url=e,this.navigationBehaviorOptions=A}};function RnA(i){return!(i instanceof oB)&&!(i instanceof aB)&&!(i instanceof HQ)}var Kf=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(e){this.rootInjector=e,this.children=new td(this.rootInjector)}},td=(()=>{class i{rootInjector;contexts=new Map;constructor(A){this.rootInjector=A}onChildOutletCreated(A,t){let n=this.getOrCreateContext(A);n.outlet=t,this.contexts.set(A,n)}onChildOutletDestroyed(A){let t=this.getContext(A);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let A=this.contexts;return this.contexts=new Map,A}onOutletReAttached(A){this.contexts=A}getOrCreateContext(A){let t=this.getContext(A);return t||(t=new Kf(this.rootInjector),this.contexts.set(A,t)),t}getContext(A){return this.contexts.get(A)||null}static \u0275fac=function(t){return new(t||i)(Wo(Hr))};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Uf=class{_root;constructor(e){this._root=e}get root(){return this._root.value}parent(e){let A=this.pathFromRoot(e);return A.length>1?A[A.length-2]:null}children(e){let A=Nb(e,this._root);return A?A.children.map(t=>t.value):[]}firstChild(e){let A=Nb(e,this._root);return A&&A.children.length>0?A.children[0].value:null}siblings(e){let A=Fb(e,this._root);return A.length<2?[]:A[A.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return Fb(e,this._root).map(A=>A.value)}};function Nb(i,e){if(i===e.value)return e;for(let A of e.children){let t=Nb(i,A);if(t)return t}return null}function Fb(i,e){if(i===e.value)return[e];for(let A of e.children){let t=Fb(i,A);if(t.length)return t.unshift(e),t}return[]}var Ml=class{value;children;constructor(e,A){this.value=e,this.children=A}toString(){return`TreeNode(${this.value})`}};function XI(i){let e={};return i&&i.children.forEach(A=>e[A.value.outlet]=A),e}var zQ=class extends Uf{snapshot;constructor(e,A){super(e),this.snapshot=A,Hb(this,e)}toString(){return this.snapshot.toString()}};function XK(i,e){let A=NnA(i,e),t=new gi([new t2("",{})]),n=new gi({}),o=new gi({}),a=new gi({}),r=new gi(""),s=new $s(t,n,a,r,o,Yi,i,A.root);return s.snapshot=A.root,new zQ(new Ml(s,[]),A)}function NnA(i,e){let A={},t={},n={},a=new rB([],A,n,"",t,Yi,i,null,{},e);return new PQ("",new Ml(a,[]))}var $s=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(e,A,t,n,o,a,r,s){this.urlSubject=e,this.paramsSubject=A,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=a,this.component=r,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(Se(l=>l[qQ]))??oe(void 0),this.url=e,this.params=A,this.queryParams=t,this.fragment=n,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(Se(e=>X1(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Se(e=>X1(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yb(i,e,A="emptyOnly"){let t,{routeConfig:n}=i;return e!==null&&(A==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:P(P({},e.params),i.params),data:P(P({},e.data),i.data),resolve:P(P(P(P({},i.data),e.data),n?.data),i._resolvedData)}:t={params:P({},i.params),data:P({},i.data),resolve:P(P({},i.data),i._resolvedData??{})},n&&AU(n)&&(t.resolve[qQ]=n.title),t}var rB=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[qQ]}constructor(e,A,t,n,o,a,r,s,l,g){this.url=e,this.params=A,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=a,this.component=r,this.routeConfig=s,this._resolve=l,this._environmentInjector=g}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??=X1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=X1(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),A=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${A}')`}},PQ=class extends Uf{url;constructor(e,A){super(A),this.url=e,Hb(this,A)}toString(){return $K(this._root)}};function Hb(i,e){e.value._routerState=i,e.children.forEach(A=>Hb(i,A))}function $K(i){let e=i.children.length>0?` { ${i.children.map($K).join(", ")} } `:"";return`${i.value}${e}`}function bb(i){if(i.snapshot){let e=i.snapshot,A=i._futureSnapshot;i.snapshot=A,zc(e.queryParams,A.queryParams)||i.queryParamsSubject.next(A.queryParams),e.fragment!==A.fragment&&i.fragmentSubject.next(A.fragment),zc(e.params,A.params)||i.paramsSubject.next(A.params),snA(e.url,A.url)||i.urlSubject.next(A.url),zc(e.data,A.data)||i.dataSubject.next(A.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Lb(i,e){let A=zc(i.params,e.params)&&dnA(i.url,e.url),t=!i.parent!=!e.parent;return A&&!t&&(!i.parent||Lb(i.parent,e.parent))}function AU(i){return typeof i.title=="string"||i.title===null}var eU=new MA(""),zb=(()=>{class i{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Yi;activateEvents=new FA;deactivateEvents=new FA;attachEvents=new FA;detachEvents=new FA;routerOutletData=ve();parentContexts=w(td);location=w(Jo);changeDetector=w(Mt);inputBinder=w(WQ,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(A){if(A.name){let{firstChange:t,previousValue:n}=A.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(A){return this.parentContexts.getContext(A)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let A=this.parentContexts.getContext(this.name);A?.route&&(A.attachRef?this.attach(A.attachRef,A.route):this.activateWith(A.route,A.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Nt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Nt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Nt(4012,!1);this.location.detach();let A=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(A.instance),A}attach(A,t){this.activated=A,this._activatedRoute=t,this.location.insert(A.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(A.instance)}deactivate(){if(this.activated){let A=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(A)}}activateWith(A,t){if(this.isActivated)throw new Nt(4013,!1);this._activatedRoute=A;let n=this.location,a=A.snapshot.component,r=this.parentContexts.getOrCreateContext(this.name).children,s=new Gb(A,r,n.injector,this.routerOutletData);this.activated=n.createComponent(a,{index:n.length,injector:s,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=VA({type:i,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ii]})}return i})(),Gb=class{route;childContexts;parent;outletData;constructor(e,A,t,n){this.route=e,this.childContexts=A,this.parent=t,this.outletData=n}get(e,A){return e===$s?this.route:e===td?this.childContexts:e===eU?this.outletData:this.parent.get(e,A)}},WQ=new MA(""),Pb=(()=>{class i{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(A){this.unsubscribeFromRouteData(A),this.subscribeToRouteData(A)}unsubscribeFromRouteData(A){this.outletDataSubscriptions.get(A)?.unsubscribe(),this.outletDataSubscriptions.delete(A)}subscribeToRouteData(A){let{activatedRoute:t}=A,n=Dr([t.queryParams,t.params,t.data]).pipe(Mi(([o,a,r],s)=>(r=P(P(P({},o),a),r),s===0?oe(r):Promise.resolve(r)))).subscribe(o=>{if(!A.isActivated||!A.activatedComponentRef||A.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(A);return}let a=UN(t.component);if(!a){this.unsubscribeFromRouteData(A);return}for(let{templateName:r}of a.inputs)A.activatedComponentRef.setInput(r,o[r])});this.outletDataSubscriptions.set(A,n)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac})}return i})(),jb=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vA({type:i,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,n){t&1&&lA(0,"router-outlet")},dependencies:[zb],encapsulation:2})}return i})();function Vb(i){let e=i.children&&i.children.map(Vb),A=e?$A(P({},i),{children:e}):P({},i);return!A.component&&!A.loadComponent&&(e||A.loadChildren)&&A.outlet&&A.outlet!==Yi&&(A.component=jb),A}function FnA(i,e,A){let t=jQ(i,e._root,A?A._root:void 0);return new zQ(t,e)}function jQ(i,e,A){if(A&&i.shouldReuseRoute(e.value,A.value.snapshot)){let t=A.value;t._futureSnapshot=e.value;let n=LnA(i,e,A);return new Ml(t,n)}else{if(i.shouldAttach(e.value)){let o=i.retrieve(e.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(r=>jQ(i,r)),a}}let t=GnA(e.value),n=e.children.map(o=>jQ(i,o));return new Ml(t,n)}}function LnA(i,e,A){return e.children.map(t=>{for(let n of A.children)if(i.shouldReuseRoute(t.value,n.value.snapshot))return jQ(i,t,n);return jQ(i,t)})}function GnA(i){return new $s(new gi(i.url),new gi(i.params),new gi(i.queryParams),new gi(i.fragment),new gi(i.data),i.outlet,i.component,i)}var sB=class{redirectTo;navigationBehaviorOptions;constructor(e,A){this.redirectTo=e,this.navigationBehaviorOptions=A}},tU="ngNavigationCancelingError";function Tf(i,e){let{redirectTo:A,navigationBehaviorOptions:t}=tB(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=iU(!1,ds.Redirect);return n.url=A,n.navigationBehaviorOptions=t,n}function iU(i,e){let A=new Error(`NavigationCancelingError: ${i||""}`);return A[tU]=!0,A.cancellationCode=e,A}function KnA(i){return nU(i)&&tB(i.url)}function nU(i){return!!i&&i[tU]}var Kb=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(e,A,t,n,o){this.routeReuseStrategy=e,this.futureState=A,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let A=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(A,t,e),bb(this.futureState.root),this.activateChildRoutes(A,t,e)}deactivateChildRoutes(e,A,t){let n=XI(A);e.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,n[a],t),delete n[a]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(e,A,t){let n=e.value,o=A?A.value:null;if(n===o)if(n.component){let a=t.getContext(n.outlet);a&&this.deactivateChildRoutes(e,A,a.children)}else this.deactivateChildRoutes(e,A,t);else o&&this.deactivateRouteAndItsChildren(A,t)}deactivateRouteAndItsChildren(e,A){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,A):this.deactivateRouteAndOutlet(e,A)}detachAndStoreRouteSubtree(e,A){let t=A.getContext(e.value.outlet),n=t&&e.value.component?t.children:A,o=XI(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);if(t&&t.outlet){let a=t.outlet.detach(),r=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:r})}}deactivateRouteAndOutlet(e,A){let t=A.getContext(e.value.outlet),n=t&&e.value.component?t.children:A,o=XI(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,A,t){let n=XI(A);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new Gf(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Ff(e.value.snapshot))}activateRoutes(e,A,t){let n=e.value,o=A?A.value:null;if(bb(n),n===o)if(n.component){let a=t.getOrCreateContext(n.outlet);this.activateChildRoutes(e,A,a.children)}else this.activateChildRoutes(e,A,t);else if(n.component){let a=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let r=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),a.children.onOutletReAttached(r.contexts),a.attachRef=r.componentRef,a.route=r.route.value,a.outlet&&a.outlet.attach(r.componentRef,r.route.value),bb(r.route.value),this.activateChildRoutes(e,null,a.children)}else a.attachRef=null,a.route=n,a.outlet&&a.outlet.activateWith(n,a.injector),this.activateChildRoutes(e,null,a.children)}else this.activateChildRoutes(e,null,t)}},Of=class{path;route;constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},eB=class{component;route;constructor(e,A){this.component=e,this.route=A}};function UnA(i,e,A){let t=i._root,n=e?e._root:null;return UQ(t,n,A,[t.value])}function TnA(i){let e=i.routeConfig?i.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:i,guards:e}}function gB(i,e){let A=Symbol(),t=e.get(i,A);return t===A?typeof i=="function"&&!fN(i)?i:e.get(i):t}function UQ(i,e,A,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=XI(e);return i.children.forEach(a=>{OnA(a,o[a.value.outlet],A,t.concat([a.value]),n),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,r])=>OQ(r,A.getContext(a),n)),n}function OnA(i,e,A,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,a=e?e.value:null,r=A?A.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=JnA(a,o,o.routeConfig.runGuardsAndResolvers);s?n.canActivateChecks.push(new Of(t)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?UQ(i,e,r?r.children:null,t,n):UQ(i,e,A,t,n),s&&r&&r.outlet&&r.outlet.isActivated&&n.canDeactivateChecks.push(new eB(r.outlet.component,a))}else a&&OQ(e,r,n),n.canActivateChecks.push(new Of(t)),o.component?UQ(i,null,r?r.children:null,t,n):UQ(i,null,A,t,n);return n}function JnA(i,e,A){if(typeof A=="function")return vr(e._environmentInjector,()=>A(i,e));switch(A){case"pathParamsChange":return!Z1(i.url,e.url);case"pathParamsOrQueryParamsChange":return!Z1(i.url,e.url)||!zc(i.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Lb(i,e)||!zc(i.queryParams,e.queryParams);default:return!Lb(i,e)}}function OQ(i,e,A){let t=XI(i),n=i.value;Object.entries(t).forEach(([o,a])=>{n.component?e?OQ(a,e.children.getContext(o),A):OQ(a,null,A):OQ(a,e,A)}),n.component?e&&e.outlet&&e.outlet.isActivated?A.canDeactivateChecks.push(new eB(e.outlet.component,n)):A.canDeactivateChecks.push(new eB(null,n)):A.canDeactivateChecks.push(new eB(null,n))}function ZQ(i){return typeof i=="function"}function YnA(i){return typeof i=="boolean"}function HnA(i){return i&&ZQ(i.canLoad)}function znA(i){return i&&ZQ(i.canActivate)}function PnA(i){return i&&ZQ(i.canActivateChild)}function jnA(i){return i&&ZQ(i.canDeactivate)}function VnA(i){return i&&ZQ(i.canMatch)}function oU(i){return i instanceof hN||i?.name==="EmptyError"}var ff=Symbol("INITIAL_VALUE");function lB(){return Mi(i=>Dr(i.map(e=>e.pipe(Ro(1),Yn(ff)))).pipe(Se(e=>{for(let A of e)if(A!==!0){if(A===ff)return ff;if(A===!1||qnA(A))return A}return!0}),Bt(e=>e!==ff),Ro(1)))}function qnA(i){return tB(i)||i instanceof sB}function aU(i){return i.aborted?oe(void 0).pipe(Ro(1)):new Fi(e=>{let A=()=>{e.next(),e.complete()};return i.addEventListener("abort",A),()=>i.removeEventListener("abort",A)})}function rU(i){return yt(aU(i))}function WnA(i){return xc(e=>{let{targetSnapshot:A,currentSnapshot:t,guards:{canActivateChecks:n,canDeactivateChecks:o}}=e;return o.length===0&&n.length===0?oe($A(P({},e),{guardsResult:!0})):ZnA(o,A,t).pipe(xc(a=>a&&YnA(a)?XnA(A,n,i):oe(a)),Se(a=>$A(P({},e),{guardsResult:a})))})}function ZnA(i,e,A){return Yr(i).pipe(xc(t=>ioA(t.component,t.route,A,e)),oo(t=>t!==!0,!0))}function XnA(i,e,A){return Yr(e).pipe(VE(t=>Xp(AoA(t.route.parent,A),$nA(t.route,A),toA(i,t.path),eoA(i,t.route))),oo(t=>t!==!0,!0))}function $nA(i,e){return i!==null&&e&&e(new Lf(i)),oe(!0)}function AoA(i,e){return i!==null&&e&&e(new Nf(i)),oe(!0)}function eoA(i,e){let A=e.routeConfig?e.routeConfig.canActivate:null;if(!A||A.length===0)return oe(!0);let t=A.map(n=>Rc(()=>{let o=e._environmentInjector,a=gB(n,o),r=znA(a)?a.canActivate(e,i):vr(o,()=>a(e,i));return Ad(r).pipe(oo())}));return oe(t).pipe(lB())}function toA(i,e){let A=e[e.length-1],n=e.slice(0,e.length-1).reverse().map(o=>TnA(o)).filter(o=>o!==null).map(o=>Rc(()=>{let a=o.guards.map(r=>{let s=o.node._environmentInjector,l=gB(r,s),g=PnA(l)?l.canActivateChild(A,i):vr(s,()=>l(A,i));return Ad(g).pipe(oo())});return oe(a).pipe(lB())}));return oe(n).pipe(lB())}function ioA(i,e,A,t){let n=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!n||n.length===0)return oe(!0);let o=n.map(a=>{let r=e._environmentInjector,s=gB(a,r),l=jnA(s)?s.canDeactivate(i,e,A,t):vr(r,()=>s(i,e,A,t));return Ad(l).pipe(oo())});return oe(o).pipe(lB())}function noA(i,e,A,t,n){let o=e.canLoad;if(o===void 0||o.length===0)return oe(!0);let a=o.map(r=>{let s=gB(r,i),l=HnA(s)?s.canLoad(e,A):vr(i,()=>s(e,A)),g=Ad(l);return n?g.pipe(rU(n)):g});return oe(a).pipe(lB(),sU(t))}function sU(i){return dN(mi(e=>{if(typeof e!="boolean")throw Tf(i,e)}),Se(e=>e===!0))}function ooA(i,e,A,t,n,o){let a=e.canMatch;if(!a||a.length===0)return oe(!0);let r=a.map(s=>{let l=gB(s,i),g=VnA(l)?l.canMatch(e,A,n):vr(i,()=>l(e,A,n));return Ad(g).pipe(rU(o))});return oe(r).pipe(lB(),sU(t))}var H0=class i extends Error{segmentGroup;constructor(e){super(),this.segmentGroup=e||null,Object.setPrototypeOf(this,i.prototype)}},VQ=class i extends Error{urlTree;constructor(e){super(),this.urlTree=e,Object.setPrototypeOf(this,i.prototype)}};function aoA(i){throw new Nt(4e3,!1)}function roA(i){throw iU(!1,ds.GuardRejected)}var Ub=class{urlSerializer;urlTree;constructor(e,A){this.urlSerializer=e,this.urlTree=A}lineralizeSegments(e,A){return re(this,null,function*(){let t=[],n=A.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return t;if(n.numberOfChildren>1||!n.children[Yi])throw aoA(`${e.redirectTo}`);n=n.children[Yi]}})}applyRedirectCommands(e,A,t,n,o){return re(this,null,function*(){let a=yield soA(A,n,o);if(a instanceof Xl)throw new VQ(a);let r=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),e,t);if(a[0]==="/")throw new VQ(r);return r})}applyRedirectCreateUrlTree(e,A,t,n){let o=this.createSegmentGroup(e,A.root,t,n);return new Xl(o,this.createQueryParams(A.queryParams,this.urlTree.queryParams),A.fragment)}createQueryParams(e,A){let t={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let r=o.substring(1);t[n]=A[r]}else t[n]=o}),t}createSegmentGroup(e,A,t,n){let o=this.createSegments(e,A.segments,t,n),a={};return Object.entries(A.children).forEach(([r,s])=>{a[r]=this.createSegmentGroup(e,s,t,n)}),new yo(o,a)}createSegments(e,A,t,n){return A.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,t))}findPosParam(e,A,t){let n=t[A.path.substring(1)];if(!n)throw new Nt(4001,!1);return n}findOrReturn(e,A){let t=0;for(let n of A){if(n.path===e.path)return A.splice(t),n;t++}return e}};function soA(i,e,A){if(typeof i=="string")return Promise.resolve(i);let t=i;return Df(Ad(vr(A,()=>t(e))))}function loA(i,e){return i.providers&&!i._injector&&(i._injector=a3(i.providers,e,`Route: ${i.path}`)),i._injector??e}function Pc(i){return i.outlet||Yi}function goA(i,e){let A=i.filter(t=>Pc(t)===e);return A.push(...i.filter(t=>Pc(t)!==e)),A}var Tb={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function lU(i){return{routeConfig:i.routeConfig,url:i.url,params:i.params,queryParams:i.queryParams,fragment:i.fragment,data:i.data,outlet:i.outlet,title:i.title,paramMap:i.paramMap,queryParamMap:i.queryParamMap}}function coA(i,e,A,t,n,o,a){let r=gU(i,e,A);if(!r.matched)return oe(r);let s=lU(o(r));return t=loA(e,t),ooA(t,e,A,n,s,a).pipe(Se(l=>l===!0?r:P({},Tb)))}function gU(i,e,A){if(e.path==="")return e.pathMatch==="full"&&(i.hasChildren()||A.length>0)?P({},Tb):{matched:!0,consumedSegments:[],remainingSegments:A,parameters:{},positionalParamSegments:{}};let n=(e.matcher||NK)(A,i,e);if(!n)return P({},Tb);let o={};Object.entries(n.posParams??{}).forEach(([r,s])=>{o[r]=s.path});let a=n.consumed.length>0?P(P({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:A.slice(n.consumed.length),parameters:a,positionalParamSegments:n.posParams??{}}}function xK(i,e,A,t){return A.length>0&&IoA(i,A,t)?{segmentGroup:new yo(e,doA(t,new yo(A,i.children))),slicedSegments:[]}:A.length===0&&BoA(i,A,t)?{segmentGroup:new yo(i.segments,CoA(i,A,t,i.children)),slicedSegments:A}:{segmentGroup:new yo(i.segments,i.children),slicedSegments:A}}function CoA(i,e,A,t){let n={};for(let o of A)if(Yf(i,e,o)&&!t[Pc(o)]){let a=new yo([],{});n[Pc(o)]=a}return P(P({},t),n)}function doA(i,e){let A={};A[Yi]=e;for(let t of i)if(t.path===""&&Pc(t)!==Yi){let n=new yo([],{});A[Pc(t)]=n}return A}function IoA(i,e,A){return A.some(t=>Yf(i,e,t)&&Pc(t)!==Yi)}function BoA(i,e,A){return A.some(t=>Yf(i,e,t))}function Yf(i,e,A){return(i.hasChildren()||e.length>0)&&A.pathMatch==="full"?!1:A.path===""}function hoA(i,e,A){return e.length===0&&!i.children[A]}var Ob=class{};function EoA(i,e,A,t,n,o,a="emptyOnly",r){return re(this,null,function*(){return new Jb(i,e,A,t,n,a,o,r).recognize()})}var QoA=31,Jb=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(e,A,t,n,o,a,r,s){this.injector=e,this.configLoader=A,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=r,this.abortSignal=s,this.applyRedirects=new Ub(this.urlSerializer,this.urlTree)}noMatchError(e){return new Nt(4002,`'${e.segmentGroup}'`)}recognize(){return re(this,null,function*(){let e=xK(this.urlTree.root,[],[],this.config).segmentGroup,{children:A,rootSnapshot:t}=yield this.match(e),n=new Ml(t,A),o=new PQ("",n),a=PK(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(e){return re(this,null,function*(){let A=new rB([],Object.freeze({}),Object.freeze(P({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Yi,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,e,Yi,A),rootSnapshot:A}}catch(t){if(t instanceof VQ)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof H0?this.noMatchError(t):t}})}processSegmentGroup(e,A,t,n,o){return re(this,null,function*(){if(t.segments.length===0&&t.hasChildren())return this.processChildren(e,A,t,o);let a=yield this.processSegment(e,A,t,t.segments,n,!0,o);return a instanceof Ml?[a]:[]})}processChildren(e,A,t,n){return re(this,null,function*(){let o=[];for(let s of Object.keys(t.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let l=t.children[s],g=goA(A,s),C=yield this.processSegmentGroup(e,g,l,s,n);a.push(...C)}let r=cU(a);return uoA(r),r})}processSegment(e,A,t,n,o,a,r){return re(this,null,function*(){for(let s of A)try{return yield this.processSegmentAgainstRoute(s._injector??e,A,s,t,n,o,a,r)}catch(l){if(l instanceof H0||oU(l))continue;throw l}if(hoA(t,n,o))return new Ob;throw new H0(t)})}processSegmentAgainstRoute(e,A,t,n,o,a,r,s){return re(this,null,function*(){if(Pc(t)!==a&&(a===Yi||!Yf(n,o,t)))throw new H0(n);if(t.redirectTo===void 0)return this.matchSegmentAgainstRoute(e,n,t,o,a,s);if(this.allowRedirects&&r)return this.expandSegmentAgainstRouteUsingRedirect(e,n,A,t,o,a,s);throw new H0(n)})}expandSegmentAgainstRouteUsingRedirect(e,A,t,n,o,a,r){return re(this,null,function*(){let{matched:s,parameters:l,consumedSegments:g,positionalParamSegments:C,remainingSegments:d}=gU(A,n,o);if(!s)throw new H0(A);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>QoA&&(this.allowRedirects=!1));let B=this.createSnapshot(e,n,o,l,r);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let u=yield this.applyRedirects.applyRedirectCommands(g,n.redirectTo,C,lU(B),e),E=yield this.applyRedirects.lineralizeSegments(n,u);return this.processSegment(e,t,A,E.concat(d),a,!1,r)})}createSnapshot(e,A,t,n,o){let a=new rB(t,n,Object.freeze(P({},this.urlTree.queryParams)),this.urlTree.fragment,foA(A),Pc(A),A.component??A._loadedComponent??null,A,moA(A),e),r=Yb(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(r.params),a.data=Object.freeze(r.data),a}matchSegmentAgainstRoute(e,A,t,n,o,a){return re(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let r=S=>this.createSnapshot(e,t,S.consumedSegments,S.parameters,a),s=yield Df(coA(A,t,n,e,this.urlSerializer,r,this.abortSignal));if(t.path==="**"&&(A.children={}),!s?.matched)throw new H0(A);e=t._injector??e;let{routes:l}=yield this.getChildConfig(e,t,n),g=t._loadedInjector??e,{parameters:C,consumedSegments:d,remainingSegments:B}=s,u=this.createSnapshot(e,t,d,C,a),{segmentGroup:E,slicedSegments:f}=xK(A,d,B,l);if(f.length===0&&E.hasChildren()){let S=yield this.processChildren(g,l,E,u);return new Ml(u,S)}if(l.length===0&&f.length===0)return new Ml(u,[]);let m=Pc(t)===o,v=yield this.processSegment(g,l,E,f,m?Yi:o,!0,u);return new Ml(u,v instanceof Ml?[v]:[])})}getChildConfig(e,A,t){return re(this,null,function*(){if(A.children)return{routes:A.children,injector:e};if(A.loadChildren){if(A._loadedRoutes!==void 0){let o=A._loadedNgModuleFactory;return o&&!A._loadedInjector&&(A._loadedInjector=o.create(e).injector),{routes:A._loadedRoutes,injector:A._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Df(noA(e,A,t,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(e,A);return A._loadedRoutes=o.routes,A._loadedInjector=o.injector,A._loadedNgModuleFactory=o.factory,o}throw roA(A)}return{routes:[],injector:e}})}};function uoA(i){i.sort((e,A)=>e.value.outlet===Yi?-1:A.value.outlet===Yi?1:e.value.outlet.localeCompare(A.value.outlet))}function poA(i){let e=i.value.routeConfig;return e&&e.path===""}function cU(i){let e=[],A=new Set;for(let t of i){if(!poA(t)){e.push(t);continue}let n=e.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),A.add(n)):e.push(t)}for(let t of A){let n=cU(t.children);e.push(new Ml(t.value,n))}return e.filter(t=>!A.has(t))}function foA(i){return i.data||{}}function moA(i){return i.resolve||{}}function woA(i,e,A,t,n,o,a){return xc(r=>re(null,null,function*(){let{state:s,tree:l}=yield EoA(i,e,A,t,r.extractedUrl,n,o,a);return $A(P({},r),{targetSnapshot:s,urlAfterRedirects:l})}))}function yoA(i){return xc(e=>{let{targetSnapshot:A,guards:{canActivateChecks:t}}=e;if(!t.length)return oe(e);let n=new Set(t.map(r=>r.route)),o=new Set;for(let r of n)if(!o.has(r))for(let s of CU(r))o.add(s);let a=0;return Yr(o).pipe(VE(r=>n.has(r)?DoA(r,A,i):(r.data=Yb(r,r.parent,i).resolve,oe(void 0))),mi(()=>a++),FD(1),xc(r=>a===o.size?oe(e):Br))})}function CU(i){let e=i.children.map(A=>CU(A)).flat();return[i,...e]}function DoA(i,e,A){let t=i.routeConfig,n=i._resolve;return t?.title!==void 0&&!AU(t)&&(n[qQ]=t.title),Rc(()=>(i.data=Yb(i,i.parent,A).resolve,voA(n,i,e).pipe(Se(o=>(i._resolvedData=o,i.data=P(P({},i.data),o),null)))))}function voA(i,e,A){let t=Sb(i);if(t.length===0)return oe({});let n={};return Yr(t).pipe(xc(o=>boA(i[o],e,A).pipe(oo(),mi(a=>{if(a instanceof sB)throw Tf(new z0,a);n[o]=a}))),FD(1),Se(()=>n),aa(o=>oU(o)?Br:Wp(o)))}function boA(i,e,A){let t=e._environmentInjector,n=gB(i,t),o=n.resolve?n.resolve(e,A):vr(t,()=>n(e,A));return Ad(o)}function RK(i){return Mi(e=>{let A=i(e);return A?Yr(A).pipe(Se(()=>e)):oe(e)})}var qb=(()=>{class i{buildTitle(A){let t,n=A.root;for(;n!==void 0;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find(o=>o.outlet===Yi);return t}getResolvedTitleForRoute(A){return A.data[qQ]}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>w(dU),providedIn:"root"})}return i})(),dU=(()=>{class i extends qb{title;constructor(A){super(),this.title=A}updateTitle(A){let t=this.buildTitle(A);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||i)(Wo(qN))};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),id=new MA("",{factory:()=>({})}),cB=new MA(""),Hf=(()=>{class i{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=w(xN);loadComponent(A,t){return re(this,null,function*(){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Promise.resolve(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=re(this,null,function*(){try{let o=yield LK(vr(A,()=>t.loadComponent())),a=yield hU(BU(o));return this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a,a}finally{this.componentLoaders.delete(t)}});return this.componentLoaders.set(t,n),n})}loadChildren(A,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return Promise.resolve({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let n=re(this,null,function*(){try{let o=yield IU(t,this.compiler,A,this.onLoadEndListener);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(t)}});return this.childrenLoaders.set(t,n),n}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function IU(i,e,A,t){return re(this,null,function*(){let n=yield LK(vr(A,()=>i.loadChildren())),o=yield hU(BU(n)),a;o instanceof bN||Array.isArray(o)?a=o:a=yield e.compileModuleAsync(o),t&&t(i);let r,s,l=!1,g;return Array.isArray(a)?(s=a,l=!0):(r=a.create(A).injector,g=a,s=r.get(cB,[],{optional:!0,self:!0}).flat()),{routes:s.map(Vb),injector:r,factory:g}})}function MoA(i){return i&&typeof i=="object"&&"default"in i}function BU(i){return MoA(i)?i.default:i}function hU(i){return re(this,null,function*(){return i})}var zf=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>w(SoA),providedIn:"root"})}return i})(),SoA=(()=>{class i{shouldProcessUrl(A){return!0}extract(A){return A}merge(A,t){return A}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Wb=new MA(""),Zb=new MA("");function EU(i,e,A){let t=i.get(Zb),n=i.get(ci);if(!n.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,a=new Promise(l=>{o=l}),r=n.startViewTransition(()=>(o(),koA(i)));r.updateCallbackDone.catch(l=>{}),r.ready.catch(l=>{}),r.finished.catch(l=>{});let{onViewTransitionCreated:s}=t;return s&&vr(i,()=>s({transition:r,from:e,to:A})),a}function koA(i){return new Promise(e=>{ao({read:()=>setTimeout(e)},{injector:i})})}var _oA=()=>{},Xb=new MA(""),Pf=(()=>{class i{currentNavigation=mA(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=mA(null);events=new ne;transitionAbortWithErrorSubject=new ne;configLoader=w(Hf);environmentInjector=w(Hr);destroyRef=w(Er);urlSerializer=w(ed);rootContexts=w(td);location=w(Gc);inputBindingEnabled=w(WQ,{optional:!0})!==null;titleStrategy=w(qb);options=w(id,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=w(zf);createViewTransition=w(Wb,{optional:!0});navigationErrorHandler=w(Xb,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>oe(void 0);rootComponentType=null;destroyed=!1;constructor(){let A=n=>this.events.next(new xf(n)),t=n=>this.events.next(new Rf(n));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=A,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(A){let t=++this.navigationId;wa(()=>{this.transitions?.next($A(P({},A),{extractedUrl:this.urlHandlingStrategy.extract(A.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:t,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(A){return this.transitions=new gi(null),this.transitions.pipe(Bt(t=>t!==null),Mi(t=>{let n=!1,o=new AbortController,a=()=>!n&&this.currentTransition?.id===t.id;return oe(t).pipe(Mi(r=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",ds.SupersededByNewNavigation),Br;this.currentTransition=t;let s=this.lastSuccessfulNavigation();this.currentNavigation.set({id:r.id,initialUrl:r.rawUrl,extractedUrl:r.extractedUrl,targetBrowserUrl:typeof r.extras.browserUrl=="string"?this.urlSerializer.parse(r.extras.browserUrl):r.extras.browserUrl,trigger:r.source,extras:r.extras,previousNavigation:s?$A(P({},s),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:r.routesRecognizeHandler,beforeActivateHandler:r.beforeActivateHandler});let l=!A.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),g=r.extras.onSameUrlNavigation??A.onSameUrlNavigation;if(!l&&g!=="reload")return this.events.next(new jc(r.id,this.urlSerializer.serialize(r.rawUrl),"",iB.IgnoredSameUrlNavigation)),r.resolve(!1),Br;if(this.urlHandlingStrategy.shouldProcessUrl(r.rawUrl))return oe(r).pipe(Mi(C=>(this.events.next(new i2(C.id,this.urlSerializer.serialize(C.extractedUrl),C.source,C.restoredState)),C.id!==this.navigationId?Br:Promise.resolve(C))),woA(this.environmentInjector,this.configLoader,this.rootComponentType,A.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),mi(C=>{t.targetSnapshot=C.targetSnapshot,t.urlAfterRedirects=C.urlAfterRedirects,this.currentNavigation.update(d=>(d.finalUrl=C.urlAfterRedirects,d)),this.events.next(new HQ)}),Mi(C=>Yr(t.routesRecognizeHandler.deferredHandle??oe(void 0)).pipe(Se(()=>C))),mi(()=>{let C=new YQ(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(C)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(r.currentRawUrl)){let{id:C,extractedUrl:d,source:B,restoredState:u,extras:E}=r,f=new i2(C,this.urlSerializer.serialize(d),B,u);this.events.next(f);let m=XK(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=t=$A(P({},r),{targetSnapshot:m,urlAfterRedirects:d,extras:$A(P({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(v=>(v.finalUrl=d,v)),oe(t)}else return this.events.next(new jc(r.id,this.urlSerializer.serialize(r.extractedUrl),"",iB.IgnoredByUrlHandlingStrategy)),r.resolve(!1),Br}),Se(r=>{let s=new Mf(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);return this.events.next(s),this.currentTransition=t=$A(P({},r),{guards:UnA(r.targetSnapshot,r.currentSnapshot,this.rootContexts)}),t}),WnA(r=>this.events.next(r)),Mi(r=>{if(t.guardsResult=r.guardsResult,r.guardsResult&&typeof r.guardsResult!="boolean")throw Tf(this.urlSerializer,r.guardsResult);let s=new Sf(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot,!!r.guardsResult);if(this.events.next(s),!a())return Br;if(!r.guardsResult)return this.cancelNavigationTransition(r,"",ds.GuardRejected),Br;if(r.guards.canActivateChecks.length===0)return oe(r);let l=new kf(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);if(this.events.next(l),!a())return Br;let g=!1;return oe(r).pipe(yoA(this.paramsInheritanceStrategy),mi({next:()=>{g=!0;let C=new _f(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(C)},complete:()=>{g||this.cancelNavigationTransition(r,"",ds.NoDataFromResolver)}}))}),RK(r=>{let s=g=>{let C=[];if(g.routeConfig?._loadedComponent)g.component=g.routeConfig?._loadedComponent;else if(g.routeConfig?.loadComponent){let d=g._environmentInjector;C.push(this.configLoader.loadComponent(d,g.routeConfig).then(B=>{g.component=B}))}for(let d of g.children)C.push(...s(d));return C},l=s(r.targetSnapshot.root);return l.length===0?oe(r):Yr(Promise.all(l).then(()=>r))}),RK(()=>this.afterPreactivation()),Mi(()=>{let{currentSnapshot:r,targetSnapshot:s}=t,l=this.createViewTransition?.(this.environmentInjector,r.root,s.root);return l?Yr(l).pipe(Se(()=>t)):oe(t)}),Ro(1),Mi(r=>{let s=FnA(A.routeReuseStrategy,r.targetSnapshot,r.currentRouterState);this.currentTransition=t=r=$A(P({},r),{targetRouterState:s}),this.currentNavigation.update(g=>(g.targetRouterState=s,g)),this.events.next(new oB);let l=t.beforeActivateHandler.deferredHandle;return l?Yr(l.then(()=>r)):oe(r)}),mi(r=>{new Kb(A.routeReuseStrategy,t.targetRouterState,t.currentRouterState,s=>this.events.next(s),this.inputBindingEnabled).activate(this.rootContexts),a()&&(n=!0,this.currentNavigation.update(s=>(s.abort=_oA,s)),this.lastSuccessfulNavigation.set(wa(this.currentNavigation)),this.events.next(new Jg(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects))),this.titleStrategy?.updateTitle(r.targetRouterState.snapshot),r.resolve(!0))}),yt(aU(o.signal).pipe(Bt(()=>!n&&!t.targetRouterState),mi(()=>{this.cancelNavigationTransition(t,o.signal.reason+"",ds.Aborted)}))),mi({complete:()=>{n=!0}}),yt(this.transitionAbortWithErrorSubject.pipe(mi(r=>{throw r}))),A3(()=>{o.abort(),n||this.cancelNavigationTransition(t,"",ds.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),aa(r=>{if(n=!0,this.destroyed)return t.resolve(!1),Br;if(nU(r))this.events.next(new Zl(t.id,this.urlSerializer.serialize(t.extractedUrl),r.message,r.cancellationCode)),KnA(r)?this.events.next(new aB(r.url,r.navigationBehaviorOptions)):t.resolve(!1);else{let s=new $1(t.id,this.urlSerializer.serialize(t.extractedUrl),r,t.targetSnapshot??void 0);try{let l=vr(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(l instanceof sB){let{message:g,cancellationCode:C}=Tf(this.urlSerializer,l);this.events.next(new Zl(t.id,this.urlSerializer.serialize(t.extractedUrl),g,C)),this.events.next(new aB(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(s),r}catch(l){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(l)}}return Br}))}))}cancelNavigationTransition(A,t,n){let o=new Zl(A.id,this.urlSerializer.serialize(A.extractedUrl),t,n);this.events.next(o),A.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let A=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=wa(this.currentNavigation),n=t?.targetBrowserUrl??t?.extractedUrl;return A.toString()!==n?.toString()&&!t?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function xoA(i){return i!==AB}var QU=new MA("");var uU=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>w(RoA),providedIn:"root"})}return i})(),Jf=class{shouldDetach(e){return!1}store(e,A){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,A){return e.routeConfig===A.routeConfig}shouldDestroyInjector(e){return!0}},RoA=(()=>{class i extends Jf{static \u0275fac=(()=>{let A;return function(n){return(A||(A=Li(i)))(n||i)}})();static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),$b=(()=>{class i{urlSerializer=w(ed);options=w(id,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=w(Gc);urlHandlingStrategy=w(zf);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Xl;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:A,initialUrl:t,targetBrowserUrl:n}){let o=A!==void 0?this.urlHandlingStrategy.merge(A,t):t,a=n??o;return a instanceof Xl?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:A,finalUrl:t,initialUrl:n}){t&&A?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,n),this.routerState=A):this.rawUrlTree=n}routerState=XK(null,w(Hr));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:()=>w(NoA),providedIn:"root"})}return i})(),NoA=(()=>{class i extends $b{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(A){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{A(t.url,t.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(A,t){A instanceof i2?this.updateStateMemento():A instanceof jc?this.commitTransition(t):A instanceof YQ?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):A instanceof oB?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):A instanceof Zl&&!ZK(A)?this.restoreHistory(t):A instanceof $1?this.restoreHistory(t,!0):A instanceof Jg&&(this.lastSuccessfulId=A.id,this.currentPageId=this.browserPageId)}setBrowserUrl(A,{extras:t,id:n}){let{replaceUrl:o,state:a}=t;if(this.location.isCurrentPathEqualTo(A)||o){let r=this.browserPageId,s=P(P({},a),this.generateNgRouterState(n,r));this.location.replaceState(A,"",s)}else{let r=P(P({},a),this.generateNgRouterState(n,this.browserPageId+1));this.location.go(A,"",r)}}restoreHistory(A,t=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,o=this.currentPageId-n;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===A.finalUrl&&o===0&&(this.resetInternalState(A),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(A),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:A}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,A??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(A,t){return this.canceledNavigationResolution==="computed"?{navigationId:A,\u0275routerPageId:t}:{navigationId:A}}static \u0275fac=(()=>{let A;return function(n){return(A||(A=Li(i)))(n||i)}})();static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function jf(i,e){i.events.pipe(Bt(A=>A instanceof Jg||A instanceof Zl||A instanceof $1||A instanceof jc),Se(A=>A instanceof Jg||A instanceof jc?0:(A instanceof Zl?A.code===ds.Redirect||A.code===ds.SupersededByNewNavigation:!1)?2:1),Bt(A=>A!==2),Ro(1)).subscribe(()=>{e()})}var Is=(()=>{class i{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=w(MN);stateManager=w($b);options=w(id,{optional:!0})||{};pendingTasks=w(yN);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=w(Pf);urlSerializer=w(ed);location=w(Gc);urlHandlingStrategy=w(zf);injector=w(Hr);_events=new ne;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=w(uU);injectorCleanup=w(QU,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=w(cB,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!w(WQ,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:A=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Oo;subscribeToNavigationEvents(){let A=this.navigationTransitions.events.subscribe(t=>{try{let n=this.navigationTransitions.currentTransition,o=wa(this.navigationTransitions.currentNavigation);if(n!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof Zl&&t.code!==ds.Redirect&&t.code!==ds.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof Jg)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(t instanceof aB){let a=t.navigationBehaviorOptions,r=this.urlHandlingStrategy.merge(t.url,n.currentRawUrl),s=P({scroll:n.extras.scroll,browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||xoA(n.source)},a);this.scheduleNavigation(r,AB,null,s,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}RnA(t)&&this._events.next(t)}catch(n){this.navigationTransitions.transitionAbortWithErrorSubject.next(n)}});this.eventsSubscription.add(A)}resetRootComponentType(A){this.routerState.root.component=A,this.navigationTransitions.rootComponentType=A}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),AB,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((A,t,n,o)=>{this.navigateToSyncWithBrowser(A,n,t,o)})}navigateToSyncWithBrowser(A,t,n,o){let a=n?.navigationId?n:null;if(n){let s=P({},n);delete s.navigationId,delete s.\u0275routerPageId,Object.keys(s).length!==0&&(o.state=s)}let r=this.parseUrl(A);this.scheduleNavigation(r,t,a,o).catch(s=>{this.disposed||this.injector.get(LD)(s)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return wa(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(A){this.config=A.map(Vb),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(A,t={}){let{relativeTo:n,queryParams:o,fragment:a,queryParamsHandling:r,preserveFragment:s}=t,l=s?this.currentUrlTree.fragment:a,g=null;switch(r??this.options.defaultQueryParamsHandling){case"merge":g=P(P({},this.currentUrlTree.queryParams),o);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=o||null}g!==null&&(g=this.removeEmptyProps(g));let C;try{let d=n?n.snapshot:this.routerState.snapshot.root;C=jK(d)}catch(d){(typeof A[0]!="string"||A[0][0]!=="/")&&(A=[]),C=this.currentUrlTree.root}return VK(C,A,g,l??null,this.urlSerializer)}navigateByUrl(A,t={skipLocationChange:!1}){let n=tB(A)?A:this.parseUrl(A),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,AB,null,t)}navigate(A,t={skipLocationChange:!1}){return FoA(A),this.navigateByUrl(this.createUrlTree(A,t),t)}serializeUrl(A){return this.urlSerializer.serialize(A)}parseUrl(A){try{return this.urlSerializer.parse(A)}catch(t){return this.console.warn(pN(4018,!1)),this.urlSerializer.parse("/")}}isActive(A,t){let n;if(t===!0?n=P({},KK):t===!1?n=P({},kb):n=P(P({},kb),t),tB(A))return bK(this.currentUrlTree,A,n);let o=this.parseUrl(A);return bK(this.currentUrlTree,o,n)}removeEmptyProps(A){return Object.entries(A).reduce((t,[n,o])=>(o!=null&&(t[n]=o),t),{})}scheduleNavigation(A,t,n,o,a){if(this.disposed)return Promise.resolve(!1);let r,s,l;a?(r=a.resolve,s=a.reject,l=a.promise):l=new Promise((C,d)=>{r=C,s=d});let g=this.pendingTasks.add();return jf(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:A,extras:o,resolve:r,reject:s,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function FoA(i){for(let e=0;e<i.length;e++)if(i[e]==null)throw new Nt(4008,!1)}var XQ=class{};var pU=(()=>{class i{router;injector;preloadingStrategy;loader;subscription;constructor(A,t,n,o){this.router=A,this.injector=t,this.preloadingStrategy=n,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Bt(A=>A instanceof Jg),VE(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(A,t){let n=[];for(let o of t){o.providers&&!o._injector&&(o._injector=a3(o.providers,A,""));let a=o._injector??A;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let r=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&n.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&n.push(this.processRoutes(r,o.children??o._loadedRoutes))}return Yr(n).pipe(ND())}preloadConfig(A,t){return this.preloadingStrategy.preload(t,()=>{if(A.destroyed)return oe(null);let n;t.loadChildren&&t.canLoad===void 0?n=Yr(this.loader.loadChildren(A,t)):n=oe(null);let o=n.pipe(xc(a=>a===null?oe(void 0):(t._loadedRoutes=a.routes,t._loadedInjector=a.injector,t._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??A,a.routes))));if(t.loadComponent&&!t._loadedComponent){let a=this.loader.loadComponent(A,t);return Yr([o,a]).pipe(ND())}else return o})}static \u0275fac=function(t){return new(t||i)(Wo(Is),Wo(Hr),Wo(XQ),Wo(Hf))};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),fU=new MA(""),GoA=(()=>{class i{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=AB;restoredId=0;store={};urlSerializer=w(ed);zone=w(We);viewportScroller=w(JD);transitions=w(Pf);constructor(A){this.options=A,this.options.scrollPositionRestoration||="disabled",this.options.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(A=>{A instanceof i2?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=A.navigationTrigger,this.restoredId=A.restoredState?A.restoredState.navigationId:0):A instanceof Jg?(this.lastId=A.id,this.scheduleScrollEvent(A,this.urlSerializer.parse(A.urlAfterRedirects).fragment)):A instanceof jc&&A.code===iB.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(A,this.urlSerializer.parse(A.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(A=>{if(!(A instanceof nB)||A.scrollBehavior==="manual")return;let t={behavior:"instant"};A.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],t):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(A.position,t):A.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(A.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(A,t){let n=wa(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>re(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new nB(A,this.lastSource==="popstate"?this.store[this.restoredId]:null,t,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(t){o3()};static \u0275prov=jA({token:i,factory:i.\u0275fac})}return i})();function KoA(){return w(Is).routerState.root}function $Q(i,e){return{\u0275kind:i,\u0275providers:e}}function UoA(){let i=w(St);return e=>{let A=i.get(F0);if(e!==A.components[0])return;let t=i.get(Is),n=i.get(mU);i.get(e7)===1&&t.initialNavigation(),i.get(DU,null,{optional:!0})?.setUpPreloading(),i.get(fU,null,{optional:!0})?.init(),t.resetRootComponentType(A.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var mU=new MA("",{factory:()=>new ne}),e7=new MA("",{factory:()=>1});function wU(){let i=[{provide:vN,useValue:!0},{provide:e7,useValue:0},UD(()=>{let e=w(St);return e.get(TN,Promise.resolve()).then(()=>new Promise(t=>{let n=e.get(Is),o=e.get(mU);jf(n,()=>{t(!0)}),e.get(Pf).afterPreactivation=()=>(t(!0),o.closed?oe(void 0):o),n.initialNavigation()}))})];return $Q(2,i)}function yU(){let i=[UD(()=>{w(Is).setUpLocationChangeListener()}),{provide:e7,useValue:2}];return $Q(3,i)}var DU=new MA("");function vU(i){return $Q(0,[{provide:DU,useExisting:pU},{provide:XQ,useExisting:i}])}function bU(){return $Q(8,[Pb,{provide:WQ,useExisting:Pb}])}function MU(i){n3("NgRouterViewTransitions");let e=[{provide:Wb,useValue:EU},{provide:Zb,useValue:P({skipNextTransition:!!i?.skipInitialTransition},i)}];return $Q(9,e)}var SU=[Gc,{provide:ed,useClass:z0},Is,td,{provide:$s,useFactory:KoA},Hf,[]],Vf=(()=>{class i{constructor(){}static forRoot(A,t){return{ngModule:i,providers:[SU,[],{provide:cB,multi:!0,useValue:A},[],t?.errorHandler?{provide:Xb,useValue:t.errorHandler}:[],{provide:id,useValue:t||{}},t?.useHash?OoA():JoA(),ToA(),t?.preloadingStrategy?vU(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?YoA(t):[],t?.bindToComponentInputs?bU().\u0275providers:[],t?.enableViewTransitions?MU().\u0275providers:[],HoA()]}}static forChild(A){return{ngModule:i,providers:[{provide:cB,multi:!0,useValue:A}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=et({type:i});static \u0275inj=At({})}return i})();function ToA(){return{provide:fU,useFactory:()=>{let i=w(JD),e=w(id);return e.scrollOffset&&i.setOffset(e.scrollOffset),new GoA(e)}}}function OoA(){return{provide:OD,useClass:JN}}function JoA(){return{provide:OD,useClass:ON}}function YoA(i){return[i.initialNavigation==="disabled"?yU().\u0275providers:[],i.initialNavigation==="enabledBlocking"?wU().\u0275providers:[]]}var A7=new MA("");function HoA(){return[{provide:A7,useFactory:UoA},{provide:SN,multi:!0,useExisting:A7}]}var joA=["*"];var VoA=new MA("MAT_CARD_CONFIG"),qf=(()=>{class i{appearance;constructor(){let A=w(VoA,{optional:!0});this.appearance=A?.appearance||"raised"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vA({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(t,n){t&2&&_A("mat-mdc-card-outlined",n.appearance==="outlined")("mdc-card--outlined",n.appearance==="outlined")("mat-mdc-card-filled",n.appearance==="filled")("mdc-card--filled",n.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:joA,decls:1,vars:0,template:function(t,n){t&1&&(Ot(),Ze(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(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-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(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.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-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-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} |
| 77 | `],encapsulation:2,changeDetection:0})}return i})();var kU=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=et({type:i});static \u0275inj=At({imports:[Di]})}return i})();var Au=class{};function eu(i){return i&&typeof i.connect=="function"&&!(i instanceof IN)}var Yg=(function(i){return i[i.REPLACED=0]="REPLACED",i[i.INSERTED=1]="INSERTED",i[i.MOVED=2]="MOVED",i[i.REMOVED=3]="REMOVED",i})(Yg||{}),Wf=class{viewCacheSize=20;_viewCache=[];applyChanges(e,A,t,n,o){e.forEachOperation((a,r,s)=>{let l,g;if(a.previousIndex==null){let C=()=>t(a,r,s);l=this._insertView(C,s,A,n(a)),g=l?Yg.INSERTED:Yg.REPLACED}else s==null?(this._detachAndCacheView(r,A),g=Yg.REMOVED):(l=this._moveView(r,s,A,n(a)),g=Yg.MOVED);o&&o({context:l?.context,operation:g,record:a})})}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,A,t,n){let o=this._insertViewFromCache(A,t);if(o){o.context.$implicit=n;return}let a=e();return t.createEmbeddedView(a.templateRef,a.context,a.index)}_detachAndCacheView(e,A){let t=A.detach(e);this._maybeCacheView(t,A)}_moveView(e,A,t,n){let o=t.get(e);return t.move(o,A),o.context.$implicit=n,o}_maybeCacheView(e,A){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(e);else{let t=A.indexOf(e);t===-1?e.destroy():A.remove(t)}}_insertViewFromCache(e,A){let t=this._viewCache.pop();return t&&A.insert(t,e),t||null}};var Zf=class{applyChanges(e,A,t,n,o){e.forEachOperation((a,r,s)=>{let l,g;if(a.previousIndex==null){let C=t(a,r,s);l=A.createEmbeddedView(C.templateRef,C.context,C.index),g=Yg.INSERTED}else s==null?(A.remove(r),g=Yg.REMOVED):(l=A.get(r),A.move(l,s),g=Yg.MOVED);o&&o({context:l?.context,operation:g,record:a})})}detach(){}};var P0=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new ne;constructor(e=!1,A,t=!0,n){this._multiple=e,this._emitChanges=t,this.compareWith=n,A&&A.length&&(e?A.forEach(o=>this._markSelected(o)):this._markSelected(A[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(t=>this._markSelected(t));let A=this._hasQueuedChanges();return this._emitChangeEvent(),A}deselect(...e){this._verifyValueAssignment(e),e.forEach(t=>this._unmarkSelected(t));let A=this._hasQueuedChanges();return this._emitChangeEvent(),A}setSelection(...e){this._verifyValueAssignment(e);let A=this.selected,t=new Set(e.map(o=>this._getConcreteValue(o)));e.forEach(o=>this._markSelected(o)),A.filter(o=>!t.has(this._getConcreteValue(o,t))).forEach(o=>this._unmarkSelected(o));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let A=this._hasQueuedChanges();return e&&this._emitChangeEvent(),A}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,A){if(this.compareWith){A=A??this._selection;for(let t of A)if(this.compareWith(e,t))return t;return e}else return e}};var Xf=(()=>{class i{_animationsDisabled=In();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vA({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,n){t&2&&_A("mat-pseudo-checkbox-indeterminate",n.state==="indeterminate")("mat-pseudo-checkbox-checked",n.state==="checked")("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal",n.appearance==="minimal")("mat-pseudo-checkbox-full",n.appearance==="full")("_mat-animation-noopable",n._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,n){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} |
| 78 | `],encapsulation:2,changeDetection:0})}return i})();var qoA=["button"],WoA=["*"];function ZoA(i,e){if(i&1&&(I(0,"div",2),lA(1,"mat-pseudo-checkbox",6),h()),i&2){let A=p();Q(),H("disabled",A.disabled)}}var _U=new MA("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:()=>({hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1})}),xU=new MA("MatButtonToggleGroup"),XoA={provide:cs,useExisting:Va(()=>t7),multi:!0},$f=class{source;value;constructor(e,A){this.source=e,this.value=A}},t7=(()=>{class i{_changeDetector=w(Mt);_dir=w(No,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(A){this._name=A,this._markButtonsForCheck()}_name=w(Dn).getId("mat-button-toggle-group-");vertical=!1;get value(){let A=this._selectionModel?this._selectionModel.selected:[];return this.multiple?A.map(t=>t.value):A[0]?A[0].value:void 0}set value(A){this._setSelectionByValue(A),this.valueChange.emit(this.value)}valueChange=new FA;get selected(){let A=this._selectionModel?this._selectionModel.selected:[];return this.multiple?A:A[0]||null}get multiple(){return this._multiple}set multiple(A){this._multiple=A,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(A){this._disabled=A,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(A){this._disabledInteractive=A,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new FA;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(A){this._hideSingleSelectionIndicator=A,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(A){this._hideMultipleSelectionIndicator=A,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let A=w(_U,{optional:!0});this.appearance=A&&A.appearance?A.appearance:"standard",this._hideSingleSelectionIndicator=A?.hideSingleSelectionIndicator??!1,this._hideMultipleSelectionIndicator=A?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new P0(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(A=>A.checked)),this.multiple||this._initializeTabIndex()}writeValue(A){this.value=A,this._changeDetector.markForCheck()}registerOnChange(A){this._controlValueAccessorChangeFn=A}registerOnTouched(A){this._onTouched=A}setDisabledState(A){this.disabled=A}_keydown(A){if(this.multiple||this.disabled||Sa(A))return;let n=A.target.id,o=this._buttonToggles.toArray().findIndex(r=>r.buttonId===n),a=null;switch(A.keyCode){case 32:case 13:a=this._buttonToggles.get(o)||null;break;case 38:a=this._getNextButton(o,-1);break;case 37:a=this._getNextButton(o,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(o,1);break;case 39:a=this._getNextButton(o,this.dir==="ltr"?1:-1);break;default:return}a&&(A.preventDefault(),a._onButtonClick(),a.focus())}_emitChangeEvent(A){let t=new $f(A,this.value);this._rawValue=t.value,this._controlValueAccessorChangeFn(t.value),this.change.emit(t)}_syncButtonToggle(A,t,n=!1,o=!1){!this.multiple&&this.selected&&!A.checked&&(this.selected.checked=!1),this._selectionModel?t?this._selectionModel.select(A):this._selectionModel.deselect(A):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(A,n)):this._updateModelValue(A,n)}_isSelected(A){return this._selectionModel&&this._selectionModel.isSelected(A)}_isPrechecked(A){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(t=>A.value!=null&&t===A.value):A.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(A=>{A.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let A=0;A<this._buttonToggles.length;A++){let t=this._buttonToggles.get(A);if(!t.disabled){t.tabIndex=0;break}}}_getNextButton(A,t){let n=this._buttonToggles;for(let o=1;o<=n.length;o++){let a=(A+t*o+n.length)%n.length,r=n.get(a);if(r&&!r.disabled)return r}return null}_setSelectionByValue(A){if(this._rawValue=A,!this._buttonToggles)return;let t=this._buttonToggles.toArray();if(this.multiple&&A?(Array.isArray(A),this._clearSelection(),A.forEach(n=>this._selectValue(n,t))):(this._clearSelection(),this._selectValue(A,t)),!this.multiple&&t.every(n=>n.tabIndex===-1)){for(let n of t)if(!n.disabled){n.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(A=>{A.checked=!1,this.multiple||(A.tabIndex=-1)})}_selectValue(A,t){for(let n of t)if(n.value===A){n.checked=!0,this._selectionModel.select(n),this.multiple||(n.tabIndex=0);break}}_updateModelValue(A,t){t&&this._emitChangeEvent(A),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(A=>A._markForCheck())}static \u0275fac=function(t){return new(t||i)};static \u0275dir=VA({type:i,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,n,o){if(t&1&&ra(o,Am,5),t&2){let a;se(a=le())&&(n._buttonToggles=a)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(t,n){t&1&&U("keydown",function(a){return n._keydown(a)}),t&2&&(ie("role",n.multiple?"group":"radiogroup")("aria-disabled",n.disabled),_A("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard",n.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",Qe],value:"value",multiple:[2,"multiple","multiple",Qe],disabled:[2,"disabled","disabled",Qe],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Qe],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Qe],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",Qe]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[pt([XoA,{provide:xU,useExisting:i}])]})}return i})(),Am=(()=>{class i{_changeDetectorRef=w(Mt);_elementRef=w(ce);_focusMonitor=w(rr);_idGenerator=w(Dn);_animationDisabled=In();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(A){this._tabIndex.set(A)}_tabIndex;disableRipple=!1;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(A){this._appearance=A}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(A){A!==this._checked&&(this._checked=A,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(A){this._disabled=A}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(A){this._disabledInteractive=A}_disabledInteractive;change=new FA;constructor(){w(Eo).load(Qr);let A=w(xU,{optional:!0}),t=w(new Ys("tabindex"),{optional:!0})||"",n=w(_U,{optional:!0});this._tabIndex=mA(parseInt(t)||0),this.buttonToggleGroup=A,this._appearance=n&&n.appearance?n.appearance:"standard",this._disabledInteractive=n?.disabledInteractive??!1}ngOnInit(){let A=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),A&&(A._isPrechecked(this)?this.checked=!0:A._isSelected(this)!==this._checked&&A._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let A=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),A&&A._isSelected(this)&&A._syncButtonToggle(this,!1,!1,!0)}focus(A){this._buttonElement.nativeElement.focus(A)}_onButtonClick(){if(this.disabled)return;let A=this.isSingleSelector()?!0:!this._checked;if(A!==this._checked&&(this._checked=A,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let t=this.buttonToggleGroup._buttonToggles.find(n=>n.tabIndex===0);t&&(t.tabIndex=-1),this.tabIndex=0}this.change.emit(new $f(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vA({type:i,selectors:[["mat-button-toggle"]],viewQuery:function(t,n){if(t&1&&Wt(qoA,5),t&2){let o;se(o=le())&&(n._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(t,n){t&1&&U("focus",function(){return n.focus()}),t&2&&(ie("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),_A("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-disabled-interactive",n.disabledInteractive)("mat-button-toggle-appearance-standard",n.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",Qe],appearance:"appearance",checked:[2,"checked","checked",Qe],disabled:[2,"disabled","disabled",Qe],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Qe]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:WoA,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(t,n){if(t&1&&(Ot(),I(0,"button",1,0),U("click",function(){return n._onButtonClick()}),T(2,ZoA,2,1,"div",2),I(3,"span",3),Ze(4),h()(),lA(5,"span",4)(6,"span",5)),t&2){let o=Bi(1);H("id",n.buttonId)("disabled",n.disabled&&!n.disabledInteractive||null),ie("role",n.isSingleSelector()?"radio":"button")("tabindex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex)("aria-pressed",n.isSingleSelector()?null:n.checked)("aria-checked",n.isSingleSelector()?n.checked:null)("name",n._getButtonName())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-disabled",n.disabled&&n.disabledInteractive?"true":null),Q(2),O(n.buttonToggleGroup&&(!n.buttonToggleGroup.multiple&&!n.buttonToggleGroup.hideSingleSelectionIndicator||n.buttonToggleGroup.multiple&&!n.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),Q(4),H("matRippleTrigger",o)("matRippleDisabled",n.disableRipple||n.disabled)}},dependencies:[Cs,Xf],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))} |
| 79 | `],encapsulation:2,changeDetection:0})}return i})(),RU=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=et({type:i});static \u0275inj=At({imports:[Jc,Am,Di]})}return i})();var $oA=20,qc=(()=>{class i{_ngZone=w(We);_platform=w(Qi);_renderer=w(zr).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new ne;_scrolledCount=0;scrollContainers=new Map;register(A){this.scrollContainers.has(A)||this.scrollContainers.set(A,A.elementScrolled().subscribe(()=>this._scrolled.next(A)))}deregister(A){let t=this.scrollContainers.get(A);t&&(t.unsubscribe(),this.scrollContainers.delete(A))}scrolled(A=$oA){return this._platform.isBrowser?new Fi(t=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let n=A>0?this._scrolled.pipe(v1(A)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):oe()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((A,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(A,t){let n=this.getAncestorScrollContainers(A);return this.scrolled(t).pipe(Bt(o=>!o||n.indexOf(o)>-1))}getAncestorScrollContainers(A){let t=[];return this.scrollContainers.forEach((n,o)=>{this._scrollableContainsElement(o,A)&&t.push(o)}),t}_scrollableContainsElement(A,t){let n=ks(t),o=A.getElementRef().nativeElement;do if(n==o)return!0;while(n=n.parentElement);return!1}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),j0=(()=>{class i{elementRef=w(ce);scrollDispatcher=w(qc);ngZone=w(We);dir=w(No,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new ne;_renderer=w(on);_cleanupScroll;_elementScrolled=new ne;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",A=>this._elementScrolled.next(A))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(A){let t=this.elementRef.nativeElement,n=this.dir&&this.dir.value=="rtl";A.left==null&&(A.left=n?A.end:A.start),A.right==null&&(A.right=n?A.start:A.end),A.bottom!=null&&(A.top=t.scrollHeight-t.clientHeight-A.bottom),n&&OI()!=Lg.NORMAL?(A.left!=null&&(A.right=t.scrollWidth-t.clientWidth-A.left),OI()==Lg.INVERTED?A.left=A.right:OI()==Lg.NEGATED&&(A.left=A.right?-A.right:A.right)):A.right!=null&&(A.left=t.scrollWidth-t.clientWidth-A.right),this._applyScrollToOptions(A)}_applyScrollToOptions(A){let t=this.elementRef.nativeElement;O3()?t.scrollTo(A):(A.top!=null&&(t.scrollTop=A.top),A.left!=null&&(t.scrollLeft=A.left))}measureScrollOffset(A){let t="left",n="right",o=this.elementRef.nativeElement;if(A=="top")return o.scrollTop;if(A=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return A=="start"?A=a?n:t:A=="end"&&(A=a?t:n),a&&OI()==Lg.INVERTED?A==t?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&OI()==Lg.NEGATED?A==t?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:A==t?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(t){return new(t||i)};static \u0275dir=VA({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),AaA=20,Ns=(()=>{class i{_platform=w(Qi);_listeners;_viewportSize=null;_change=new ne;_document=w(ci);constructor(){let A=w(We),t=w(zr).createRenderer(null,null);A.runOutsideAngular(()=>{if(this._platform.isBrowser){let n=o=>this._change.next(o);this._listeners=[t.listen("window","resize",n),t.listen("window","orientationchange",n)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(A=>A()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let A={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),A}getViewportRect(){let A=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:A.top,left:A.left,bottom:A.top+n,right:A.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let A=this._document,t=this._getWindow(),n=A.documentElement,o=n.getBoundingClientRect(),a=-o.top||A.body?.scrollTop||t.scrollY||n.scrollTop||0,r=-o.left||A.body?.scrollLeft||t.scrollX||n.scrollLeft||0;return{top:a,left:r}}change(A=AaA){return A>0?this._change.pipe(v1(A)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let A=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:A.innerWidth,height:A.innerHeight}:{width:0,height:0}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var NU=new MA("CDK_VIRTUAL_SCROLL_VIEWPORT");var Vc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=et({type:i});static \u0275inj=At({})}return i})(),em=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=et({type:i});static \u0275inj=At({imports:[Di,Vc,Di,Vc]})}return i})();var tu=class{_attachedHost=null;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Fs=class extends tu{component;viewContainerRef;injector;projectableNodes;bindings;constructor(e,A,t,n,o){super(),this.component=e,this.viewContainerRef=A,this.injector=t,this.projectableNodes=n,this.bindings=o||null}},jr=class extends tu{templateRef;viewContainerRef;context;injector;constructor(e,A,t,n){super(),this.templateRef=e,this.viewContainerRef=A,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,A=this.context){return this.context=A,super.attach(e)}detach(){return this.context=void 0,super.detach()}},i7=class extends tu{element;constructor(e){super(),this.element=e instanceof ce?e.nativeElement:e}},n2=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Fs)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof jr)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof i7)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},iu=class extends n2{outletElement;_appRef;_defaultInjector;constructor(e,A,t){super(),this.outletElement=e,this._appRef=A,this._defaultInjector=t}attachComponentPortal(e){let A;if(e.viewContainerRef){let t=e.injector||e.viewContainerRef.injector,n=t.get(GD,null,{optional:!0})||void 0;A=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:t,ngModuleRef:n,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0}),this.setDisposeFn(()=>A.destroy())}else{let t=this._appRef,n=e.injector||this._defaultInjector||St.NULL,o=n.get(Hr,t.injector);A=C3(e.component,{elementInjector:n,environmentInjector:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0}),t.attachView(A.hostView),this.setDisposeFn(()=>{t.viewCount>0&&t.detachView(A.hostView),A.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(A)),this._attachedPortal=e,A}attachTemplatePortal(e){let A=e.viewContainerRef,t=A.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=A.indexOf(t);n!==-1&&A.remove(n)}),this._attachedPortal=e,t}attachDomPortal=e=>{let A=e.element;A.parentNode;let t=this.outletElement.ownerDocument.createComment("dom-portal");A.parentNode.insertBefore(t,A),this.outletElement.appendChild(A),this._attachedPortal=e,super.setDisposeFn(()=>{t.parentNode&&t.parentNode.replaceChild(A,t)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},FU=(()=>{class i extends jr{constructor(){let A=w(wo),t=w(Jo);super(A,t)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=VA({type:i,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[bt]})}return i})(),Ag=(()=>{class i extends n2{_moduleRef=w(GD,{optional:!0});_document=w(ci);_viewContainerRef=w(Jo);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(A){this.hasAttached()&&!A&&!this._isInitialized||(this.hasAttached()&&super.detach(),A&&super.attach(A),this._attachedPortal=A||null)}attached=new FA;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(A){A.setAttachedHost(this);let t=A.viewContainerRef!=null?A.viewContainerRef:this._viewContainerRef,n=t.createComponent(A.component,{index:t.length,injector:A.injector||t.injector,projectableNodes:A.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:A.bindings||void 0});return t!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=A,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(A){A.setAttachedHost(this);let t=this._viewContainerRef.createEmbeddedView(A.templateRef,A.context,{injector:A.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=A,this._attachedRef=t,this.attached.emit(t),t}attachDomPortal=A=>{let t=A.element;t.parentNode;let n=this._document.createComment("dom-portal");A.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),this._attachedPortal=A,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})};_getRootNode(){let A=this._viewContainerRef.element.nativeElement;return A.nodeType===A.ELEMENT_NODE?A:A.parentNode}static \u0275fac=function(t){return new(t||i)};static \u0275dir=VA({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[bt]})}return i})(),Wc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=et({type:i});static \u0275inj=At({})}return i})();var LU=O3();function IB(i){return new tm(i.get(Ns),i.get(ci))}var tm=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,A){this._viewportRuler=e,this._document=A}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Wa(-this._previousScrollPosition.left),e.style.top=Wa(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,A=this._document.body,t=e.style,n=A.style,o=t.scrollBehavior||"",a=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),LU&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),LU&&(t.scrollBehavior=o,n.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let A=this._document.documentElement,t=this._viewportRuler.getViewportSize();return A.scrollHeight>t.height||A.scrollWidth>t.width}};function YU(i,e){return new im(i.get(qc),i.get(We),i.get(Ns),e)}var im=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,A,t,n){this._scrollDispatcher=e,this._ngZone=A,this._viewportRuler=t,this._config=n}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Bt(A=>!A||!this._overlayRef.overlayElement.contains(A.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let A=this._viewportRuler.getViewportScrollPosition().top;Math.abs(A-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var nu=class{enable(){}disable(){}attach(){}};function n7(i,e){return e.some(A=>{let t=i.bottom<A.top,n=i.top>A.bottom,o=i.right<A.left,a=i.left>A.right;return t||n||o||a})}function GU(i,e){return e.some(A=>{let t=i.top<A.top,n=i.bottom>A.bottom,o=i.left<A.left,a=i.right>A.right;return t||n||o||a})}function V0(i,e){return new nm(i.get(qc),i.get(Ns),i.get(We),e)}var nm=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,A,t,n){this._scrollDispatcher=e,this._viewportRuler=A,this._ngZone=t,this._config=n}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let A=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();n7(A,[{width:t,height:n,bottom:n,right:t,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}},HU=(()=>{class i{_injector=w(St);constructor(){}noop=()=>new nu;close=A=>YU(this._injector,A);block=()=>IB(this._injector);reposition=A=>V0(this._injector,A);static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Hg=class{positionStrategy;scrollStrategy=new nu;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(e){if(e){let A=Object.keys(e);for(let t of A)e[t]!==void 0&&(this[t]=e[t])}}};var om=class{connectionPair;scrollableViewProperties;constructor(e,A){this.connectionPair=e,this.scrollableViewProperties=A}};var zU=(()=>{class i{_attachedOverlays=[];_document=w(ci);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(A){this.remove(A),this._attachedOverlays.push(A)}remove(A){let t=this._attachedOverlays.indexOf(A);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(A,t,n){return n.observers.length<1?!1:A.eventPredicate?A.eventPredicate(t):!0}static \u0275fac=function(t){return new(t||i)};static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),PU=(()=>{class i extends zU{_ngZone=w(We);_renderer=w(zr).createRenderer(null,null);_cleanupKeydown;add(A){super.add(A),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=A=>{let t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--){let o=t[n];if(this.canReceiveEvent(o,A,o._keydownEvents)){this._ngZone.run(()=>o._keydownEvents.next(A));break}}};static \u0275fac=(()=>{let A;return function(n){return(A||(A=Li(i)))(n||i)}})();static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),jU=(()=>{class i extends zU{_platform=w(Qi);_ngZone=w(We);_renderer=w(zr).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(A){if(super.add(A),!this._isAttached){let t=this._document.body,n={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(t,"pointerdown",this._pointerDownListener,n),o.listen(t,"click",this._clickListener,n),o.listen(t,"auxclick",this._clickListener,n),o.listen(t,"contextmenu",this._clickListener,n)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(A=>A()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=A=>{this._pointerDownEventTarget=Pr(A)};_clickListener=A=>{let t=Pr(A),n=A.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let r=o[a],s=r._outsidePointerEvents;if(!(!r.hasAttached()||!this.canReceiveEvent(r,A,s))){if(KU(r.overlayElement,t)||KU(r.overlayElement,n))break;this._ngZone?this._ngZone.run(()=>s.next(A)):s.next(A)}}};static \u0275fac=(()=>{let A;return function(n){return(A||(A=Li(i)))(n||i)}})();static \u0275prov=jA({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function KU(i,e){let A=typeof ShadowRoot<"u"&&ShadowRoot,t=e;for(;t;){if(t===i)return!0;t=A&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var VU=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=vA({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:auto;top:0;left:0}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto} |
no test coverage detected