From 121890489553c41b791e2237452b4915d42f10a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Sun, 30 Jun 2024 23:34:22 +0200 Subject: [PATCH] Updated frontend (minor security upgrades, related to sobresource security) --- server/src/uds/static/admin/main.js | 48 +++++++++---------- server/src/uds/templates/uds/admin/index.html | 4 +- .../src/uds/templates/uds/modern/index.html | 4 +- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index 482032722..a8acd6d63 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -1,29 +1,29 @@ -import{Ae as JO,Ag as SR,Ah as FR,Bg as ER,Cf as tR,Cg as IR,Dg as MR,Ef as iR,Eg as TR,Fg as kR,Gg as AR,Gh as NR,Hg as OR,If as nR,Ih as LR,Jh as VR,Ka as QO,Kf as oR,Kh as jR,Lb as ZO,Lh as BR,Mg as RR,Mh as zR,Nh as UR,Ph as HR,Qh as $R,Rh as WR,Sh as GR,Xe as eR,_ as qO,a as B,ai as cC,b as mt,bi as qR,c as yg,ci as YR,d as UO,dg as rR,di as lC,e as sC,eb as KO,ei as QR,f as HO,fi as dC,g as Zd,gg as aR,gi as KR,h as $O,hg as sR,i as q,ig as cR,jg as wg,kg as lR,l as WO,lg as dR,mg as uR,ng as mR,og as hR,pa as YO,pg as pR,q as GO,qg as fR,rg as gR,sg as _R,tg as vR,ug as bR,ve as XO,vg as yR,wg as wR,xg as CR,yg as xR,yh as PR,zg as DR,zh as Xd}from"./chunk-YPIQKN76.js";var Vf=sC((ck,Ly)=>{"use strict";var ir=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:ck;function F6(i,e){return typeof e>"u"?e={autoBom:!1}:typeof e!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}function Ny(i,e,r){var t=new XMLHttpRequest;t.open("GET",i),t.responseType="blob",t.onload=function(){Lf(t.response,e,r)},t.onerror=function(){console.error("could not download file")},t.send()}function ak(i){var e=new XMLHttpRequest;e.open("HEAD",i,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Nf(i){try{i.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(e)}}var sk=ir.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Lf=ir.saveAs||(typeof window!="object"||window!==ir?function(){}:"download"in HTMLAnchorElement.prototype&&!sk?function(e,r,t){var n=ir.URL||ir.webkitURL,o=document.createElement("a");r=r||e.name||"download",o.download=r,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?ak(o.href)?Ny(e,r,t):Nf(o,o.target="_blank"):Nf(o)):(o.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(o.href)},4e4),setTimeout(function(){Nf(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,t){if(r=r||e.name||"download",typeof e=="string")if(ak(e))Ny(e,r,t);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){Nf(n)})}else navigator.msSaveOrOpenBlob(F6(e,t),r)}:function(e,r,t,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return Ny(e,r,t);var o=e.type==="application/octet-stream",a=/constructor/i.test(ir.HTMLElement)||ir.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&a||sk)&&typeof FileReader<"u"){var c=new FileReader;c.onloadend=function(){var v=c.result;v=s?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=v:location=v,n=null},c.readAsDataURL(e)}else{var u=ir.URL||ir.webkitURL,f=u.createObjectURL(e);n?n.location=f:location.href=f,n=null,setTimeout(function(){u.revokeObjectURL(f)},4e4)}});ir.saveAs=Lf.saveAs=Lf;typeof Ly<"u"&&(Ly.exports=Lf)});var LO={};HO(LO,{Axis:()=>UR,ChartView:()=>nR,ComponentModel:()=>eR,ComponentView:()=>iR,List:()=>RR,Model:()=>XO,PRIORITY:()=>cR,SeriesModel:()=>tR,color:()=>KO,connect:()=>lR,dataTool:()=>AR,default:()=>fQ,dependencies:()=>sR,disConnect:()=>uR,disconnect:()=>dR,dispose:()=>mR,env:()=>WO,extendChartView:()=>GR,extendComponentModel:()=>HR,extendComponentView:()=>$R,extendSeriesModel:()=>WR,format:()=>BR,getCoordinateSystemDimensions:()=>xR,getInstanceByDom:()=>hR,getInstanceById:()=>pR,getMap:()=>TR,graphic:()=>jR,helper:()=>PR,init:()=>wg,innerDrawElementOnCanvas:()=>rR,matrix:()=>QO,number:()=>LR,parseGeoJSON:()=>NR,parseGeoJson:()=>NR,registerAction:()=>wR,registerCoordinateSystem:()=>CR,registerLayout:()=>DR,registerLoading:()=>ER,registerLocale:()=>JO,registerMap:()=>MR,registerPostInit:()=>vR,registerPostUpdate:()=>bR,registerPreprocessor:()=>gR,registerProcessor:()=>_R,registerTheme:()=>fR,registerTransform:()=>kR,registerUpdateLifecycle:()=>yR,registerVisual:()=>SR,setCanvasCreator:()=>IR,setPlatformAPI:()=>GO,throttle:()=>oR,time:()=>VR,use:()=>Xd,util:()=>zR,vector:()=>YO,version:()=>aR,zrUtil:()=>qO,zrender:()=>ZO});var fQ,VO=UO(()=>{"use strict";YR();FR();OR();QR();KR();qR();Xd([lC,dC]);fQ={init:function(){return wg.apply(null,arguments)}};Xd(cC)});var jO=sC(Qd=>{"use strict";(function(i,e){typeof define=="function"&&define.amd?define(["exports","echarts"],e):typeof Qd=="object"&&typeof Qd.nodeName!="string"?e(Qd,(VO(),$O(LO))):e({},i.echarts)})(Qd,function(i,e){var r=function(s){typeof console<"u"&&console&&console.error&&console.error(s)};if(!e){r("ECharts is not Loaded");return}var t="#eee",n=function(){return{axisLine:{lineStyle:{color:t}},axisTick:{lineStyle:{color:t}},axisLabel:{color:t},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:t}}}},o=["#52656b","#ff3b77","#a3cc00","#ffffff","#b8b89f","#ffccdb","#e5ff80","#f4f4f0"],a={color:o,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:t},crossStyle:{color:t}}},legend:{textStyle:{color:t}},title:{textStyle:{color:t}},toolbox:{iconStyle:{borderColor:t}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#52656b"},timeline:{itemStyle:{color:o[1]},lineStyle:{color:t},controlStyle:{color:t,borderColor:t},label:{color:t}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:o},gauge:{axisLine:{lineStyle:{color:[[.2,"#ff3b77"],[.8,"#52656b"],[1,"#b8b89f"]],width:8}}}};a.categoryAxis.splitLine.show=!1,e.registerTheme("dark-digerati",a)})});var xg=null,Jd=!1,Cg=1,eu=Symbol("SIGNAL");function bt(i){let e=xg;return xg=i,e}function uC(){return xg}function ZR(){return Jd}var tu={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function XR(i){if(!(Ig(i)&&!i.dirty)&&!(!i.dirty&&i.lastCleanEpoch===Cg)){if(!i.producerMustRecompute(i)&&!nu(i)){i.dirty=!1,i.lastCleanEpoch=Cg;return}i.producerRecomputeValue(i),i.dirty=!1,i.lastCleanEpoch=Cg}}function JR(i){if(i.liveConsumerNode===void 0)return;let e=Jd;Jd=!0;try{for(let r of i.liveConsumerNode)r.dirty||mC(r)}finally{Jd=e}}function mC(i){i.dirty=!0,JR(i),i.consumerMarkedDirty?.(i)}function iu(i){return i&&(i.nextProducerIndex=0),bt(i)}function Sg(i,e){if(bt(e),!(!i||i.producerNode===void 0||i.producerIndexOfThis===void 0||i.producerLastReadVersion===void 0)){if(Ig(i))for(let r=i.nextProducerIndex;ri.nextProducerIndex;)i.producerNode.pop(),i.producerLastReadVersion.pop(),i.producerIndexOfThis.pop()}}function nu(i){Mg(i);for(let e=0;e0}function Mg(i){i.producerNode??=[],i.producerIndexOfThis??=[],i.producerLastReadVersion??=[]}function eP(i){i.liveConsumerNode??=[],i.liveConsumerIndexOfThis??=[]}function tP(i){return i.producerNode!==void 0}function iP(){throw new Error}var nP=iP;function hC(i){nP=i}function pC(i,e,r){let t=Object.create(oP);r&&(t.consumerAllowSignalWrites=!0),t.fn=i,t.schedule=e;let n=c=>{t.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function a(c){o(c)||(ou(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Dg)}let s=()=>{if(t.fn===null)return;if(ZR())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(t.dirty=!1,t.hasRun&&!nu(t))return;t.hasRun=!0;let c=iu(t);try{t.cleanupFn(),t.cleanupFn=Dg,t.fn(n)}finally{Sg(t,c)}};return t.ref={notify:()=>mC(t),run:s,cleanup:()=>t.cleanupFn(),destroy:()=>a(t),[eu]:t},t.ref}var Dg=()=>{},oP=mt(B({},tu),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:i=>{i.schedule!==null&&i.schedule(i.ref)},hasRun:!1,cleanupFn:Dg});function Be(i){return typeof i=="function"}function Nr(i){let r=i(t=>{Error.call(t),t.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ru=Nr(i=>function(r){i(this),this.message=r?`${r.length} errors occurred during unsubscription: +import{Ae as qO,Ag as bR,Ah as TR,Bg as yR,Cf as QO,Cg as wR,Dg as CR,Ef as KO,Eg as xR,Fg as DR,Gg as SR,Gh as kR,Hg as ER,If as ZO,Ih as AR,Jh as OR,Ka as HO,Kf as XO,Kh as RR,Lb as WO,Lh as PR,Mg as IR,Mh as FR,Nh as NR,Ph as LR,Qh as VR,Rh as jR,Sh as BR,Xe as YO,_ as zO,a as B,ai as rC,b as mt,bi as zR,c as _g,ci as UR,d as NO,dg as JO,di as aC,e as oC,eb as $O,ei as HR,f as LO,fi as sC,g as Kd,gg as eR,gi as $R,h as VO,hg as tR,i as q,ig as iR,jg as vg,kg as nR,l as jO,lg as oR,mg as rR,ng as aR,og as sR,pa as UO,pg as cR,q as BO,qg as lR,rg as dR,sg as uR,tg as mR,ug as hR,ve as GO,vg as pR,wg as fR,xg as gR,yg as _R,yh as MR,zg as vR,zh as Zd}from"./chunk-YPIQKN76.js";var Ff=oC((Ry,Py)=>{"use strict";(function(i,e){typeof define=="function"&&define.amd?define([],e):typeof Ry<"u"?e():(e(),i.FileSaver={})})(Ry,function(){"use strict";function i(s,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function e(s,c,u){var f=new XMLHttpRequest;f.open("GET",s),f.responseType="blob",f.onload=function(){a(f.response,c,u)},f.onerror=function(){console.error("could not download file")},f.send()}function r(s){var c=new XMLHttpRequest;c.open("HEAD",s,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function t(s){try{s.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(c)}}var n=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,o=n.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=n.saveAs||(typeof window!="object"||window!==n?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(s,c,u){var f=n.URL||n.webkitURL,v=document.createElement("a");c=c||s.name||"download",v.download=c,v.rel="noopener",typeof s=="string"?(v.href=s,v.origin===location.origin?t(v):r(v.href)?e(s,c,u):t(v,v.target="_blank")):(v.href=f.createObjectURL(s),setTimeout(function(){f.revokeObjectURL(v.href)},4e4),setTimeout(function(){t(v)},0))}:"msSaveOrOpenBlob"in navigator?function(s,c,u){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(i(s,u),c);else if(r(s))e(s,c,u);else{var f=document.createElement("a");f.href=s,f.target="_blank",setTimeout(function(){t(f)})}}:function(s,c,u,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof s=="string")return e(s,c,u);var v=s.type==="application/octet-stream",C=/constructor/i.test(n.HTMLElement)||n.safari,x=/CriOS\/[\d]+/.test(navigator.userAgent);if((x||v&&C||o)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var F=E.result;F=x?F:F.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=F:location=F,f=null},E.readAsDataURL(s)}else{var R=n.URL||n.webkitURL,j=R.createObjectURL(s);f?f.location=j:location.href=j,f=null,setTimeout(function(){R.revokeObjectURL(j)},4e4)}});n.saveAs=a.saveAs=a,typeof Py<"u"&&(Py.exports=a)})});var AO={};LO(AO,{Axis:()=>NR,ChartView:()=>ZO,ComponentModel:()=>YO,ComponentView:()=>KO,List:()=>IR,Model:()=>GO,PRIORITY:()=>iR,SeriesModel:()=>QO,color:()=>$O,connect:()=>nR,dataTool:()=>SR,default:()=>cQ,dependencies:()=>tR,disConnect:()=>rR,disconnect:()=>oR,dispose:()=>aR,env:()=>jO,extendChartView:()=>BR,extendComponentModel:()=>LR,extendComponentView:()=>VR,extendSeriesModel:()=>jR,format:()=>PR,getCoordinateSystemDimensions:()=>_R,getInstanceByDom:()=>sR,getInstanceById:()=>cR,getMap:()=>xR,graphic:()=>RR,helper:()=>MR,init:()=>vg,innerDrawElementOnCanvas:()=>JO,matrix:()=>HO,number:()=>AR,parseGeoJSON:()=>kR,parseGeoJson:()=>kR,registerAction:()=>fR,registerCoordinateSystem:()=>gR,registerLayout:()=>vR,registerLoading:()=>yR,registerLocale:()=>qO,registerMap:()=>CR,registerPostInit:()=>mR,registerPostUpdate:()=>hR,registerPreprocessor:()=>dR,registerProcessor:()=>uR,registerTheme:()=>lR,registerTransform:()=>DR,registerUpdateLifecycle:()=>pR,registerVisual:()=>bR,setCanvasCreator:()=>wR,setPlatformAPI:()=>BO,throttle:()=>XO,time:()=>OR,use:()=>Zd,util:()=>FR,vector:()=>UO,version:()=>eR,zrUtil:()=>zO,zrender:()=>WO});var cQ,OO=NO(()=>{"use strict";UR();TR();ER();HR();$R();zR();Zd([aC,sC]);cQ={init:function(){return vg.apply(null,arguments)}};Zd(rC)});var RO=oC(Yd=>{"use strict";(function(i,e){typeof define=="function"&&define.amd?define(["exports","echarts"],e):typeof Yd=="object"&&typeof Yd.nodeName!="string"?e(Yd,(OO(),VO(AO))):e({},i.echarts)})(Yd,function(i,e){var r=function(s){typeof console<"u"&&console&&console.error&&console.error(s)};if(!e){r("ECharts is not Loaded");return}var t="#eee",n=function(){return{axisLine:{lineStyle:{color:t}},axisTick:{lineStyle:{color:t}},axisLabel:{color:t},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:t}}}},o=["#52656b","#ff3b77","#a3cc00","#ffffff","#b8b89f","#ffccdb","#e5ff80","#f4f4f0"],a={color:o,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:t},crossStyle:{color:t}}},legend:{textStyle:{color:t}},title:{textStyle:{color:t}},toolbox:{iconStyle:{borderColor:t}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#52656b"},timeline:{itemStyle:{color:o[1]},lineStyle:{color:t},controlStyle:{color:t,borderColor:t},label:{color:t}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:o},gauge:{axisLine:{lineStyle:{color:[[.2,"#ff3b77"],[.8,"#52656b"],[1,"#b8b89f"]],width:8}}}};a.categoryAxis.splitLine.show=!1,e.registerTheme("dark-digerati",a)})});var yg=null,Xd=!1,bg=1,Jd=Symbol("SIGNAL");function bt(i){let e=yg;return yg=i,e}function cC(){return yg}function WR(){return Xd}var eu={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function GR(i){if(!(Dg(i)&&!i.dirty)&&!(!i.dirty&&i.lastCleanEpoch===bg)){if(!i.producerMustRecompute(i)&&!iu(i)){i.dirty=!1,i.lastCleanEpoch=bg;return}i.producerRecomputeValue(i),i.dirty=!1,i.lastCleanEpoch=bg}}function qR(i){if(i.liveConsumerNode===void 0)return;let e=Xd;Xd=!0;try{for(let r of i.liveConsumerNode)r.dirty||lC(r)}finally{Xd=e}}function lC(i){i.dirty=!0,qR(i),i.consumerMarkedDirty?.(i)}function tu(i){return i&&(i.nextProducerIndex=0),bt(i)}function Cg(i,e){if(bt(e),!(!i||i.producerNode===void 0||i.producerIndexOfThis===void 0||i.producerLastReadVersion===void 0)){if(Dg(i))for(let r=i.nextProducerIndex;ri.nextProducerIndex;)i.producerNode.pop(),i.producerLastReadVersion.pop(),i.producerIndexOfThis.pop()}}function iu(i){Sg(i);for(let e=0;e0}function Sg(i){i.producerNode??=[],i.producerIndexOfThis??=[],i.producerLastReadVersion??=[]}function YR(i){i.liveConsumerNode??=[],i.liveConsumerIndexOfThis??=[]}function QR(i){return i.producerNode!==void 0}function KR(){throw new Error}var ZR=KR;function dC(i){ZR=i}function uC(i,e,r){let t=Object.create(XR);r&&(t.consumerAllowSignalWrites=!0),t.fn=i,t.schedule=e;let n=c=>{t.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function a(c){o(c)||(nu(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=wg)}let s=()=>{if(t.fn===null)return;if(WR())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(t.dirty=!1,t.hasRun&&!iu(t))return;t.hasRun=!0;let c=tu(t);try{t.cleanupFn(),t.cleanupFn=wg,t.fn(n)}finally{Cg(t,c)}};return t.ref={notify:()=>lC(t),run:s,cleanup:()=>t.cleanupFn(),destroy:()=>a(t),[Jd]:t},t.ref}var wg=()=>{},XR=mt(B({},eu),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:i=>{i.schedule!==null&&i.schedule(i.ref)},hasRun:!1,cleanupFn:wg});function Be(i){return typeof i=="function"}function Fr(i){let r=i(t=>{Error.call(t),t.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ou=Fr(i=>function(r){i(this),this.message=r?`${r.length} errors occurred during unsubscription: ${r.map((t,n)=>`${n+1}) ${t.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function ka(i,e){if(i){let r=i.indexOf(e);0<=r&&i.splice(r,1)}}var Ce=class i{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:t}=this;if(Be(t))try{t()}catch(o){e=o instanceof ru?o.errors:[o]}let{_finalizers:n}=this;if(n){this._finalizers=null;for(let o of n)try{fC(o)}catch(a){e=e??[],a instanceof ru?e=[...e,...a.errors]:e.push(a)}}if(e)throw new ru(e)}}add(e){var r;if(e&&e!==this)if(this.closed)fC(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&ka(r,e)}remove(e){let{_finalizers:r}=this;r&&ka(r,e),e instanceof i&&e._removeParent(this)}};Ce.EMPTY=(()=>{let i=new Ce;return i.closed=!0,i})();var Tg=Ce.EMPTY;function au(i){return i instanceof Ce||i&&"closed"in i&&Be(i.remove)&&Be(i.add)&&Be(i.unsubscribe)}function fC(i){Be(i)?i():i.unsubscribe()}var mo={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ws={setTimeout(i,e,...r){let{delegate:t}=ws;return t?.setTimeout?t.setTimeout(i,e,...r):setTimeout(i,e,...r)},clearTimeout(i){let{delegate:e}=ws;return(e?.clearTimeout||clearTimeout)(i)},delegate:void 0};function su(i){ws.setTimeout(()=>{let{onUnhandledError:e}=mo;if(e)e(i);else throw i})}function Aa(){}var gC=kg("C",void 0,void 0);function _C(i){return kg("E",void 0,i)}function vC(i){return kg("N",i,void 0)}function kg(i,e,r){return{kind:i,value:e,error:r}}var Oa=null;function Cs(i){if(mo.useDeprecatedSynchronousErrorHandling){let e=!Oa;if(e&&(Oa={errorThrown:!1,error:null}),i(),e){let{errorThrown:r,error:t}=Oa;if(Oa=null,r)throw t}}else i()}function bC(i){mo.useDeprecatedSynchronousErrorHandling&&Oa&&(Oa.errorThrown=!0,Oa.error=i)}var Ra=class extends Ce{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,au(e)&&e.add(this)):this.destination=sP}static create(e,r,t){return new ho(e,r,t)}next(e){this.isStopped?Og(vC(e),this):this._next(e)}error(e){this.isStopped?Og(_C(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Og(gC,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},rP=Function.prototype.bind;function Ag(i,e){return rP.call(i,e)}var Rg=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(t){cu(t)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(t){cu(t)}else cu(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){cu(r)}}},ho=class extends Ra{constructor(e,r,t){super();let n;if(Be(e)||!e)n={next:e??void 0,error:r??void 0,complete:t??void 0};else{let o;this&&mo.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),n={next:e.next&&Ag(e.next,o),error:e.error&&Ag(e.error,o),complete:e.complete&&Ag(e.complete,o)}):n=e}this.destination=new Rg(n)}};function cu(i){mo.useDeprecatedSynchronousErrorHandling?bC(i):su(i)}function aP(i){throw i}function Og(i,e){let{onStoppedNotification:r}=mo;r&&ws.setTimeout(()=>r(i,e))}var sP={closed:!0,next:Aa,error:aP,complete:Aa};var xs=typeof Symbol=="function"&&Symbol.observable||"@@observable";function sn(i){return i}function Pg(...i){return Fg(i)}function Fg(i){return i.length===0?sn:i.length===1?i[0]:function(r){return i.reduce((t,n)=>n(t),r)}}var Re=(()=>{class i{constructor(r){r&&(this._subscribe=r)}lift(r){let t=new i;return t.source=this,t.operator=r,t}subscribe(r,t,n){let o=lP(r)?r:new ho(r,t,n);return Cs(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(t){r.error(t)}}forEach(r,t){return t=yC(t),new t((n,o)=>{let a=new ho({next:s=>{try{r(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:n});this.subscribe(a)})}_subscribe(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)}[xs](){return this}pipe(...r){return Fg(r)(this)}toPromise(r){return r=yC(r),new r((t,n)=>{let o;this.subscribe(a=>o=a,a=>n(a),()=>t(o))})}}return i.create=e=>new i(e),i})();function yC(i){var e;return(e=i??mo.Promise)!==null&&e!==void 0?e:Promise}function cP(i){return i&&Be(i.next)&&Be(i.error)&&Be(i.complete)}function lP(i){return i&&i instanceof Ra||cP(i)&&au(i)}function Ng(i){return Be(i?.lift)}function ze(i){return e=>{if(Ng(e))return e.lift(function(r){try{return i(r,this)}catch(t){this.error(t)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ve(i,e,r,t,n){return new Lg(i,e,r,t,n)}var Lg=class extends Ra{constructor(e,r,t,n,o,a){super(e),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=r?function(s){try{r(s)}catch(c){e.error(c)}}:super._next,this._error=n?function(s){try{n(s)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=t?function(){try{t()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Ds(){return ze((i,e)=>{let r=null;i._refCount++;let t=Ve(e,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount){r=null;return}let n=i._connection,o=r;r=null,n&&(!o||n===o)&&n.unsubscribe(),e.unsubscribe()});i.subscribe(t),t.closed||(r=i.connect())})}var Lr=class extends Re{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Ng(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ce;let r=this.getSubject();e.add(this.source.subscribe(Ve(r,void 0,()=>{this._teardown(),r.complete()},t=>{this._teardown(),r.error(t)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ce.EMPTY)}return e}refCount(){return Ds()(this)}};var wC=Nr(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var W=(()=>{class i extends Re{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let t=new lu(this,this);return t.operator=r,t}_throwIfClosed(){if(this.closed)throw new wC}next(r){Cs(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let t of this.currentObservers)t.next(r)}})}error(r){Cs(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:t}=this;for(;t.length;)t.shift().error(r)}})}complete(){Cs(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:t,isStopped:n,observers:o}=this;return t||n?Tg:(this.currentObservers=null,o.push(r),new Ce(()=>{this.currentObservers=null,ka(o,r)}))}_checkFinalizedStatuses(r){let{hasError:t,thrownError:n,isStopped:o}=this;t?r.error(n):o&&r.complete()}asObservable(){let r=new Re;return r.source=this,r}}return i.create=(e,r)=>new lu(e,r),i})(),lu=class extends W{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,t;(t=(r=this.destination)===null||r===void 0?void 0:r.next)===null||t===void 0||t.call(r,e)}error(e){var r,t;(t=(r=this.destination)===null||r===void 0?void 0:r.error)===null||t===void 0||t.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,t;return(t=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&t!==void 0?t:Tg}};var $t=class extends W{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:t}=this;if(e)throw r;return this._throwIfClosed(),t}next(e){super.next(this._value=e)}};var Yc={now(){return(Yc.delegate||Date).now()},delegate:void 0};var $n=class extends W{constructor(e=1/0,r=1/0,t=Yc){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:t,_infiniteTimeWindow:n,_timestampProvider:o,_windowTime:a}=this;r||(t.push(e),!n&&t.push(o.now()+a)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:t,_buffer:n}=this,o=n.slice();for(let a=0;aCC(e)&&i()),e},clearImmediate(i){CC(i)}};var{setImmediate:uP,clearImmediate:mP}=xC,Kc={setImmediate(...i){let{delegate:e}=Kc;return(e?.setImmediate||uP)(...i)},clearImmediate(i){let{delegate:e}=Kc;return(e?.clearImmediate||mP)(i)},delegate:void 0};var uu=class extends Ss{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,t=0){return t!==null&&t>0?super.requestAsyncId(e,r,t):(e.actions.push(this),e._scheduled||(e._scheduled=Kc.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,t=0){var n;if(t!=null?t>0:this.delay>0)return super.recycleAsyncId(e,r,t);let{actions:o}=e;r!=null&&((n=o[o.length-1])===null||n===void 0?void 0:n.id)!==r&&(Kc.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var Es=class i{constructor(e,r=i.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,t){return new this.schedulerActionCtor(this,e).schedule(t,r)}};Es.now=Yc.now;var Is=class extends Es{constructor(e,r=Es.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let t;this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}}};var mu=class extends Is{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:t}=this,n;e=e||t.shift();do if(n=e.execute(e.state,e.delay))break;while((e=t[0])&&e.id===r&&t.shift());if(this._active=!1,n){for(;(e=t[0])&&e.id===r&&t.shift();)e.unsubscribe();throw n}}};var Zc=new mu(uu);var Ki=new Is(Ss),Bg=Ki;var Ti=new Re(i=>i.complete());function hu(i){return i&&Be(i.schedule)}function zg(i){return i[i.length-1]}function pu(i){return Be(zg(i))?i.pop():void 0}function Oo(i){return hu(zg(i))?i.pop():void 0}function DC(i,e){return typeof zg(i)=="number"?i.pop():e}function EC(i,e,r,t){function n(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(f){try{u(t.next(f))}catch(v){a(v)}}function c(f){try{u(t.throw(f))}catch(v){a(v)}}function u(f){f.done?o(f.value):n(f.value).then(s,c)}u((t=t.apply(i,e||[])).next())})}function SC(i){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&i[e],t=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&t>=i.length&&(i=void 0),{value:i&&i[t++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pa(i){return this instanceof Pa?(this.v=i,this):new Pa(i)}function IC(i,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r.apply(i,e||[]),n,o=[];return n={},s("next"),s("throw"),s("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(D){return function(E){return Promise.resolve(E).then(D,v)}}function s(D,E){t[D]&&(n[D]=function(R){return new Promise(function(j,F){o.push([D,R,j,F])>1||c(D,R)})},E&&(n[D]=E(n[D])))}function c(D,E){try{u(t[D](E))}catch(R){C(o[0][3],R)}}function u(D){D.value instanceof Pa?Promise.resolve(D.value.v).then(f,v):C(o[0][2],D)}function f(D){c("next",D)}function v(D){c("throw",D)}function C(D,E){D(E),o.shift(),o.length&&c(o[0][0],o[0][1])}}function MC(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],r;return e?e.call(i):(i=typeof SC=="function"?SC(i):i[Symbol.iterator](),r={},t("next"),t("throw"),t("return"),r[Symbol.asyncIterator]=function(){return this},r);function t(o){r[o]=i[o]&&function(a){return new Promise(function(s,c){a=i[o](a),n(s,c,a.done,a.value)})}}function n(o,a,s,c){Promise.resolve(c).then(function(u){o({value:u,done:s})},a)}}var Ms=i=>i&&typeof i.length=="number"&&typeof i!="function";function fu(i){return Be(i?.then)}function gu(i){return Be(i[xs])}function _u(i){return Symbol.asyncIterator&&Be(i?.[Symbol.asyncIterator])}function vu(i){return new TypeError(`You provided ${i!==null&&typeof i=="object"?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function hP(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var bu=hP();function yu(i){return Be(i?.[bu])}function wu(i){return IC(this,arguments,function*(){let r=i.getReader();try{for(;;){let{value:t,done:n}=yield Pa(r.read());if(n)return yield Pa(void 0);yield yield Pa(t)}}finally{r.releaseLock()}})}function Cu(i){return Be(i?.getReader)}function St(i){if(i instanceof Re)return i;if(i!=null){if(gu(i))return pP(i);if(Ms(i))return fP(i);if(fu(i))return gP(i);if(_u(i))return TC(i);if(yu(i))return _P(i);if(Cu(i))return vP(i)}throw vu(i)}function pP(i){return new Re(e=>{let r=i[xs]();if(Be(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function fP(i){return new Re(e=>{for(let r=0;r{i.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,su)})}function _P(i){return new Re(e=>{for(let r of i)if(e.next(r),e.closed)return;e.complete()})}function TC(i){return new Re(e=>{bP(i,e).catch(r=>e.error(r))})}function vP(i){return TC(wu(i))}function bP(i,e){var r,t,n,o;return EC(this,void 0,void 0,function*(){try{for(r=MC(i);t=yield r.next(),!t.done;){let a=t.value;if(e.next(a),e.closed)return}}catch(a){n={error:a}}finally{try{t&&!t.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}e.complete()})}function Zi(i,e,r,t=0,n=!1){let o=e.schedule(function(){r(),n?i.add(this.schedule(null,t)):this.unsubscribe()},t);if(i.add(o),!n)return o}function xu(i,e=0){return ze((r,t)=>{r.subscribe(Ve(t,n=>Zi(t,i,()=>t.next(n),e),()=>Zi(t,i,()=>t.complete(),e),n=>Zi(t,i,()=>t.error(n),e)))})}function Du(i,e=0){return ze((r,t)=>{t.add(i.schedule(()=>r.subscribe(t),e))})}function kC(i,e){return St(i).pipe(Du(e),xu(e))}function AC(i,e){return St(i).pipe(Du(e),xu(e))}function OC(i,e){return new Re(r=>{let t=0;return e.schedule(function(){t===i.length?r.complete():(r.next(i[t++]),r.closed||this.schedule())})})}function RC(i,e){return new Re(r=>{let t;return Zi(r,e,()=>{t=i[bu](),Zi(r,e,()=>{let n,o;try{({value:n,done:o}=t.next())}catch(a){r.error(a);return}o?r.complete():r.next(n)},0,!0)}),()=>Be(t?.return)&&t.return()})}function Su(i,e){if(!i)throw new Error("Iterable cannot be null");return new Re(r=>{Zi(r,e,()=>{let t=i[Symbol.asyncIterator]();Zi(r,e,()=>{t.next().then(n=>{n.done?r.complete():r.next(n.value)})},0,!0)})})}function PC(i,e){return Su(wu(i),e)}function FC(i,e){if(i!=null){if(gu(i))return kC(i,e);if(Ms(i))return OC(i,e);if(fu(i))return AC(i,e);if(_u(i))return Su(i,e);if(yu(i))return RC(i,e);if(Cu(i))return PC(i,e)}throw vu(i)}function Qt(i,e){return e?FC(i,e):St(i)}function oe(...i){let e=Oo(i);return Qt(i,e)}function Ro(i,e){let r=Be(i)?i:()=>i,t=n=>n.error(r());return new Re(e?n=>e.schedule(t,0,n):t)}function Fa(i){return!!i&&(i instanceof Re||Be(i.lift)&&Be(i.subscribe))}var po=Nr(i=>function(){i(this),this.name="EmptyError",this.message="no elements in sequence"});function Eu(i,e){let r=typeof e=="object";return new Promise((t,n)=>{let o=new ho({next:a=>{t(a),o.unsubscribe()},error:n,complete:()=>{r?t(e.defaultValue):n(new po)}});i.subscribe(o)})}function Iu(i){return i instanceof Date&&!isNaN(i)}var yP=Nr(i=>function(r=null){i(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function Ug(i,e){let{first:r,each:t,with:n=wP,scheduler:o=e??Ki,meta:a=null}=Iu(i)?{first:i}:typeof i=="number"?{each:i}:i;if(r==null&&t==null)throw new TypeError("No timeout provided.");return ze((s,c)=>{let u,f,v=null,C=0,D=E=>{f=Zi(c,o,()=>{try{u.unsubscribe(),St(n({meta:a,lastValue:v,seen:C})).subscribe(c)}catch(R){c.error(R)}},E)};u=s.subscribe(Ve(c,E=>{f?.unsubscribe(),C++,c.next(v=E),t>0&&D(t)},void 0,void 0,()=>{f?.closed||f?.unsubscribe(),v=null})),!C&&D(r!=null?typeof r=="number"?r:+r-o.now():t)})}function wP(i){throw new yP(i)}function de(i,e){return ze((r,t)=>{let n=0;r.subscribe(Ve(t,o=>{t.next(i.call(e,o,n++))}))})}var{isArray:CP}=Array;function xP(i,e){return CP(e)?i(...e):i(e)}function Ts(i){return de(e=>xP(i,e))}var{isArray:DP}=Array,{getPrototypeOf:SP,prototype:EP,keys:IP}=Object;function Mu(i){if(i.length===1){let e=i[0];if(DP(e))return{args:e,keys:null};if(MP(e)){let r=IP(e);return{args:r.map(t=>e[t]),keys:r}}}return{args:i,keys:null}}function MP(i){return i&&typeof i=="object"&&SP(i)===EP}function Tu(i,e){return i.reduce((r,t,n)=>(r[t]=e[n],r),{})}function An(...i){let e=Oo(i),r=pu(i),{args:t,keys:n}=Mu(i);if(t.length===0)return Qt([],e);let o=new Re(TP(t,e,n?a=>Tu(n,a):sn));return r?o.pipe(Ts(r)):o}function TP(i,e,r=sn){return t=>{NC(e,()=>{let{length:n}=i,o=new Array(n),a=n,s=n;for(let c=0;c{let u=Qt(i[c],e),f=!1;u.subscribe(Ve(t,v=>{o[c]=v,f||(f=!0,s--),s||t.next(r(o.slice()))},()=>{--a||t.complete()}))},t)},t)}}function NC(i,e,r){i?Zi(r,i,e):e()}function LC(i,e,r,t,n,o,a,s){let c=[],u=0,f=0,v=!1,C=()=>{v&&!c.length&&!u&&e.complete()},D=R=>u{o&&e.next(R),u++;let j=!1;St(r(R,f++)).subscribe(Ve(e,F=>{n?.(F),o?D(F):e.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;c.length&&uE(F)):E(F)}C()}catch(F){e.error(F)}}))};return i.subscribe(Ve(e,D,()=>{v=!0,C()})),()=>{s?.()}}function si(i,e,r=1/0){return Be(e)?si((t,n)=>de((o,a)=>e(t,o,n,a))(St(i(t,n))),r):(typeof e=="number"&&(r=e),ze((t,n)=>LC(t,n,i,r)))}function Vr(i=1/0){return si(sn,i)}function VC(){return Vr(1)}function Po(...i){return VC()(Qt(i,Oo(i)))}function Wn(i){return new Re(e=>{St(i()).subscribe(e)})}function Xc(...i){let e=pu(i),{args:r,keys:t}=Mu(i),n=new Re(o=>{let{length:a}=r;if(!a){o.complete();return}let s=new Array(a),c=a,u=a;for(let f=0;f{v||(v=!0,u--),s[f]=C},()=>c--,void 0,()=>{(!c||!v)&&(u||o.next(t?Tu(t,s):s),o.complete())}))}});return e?n.pipe(Ts(e)):n}var kP=["addListener","removeListener"],AP=["addEventListener","removeEventListener"],OP=["on","off"];function cn(i,e,r,t){if(Be(r)&&(t=r,r=void 0),t)return cn(i,e,r).pipe(Ts(t));let[n,o]=FP(i)?AP.map(a=>s=>i[a](e,s,r)):RP(i)?kP.map(jC(i,e)):PP(i)?OP.map(jC(i,e)):[];if(!n&&Ms(i))return si(a=>cn(a,e,r))(St(i));if(!n)throw new TypeError("Invalid event target");return new Re(a=>{let s=(...c)=>a.next(1o(s)})}function jC(i,e){return r=>t=>i[r](e,t)}function RP(i){return Be(i.addListener)&&Be(i.removeListener)}function PP(i){return Be(i.on)&&Be(i.off)}function FP(i){return Be(i.addEventListener)&&Be(i.removeEventListener)}function fo(i=0,e,r=Bg){let t=-1;return e!=null&&(hu(e)?r=e:t=e),new Re(n=>{let o=Iu(i)?+i-r.now():i;o<0&&(o=0);let a=0;return r.schedule(function(){n.closed||(n.next(a++),0<=t?this.schedule(void 0,t):n.complete())},o)})}function Hg(i=0,e=Ki){return i<0&&(i=0),fo(i,i,e)}function yt(...i){let e=Oo(i),r=DC(i,1/0),t=i;return t.length?t.length===1?St(t[0]):Vr(r)(Qt(t,e)):Ti}function qe(i,e){return ze((r,t)=>{let n=0;r.subscribe(Ve(t,o=>i.call(e,o,n++)&&t.next(o)))})}function BC(i){return ze((e,r)=>{let t=!1,n=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,t){t=!1;let u=n;n=null,r.next(u)}a&&r.complete()},c=()=>{o=null,a&&r.complete()};e.subscribe(Ve(r,u=>{t=!0,n=u,o||St(i(u)).subscribe(o=Ve(r,s,c))},()=>{a=!0,(!t||!o||o.closed)&&r.complete()}))})}function ku(i,e=Ki){return BC(()=>fo(i,e))}function zi(i){return ze((e,r)=>{let t=null,n=!1,o;t=e.subscribe(Ve(r,void 0,void 0,a=>{o=St(i(a,zi(i)(e))),t?(t.unsubscribe(),t=null,o.subscribe(r)):n=!0})),n&&(t.unsubscribe(),t=null,o.subscribe(r))})}function zC(i,e,r,t,n){return(o,a)=>{let s=r,c=e,u=0;o.subscribe(Ve(a,f=>{let v=u++;c=s?i(c,f,v):(s=!0,f),t&&a.next(c)},n&&(()=>{s&&a.next(c),a.complete()})))}}function ar(i,e){return Be(e)?si(i,e,1):si(i,1)}function sr(i,e=Ki){return ze((r,t)=>{let n=null,o=null,a=null,s=()=>{if(n){n.unsubscribe(),n=null;let u=o;o=null,t.next(u)}};function c(){let u=a+i,f=e.now();if(f{o=u,a=e.now(),n||(n=e.schedule(c,i),t.add(n))},()=>{s(),t.complete()},void 0,()=>{o=n=null}))})}function jr(i){return ze((e,r)=>{let t=!1;e.subscribe(Ve(r,n=>{t=!0,r.next(n)},()=>{t||r.next(i),r.complete()}))})}function It(i){return i<=0?()=>Ti:ze((e,r)=>{let t=0;e.subscribe(Ve(r,n=>{++t<=i&&(r.next(n),i<=t&&r.complete())}))})}function UC(){return ze((i,e)=>{i.subscribe(Ve(e,Aa))})}function Jc(i){return de(()=>i)}function $g(i,e){return e?r=>Po(e.pipe(It(1),UC()),r.pipe($g(i))):si((r,t)=>St(i(r,t)).pipe(It(1),Jc(r)))}function Br(i,e=Ki){let r=fo(i,e);return $g(()=>r)}function zr(i,e=sn){return i=i??NP,ze((r,t)=>{let n,o=!0;r.subscribe(Ve(t,a=>{let s=e(a);(o||!i(n,s))&&(o=!1,n=s,t.next(a))}))})}function NP(i,e){return i===e}function Au(i=LP){return ze((e,r)=>{let t=!1;e.subscribe(Ve(r,n=>{t=!0,r.next(n)},()=>t?r.complete():r.error(i())))})}function LP(){return new po}function Fo(i){return ze((e,r)=>{try{e.subscribe(r)}finally{r.add(i)}})}function No(i,e){let r=arguments.length>=2;return t=>t.pipe(i?qe((n,o)=>i(n,o,t)):sn,It(1),r?jr(e):Au(()=>new po))}function ks(i){return i<=0?()=>Ti:ze((e,r)=>{let t=[];e.subscribe(Ve(r,n=>{t.push(n),i{for(let n of t)r.next(n);r.complete()},void 0,()=>{t=null}))})}function Wg(i,e){let r=arguments.length>=2;return t=>t.pipe(i?qe((n,o)=>i(n,o,t)):sn,ks(1),r?jr(e):Au(()=>new po))}function Gg(i,e){return ze(zC(i,e,arguments.length>=2,!0))}function el(i={}){let{connector:e=()=>new W,resetOnError:r=!0,resetOnComplete:t=!0,resetOnRefCountZero:n=!0}=i;return o=>{let a,s,c,u=0,f=!1,v=!1,C=()=>{s?.unsubscribe(),s=void 0},D=()=>{C(),a=c=void 0,f=v=!1},E=()=>{let R=a;D(),R?.unsubscribe()};return ze((R,j)=>{u++,!v&&!f&&C();let F=c=c??e();j.add(()=>{u--,u===0&&!v&&!f&&(s=qg(E,n))}),F.subscribe(j),!a&&u>0&&(a=new ho({next:_e=>F.next(_e),error:_e=>{v=!0,C(),s=qg(D,r,_e),F.error(_e)},complete:()=>{f=!0,C(),s=qg(D,t),F.complete()}}),St(R).subscribe(a))})(o)}}function qg(i,e,...r){if(e===!0){i();return}if(e===!1)return;let t=new ho({next:()=>{t.unsubscribe(),i()}});return St(e(...r)).subscribe(t)}function Ou(i,e,r){let t,n=!1;return i&&typeof i=="object"?{bufferSize:t=1/0,windowTime:e=1/0,refCount:n=!1,scheduler:r}=i:t=i??1/0,el({connector:()=>new $n(t,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:n})}function Na(i){return qe((e,r)=>i<=r)}function Ot(...i){let e=Oo(i);return ze((r,t)=>{(e?Po(i,r,e):Po(i,r)).subscribe(t)})}function Mt(i,e){return ze((r,t)=>{let n=null,o=0,a=!1,s=()=>a&&!n&&t.complete();r.subscribe(Ve(t,c=>{n?.unsubscribe();let u=0,f=o++;St(i(c,f)).subscribe(n=Ve(t,v=>t.next(e?e(c,v,f,u++):v),()=>{n=null,s()}))},()=>{a=!0,s()}))})}function fe(i){return ze((e,r)=>{St(i).subscribe(Ve(r,()=>r.complete(),Aa)),!r.closed&&e.subscribe(r)})}function Yg(i,e=!1){return ze((r,t)=>{let n=0;r.subscribe(Ve(t,o=>{let a=i(o,n++);(a||e)&&t.next(o),!a&&t.complete()}))})}function zt(i,e,r){let t=Be(i)||e||r?{next:i,error:e,complete:r}:i;return t?ze((n,o)=>{var a;(a=t.subscribe)===null||a===void 0||a.call(t);let s=!0;n.subscribe(Ve(o,c=>{var u;(u=t.next)===null||u===void 0||u.call(t,c),o.next(c)},()=>{var c;s=!1,(c=t.complete)===null||c===void 0||c.call(t),o.complete()},c=>{var u;s=!1,(u=t.error)===null||u===void 0||u.call(t,c),o.error(c)},()=>{var c,u;s&&((c=t.unsubscribe)===null||c===void 0||c.call(t)),(u=t.finalize)===null||u===void 0||u.call(t)}))}):sn}function HC(i,e){return ze((r,t)=>{let{leading:n=!0,trailing:o=!1}=e??{},a=!1,s=null,c=null,u=!1,f=()=>{c?.unsubscribe(),c=null,o&&(D(),u&&t.complete())},v=()=>{c=null,u&&t.complete()},C=E=>c=St(i(E)).subscribe(Ve(t,f,v)),D=()=>{if(a){a=!1;let E=s;s=null,t.next(E),!u&&C(E)}};r.subscribe(Ve(t,E=>{a=!0,s=E,!(c&&!c.closed)&&(n?D():C(E))},()=>{u=!0,!(o&&a&&c&&!c.closed)&&t.complete()}))})}function Qg(i,e=Ki,r){let t=fo(i,e);return HC(()=>t,r)}var Px="https://g.co/ng/security#xss",te=class extends Error{constructor(e,r){super(xm(e,r)),this.code=e}};function xm(i,e){return`${`NG0${Math.abs(i)}`}${e?": "+e:""}`}function ul(i){return{toString:i}.toString()}var Ru="__parameters__";function VP(i){return function(...r){if(i){let t=i(...r);for(let n in t)this[n]=t[n]}}}function Fx(i,e,r){return ul(()=>{let t=VP(e);function n(...o){if(this instanceof n)return t.apply(this,o),this;let a=new n(...o);return s.annotation=a,s;function s(c,u,f){let v=c.hasOwnProperty(Ru)?c[Ru]:Object.defineProperty(c,Ru,{value:[]})[Ru];for(;v.length<=f;)v.push(null);return(v[f]=v[f]||[]).push(a),c}}return r&&(n.prototype=Object.create(r.prototype)),n.prototype.ngMetadataName=i,n.annotationCls=n,n})}var dn=globalThis;function Kt(i){for(let e in i)if(i[e]===Kt)return e;throw Error("Could not find renamed property on target object.")}function jP(i,e){for(let r in e)e.hasOwnProperty(r)&&!i.hasOwnProperty(r)&&(i[r]=e[r])}function ln(i){if(typeof i=="string")return i;if(Array.isArray(i))return"["+i.map(ln).join(", ")+"]";if(i==null)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;let e=i.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function l_(i,e){return i==null||i===""?e===null?"":e:e==null||e===""?i:i+" "+e}var BP=Kt({__forward_ref__:Kt});function Wt(i){return i.__forward_ref__=Wt,i.toString=function(){return ln(this())},i}function Ui(i){return Nx(i)?i():i}function Nx(i){return typeof i=="function"&&i.hasOwnProperty(BP)&&i.__forward_ref__===Wt}function V(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function J(i){return{providers:i.providers||[],imports:i.imports||[]}}function Dm(i){return $C(i,Vx)||$C(i,jx)}function Lx(i){return Dm(i)!==null}function $C(i,e){return i.hasOwnProperty(e)?i[e]:null}function zP(i){let e=i&&(i[Vx]||i[jx]);return e||null}function WC(i){return i&&(i.hasOwnProperty(GC)||i.hasOwnProperty(UP))?i[GC]:null}var Vx=Kt({\u0275prov:Kt}),GC=Kt({\u0275inj:Kt}),jx=Kt({ngInjectableDef:Kt}),UP=Kt({ngInjectorDef:Kt}),O=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=V({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Bx(i){return i&&!!i.\u0275providers}var HP=Kt({\u0275cmp:Kt}),$P=Kt({\u0275dir:Kt}),WP=Kt({\u0275pipe:Kt}),GP=Kt({\u0275mod:Kt}),qu=Kt({\u0275fac:Kt}),tl=Kt({__NG_ELEMENT_ID__:Kt}),qC=Kt({__NG_ENV_ID__:Kt});function Ba(i){return typeof i=="string"?i:i==null?"":String(i)}function qP(i){return typeof i=="function"?i.name||i.toString():typeof i=="object"&&i!=null&&typeof i.type=="function"?i.type.name||i.type.toString():Ba(i)}function YP(i,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${i}`:"";throw new te(-200,i)}function _v(i,e){throw new te(-201,!1)}var gt=function(i){return i[i.Default=0]="Default",i[i.Host=1]="Host",i[i.Self=2]="Self",i[i.SkipSelf=4]="SkipSelf",i[i.Optional=8]="Optional",i}(gt||{}),d_;function zx(){return d_}function gn(i){let e=d_;return d_=i,e}function Ux(i,e,r){let t=Dm(i);if(t&&t.providedIn=="root")return t.value===void 0?t.value=t.factory():t.value;if(r>.Optional)return null;if(e!==void 0)return e;_v(i,"Injector")}var QP={},nl=QP,u_="__NG_DI_FLAG__",Yu="ngTempTokenPath",KP="ngTokenPath",ZP=/\n/gm,XP="\u0275",YC="__source",Ps;function JP(){return Ps}function Ur(i){let e=Ps;return Ps=i,e}function eF(i,e=gt.Default){if(Ps===void 0)throw new te(-203,!1);return Ps===null?Ux(i,void 0,e):Ps.get(i,e>.Optional?null:void 0,e)}function M(i,e=gt.Default){return(zx()||eF)(Ui(i),e)}function k(i,e=gt.Default){return M(i,Sm(e))}function Sm(i){return typeof i>"u"||typeof i=="number"?i:0|(i.optional&&8)|(i.host&&1)|(i.self&&2)|(i.skipSelf&&4)}function m_(i){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let a in e)if(e.hasOwnProperty(a)){let s=e[a];o.push(a+":"+(typeof s=="string"?JSON.stringify(s):ln(s)))}n=`{${o.join(", ")}}`}return`${r}${t?"("+t+")":""}[${n}]: ${i.replace(ZP,` - `)}`}var Yn=Hx(Fx("Optional"),8);var bo=Hx(Fx("SkipSelf"),4);function za(i,e){let r=i.hasOwnProperty(qu);return r?i[qu]:null}function oF(i,e,r){if(i.length!==e.length)return!1;for(let t=0;tArray.isArray(r)?vv(r,e):e(r))}function $x(i,e,r){e>=i.length?i.push(r):i.splice(e,0,r)}function Qu(i,e){return e>=i.length-1?i.pop():i.splice(e,1)[0]}function aF(i,e){let r=[];for(let t=0;te;){let o=n-2;i[n]=i[o],n--}i[e]=r,i[e+1]=t}}function Em(i,e,r){let t=ml(i,e);return t>=0?i[t|1]=r:(t=~t,sF(i,t,e,r)),t}function Kg(i,e){let r=ml(i,e);if(r>=0)return i[r|1]}function ml(i,e){return cF(i,e,1)}function cF(i,e,r){let t=0,n=i.length>>r;for(;n!==t;){let o=t+(n-t>>1),a=i[o<e?n=o:t=o+1}return~(n<e){a=o-1;break}}}for(;o-1){let o;for(;++no?v="":v=n[f+1].toLowerCase(),t&2&&u!==v){if(go(t))return!1;a=!0}}}}return go(t)||a}function go(i){return(i&1)===0}function pF(i,e,r,t){if(e===null)return-1;let n=0;if(t||!r){let o=!1;for(;n-1)for(r++;r0?'="'+s+'"':"")+"]"}else t&8?n+="."+a:t&4&&(n+=" "+a);else n!==""&&!go(a)&&(e+=KC(o,n),n=""),t=a,o=o||!go(t);r++}return n!==""&&(e+=KC(o,n)),e}function yF(i){return i.map(bF).join(",")}function wF(i){let e=[],r=[],t=1,n=2;for(;t{let e=eD(i),r=mt(B({},e),{decls:i.decls,vars:i.vars,template:i.template,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,onPush:i.changeDetection===qx.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&i.dependencies||null,getStandaloneInjector:null,signals:i.signals??!1,data:i.data||{},encapsulation:i.encapsulation||jo.Emulated,styles:i.styles||_n,_:null,schemas:i.schemas||null,tView:null,id:""});tD(r);let t=i.dependencies;return r.directiveDefs=Zu(t,!1),r.pipeDefs=Zu(t,!0),r.id=DF(r),r})}function CF(i){return Wr(i)||yv(i)}function xF(i){return i!==null}function ee(i){return ul(()=>({type:i.type,bootstrap:i.bootstrap||_n,declarations:i.declarations||_n,imports:i.imports||_n,exports:i.exports||_n,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function ZC(i,e){if(i==null)return cr;let r={};for(let t in i)if(i.hasOwnProperty(t)){let n=i[t],o,a,s=Ls.None;Array.isArray(n)?(s=n[0],o=n[1],a=n[2]??o):(o=n,a=n),e?(r[o]=s!==Ls.None?[t,s]:t,e[o]=a):r[o]=t}return r}function N(i){return ul(()=>{let e=eD(i);return tD(e),e})}function Ka(i){return{type:i.type,name:i.name,factory:null,pure:i.pure!==!1,standalone:i.standalone===!0,onDestroy:i.type.prototype.ngOnDestroy||null}}function Wr(i){return i[HP]||null}function yv(i){return i[$P]||null}function Zx(i){return i[WP]||null}function Xx(i){let e=Wr(i)||yv(i)||Zx(i);return e!==null?e.standalone:!1}function Jx(i,e){let r=i[GP]||null;if(!r&&e===!0)throw new Error(`Type ${ln(i)} does not have '\u0275mod' property.`);return r}function eD(i){let e={};return{type:i.type,providersResolver:null,factory:null,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:i.inputs||cr,exportAs:i.exportAs||null,standalone:i.standalone===!0,signals:i.signals===!0,selectors:i.selectors||_n,viewQuery:i.viewQuery||null,features:i.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ZC(i.inputs,e),outputs:ZC(i.outputs),debugInfo:null}}function tD(i){i.features?.forEach(e=>e(i))}function Zu(i,e){if(!i)return null;let r=e?Zx:CF;return()=>(typeof i=="function"?i():i).map(t=>r(t)).filter(xF)}function DF(i){let e=0,r=[i.selectors,i.ngContentSelectors,i.hostVars,i.hostAttrs,i.consts,i.vars,i.decls,i.encapsulation,i.standalone,i.signals,i.exportAs,JSON.stringify(i.inputs),JSON.stringify(i.outputs),Object.getOwnPropertyNames(i.type.prototype),!!i.contentQueries,!!i.viewQuery].join("|");for(let n of r)e=Math.imul(31,e)+n.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Im(i){return{\u0275providers:i}}function SF(...i){return{\u0275providers:iD(!0,i),\u0275fromNgModule:!0}}function iD(i,...e){let r=[],t=new Set,n,o=a=>{r.push(a)};return vv(e,a=>{let s=a;p_(s,o,[],t)&&(n||=[],n.push(s))}),n!==void 0&&nD(n,o),r}function nD(i,e){for(let r=0;r{e(o,t)})}}function p_(i,e,r,t){if(i=Ui(i),!i)return!1;let n=null,o=WC(i),a=!o&&Wr(i);if(!o&&!a){let c=i.ngModule;if(o=WC(c),o)n=c;else return!1}else{if(a&&!a.standalone)return!1;n=i}let s=t.has(n);if(a){if(s)return!1;if(t.add(n),a.dependencies){let c=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of c)p_(u,e,r,t)}}else if(o){if(o.imports!=null&&!s){t.add(n);let u;try{vv(o.imports,f=>{p_(f,e,r,t)&&(u||=[],u.push(f))})}finally{}u!==void 0&&nD(u,e)}if(!s){let u=za(n)||(()=>new n);e({provide:n,useFactory:u,deps:_n},n),e({provide:Gx,useValue:n,multi:!0},n),e({provide:Ns,useValue:()=>M(n),multi:!0},n)}let c=o.providers;if(c!=null&&!s){let u=i;wv(c,f=>{e(f,u)})}}else return!1;return n!==i&&i.providers!==void 0}function wv(i,e){for(let r of i)Bx(r)&&(r=r.\u0275providers),Array.isArray(r)?wv(r,e):e(r)}var EF=Kt({provide:String,useValue:Kt});function oD(i){return i!==null&&typeof i=="object"&&EF in i}function IF(i){return!!(i&&i.useExisting)}function MF(i){return!!(i&&i.useFactory)}function Vs(i){return typeof i=="function"}function TF(i){return!!i.useClass}var Mm=new O(""),Bu={},kF={},Zg;function Cv(){return Zg===void 0&&(Zg=new Ku),Zg}var Pi=class{},rl=class extends Pi{get destroyed(){return this._destroyed}constructor(e,r,t,n){super(),this.parent=r,this.source=t,this.scopes=n,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,g_(e,a=>this.processProvider(a)),this.records.set(Wx,As(void 0,this)),n.has("environment")&&this.records.set(Pi,As(void 0,this));let o=this.records.get(Mm);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Gx,_n,gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=bt(null);try{for(let t of this._ngOnDestroyHooks)t.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let t of r)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),bt(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Ur(this),t=gn(void 0),n;try{return e()}finally{Ur(r),gn(t)}}get(e,r=nl,t=gt.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(qC))return e[qC](this);t=Sm(t);let n,o=Ur(this),a=gn(void 0);try{if(!(t>.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=FF(e)&&Dm(e);u&&this.injectableDefInScope(u)?c=As(f_(e),Bu):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let s=t>.Self?Cv():this.parent;return r=t>.Optional&&r===nl?null:r,s.get(e,r)}catch(s){if(s.name==="NullInjectorError"){if((s[Yu]=s[Yu]||[]).unshift(ln(e)),o)throw s;return iF(s,e,"R3InjectorError",this.source)}else throw s}finally{gn(a),Ur(o)}}resolveInjectorInitializers(){let e=bt(null),r=Ur(this),t=gn(void 0),n;try{let o=this.get(Ns,_n,gt.Self);for(let a of o)a()}finally{Ur(r),gn(t),bt(e)}}toString(){let e=[],r=this.records;for(let t of r.keys())e.push(ln(t));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new te(205,!1)}processProvider(e){e=Ui(e);let r=Vs(e)?e:Ui(e&&e.provide),t=OF(e);if(!Vs(e)&&e.multi===!0){let n=this.records.get(r);n||(n=As(void 0,Bu,!0),n.factory=()=>m_(n.multi),this.records.set(r,n)),r=e,n.multi.push(e)}this.records.set(r,t)}hydrate(e,r){let t=bt(null);try{return r.value===Bu&&(r.value=kF,r.value=r.factory()),typeof r.value=="object"&&r.value&&PF(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{bt(t)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Ui(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function f_(i){let e=Dm(i),r=e!==null?e.factory:za(i);if(r!==null)return r;if(i instanceof O)throw new te(204,!1);if(i instanceof Function)return AF(i);throw new te(204,!1)}function AF(i){if(i.length>0)throw new te(204,!1);let r=zP(i);return r!==null?()=>r.factory(i):()=>new i}function OF(i){if(oD(i))return As(void 0,i.useValue);{let e=rD(i);return As(e,Bu)}}function rD(i,e,r){let t;if(Vs(i)){let n=Ui(i);return za(n)||f_(n)}else if(oD(i))t=()=>Ui(i.useValue);else if(MF(i))t=()=>i.useFactory(...m_(i.deps||[]));else if(IF(i))t=()=>M(Ui(i.useExisting));else{let n=Ui(i&&(i.useClass||i.provide));if(RF(i))t=()=>new n(...m_(i.deps));else return za(n)||f_(n)}return t}function As(i,e,r=!1){return{factory:i,value:e,multi:r?[]:void 0}}function RF(i){return!!i.deps}function PF(i){return i!==null&&typeof i=="object"&&typeof i.ngOnDestroy=="function"}function FF(i){return typeof i=="function"||typeof i=="object"&&i instanceof O}function g_(i,e){for(let r of i)Array.isArray(r)?g_(r,e):r&&Bx(r)?g_(r.\u0275providers,e):e(r)}function bn(i,e){i instanceof rl&&i.assertNotDestroyed();let r,t=Ur(i),n=gn(void 0);try{return e()}finally{Ur(t),gn(n)}}function aD(){return zx()!==void 0||JP()!=null}function xv(i){if(!aD())throw new te(-203,!1)}function NF(i){let e=dn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function LF(i){return typeof i=="function"}var Ho=0,rt=1,tt=2,en=3,vo=4,yn=5,js=6,Xu=7,Xi=8,Bs=9,Bo=10,oi=11,al=12,XC=13,qs=14,On=15,Ua=16,Os=17,lr=18,Tm=19,sD=20,Hr=21,zu=22,Gn=23,Fi=25,Dv=1;var Ha=7,Ju=8,zs=9,Ji=10,em=function(i){return i[i.None=0]="None",i[i.HasTransplantedViews=2]="HasTransplantedViews",i}(em||{});function $r(i){return Array.isArray(i)&&typeof i[Dv]=="object"}function mr(i){return Array.isArray(i)&&i[Dv]===!0}function Sv(i){return(i.flags&4)!==0}function km(i){return i.componentOffset>-1}function Am(i){return(i.flags&1)===1}function dr(i){return!!i.template}function __(i){return(i[tt]&512)!==0}var v_=class{constructor(e,r,t){this.previousValue=e,this.currentValue=r,this.firstChange=t}isFirstChange(){return this.firstChange}};function cD(i,e,r,t){e!==null?e.applyValueToInputSignal(e,t):i[r]=t}function Qe(){return lD}function lD(i){return i.type.prototype.ngOnChanges&&(i.setInput=jF),VF}Qe.ngInherit=!0;function VF(){let i=uD(this),e=i?.current;if(e){let r=i.previous;if(r===cr)i.previous=e;else for(let t in e)r[t]=e[t];i.current=null,this.ngOnChanges(e)}}function jF(i,e,r,t,n){let o=this.declaredInputs[t],a=uD(i)||BF(i,{previous:cr,current:null}),s=a.current||(a.current={}),c=a.previous,u=c[o];s[o]=new v_(u&&u.currentValue,r,c===cr),cD(i,e,n,r)}var dD="__ngSimpleChanges__";function uD(i){return i[dD]||null}function BF(i,e){return i[dD]=e}var JC=null;var Lo=function(i,e,r){JC?.(i,e,r)},mD="svg",zF="math";function zo(i){for(;Array.isArray(i);)i=i[Ho];return i}function UF(i){for(;Array.isArray(i);){if(typeof i[Dv]=="object")return i;i=i[Ho]}return null}function hD(i,e){return zo(e[i])}function Qn(i,e){return zo(e[i.index])}function Ev(i,e){return i.data[e]}function Iv(i,e){return i[e]}function Kr(i,e){let r=e[i];return $r(r)?r:r[Ho]}function HF(i){return(i[tt]&4)===4}function Mv(i){return(i[tt]&128)===128}function $F(i){return mr(i[en])}function Gr(i,e){return e==null?null:i[e]}function pD(i){i[Os]=0}function fD(i){i[tt]&1024||(i[tt]|=1024,Mv(i)&&Om(i))}function WF(i,e){for(;i>0;)e=e[qs],i--;return e}function sl(i){return!!(i[tt]&9216||i[Gn]?.dirty)}function b_(i){i[Bo].changeDetectionScheduler?.notify(7),i[tt]&64&&(i[tt]|=1024),sl(i)&&Om(i)}function Om(i){i[Bo].changeDetectionScheduler?.notify(0);let e=$a(i);for(;e!==null&&!(e[tt]&8192||(e[tt]|=8192,!Mv(e)));)e=$a(e)}function gD(i,e){if((i[tt]&256)===256)throw new te(911,!1);i[Hr]===null&&(i[Hr]=[]),i[Hr].push(e)}function GF(i,e){if(i[Hr]===null)return;let r=i[Hr].indexOf(e);r!==-1&&i[Hr].splice(r,1)}function $a(i){let e=i[en];return mr(e)?e[en]:e}var st={lFrame:SD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var _D=!1;function qF(){return st.lFrame.elementDepthCount}function YF(){st.lFrame.elementDepthCount++}function QF(){st.lFrame.elementDepthCount--}function vD(){return st.bindingsEnabled}function bD(){return st.skipHydrationRootTNode!==null}function KF(i){return st.skipHydrationRootTNode===i}function ZF(){st.skipHydrationRootTNode=null}function Ye(){return st.lFrame.lView}function ii(){return st.lFrame.tView}function y(i){return st.lFrame.contextLView=i,i[Xi]}function w(i){return st.lFrame.contextLView=null,i}function Ni(){let i=yD();for(;i!==null&&i.type===64;)i=i.parent;return i}function yD(){return st.lFrame.currentTNode}function XF(){let i=st.lFrame,e=i.currentTNode;return i.isParent?e:e.parent}function Za(i,e){let r=st.lFrame;r.currentTNode=i,r.isParent=e}function Tv(){return st.lFrame.isParent}function kv(){st.lFrame.isParent=!1}function JF(){return st.lFrame.contextLView}function wD(){return _D}function ex(i){_D=i}function hl(){let i=st.lFrame,e=i.bindingRootIndex;return e===-1&&(e=i.bindingRootIndex=i.tView.bindingStartIndex),e}function eN(){return st.lFrame.bindingIndex}function tN(i){return st.lFrame.bindingIndex=i}function Zr(){return st.lFrame.bindingIndex++}function Av(i){let e=st.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+i,r}function iN(){return st.lFrame.inI18n}function nN(i,e){let r=st.lFrame;r.bindingIndex=r.bindingRootIndex=i,y_(e)}function oN(){return st.lFrame.currentDirectiveIndex}function y_(i){st.lFrame.currentDirectiveIndex=i}function Ov(i){let e=st.lFrame.currentDirectiveIndex;return e===-1?null:i[e]}function CD(){return st.lFrame.currentQueryIndex}function Rv(i){st.lFrame.currentQueryIndex=i}function rN(i){let e=i[rt];return e.type===2?e.declTNode:e.type===1?i[yn]:null}function xD(i,e,r){if(r>.SkipSelf){let n=e,o=i;for(;n=n.parent,n===null&&!(r>.Host);)if(n=rN(o),n===null||(o=o[qs],n.type&10))break;if(n===null)return!1;e=n,i=o}let t=st.lFrame=DD();return t.currentTNode=e,t.lView=i,!0}function Pv(i){let e=DD(),r=i[rt];st.lFrame=e,e.currentTNode=r.firstChild,e.lView=i,e.tView=r,e.contextLView=i,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function DD(){let i=st.lFrame,e=i===null?null:i.child;return e===null?SD(i):e}function SD(i){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return i!==null&&(i.child=e),e}function ED(){let i=st.lFrame;return st.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var ID=ED;function Fv(){let i=ED();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function aN(i){return(st.lFrame.contextLView=WF(i,st.lFrame.contextLView))[Xi]}function hr(){return st.lFrame.selectedIndex}function Wa(i){st.lFrame.selectedIndex=i}function Ys(){let i=st.lFrame;return Ev(i.tView,i.selectedIndex)}function vi(){st.lFrame.currentNamespace=mD}function Xr(){sN()}function sN(){st.lFrame.currentNamespace=null}function cN(){return st.lFrame.currentNamespace}var MD=!0;function Rm(){return MD}function Pm(i){MD=i}function lN(i,e,r){let{ngOnChanges:t,ngOnInit:n,ngDoCheck:o}=e.type.prototype;if(t){let a=lD(e);(r.preOrderHooks??=[]).push(i,a),(r.preOrderCheckHooks??=[]).push(i,a)}n&&(r.preOrderHooks??=[]).push(0-i,n),o&&((r.preOrderHooks??=[]).push(i,o),(r.preOrderCheckHooks??=[]).push(i,o))}function Fm(i,e){for(let r=e.directiveStart,t=e.directiveEnd;r=t)break}else e[c]<0&&(i[Os]+=65536),(s>14>16&&(i[tt]&3)===e&&(i[tt]+=16384,tx(s,o)):tx(s,o)}var Fs=-1,Ga=class{constructor(e,r,t){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=t}};function uN(i){return i instanceof Ga}function mN(i){return(i.flags&8)!==0}function hN(i){return(i.flags&16)!==0}function kD(i){return i!==Fs}function tm(i){return i&32767}function pN(i){return i>>16}function im(i,e){let r=pN(i),t=e;for(;r>0;)t=t[qs],r--;return t}var w_=!0;function nm(i){let e=w_;return w_=i,e}var fN=256,AD=fN-1,OD=5,gN=0,Vo={};function _N(i,e,r){let t;typeof r=="string"?t=r.charCodeAt(0)||0:r.hasOwnProperty(tl)&&(t=r[tl]),t==null&&(t=r[tl]=gN++);let n=t&AD,o=1<>OD)]|=o}function om(i,e){let r=RD(i,e);if(r!==-1)return r;let t=e[rt];t.firstCreatePass&&(i.injectorIndex=e.length,Jg(t.data,i),Jg(e,null),Jg(t.blueprint,null));let n=Nv(i,e),o=i.injectorIndex;if(kD(n)){let a=tm(n),s=im(n,e),c=s[rt].data;for(let u=0;u<8;u++)e[o+u]=s[a+u]|c[a+u]}return e[o+8]=n,o}function Jg(i,e){i.push(0,0,0,0,0,0,0,0,e)}function RD(i,e){return i.injectorIndex===-1||i.parent&&i.parent.injectorIndex===i.injectorIndex||e[i.injectorIndex+8]===null?-1:i.injectorIndex}function Nv(i,e){if(i.parent&&i.parent.injectorIndex!==-1)return i.parent.injectorIndex;let r=0,t=null,n=e;for(;n!==null;){if(t=VD(n),t===null)return Fs;if(r++,n=n[qs],t.injectorIndex!==-1)return t.injectorIndex|r<<16}return Fs}function C_(i,e,r){_N(i,e,r)}function vN(i,e){if(e==="class")return i.classes;if(e==="style")return i.styles;let r=i.attrs;if(r){let t=r.length,n=0;for(;n>20,v=t?s:s+f,C=n?s+f:u;for(let D=v;D=c&&E.type===r)return D}if(n){let D=a[c];if(D&&dr(D)&&D.type===r)return c}return null}function qa(i,e,r,t){let n=i[r],o=e.data;if(uN(n)){let a=n;a.resolving&&YP(qP(o[r]));let s=nm(a.canSeeViewProviders);a.resolving=!0;let c,u=a.injectImpl?gn(a.injectImpl):null,f=xD(i,t,gt.Default);try{n=i[r]=a.factory(void 0,o,i,t),e.firstCreatePass&&r>=t.directiveStart&&lN(r,o[r],e)}finally{u!==null&&gn(u),nm(s),a.resolving=!1,ID()}}return n}function yN(i){if(typeof i=="string")return i.charCodeAt(0)||0;let e=i.hasOwnProperty(tl)?i[tl]:void 0;return typeof e=="number"?e>=0?e&AD:wN:e}function ix(i,e,r){let t=1<>OD)]&t)}function nx(i,e){return!(i>.Self)&&!(i>.Host&&e)}var ja=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,t){return ND(this._tNode,this._lView,e,Sm(t),r)}};function wN(){return new ja(Ni(),Ye())}function Lt(i){return ul(()=>{let e=i.prototype.constructor,r=e[qu]||x_(e),t=Object.prototype,n=Object.getPrototypeOf(i.prototype).constructor;for(;n&&n!==t;){let o=n[qu]||x_(n);if(o&&o!==r)return o;n=Object.getPrototypeOf(n)}return o=>new o})}function x_(i){return Nx(i)?()=>{let e=x_(Ui(i));return e&&e()}:za(i)}function CN(i,e,r,t,n){let o=i,a=e;for(;o!==null&&a!==null&&a[tt]&2048&&!(a[tt]&512);){let s=LD(o,a,r,t|gt.Self,Vo);if(s!==Vo)return s;let c=o.parent;if(!c){let u=a[sD];if(u){let f=u.get(r,Vo,t);if(f!==Vo)return f}c=VD(a),a=a[qs]}o=c}return n}function VD(i){let e=i[rt],r=e.type;return r===2?e.declTNode:r===1?i[yn]:null}function mi(i){return vN(Ni(),i)}function ox(i,e=null,r=null,t){let n=jD(i,e,r,t);return n.resolveInjectorInitializers(),n}function jD(i,e=null,r=null,t,n=new Set){let o=[r||_n,SF(i)];return t=t||(typeof i=="object"?void 0:ln(i)),new rl(o,e||Cv(),t||null,n)}var La=class La{static create(e,r){if(Array.isArray(e))return ox({name:""},r,e,"");{let t=e.name??"";return ox({name:t},e.parent,e.providers,t)}}};La.THROW_IF_NOT_FOUND=nl,La.NULL=new Ku,La.\u0275prov=V({token:La,providedIn:"any",factory:()=>M(Wx)}),La.__NG_ELEMENT_ID__=-1;var Pe=La;var xN=new O("");xN.__NG_ELEMENT_ID__=i=>{let e=Ni();if(e===null)throw new te(204,!1);if(e.type&2)return e.value;if(i>.Optional)return null;throw new te(204,!1)};var DN="ngOriginalError";function e_(i){return i[DN]}var un=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&e_(e);for(;r&&e_(r);)r=e_(r);return r||null}},BD=new O("",{providedIn:"root",factory:()=>k(un).handleError.bind(void 0)}),pl=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=SN,e.__NG_ENV_ID__=t=>t;let i=e;return i})(),D_=class extends pl{constructor(e){super(),this._lView=e}onDestroy(e){return gD(this._lView,e),()=>GF(this._lView,e)}};function SN(){return new D_(Ye())}function EN(){return Qs(Ni(),Ye())}function Qs(i,e){return new G(Qn(i,e))}var G=(()=>{let e=class e{constructor(t){this.nativeElement=t}};e.__NG_ELEMENT_ID__=EN;let i=e;return i})();function IN(i){return i instanceof G?i.nativeElement:i}var $o=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new $t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new e});let i=e;return i})();var S_=class extends W{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,aD()&&(this.destroyRef=k(pl,{optional:!0})??void 0,this.pendingTasks=k($o,{optional:!0})??void 0)}emit(e){let r=bt(null);try{super.next(e)}finally{bt(r)}}subscribe(e,r,t){let n=e,o=r||(()=>null),a=t;if(e&&typeof e=="object"){let c=e;n=c.next?.bind(c),o=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),n&&(n=this.wrapInTimeout(n)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:n,error:o,complete:a});return e instanceof Ce&&e.add(s),s}wrapInTimeout(e){return r=>{let t=this.pendingTasks?.add();setTimeout(()=>{e(r),t!==void 0&&this.pendingTasks?.remove(t)})}}},T=S_;function MN(){return this._results[Symbol.iterator]()}var qn=class i{get changes(){return this._changes??=new T}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=i.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=MN)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let t=rF(e);(this._changesDetected=!oF(this._results,t,r))&&(this._results=t,this.length=t.length,this.last=t[this.length-1],this.first=t[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function zD(i){return(i.flags&128)===128}var UD=new Map,TN=0;function kN(){return TN++}function AN(i){UD.set(i[Tm],i)}function ON(i){UD.delete(i[Tm])}var rx="__ngContext__";function qr(i,e){$r(e)?(i[rx]=e[Tm],AN(e)):i[rx]=e}function HD(i){return WD(i[al])}function $D(i){return WD(i[vo])}function WD(i){for(;i!==null&&!mr(i);)i=i[vo];return i}var E_;function GD(i){E_=i}function qD(){if(E_!==void 0)return E_;if(typeof document<"u")return document;throw new te(210,!1)}var Ks=new O("",{providedIn:"root",factory:()=>RN}),RN="ng",Lv=new O(""),Kn=new O("",{providedIn:"platform",factory:()=>"unknown"});var Tt=new O(""),fl=new O("",{providedIn:"root",factory:()=>qD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var PN="h",FN="b";var NN=()=>null;function Vv(i,e,r=!1){return NN(i,e,r)}var YD=!1,LN=new O("",{providedIn:"root",factory:()=>YD});var Pu;function VN(){if(Pu===void 0&&(Pu=null,dn.trustedTypes))try{Pu=dn.trustedTypes.createPolicy("angular",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Pu}function Nm(i){return VN()?.createHTML(i)||i}var Fu;function QD(){if(Fu===void 0&&(Fu=null,dn.trustedTypes))try{Fu=dn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Fu}function ax(i){return QD()?.createHTML(i)||i}function sx(i){return QD()?.createScriptURL(i)||i}var ur=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Px})`}},I_=class extends ur{getTypeName(){return"HTML"}},M_=class extends ur{getTypeName(){return"Style"}},T_=class extends ur{getTypeName(){return"Script"}},k_=class extends ur{getTypeName(){return"URL"}},A_=class extends ur{getTypeName(){return"ResourceURL"}};function Zn(i){return i instanceof ur?i.changingThisBreaksApplicationSecurity:i}function pr(i,e){let r=jN(i);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Px})`)}return r===e}function jN(i){return i instanceof ur&&i.getTypeName()||null}function KD(i){return new I_(i)}function ZD(i){return new M_(i)}function XD(i){return new T_(i)}function JD(i){return new k_(i)}function eS(i){return new A_(i)}function BN(i){let e=new R_(i);return zN()?new O_(e):e}var O_=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Nm(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},R_=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Nm(e),r}};function zN(){try{return!!new window.DOMParser().parseFromString(Nm(""),"text/html")}catch{return!1}}var UN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Lm(i){return i=String(i),i.match(UN)?i:"unsafe:"+i}function fr(i){let e={};for(let r of i.split(","))e[r]=!0;return e}function gl(...i){let e={};for(let r of i)for(let t in r)r.hasOwnProperty(t)&&(e[t]=!0);return e}var tS=fr("area,br,col,hr,img,wbr"),iS=fr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nS=fr("rp,rt"),HN=gl(nS,iS),$N=gl(iS,fr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),WN=gl(nS,fr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),cx=gl(tS,$N,WN,HN),oS=fr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),GN=fr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qN=fr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),YN=gl(oS,GN,qN),QN=fr("script,style,template"),P_=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,t=!0,n=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?t=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,t&&r.firstChild){n.push(r),r=XN(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=ZN(r);if(o){r=o;break}r=n.pop()}}return this.buf.join("")}startElement(e){let r=lx(e).toLowerCase();if(!cx.hasOwnProperty(r))return this.sanitizedSomething=!0,!QN.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let t=e.attributes;for(let n=0;n"),!0}endElement(e){let r=lx(e).toLowerCase();cx.hasOwnProperty(r)&&!tS.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(dx(e))}};function KN(i,e){return(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function ZN(i){let e=i.nextSibling;if(e&&i!==e.previousSibling)throw rS(e);return e}function XN(i){let e=i.firstChild;if(e&&KN(i,e))throw rS(e);return e}function lx(i){let e=i.nodeName;return typeof e=="string"?e:"FORM"}function rS(i){return new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`)}var JN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,e2=/([^\#-~ |!])/g;function dx(i){return i.replace(/&/g,"&").replace(JN,function(e){let r=e.charCodeAt(0),t=e.charCodeAt(1);return"&#"+((r-55296)*1024+(t-56320)+65536)+";"}).replace(e2,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Nu;function jv(i,e){let r=null;try{Nu=Nu||BN(i);let t=e?String(e):"";r=Nu.getInertBodyElement(t);let n=5,o=t;do{if(n===0)throw new Error("Failed to sanitize html because the input is unstable");n--,t=o,o=r.innerHTML,r=Nu.getInertBodyElement(t)}while(t!==o);let s=new P_().sanitizeChildren(ux(r)||r);return Nm(s)}finally{if(r){let t=ux(r)||r;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function ux(i){return"content"in i&&t2(i)?i.content:null}function t2(i){return i.nodeType===Node.ELEMENT_NODE&&i.nodeName==="TEMPLATE"}var Hi=function(i){return i[i.NONE=0]="NONE",i[i.HTML=1]="HTML",i[i.STYLE=2]="STYLE",i[i.SCRIPT=3]="SCRIPT",i[i.URL=4]="URL",i[i.RESOURCE_URL=5]="RESOURCE_URL",i}(Hi||{});function Gt(i){let e=Bv();return e?ax(e.sanitize(Hi.HTML,i)||""):pr(i,"HTML")?ax(Zn(i)):jv(qD(),Ba(i))}function Ee(i){let e=Bv();return e?e.sanitize(Hi.URL,i)||"":pr(i,"URL")?Zn(i):Lm(Ba(i))}function i2(i){let e=Bv();if(e)return sx(e.sanitize(Hi.RESOURCE_URL,i)||"");if(pr(i,"ResourceURL"))return sx(Zn(i));throw new te(904,!1)}function n2(i,e){return e==="src"&&(i==="embed"||i==="frame"||i==="iframe"||i==="media"||i==="script")||e==="href"&&(i==="base"||i==="link")?i2:Ee}function aS(i,e,r){return n2(e,r)(i)}function Bv(){let i=Ye();return i&&i[Bo].sanitizer}var o2=/^>|^->||--!>|)/g,a2="\u200B$1\u200B";function s2(i){return i.replace(o2,e=>e.replace(r2,a2))}function Vm(i){return i.ownerDocument.defaultView}function sS(i){return i.ownerDocument}function cS(i){return i instanceof Function?i():i}function lS(i){return(i??k(Pe)).get(Kn)==="browser"}var Uo=function(i){return i[i.Important=1]="Important",i[i.DashCase=2]="DashCase",i}(Uo||{}),c2;function zv(i,e){return c2(i,e)}function Rs(i,e,r,t,n){if(t!=null){let o,a=!1;mr(t)?o=t:$r(t)&&(a=!0,t=t[Ho]);let s=zo(t);i===0&&r!==null?n==null?pS(e,r,s):rm(e,r,s,n||null,!0):i===1&&r!==null?rm(e,r,s,n||null,!0):i===2?x2(e,s,a):i===3&&e.destroyNode(s),o!=null&&S2(e,i,o,r,n)}}function l2(i,e){return i.createText(e)}function d2(i,e,r){i.setValue(e,r)}function u2(i,e){return i.createComment(s2(e))}function dS(i,e,r){return i.createElement(e,r)}function m2(i,e){uS(i,e),e[Ho]=null,e[yn]=null}function h2(i,e,r,t,n,o){t[Ho]=n,t[yn]=e,zm(i,t,r,1,n,o)}function uS(i,e){e[Bo].changeDetectionScheduler?.notify(8),zm(i,e,e[oi],2,null,null)}function p2(i){let e=i[al];if(!e)return t_(i[rt],i);for(;e;){let r=null;if($r(e))r=e[al];else{let t=e[Ji];t&&(r=t)}if(!r){for(;e&&!e[vo]&&e!==i;)$r(e)&&t_(e[rt],e),e=e[en];e===null&&(e=i),$r(e)&&t_(e[rt],e),r=e&&e[vo]}e=r}}function f2(i,e,r,t){let n=Ji+t,o=r.length;t>0&&(r[n-1][vo]=e),t0&&(i[r-1][vo]=t[vo]);let o=Qu(i,Ji+e);m2(t[rt],t);let a=o[lr];a!==null&&a.detachView(o[rt]),t[en]=null,t[vo]=null,t[tt]&=-129}return t}function jm(i,e){if(!(e[tt]&256)){let r=e[oi];r.destroyNode&&zm(i,e,r,3,null,null),p2(e)}}function t_(i,e){if(e[tt]&256)return;let r=bt(null);try{e[tt]&=-129,e[tt]|=256,e[Gn]&&ou(e[Gn]),_2(i,e),g2(i,e),e[rt].type===1&&e[oi].destroy();let t=e[Ua];if(t!==null&&mr(e[en])){t!==e[en]&&Uv(t,e);let n=e[lr];n!==null&&n.detachView(i)}ON(e)}finally{bt(r)}}function g2(i,e){let r=i.cleanup,t=e[Xu];if(r!==null)for(let o=0;o=0?t[a]():t[-a].unsubscribe(),o+=2}else{let a=t[r[o+1]];r[o].call(a)}t!==null&&(e[Xu]=null);let n=e[Hr];if(n!==null){e[Hr]=null;for(let o=0;o-1){let{encapsulation:o}=i.data[t.directiveStart+n];if(o===jo.None||o===jo.Emulated)return null}return Qn(t,r)}}function rm(i,e,r,t,n){i.insertBefore(e,r,t,n)}function pS(i,e,r){i.appendChild(e,r)}function mx(i,e,r,t,n){t!==null?rm(i,e,r,t,n):pS(i,e,r)}function b2(i,e,r,t){i.removeChild(e,r,t)}function Hv(i,e){return i.parentNode(e)}function y2(i,e){return i.nextSibling(e)}function fS(i,e,r){return C2(i,e,r)}function w2(i,e,r){return i.type&40?Qn(i,r):null}var C2=w2,hx;function Bm(i,e,r,t){let n=hS(i,t,e),o=e[oi],a=t.parent||e[yn],s=fS(a,t,e);if(n!=null)if(Array.isArray(r))for(let c=0;cFi&&yS(i,e,Fi,!1),Lo(a?2:0,n),r(t,n)}finally{Wa(o),Lo(a?3:1,n)}}function Wv(i,e,r){if(Sv(e)){let t=bt(null);try{let n=e.directiveStart,o=e.directiveEnd;for(let a=n;anull;function P2(i,e,r,t){let n=TS(e);n.push(r),i.firstCreatePass&&kS(i).push(t,n.length-1)}function F2(i,e,r,t,n,o){let a=e?e.injectorIndex:-1,s=0;return bD()&&(s|=128),{type:r,index:t,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:n,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function px(i,e,r,t,n){for(let o in e){if(!e.hasOwnProperty(o))continue;let a=e[o];if(a===void 0)continue;t??={};let s,c=Ls.None;Array.isArray(a)?(s=a[0],c=a[1]):s=a;let u=o;if(n!==null){if(!n.hasOwnProperty(o))continue;u=n[o]}i===0?fx(t,r,u,s,c):fx(t,r,u,s)}return t}function fx(i,e,r,t,n){let o;i.hasOwnProperty(r)?(o=i[r]).push(e,t):o=i[r]=[e,t],n!==void 0&&o.push(n)}function N2(i,e,r){let t=e.directiveStart,n=e.directiveEnd,o=i.data,a=e.attrs,s=[],c=null,u=null;for(let f=t;f0;){let r=i[--e];if(typeof r=="number"&&r<0)return r}return 0}function z2(i,e,r,t){let n=r.directiveStart,o=r.directiveEnd;km(r)&&Y2(e,r,i.data[n+r.componentOffset]),i.firstCreatePass||om(r,e),qr(t,e);let a=r.initialInputs;for(let s=n;s{Om(i.lView)},consumerOnSignalRead(){this.lView[Gn]=this}});function sL(i){let e=i[Gn]??Object.create(cL);return e.lView=i,e}var cL=mt(B({},tu),{consumerIsAlwaysLive:!0,consumerMarkedDirty:i=>{let e=$a(i.lView);for(;e&&!LS(e[rt]);)e=$a(e);e&&fD(e)},consumerOnSignalRead(){this.lView[Gn]=this}});function LS(i){return i.type!==2}var lL=100;function VS(i,e=!0,r=0){let t=i[Bo],n=t.rendererFactory,o=!1;o||n.begin?.();try{dL(i,r)}catch(a){throw e&&OS(i,a),a}finally{o||(n.end?.(),t.inlineEffectRunner?.flush())}}function dL(i,e){let r=wD();try{ex(!0),V_(i,e);let t=0;for(;sl(i);){if(t===lL)throw new te(103,!1);t++,V_(i,1)}}finally{ex(r)}}function uL(i,e,r,t){let n=e[tt];if((n&256)===256)return;let o=!1,a=!1;!o&&e[Bo].inlineEffectRunner?.flush(),Pv(e);let s=!0,c=null,u=null;o||(LS(i)?(u=nL(e),c=iu(u)):uC()===null?(s=!1,u=sL(e),c=iu(u)):e[Gn]&&(ou(e[Gn]),e[Gn]=null));try{pD(e),tN(i.bindingStartIndex),r!==null&&xS(i,e,r,2,t);let f=(n&3)===3;if(!o)if(f){let D=i.preOrderCheckHooks;D!==null&&Uu(e,D,null)}else{let D=i.preOrderHooks;D!==null&&Hu(e,D,0,null),Xg(e,0)}if(a||mL(e),jS(e,0),i.contentQueries!==null&&MS(i,e),!o)if(f){let D=i.contentCheckHooks;D!==null&&Uu(e,D)}else{let D=i.contentHooks;D!==null&&Hu(e,D,1),Xg(e,1)}M2(i,e);let v=i.components;v!==null&&zS(e,v,0);let C=i.viewQuery;if(C!==null&&L_(2,C,t),!o)if(f){let D=i.viewCheckHooks;D!==null&&Uu(e,D)}else{let D=i.viewHooks;D!==null&&Hu(e,D,2),Xg(e,2)}if(i.firstUpdatePass===!0&&(i.firstUpdatePass=!1),e[zu]){for(let D of e[zu])D();e[zu]=null}o||(e[tt]&=-73)}catch(f){throw o||Om(e),f}finally{u!==null&&(Sg(u,c),s&&rL(u)),Fv()}}function jS(i,e){for(let r=HD(i);r!==null;r=$D(r))for(let t=Ji;t-1&&(cl(e,t),Qu(r,t))}this._attachedToViewContainer=!1}jm(this._lView[rt],this._lView)}onDestroy(e){gD(this._lView,e)}markForCheck(){Xv(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[tt]&=-129}reattach(){b_(this._lView),this._lView[tt]|=128}detectChanges(){this._lView[tt]|=1024,VS(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=__(this._lView),r=this._lView[Ua];r!==null&&!e&&Uv(r,this._lView),uS(this._lView[rt],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new te(902,!1);this._appRef=e;let r=__(this._lView),t=this._lView[Ua];t!==null&&!r&&mS(t,this._lView),b_(this._lView)}},lt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=gL;let i=e;return i})(),pL=lt,fL=class extends pL{constructor(e,r,t){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=t}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,t){let n=vl(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:t});return new Ya(n)}};function gL(){return $m(Ni(),Ye())}function $m(i,e){return i.type&4?new fL(e,i,Qs(i,e)):null}var Fne=new RegExp(`^(\\d+)*(${FN}|${PN})*(.*)`);var _L=()=>null;function Hs(i,e){return _L(i,e)}var $s=class{},US=new O("",{providedIn:"root",factory:()=>!1});var HS=new O(""),j_=class{},sm=class{};function vL(i){let e=Error(`No component factory found for ${ln(i)}.`);return e[bL]=i,e}var bL="ngComponent";var B_=class{resolveComponentFactory(e){throw vL(e)}},ub=class ub{};ub.NULL=new B_;var vn=ub,Yr=class{},gr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>yL();let i=e;return i})();function yL(){let i=Ye(),e=Ni(),r=Kr(e.index,i);return($r(r)?r:i)[oi]}var wL=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>null});let i=e;return i})(),i_={};var gx=new Set;function _r(i){gx.has(i)||(gx.add(i),performance?.mark?.("mark_feature_usage",{detail:{feature:i}}))}function $S(i){let e=!0;return setTimeout(()=>{e&&(e=!1,i())}),typeof dn.requestAnimationFrame=="function"&&dn.requestAnimationFrame(()=>{e&&(e=!1,i())}),()=>{e=!1}}function _x(i){let e=!0;return queueMicrotask(()=>{e&&i()}),()=>{e=!1}}function vx(...i){}var Z=class i{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new T(!1),this.onMicrotaskEmpty=new T(!1),this.onStable=new T(!1),this.onError=new T(!1),typeof Zone>"u")throw new te(908,!1);Zone.assertZonePatched();let n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!t&&r,n.shouldCoalesceRunChangeDetection=t,n.callbackScheduled=!1,DL(n)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!i.isInAngularZone())throw new te(909,!1)}static assertNotInAngularZone(){if(i.isInAngularZone())throw new te(909,!1)}run(e,r,t){return this._inner.run(e,r,t)}runTask(e,r,t,n){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+n,e,CL,vx,vx);try{return o.runTask(a,r,t)}finally{o.cancelTask(a)}}runGuarded(e,r,t){return this._inner.runGuarded(e,r,t)}runOutsideAngular(e){return this._outer.run(e)}},CL={};function Jv(i){if(i._nesting==0&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function xL(i){i.isCheckStableRunning||i.callbackScheduled||(i.callbackScheduled=!0,Zone.root.run(()=>{$S(()=>{i.callbackScheduled=!1,z_(i),i.isCheckStableRunning=!0,Jv(i),i.isCheckStableRunning=!1})}),z_(i))}function DL(i){let e=()=>{xL(i)};i._inner=i._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,t,n,o,a,s)=>{if(SL(s))return r.invokeTask(n,o,a,s);try{return bx(i),r.invokeTask(n,o,a,s)}finally{(i.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||i.shouldCoalesceRunChangeDetection)&&e(),yx(i)}},onInvoke:(r,t,n,o,a,s,c)=>{try{return bx(i),r.invoke(n,o,a,s,c)}finally{i.shouldCoalesceRunChangeDetection&&!i.callbackScheduled&&!EL(s)&&e(),yx(i)}},onHasTask:(r,t,n,o)=>{r.hasTask(n,o),t===n&&(o.change=="microTask"?(i._hasPendingMicrotasks=o.microTask,z_(i),Jv(i)):o.change=="macroTask"&&(i.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,t,n,o)=>(r.handleError(n,o),i.runOutsideAngular(()=>i.onError.emit(o)),!1)})}function z_(i){i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&i.callbackScheduled===!0?i.hasPendingMicrotasks=!0:i.hasPendingMicrotasks=!1}function bx(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function yx(i){i._nesting--,Jv(i)}var cm=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new T,this.onMicrotaskEmpty=new T,this.onStable=new T,this.onError=new T}run(e,r,t){return e.apply(r,t)}runGuarded(e,r,t){return e.apply(r,t)}runOutsideAngular(e){return e()}runTask(e,r,t,n){return e.apply(r,t)}};function SL(i){return WS(i,"__ignore_ng_zone__")}function EL(i){return WS(i,"__scheduler_tick__")}function WS(i,e){return!Array.isArray(i)||i.length!==1?!1:i[0]?.data?.[e]===!0}function IL(i="zone.js",e){return i==="noop"?new cm:i==="zone.js"?new Z(e):i}var Va=function(i){return i[i.EarlyRead=0]="EarlyRead",i[i.Write=1]="Write",i[i.MixedReadWrite=2]="MixedReadWrite",i[i.Read=3]="Read",i}(Va||{}),GS={destroy(){}};function yl(i,e){!e&&xv(yl);let r=e?.injector??k(Pe);if(!lS(r))return GS;_r("NgAfterRender");let t=r.get(Wm),n=t.handler??=new dm,o=e?.phase??Va.MixedReadWrite,a=()=>{n.unregister(c),s()},s=r.get(pl).onDestroy(a),c=bn(r,()=>new lm(o,i));return n.register(c),{destroy:a}}function ri(i,e){!e&&xv(ri);let r=e?.injector??k(Pe);if(!lS(r))return GS;_r("NgAfterNextRender");let t=r.get(Wm),n=t.handler??=new dm,o=e?.phase??Va.MixedReadWrite,a=()=>{n.unregister(c),s()},s=r.get(pl).onDestroy(a),c=bn(r,()=>new lm(o,()=>{a(),i()}));return n.register(c),{destroy:a}}var lm=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=k(Z),this.errorHandler=k(un,{optional:!0}),k($s,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},dm=class{constructor(){this.executingCallbacks=!1,this.buckets={[Va.EarlyRead]:new Set,[Va.Write]:new Set,[Va.MixedReadWrite]:new Set,[Va.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Wm=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let n of t)n()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new e});let i=e;return i})();function um(i,e,r){let t=r?i.styles:null,n=r?i.classes:null,o=0;if(e!==null)for(let a=0;a0&&vS(i,r,o.join(" "))}}function PL(i,e,r){let t=i.projection=[];for(let n=0;n{let e=class e{};e.__NG_ELEMENT_ID__=NL;let i=e;return i})();function NL(){let i=Ni();return YS(i,Ye())}var LL=wt,qS=class extends LL{constructor(e,r,t){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=t}get element(){return Qs(this._hostTNode,this._hostLView)}get injector(){return new ja(this._hostTNode,this._hostLView)}get parentInjector(){let e=Nv(this._hostTNode,this._hostLView);if(kD(e)){let r=im(e,this._hostLView),t=tm(e),n=r[rt].data[t+8];return new ja(n,r)}else return new ja(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Cx(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ji}createEmbeddedView(e,r,t){let n,o;typeof t=="number"?n=t:t!=null&&(n=t.index,o=t.injector);let a=Hs(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(r||{},o,a);return this.insertImpl(s,n,Us(this._hostTNode,a)),s}createComponent(e,r,t,n,o){let a=e&&!LF(e),s;if(a)s=r;else{let E=r||{};s=E.index,t=E.injector,n=E.projectableNodes,o=E.environmentInjector||E.ngModuleRef}let c=a?e:new Ws(Wr(e)),u=t||this.parentInjector;if(!o&&c.ngModule==null){let R=(a?u:this.parentInjector).get(Pi,null);R&&(o=R)}let f=Wr(c.componentType??{}),v=Hs(this._lContainer,f?.id??null),C=v?.firstChild??null,D=c.create(u,n,C,o);return this.insertImpl(D.hostView,s,Us(this._hostTNode,v)),D}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,t){let n=e._lView;if($F(n)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let c=n[en],u=new qS(c,c[yn],c[en]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),a=this._lContainer;return bl(a,n,o,t),e.attachToViewContainerRef(),$x(n_(a),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Cx(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),t=cl(this._lContainer,r);t&&(Qu(n_(this._lContainer),r),jm(t[rt],t))}detach(e){let r=this._adjustIndex(e,-1),t=cl(this._lContainer,r);return t&&Qu(n_(this._lContainer),r)!=null?new Ya(t):null}_adjustIndex(e,r=0){return e??this.length+r}};function Cx(i){return i[Ju]}function n_(i){return i[Ju]||(i[Ju]=[])}function YS(i,e){let r,t=e[i.index];return mr(t)?r=t:(r=IS(t,e,null,i),e[i.index]=r,Hm(e,r)),jL(r,e,i,t),new qS(r,i,e)}function VL(i,e){let r=i[oi],t=r.createComment(""),n=Qn(e,i),o=Hv(r,n);return rm(r,o,t,y2(r,n),!1),t}var jL=UL,BL=()=>!1;function zL(i,e,r){return BL(i,e,r)}function UL(i,e,r,t){if(i[Ha])return;let n;r.type&8?n=zo(t):n=VL(e,r),i[Ha]=n}var $_=class i{constructor(e){this.queryList=e,this.matches=null}clone(){return new i(this.queryList)}setDirty(){this.queryList.setDirty()}},W_=class i{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let t=e.contentQueries!==null?e.contentQueries[0]:r.length,n=[];for(let o=0;o0)t.push(a[s/2]);else{let u=o[s+1],f=e[-c];for(let v=Ji;ve.trim())}function ZS(i,e,r){i.queries===null&&(i.queries=new G_),i.queries.track(new q_(e,r))}function ZL(i,e){let r=i.contentQueries||(i.contentQueries=[]),t=r.length?r[r.length-1]:-1;e!==t&&r.push(i.queries.length-1,e)}function eb(i,e){return i.queries.getByIndex(e)}function XL(i,e){let r=i[rt],t=eb(r,e);return t.crossesNgTemplate?Y_(r,i,e,[]):QS(r,i,t,e)}function Gm(i){return typeof i=="function"&&i[eu]!==void 0}function XS(i){return Gm(i)&&typeof i.set=="function"}function JL(i){let e=[],r=new Map;function t(n){let o=r.get(n);if(!o){let a=i(n);r.set(n,o=a.then(nV))}return o}return pm.forEach((n,o)=>{let a=[];n.templateUrl&&a.push(t(n.templateUrl).then(u=>{n.template=u}));let s=typeof n.styles=="string"?[n.styles]:n.styles||[];if(n.styles=s,n.styleUrl&&n.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(n.styleUrls?.length){let u=n.styles.length,f=n.styleUrls;n.styleUrls.forEach((v,C)=>{s.push(""),a.push(t(v).then(D=>{s[u+C]=D,f.splice(f.indexOf(v),1),f.length==0&&(n.styleUrls=void 0)}))})}else n.styleUrl&&a.push(t(n.styleUrl).then(u=>{s.push(u),n.styleUrl=void 0}));let c=Promise.all(a).then(()=>oV(o));e.push(c)}),tV(),Promise.all(e).then(()=>{})}var pm=new Map,eV=new Set;function tV(){let i=pm;return pm=new Map,i}function iV(){return pm.size===0}function nV(i){return typeof i=="string"?i:i.text()}function oV(i){eV.delete(i)}function rV(i){return Object.getPrototypeOf(i.prototype).constructor}function ve(i){let e=rV(i.type),r=!0,t=[i];for(;e;){let n;if(dr(i))n=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new te(903,!1);n=e.\u0275dir}if(n){if(r){t.push(n);let a=i;a.inputs=Lu(i.inputs),a.inputTransforms=Lu(i.inputTransforms),a.declaredInputs=Lu(i.declaredInputs),a.outputs=Lu(i.outputs);let s=n.hostBindings;s&&dV(i,s);let c=n.viewQuery,u=n.contentQueries;if(c&&cV(i,c),u&&lV(i,u),aV(i,n),jP(i.outputs,n.outputs),dr(n)&&n.data.animation){let f=i.data;f.animation=(f.animation||[]).concat(n.data.animation)}}let o=n.features;if(o)for(let a=0;a=0;t--){let n=i[t];n.hostVars=e+=n.hostVars,n.hostAttrs=ol(n.hostAttrs,r=ol(r,n.hostAttrs))}}function Lu(i){return i===cr?{}:i===_n?[]:i}function cV(i,e){let r=i.viewQuery;r?i.viewQuery=(t,n)=>{e(t,n),r(t,n)}:i.viewQuery=e}function lV(i,e){let r=i.contentQueries;r?i.contentQueries=(t,n,o)=>{e(t,n,o),r(t,n,o)}:i.contentQueries=e}function dV(i,e){let r=i.hostBindings;r?i.hostBindings=(t,n)=>{e(t,n),r(t,n)}:i.hostBindings=e}function JS(i){let e=r=>{let t=(Array.isArray(i)?i:i()).map(n=>typeof n=="function"?{directive:Ui(n),inputs:cr,outputs:cr}:{directive:Ui(n.directive),inputs:xx(n.inputs),outputs:xx(n.outputs)});r.hostDirectives===null?(r.findHostDirectiveDefs=eE,r.hostDirectives=t):r.hostDirectives.unshift(...t)};return e.ngInherit=!0,e}function eE(i,e,r){if(i.hostDirectives!==null)for(let t of i.hostDirectives){let n=yv(t.directive);uV(n.declaredInputs,t.inputs),eE(n,e,r),r.set(n,t),e.push(n)}}function xx(i){if(i===void 0||i.length===0)return cr;let e={};for(let r=0;rr()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},gm=class extends ll{constructor(e){super(),this.moduleType=e}create(e){return new fm(this.moduleType,e,[])}};function mV(i,e,r){return new fm(i,e,r)}var Q_=class extends Qr{constructor(e){super(),this.componentFactoryResolver=new mm(this),this.instance=null;let r=new rl([...e.providers,{provide:Qr,useValue:this},{provide:vn,useValue:this.componentFactoryResolver}],e.parent||Cv(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function qm(i,e,r=null){return new Q_({providers:i,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function tE(i){return tb(i)?Array.isArray(i)||!(i instanceof Map)&&Symbol.iterator in i:!1}function hV(i,e){if(Array.isArray(i))for(let r=0;r>17&32767}function yV(i){return(i&2)==2}function wV(i,e){return i&131071|e<<17}function K_(i){return i|2}function Gs(i){return(i&131068)>>2}function o_(i,e){return i&-131069|e<<2}function CV(i){return(i&1)===1}function Z_(i){return i|1}function xV(i,e,r,t,n,o){let a=o?e.classBindings:e.styleBindings,s=Qa(a),c=Gs(a);i[t]=r;let u=!1,f;if(Array.isArray(r)){let v=r;f=v[1],(f===null||ml(v,f)>0)&&(u=!0)}else f=r;if(n)if(c!==0){let C=Qa(i[s+1]);i[t+1]=Vu(C,s),C!==0&&(i[C+1]=o_(i[C+1],t)),i[s+1]=wV(i[s+1],t)}else i[t+1]=Vu(s,0),s!==0&&(i[s+1]=o_(i[s+1],t)),s=t;else i[t+1]=Vu(c,0),s===0?s=t:i[c+1]=o_(i[c+1],t),c=t;u&&(i[t+1]=K_(i[t+1])),Dx(i,f,t,!0),Dx(i,f,t,!1),DV(e,f,i,t,o),a=Vu(s,c),o?e.classBindings=a:e.styleBindings=a}function DV(i,e,r,t,n){let o=n?i.residualClasses:i.residualStyles;o!=null&&typeof e=="string"&&ml(o,e)>=0&&(r[t+1]=Z_(r[t+1]))}function Dx(i,e,r,t){let n=i[r+1],o=e===null,a=t?Qa(n):Gs(n),s=!1;for(;a!==0&&(s===!1||o);){let c=i[a],u=i[a+1];SV(c,e)&&(s=!0,i[a+1]=t?Z_(u):K_(u)),a=t?Qa(u):Gs(u)}s&&(i[r+1]=t?K_(n):Z_(n))}function SV(i,e){return i===null||e==null||(Array.isArray(i)?i[1]:i)===e?!0:Array.isArray(i)&&typeof e=="string"?ml(i,e)>=0:!1}var _o={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function EV(i){return i.substring(_o.key,_o.keyEnd)}function IV(i){return MV(i),nE(i,oE(i,0,_o.textEnd))}function nE(i,e){let r=_o.textEnd;return r===e?-1:(e=_o.keyEnd=TV(i,_o.key=e,r),oE(i,e,r))}function MV(i){_o.key=0,_o.keyEnd=0,_o.value=0,_o.valueEnd=0,_o.textEnd=i.length}function oE(i,e,r){for(;e32;)e++;return e}function p(i,e,r){let t=Ye(),n=Zr();if(Rn(t,n,e)){let o=ii(),a=Ys();_l(o,a,t,i,e,t[oi],r,!1)}return p}function X_(i,e,r,t,n){let o=e.inputs,a=n?"class":"style";Kv(i,r,o[a],a,t)}function xi(i,e,r){return aE(i,e,r,!1),xi}function ne(i,e){return aE(i,e,null,!0),ne}function qt(i){sE(FV,rE,i,!0)}function rE(i,e){for(let r=IV(e);r>=0;r=nE(e,r))Em(i,EV(e),!0)}function aE(i,e,r,t){let n=Ye(),o=ii(),a=Av(2);if(o.firstUpdatePass&&lE(o,i,a,t),e!==wn&&Rn(n,a,e)){let s=o.data[hr()];dE(o,s,n,n[oi],i,n[a+1]=LV(e,r),t,a)}}function sE(i,e,r,t){let n=ii(),o=Av(2);n.firstUpdatePass&&lE(n,null,o,t);let a=Ye();if(r!==wn&&Rn(a,o,r)){let s=n.data[hr()];if(uE(s,t)&&!cE(n,o)){let c=t?s.classesWithoutHost:s.stylesWithoutHost;c!==null&&(r=l_(c,r||"")),X_(n,s,a,r,t)}else NV(n,s,a,a[oi],a[o+1],a[o+1]=PV(i,e,r),t,o)}}function cE(i,e){return e>=i.expandoStartIndex}function lE(i,e,r,t){let n=i.data;if(n[r+1]===null){let o=n[hr()],a=cE(i,r);uE(o,t)&&e===null&&!a&&(e=!1),e=kV(n,o,e,t),xV(n,o,e,r,a,t)}}function kV(i,e,r,t){let n=Ov(i),o=t?e.residualClasses:e.residualStyles;if(n===null)(t?e.classBindings:e.styleBindings)===0&&(r=r_(null,i,e,r,t),r=dl(r,e.attrs,t),o=null);else{let a=e.directiveStylingLast;if(a===-1||i[a]!==n)if(r=r_(n,i,e,r,t),o===null){let c=AV(i,e,t);c!==void 0&&Array.isArray(c)&&(c=r_(null,i,e,c[1],t),c=dl(c,e.attrs,t),OV(i,e,t,c))}else o=RV(i,e,t)}return o!==void 0&&(t?e.residualClasses=o:e.residualStyles=o),r}function AV(i,e,r){let t=r?e.classBindings:e.styleBindings;if(Gs(t)!==0)return i[Qa(t)]}function OV(i,e,r,t){let n=r?e.classBindings:e.styleBindings;i[Qa(n)]=t}function RV(i,e,r){let t,n=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=i[n],u=Array.isArray(c),f=u?c[1]:c,v=f===null,C=r[n+1];C===wn&&(C=v?_n:void 0);let D=v?Kg(C,t):f===t?C:void 0;if(u&&!vm(D)&&(D=Kg(c,t)),vm(D)&&(s=D,a))return s;let E=i[n+1];n=a?Qa(E):Gs(E)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(s=Kg(c,t))}return s}function vm(i){return i!==void 0}function LV(i,e){return i==null||i===""||(typeof e=="string"?i=i+e:typeof i=="object"&&(i=ln(Zn(i)))),i}function uE(i,e){return(i.flags&(e?8:16))!==0}function mE(i,e,r){let t=Ye(),n=nb(t,i,e,r);sE(Em,rE,n,!0)}var J_=class{destroy(e){}updateValue(e,r){}swap(e,r){let t=Math.min(e,r),n=Math.max(e,r),o=this.detach(n);if(n-t>1){let a=this.detach(t);this.attach(t,o),this.attach(n,a)}else this.attach(t,o)}move(e,r){this.attach(r,this.detach(e))}};function a_(i,e,r,t,n){return i===r&&Object.is(e,t)?1:Object.is(n(i,e),n(r,t))?-1:0}function VV(i,e,r){let t,n,o=0,a=i.length-1,s=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=a&&o<=c;){let u=i.at(o),f=e[o],v=a_(o,u,o,f,r);if(v!==0){v<0&&i.updateValue(o,f),o++;continue}let C=i.at(a),D=e[c],E=a_(a,C,c,D,r);if(E!==0){E<0&&i.updateValue(a,D),a--,c--;continue}let R=r(o,u),j=r(a,C),F=r(o,f);if(Object.is(F,j)){let _e=r(c,D);Object.is(_e,R)?(i.swap(o,a),i.updateValue(a,D),c--,a--):i.move(a,o),i.updateValue(o,f),o++;continue}if(t??=new bm,n??=Ix(i,o,a,r),ev(i,t,o,F))i.updateValue(o,f),o++,a++;else if(n.has(F))t.set(R,i.detach(o)),a--;else{let _e=i.create(o,e[o]);i.attach(o,_e),o++,a++}}for(;o<=c;)Ex(i,t,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),u=c.next();for(;!u.done&&o<=a;){let f=i.at(o),v=u.value,C=a_(o,f,o,v,r);if(C!==0)C<0&&i.updateValue(o,v),o++,u=c.next();else{t??=new bm,n??=Ix(i,o,a,r);let D=r(o,v);if(ev(i,t,o,D))i.updateValue(o,v),o++,a++,u=c.next();else if(!n.has(D))i.attach(o,i.create(o,v)),o++,a++,u=c.next();else{let E=r(o,f);t.set(E,i.detach(o)),a--}}}for(;!u.done;)Ex(i,t,r,i.length,u.value),u=c.next()}for(;o<=a;)i.destroy(i.detach(a--));t?.forEach(c=>{i.destroy(c)})}function ev(i,e,r,t){return e!==void 0&&e.has(t)?(i.attach(r,e.get(t)),e.delete(t),!0):!1}function Ex(i,e,r,t,n){if(ev(i,e,t,r(t,n)))i.updateValue(t,n);else{let o=i.create(t,n);i.attach(t,o)}}function Ix(i,e,r,t){let n=new Set;for(let o=e;o<=r;o++)n.add(t(o,i.at(o)));return n}var bm=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let t=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let n=this._vMap;for(;n.has(t);)t=n.get(t);n.set(t,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,t]of this.kvMap)if(e(t,r),this._vMap!==void 0){let n=this._vMap;for(;n.has(t);)t=n.get(t),e(t,r)}}};function xe(i,e){_r("NgControlFlow");let r=Ye(),t=Zr(),n=r[t]!==wn?r[t]:-1,o=n!==-1?ym(r,Fi+n):void 0,a=0;if(Rn(r,t,i)){let s=bt(null);try{if(o!==void 0&&FS(o,a),i!==-1){let c=Fi+i,u=ym(r,c),f=ov(r[rt],c),v=Hs(u,f.tView.ssrId),C=vl(r,f,e,{dehydratedView:v});bl(u,C,a,Us(f,v))}}finally{bt(s)}}else if(o!==void 0){let s=PS(o,a);s!==void 0&&(s[Xi]=e)}}var tv=class{constructor(e,r,t){this.lContainer=e,this.$implicit=r,this.$index=t}get $count(){return this.lContainer.length-Ji}};function wl(i,e){return e}var iv=class{constructor(e,r,t){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=t}};function vr(i,e,r,t,n,o,a,s,c,u,f,v,C){_r("NgControlFlow");let D=Ye(),E=ii(),R=c!==void 0,j=Ye(),F=s?a.bind(j[On][Xi]):a,_e=new iv(R,F);j[Fi+i]=_e,_m(D,E,i+1,e,r,t,n,Gr(E.consts,o)),R&&_m(D,E,i+2,c,u,f,v,Gr(E.consts,C))}var nv=class extends J_{constructor(e,r,t){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=t,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ji}at(e){return this.getLView(e)[Xi].$implicit}attach(e,r){let t=r[js];this.needsIndexUpdate||=e!==this.length,bl(this.lContainer,r,e,Us(this.templateTNode,t))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,jV(this.lContainer,e)}create(e,r){let t=Hs(this.lContainer,this.templateTNode.tView.ssrId),n=vl(this.hostLView,this.templateTNode,new tv(this.lContainer,r,e),{dehydratedView:t});return this.operationsCounter?.recordCreate(),n}destroy(e){jm(e[rt],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[Xi].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Pm(!0),dS(t,n,cN()));function HV(i,e,r,t,n){let o=e.consts,a=Gr(o,t),s=Zs(e,i,8,"ng-container",a);a!==null&&um(s,a,!0);let c=Gr(o,n);return Qv(e,r,s,c),e.queries!==null&&e.queries.elementStart(e,s),s}function ht(i,e,r){let t=Ye(),n=ii(),o=i+Fi,a=n.firstCreatePass?HV(o,n,t,e,r):n.data[o];Za(a,!0);let s=$V(n,t,a,i);return t[o]=s,Rm()&&Bm(n,t,s,a),qr(s,t),Am(a)&&(Gv(n,t,a),Wv(n,a,t)),r!=null&&qv(t,a),ht}function pt(){let i=Ni(),e=ii();return Tv()?kv():(i=i.parent,Za(i,!1)),e.firstCreatePass&&(Fm(e,i),Sv(i)&&e.queries.elementEnd(i)),pt}function bi(i,e,r){return ht(i,e,r),pt(),bi}var $V=(i,e,r,t)=>(Pm(!0),u2(e[oi],""));function A(){return Ye()}function Di(i,e,r){let t=Ye(),n=Zr();if(Rn(t,n,e)){let o=ii(),a=Ys();_l(o,a,t,i,e,t[oi],r,!0)}return Di}function Cl(i,e,r){let t=Ye(),n=Zr();if(Rn(t,n,e)){let o=ii(),a=Ys(),s=Ov(o.data),c=AS(s,a,t);_l(o,a,t,i,e,c,r,!0)}return Cl}var wm="en-US";var WV=wm;function GV(i){typeof i=="string"&&(WV=i.toLowerCase().replace(/_/g,"-"))}var qV=(i,e,r)=>{};function b(i,e,r,t){let n=Ye(),o=ii(),a=Ni();return ob(o,n,n[oi],a,i,e,t),b}function xl(i,e){let r=Ni(),t=Ye(),n=ii(),o=Ov(n.data),a=AS(o,r,t);return ob(n,t,a,r,i,e),xl}function YV(i,e,r,t){let n=i.cleanup;if(n!=null)for(let o=0;oc?s[c]:null}typeof a=="string"&&(o+=2)}return null}function ob(i,e,r,t,n,o,a){let s=Am(t),u=i.firstCreatePass&&kS(i),f=e[Xi],v=TS(e),C=!0;if(t.type&3||a){let R=Qn(t,e),j=a?a(R):R,F=v.length,_e=a?ot=>a(zo(ot[t.index])):t.index,at=null;if(!a&&s&&(at=YV(i,e,n,t.index)),at!==null){let ot=at.__ngLastListenerFn__||at;ot.__ngNextListenerFn__=o,at.__ngLastListenerFn__=o,C=!1}else{o=Tx(t,e,f,o),qV(R,n,o);let ot=r.listen(j,n,o);v.push(o,ot),u&&u.push(n,_e,F,F+1)}}else o=Tx(t,e,f,o);let D=t.outputs,E;if(C&&D!==null&&(E=D[n])){let R=E.length;if(R)for(let j=0;j-1?Kr(i.index,e):e;Xv(a,5);let s=Mx(e,r,t,o),c=n.__ngNextListenerFn__;for(;c;)s=Mx(e,r,c,o)&&s,c=c.__ngNextListenerFn__;return s}}function _(i=1){return aN(i)}function QV(i,e){let r=null,t=fF(i);for(let n=0;n=i.data.length&&(i.data[r]=null,i.blueprint[r]=null),e[r]=t}function Ie(i){let e=JF();return Iv(e,Fi+i)}function g(i,e=""){let r=Ye(),t=ii(),n=i+Fi,o=t.firstCreatePass?Zs(t,n,1,e,null):t.data[n],a=XV(t,r,o,e,i);r[n]=a,Rm()&&Bm(t,r,a,o),Za(o,!1)}var XV=(i,e,r,t,n)=>(Pm(!0),l2(e[oi],t));function He(i){return P("",i,""),He}function P(i,e,r){let t=Ye(),n=nb(t,i,e,r);return n!==wn&&RS(t,hr(),n),P}function yr(i,e,r,t,n){let o=Ye(),a=bV(o,i,e,r,t,n);return a!==wn&&RS(o,hr(),a),yr}function U(i,e,r){XS(e)&&(e=e());let t=Ye(),n=Zr();if(Rn(t,n,e)){let o=ii(),a=Ys();_l(o,a,t,i,e,t[oi],r,!1)}return U}function $(i,e){let r=XS(i);return r&&i.set(e),r}function H(i,e){let r=Ye(),t=ii(),n=Ni();return ob(t,r,r[oi],n,i,e),H}function JV(i,e,r){let t=ii();if(t.firstCreatePass){let n=dr(i);rv(r,t.data,t.blueprint,n,!0),rv(e,t.data,t.blueprint,n,!1)}}function rv(i,e,r,t,n){if(i=Ui(i),Array.isArray(i))for(let o=0;o>20;if(Vs(i)||!i.multi){let D=new Ga(u,n,h),E=c_(c,e,n?f:f+C,v);E===-1?(C_(om(s,a),o,c),s_(o,i,e.length),e.push(c),s.directiveStart++,s.directiveEnd++,n&&(s.providerIndexes+=1048576),r.push(D),a.push(D)):(r[E]=D,a[E]=D)}else{let D=c_(c,e,f+C,v),E=c_(c,e,f,f+C),R=D>=0&&r[D],j=E>=0&&r[E];if(n&&!j||!n&&!R){C_(om(s,a),o,c);let F=ij(n?tj:ej,r.length,n,t,u);!n&&j&&(r[E].providerFactory=F),s_(o,i,e.length,0),e.push(c),s.directiveStart++,s.directiveEnd++,n&&(s.providerIndexes+=1048576),r.push(F),a.push(F)}else{let F=pE(r[n?E:D],u,!n&&t);s_(o,i,D>-1?D:E,F)}!n&&t&&j&&r[E].componentProviders++}}}function s_(i,e,r,t){let n=Vs(e),o=TF(e);if(n||o){let c=(o?Ui(e.useClass):e).prototype.ngOnDestroy;if(c){let u=i.destroyHooks||(i.destroyHooks=[]);if(!n&&e.multi){let f=u.indexOf(r);f===-1?u.push(r,[t,c]):u[f+1].push(t,c)}else u.push(r,c)}}}function pE(i,e,r){return r&&i.componentProviders++,i.multi.push(e)-1}function c_(i,e,r,t){for(let n=r;n{r.providersResolver=(t,n)=>JV(t,n?n(i):i,e)}}var nj=(()=>{let e=class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let n=iD(!1,t.type),o=n.length>0?qm([n],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=V({token:e,providedIn:"environment",factory:()=>new e(M(Pi))});let i=e;return i})();function re(i){_r("NgStandalone"),i.getStandaloneInjector=e=>e.get(nj).getOrCreateStandaloneInjector(i)}function fE(i,e,r){let t=i.\u0275cmp;t.directiveDefs=Zu(e,!1),t.pipeDefs=Zu(r,!0)}function Xs(i,e,r){let t=hl()+i,n=Ye();return n[t]===wn?ib(n,t,r?e.call(r):e()):pV(n,t)}function Li(i,e,r,t){return _E(Ye(),hl(),i,e,r,t)}function Js(i,e,r,t,n){return vE(Ye(),hl(),i,e,r,t,n)}function gE(i,e){let r=i[e];return r===wn?void 0:r}function _E(i,e,r,t,n,o){let a=e+r;return Rn(i,a,n)?ib(i,a+1,o?t.call(o,n):t(n)):gE(i,a+1)}function vE(i,e,r,t,n,o,a){let s=e+r;return iE(i,s,n,o)?ib(i,s+2,a?t.call(a,n,o):t(n,o)):gE(i,s+2)}function yo(i,e){let r=ii(),t,n=i+Fi;r.firstCreatePass?(t=oj(e,r.pipeRegistry),r.data[n]=t,t.onDestroy&&(r.destroyHooks??=[]).push(n,t.onDestroy)):t=r.data[n];let o=t.factory||(t.factory=za(t.type,!0)),a,s=gn(h);try{let c=nm(!1),u=o();return nm(c),ZV(r,Ye(),n,u),u}finally{gn(s)}}function oj(i,e){if(e)for(let r=e.length-1;r>=0;r--){let t=e[r];if(i===t.name)return t}}function wr(i,e,r){let t=i+Fi,n=Ye(),o=Iv(n,t);return bE(n,t)?_E(n,hl(),e,o.transform,r,o):o.transform(r)}function rb(i,e,r,t){let n=i+Fi,o=Ye(),a=Iv(o,n);return bE(o,n)?vE(o,hl(),e,a.transform,r,t,a):a.transform(r,t)}function bE(i,e){return i[rt].data[e].pure}function hi(i,e){return $m(i,e)}var ju=null;function rj(i){ju!==null&&(i.defaultEncapsulation!==ju.defaultEncapsulation||i.preserveWhitespaces!==ju.preserveWhitespaces)||(ju=i)}var Ym=(()=>{let e=class e{log(t){console.log(t)}warn(t){console.warn(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})();var ab=new O(""),Dl=new O(""),Qm=(()=>{let e=class e{constructor(t,n,o){this._ngZone=t,this.registry=n,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,sb||(aj(o),o.addToWindow(n)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(t)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,n,o){let a=-1;n&&n>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==a),t()},n)),this._callbacks.push({doneCb:t,timeoutId:a,updateCb:o})}whenStable(t,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,n,o),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,n,o){return[]}};e.\u0275fac=function(n){return new(n||e)(M(Z),M(Km),M(Dl))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Km=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(t,n){this._applications.set(t,n)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,n=!0){return sb?.findTestabilityInTree(this,t,n)??null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})();function aj(i){sb=i}var sb;function ea(i){return!!i&&typeof i.then=="function"}function cb(i){return!!i&&typeof i.subscribe=="function"}var Zm=new O(""),yE=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,n)=>{this.resolve=t,this.reject=n}),this.appInits=k(Zm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let t=[];for(let o of this.appInits){let a=o();if(ea(a))t.push(a);else if(cb(a)){let s=new Promise((c,u)=>{a.subscribe({complete:c,error:u})});t.push(s)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{n()}).catch(o=>{this.reject(o)}),t.length===0&&n(),this.initialized=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Xm=new O("");function sj(){hC(()=>{throw new te(600,!1)})}function cj(i){return i.isBoundToModule}var lj=10;function dj(i,e,r){try{let t=r();return ea(t)?t.catch(n=>{throw e.runOutsideAngular(()=>i.handleError(n)),n}):t}catch(t){throw e.runOutsideAngular(()=>i.handleError(t)),t}}function wE(i,e){return Array.isArray(e)?e.reduce(wE,i):B(B({},i),e)}var Xn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=k(BD),this.afterRenderEffectManager=k(Wm),this.zonelessEnabled=k(US),this.externalTestViews=new Set,this.beforeRender=new W,this.afterTick=new W,this.componentTypes=[],this.components=[],this.isStable=k($o).hasPendingTasks.pipe(de(t=>!t)),this._injector=k(Pi)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,n){let o=t instanceof sm;if(!this._injector.get(yE).done){let D=!o&&Xx(t),E=!1;throw new te(405,E)}let s;o?s=t:s=this._injector.get(vn).resolveComponentFactory(t),this.componentTypes.push(s.componentType);let c=cj(s)?void 0:this._injector.get(Qr),u=n||s.selector,f=s.create(Pe.NULL,[],u,c),v=f.location.nativeElement,C=f.injector.get(ab,null);return C?.registerApplication(v),f.onDestroy(()=>{this.detachView(f.hostView),Gu(this.components,f),C?.unregisterApplication(v)}),this._loadComponent(f),f}tick(){this._tick(!0)}_tick(t){if(this._runningTick)throw new te(101,!1);let n=bt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(t)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,bt(n),this.afterTick.next()}}detectChangesInAttachedViews(t){let n=null;this._injector.destroyed||(n=this._injector.get(Yr,null,{optional:!0}));let o=0,a=this.afterRenderEffectManager;for(;osl(c))&&(a.execute(),!this.allViews.some(({_lView:c})=>sl(c))))break}}attachView(t){let n=t;this._views.push(n),n.attachToAppRef(this)}detachView(t){let n=t;Gu(this._views,n),n.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);let n=this._injector.get(Xm,[]);[...this._bootstrapListeners,...n].forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Gu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new te(406,!1);let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Gu(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function uj(i,e,r,t){if(!r&&!sl(i))return;VS(i,e,r&&!t?0:1)}var sv=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Jm=(()=>{let e=class e{compileModuleSync(t){return new gm(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){let n=this.compileModuleSync(t),o=Jx(t),a=cS(o.declarations).reduce((s,c)=>{let u=Wr(c);return u&&s.push(new Ws(u)),s},[]);return new sv(n,a)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),mj=new O("");function hj(i,e,r){let t=new gm(r);return Promise.resolve(t)}function kx(i){for(let e=i.length-1;e>=0;e--)if(i[e]!==void 0)return i[e]}var pj=(()=>{let e=class e{constructor(){this.zone=k(Z),this.changeDetectionScheduler=k($s),this.applicationRef=k(Xn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function fj({ngZoneFactory:i,ignoreChangesOutsideZone:e}){return i??=()=>new Z(CE()),[{provide:Z,useFactory:i},{provide:Ns,multi:!0,useFactory:()=>{let r=k(pj,{optional:!0});return()=>r.initialize()}},{provide:Ns,multi:!0,useFactory:()=>{let r=k(_j);return()=>{r.initialize()}}},{provide:BD,useFactory:gj},e===!0?{provide:HS,useValue:!0}:[]]}function gj(){let i=k(Z),e=k(un);return r=>i.runOutsideAngular(()=>e.handleError(r))}function CE(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:i?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:i?.runCoalescing??!1}}var _j=(()=>{let e=class e{constructor(){this.subscription=new Ce,this.initialized=!1,this.zone=k(Z),this.pendingTasks=k($o)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var vj=(()=>{let e=class e{constructor(){this.appRef=k(Xn),this.taskService=k($o),this.ngZone=k(Z),this.zonelessEnabled=k(US),this.disableScheduling=k(HS,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ce,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof cm||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&t===5)return;switch(t){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?_x:$S;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Z.isInAngularZone())}tick(t){if(this.runningTick||this.appRef.destroyed)return;let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(t)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(n),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,_x(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function bj(){return typeof $localize<"u"&&$localize.locale||wm}var Sl=new O("",{providedIn:"root",factory:()=>k(Sl,gt.Optional|gt.SkipSelf)||bj()});var xE=new O(""),DE=(()=>{let e=class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,n){let o=IL(n?.ngZone,CE({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{let a=n?.ignoreChangesOutsideZone,s=mV(t.moduleType,this.injector,[...fj({ngZoneFactory:()=>o,ignoreChangesOutsideZone:a}),{provide:$s,useExisting:vj}]),c=s.injector.get(un,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:f=>{c.handleError(f)}});s.onDestroy(()=>{Gu(this._modules,s),u.unsubscribe()})}),dj(c,o,()=>{let u=s.injector.get(yE);return u.runInitializers(),u.donePromise.then(()=>{let f=s.injector.get(Sl,wm);return GV(f||wm),this._moduleDoBootstrap(s),s})})})}bootstrapModule(t,n=[]){let o=wE({},n);return hj(this.injector,o,t).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(t){let n=t.injector.get(Xn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>n.bootstrap(o));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new te(-403,!1);this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new te(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let t=this._injector.get(xE,null);t&&(t.forEach(n=>n()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(n){return new(n||e)(M(Pe))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})(),il=null,SE=new O("");function yj(i){if(il&&!il.get(SE,!1))throw new te(400,!1);sj(),il=i;let e=i.get(DE);return xj(i),e}function lb(i,e,r=[]){let t=`Platform: ${e}`,n=new O(t);return(o=[])=>{let a=EE();if(!a||a.injector.get(SE,!1)){let s=[...r,...o,{provide:n,useValue:!0}];i?i(s):yj(wj(s,t))}return Cj(n)}}function wj(i=[],e){return Pe.create({name:e,providers:[{provide:Mm,useValue:"platform"},{provide:xE,useValue:new Set([()=>il=null])},...i]})}function Cj(i){let e=EE();if(!e)throw new te(401,!1);return e}function EE(){return il?.get(DE)??null}function xj(i){i.get(Lv,null)?.forEach(r=>r())}var me=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Dj;let i=e;return i})();function Dj(i){return Sj(Ni(),Ye(),(i&16)===16)}function Sj(i,e,r){if(km(i)&&!r){let t=Kr(i.index,e);return new Ya(t,t)}else if(i.type&47){let t=e[On];return new Ya(t,e)}return null}var cv=class{constructor(){}supports(e){return tE(e)}create(e){return new lv(e)}},Ej=(i,e)=>e,lv=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ej}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,t=this._removalsHead,n=0,o=null;for(;r||t;){let a=!t||r&&r.currentIndex{a=this._trackByFn(n,s),r===null||!Object.is(r.trackById,a)?(r=this._mismatch(r,s,a,n),t=!0):(t&&(r=this._verifyReinsertion(r,s,a,n)),Object.is(r.item,s)||this._addIdentityChange(r,s)),r=r._next,n++}),this.length=n;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,t,n){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(t,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,n)):(e=this._linkedRecords===null?null:this._linkedRecords.get(t,n),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,n)):e=this._addAfter(new dv(r,t),o,n)),e}_verifyReinsertion(e,r,t,n){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(t,null);return o!==null?e=this._reinsertAfter(o,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,t){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let n=e._prevRemoved,o=e._nextRemoved;return n===null?this._removalsHead=o:n._nextRemoved=o,o===null?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(e,r,t),this._addToMoves(e,t),e}_moveAfter(e,r,t){return this._unlink(e),this._insertAfter(e,r,t),this._addToMoves(e,t),e}_addAfter(e,r,t){return this._insertAfter(e,r,t),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,t){let n=r===null?this._itHead:r._next;return e._next=n,e._prev=r,n===null?this._itTail=e:n._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Cm),this._linkedRecords.put(e),e.currentIndex=t,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,t=e._next;return r===null?this._itHead=t:r._next=t,t===null?this._itTail=r:t._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Cm),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},dv=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},uv=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let t;for(t=this._head;t!==null;t=t._nextDup)if((r===null||r<=t.currentIndex)&&Object.is(t.trackById,e))return t;return null}remove(e){let r=e._prevDup,t=e._nextDup;return r===null?this._head=t:r._nextDup=t,t===null?this._tail=r:t._prevDup=r,this._head===null}},Cm=class{constructor(){this.map=new Map}put(e){let r=e.trackById,t=this.map.get(r);t||(t=new uv,this.map.set(r,t)),t.add(e)}get(e,r){let t=e,n=this.map.get(t);return n?n.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Ax(i,e,r){let t=i.previousIndex;if(t===null)return t;let n=0;return r&&t{if(r&&r.key===n)this._maybeAddToChanges(r,t),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(n,t);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let t=r;t!==null;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let t=e._prev;return r._next=e,r._prev=t,e._prev=r,t&&(t._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let n=this._records.get(e);this._maybeAddToChanges(n,r);let o=n._prev,a=n._next;return o&&(o._next=a),a&&(a._prev=o),n._next=null,n._prev=null,n}let t=new pv(e);return this._records.set(e,t),t.currentValue=r,this._addToAdditions(t),t}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(t=>r(e[t],t))}},pv=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Ox(){return new Wo([new cv])}var Wo=(()=>{let e=class e{constructor(t){this.factories=t}static create(t,n){if(n!=null){let o=n.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Ox()),deps:[[e,new bo,new Yn]]}}find(t){let n=this.factories.find(o=>o.supports(t));if(n!=null)return n;throw new te(901,!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:Ox});let i=e;return i})();function Rx(){return new eh([new mv])}var eh=(()=>{let e=class e{constructor(t){this.factories=t}static create(t,n){if(n){let o=n.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Rx()),deps:[[e,new bo,new Yn]]}}find(t){let n=this.factories.find(o=>o.supports(t));if(n)return n;throw new te(901,!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:Rx});let i=e;return i})();var IE=lb(null,"core",[]),ME=(()=>{let e=class e{constructor(t){}};e.\u0275fac=function(n){return new(n||e)(M(Xn))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();function Y(i){return typeof i=="boolean"?i:i!=null&&i!=="false"}function Zt(i,e=NaN){return!isNaN(parseFloat(i))&&!isNaN(Number(i))?Number(i):e}function El(i){let e=bt(null);try{return i()}finally{bt(e)}}var Ij=new O("",{providedIn:"root",factory:()=>k(Mj)}),Mj=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new fv});let i=e;return i})(),fv=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=k($o),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let t=this.queues.get(r);t.has(e)||(this.queuedEffectCount++,t.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},gv=class{constructor(e,r,t,n,o,a){this.scheduler=e,this.effectFn=r,this.creationZone=t,this.injector=o,this.watcher=pC(s=>this.runEffect(s),()=>this.schedule(),a),this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(un,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function db(i,e){_r("NgSignals"),!e?.injector&&xv(db);let r=e?.injector??k(Pe),t=e?.manualCleanup!==!0?r.get(pl):null,n=new gv(r.get(Ij),i,typeof Zone>"u"?null:Zone.current,t,r,e?.allowSignalWrites??!1),o=r.get(me,null,{optional:!0});return!o||!(o._lView[tt]&8)?n.watcher.notify():(o._lView[zu]??=[]).push(n.watcher.notify),n}function TE(i){let e=Wr(i);if(!e)return null;let r=new Ws(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var NE=null;function Go(){return NE}function LE(i){NE??=i}var th=class{};var se=new O(""),bb=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(Tj),providedIn:"platform"});let i=e;return i})(),VE=new O(""),Tj=(()=>{let e=class e extends bb{constructor(){super(),this._doc=k(se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Go().getBaseHref(this._doc)}onPopState(t){let n=Go().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=Go().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,o){this._history.pushState(t,n,o)}replaceState(t,n,o){this._history.replaceState(t,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>new e,providedIn:"platform"});let i=e;return i})();function yb(i,e){if(i.length==0)return e;if(e.length==0)return i;let r=0;return i.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?i+e.substring(1):r==1?i+e:i+"/"+e}function kE(i){let e=i.match(/#|\?|$/),r=e&&e.index||i.length,t=r-(i[r-1]==="/"?1:0);return i.slice(0,t)+i.slice(r)}function Cr(i){return i&&i[0]!=="?"?"?"+i:i}var xr=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(wb),providedIn:"root"});let i=e;return i})(),jE=new O(""),wb=(()=>{let e=class e extends xr{constructor(t,n){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??k(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return yb(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+Cr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${n}${o}`:n}pushState(t,n,o,a){let s=this.prepareExternalUrl(o+Cr(a));this._platformLocation.pushState(t,n,s)}replaceState(t,n,o,a){let s=this.prepareExternalUrl(o+Cr(a));this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(n){return new(n||e)(M(bb),M(jE,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),BE=(()=>{let e=class e extends xr{constructor(t,n){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=yb(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,o,a){let s=this.prepareExternalUrl(o+Cr(a));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,n,s)}replaceState(t,n,o,a){let s=this.prepareExternalUrl(o+Cr(a));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(n){return new(n||e)(M(bb),M(jE,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),qo=(()=>{let e=class e{constructor(t){this._subject=new T,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=Oj(kE(AE(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+Cr(n))}normalize(t){return e.stripTrailingSlash(Aj(this._basePath,AE(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",o=null){this._locationStrategy.pushState(o,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Cr(n)),o)}replaceState(t,n="",o=null){this._locationStrategy.replaceState(o,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Cr(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(o=>o(t,n))}subscribe(t,n,o){return this._subject.subscribe({next:t,error:n,complete:o})}};e.normalizeQueryParams=Cr,e.joinWithSlash=yb,e.stripTrailingSlash=kE,e.\u0275fac=function(n){return new(n||e)(M(xr))},e.\u0275prov=V({token:e,factory:()=>kj(),providedIn:"root"});let i=e;return i})();function kj(){return new qo(M(xr))}function Aj(i,e){if(!i||!e.startsWith(i))return e;let r=e.substring(i.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function AE(i){return i.replace(/\/index.html$/,"")}function Oj(i){if(new RegExp("^(https?:)?//").test(i)){let[,r]=i.split(/\/\/[^\/]+/);return r}return i}function oh(i,e){e=encodeURIComponent(e);for(let r of i.split(";")){let t=r.indexOf("="),[n,o]=t==-1?[r,""]:[r.slice(0,t),r.slice(t+1)];if(n.trim()===e)return decodeURIComponent(o)}return null}var mb=/\s+/,OE=[],Cn=(()=>{let e=class e{constructor(t,n){this._ngEl=t,this._renderer=n,this.initialClasses=OE,this.stateMap=new Map}set klass(t){this.initialClasses=t!=null?t.trim().split(mb):OE}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(mb):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let o=this.stateMap.get(t);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],o=t[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(mb).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(n){return new(n||e)(h(G),h(gr))},e.\u0275dir=N({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let i=e;return i})();var hb=class{constructor(e,r,t,n){this.$implicit=e,this.ngForOf=r,this.index=t,this.count=n}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},$e=(()=>{let e=class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,n,o){this._viewContainer=t,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;if(!this._differ&&t)if(0)try{}catch{}else this._differ=this._differs.find(t).create(this.ngForTrackBy)}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((o,a,s)=>{if(o.previousIndex==null)n.createEmbeddedView(this._template,new hb(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(a===null?void 0:a);else if(a!==null){let c=n.get(a);n.move(c,s),RE(c,o)}});for(let o=0,a=n.length;o{let a=n.get(o.currentIndex);RE(a,o)})}static ngTemplateContextGuard(t,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(lt),h(Wo))},e.\u0275dir=N({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let i=e;return i})();function RE(i,e){i.context.$implicit=e.item}var he=(()=>{let e=class e{constructor(t,n){this._viewContainer=t,this._context=new pb,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){PE("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){PE("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(lt))},e.\u0275dir=N({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let i=e;return i})(),pb=class{constructor(){this.$implicit=null,this.ngIf=null}};function PE(i,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${i} must be a TemplateRef, but received '${ln(e)}'.`)}var Rj=!0,ih=class{constructor(e,r){this._viewContainerRef=e,this._templateRef=r,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},tc=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=Rj?t===this._ngSwitch:t==this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let i=e;return i})(),rh=(()=>{let e=class e{constructor(t,n,o){this.ngSwitch=o,o._addCase(),this._view=new ih(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(lt),h(tc,9))},e.\u0275dir=N({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let i=e;return i})(),zE=(()=>{let e=class e{constructor(t,n,o){o._addDefault(new ih(t,n))}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(lt),h(tc,9))},e.\u0275dir=N({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let i=e;return i})();var UE=(()=>{let e=class e{constructor(t,n,o){this._ngEl=t,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[o,a]=t.split("."),s=o.indexOf("-")===-1?void 0:Uo.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,a?`${n}${a}`:n,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}};e.\u0275fac=function(n){return new(n||e)(h(G),h(eh),h(gr))},e.\u0275dir=N({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let i=e;return i})(),ah=(()=>{let e=class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(t,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}};e.\u0275fac=function(n){return new(n||e)(h(wt))},e.\u0275dir=N({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Qe]});let i=e;return i})();function Pj(i,e){return new te(2100,!1)}var fb=class{createSubscription(e,r){return El(()=>e.subscribe({next:r,error:t=>{throw t}}))}dispose(e){El(()=>e.unsubscribe())}},gb=class{createSubscription(e,r){return e.then(r,t=>{throw t})}dispose(e){}},Fj=new gb,Nj=new fb,HE=(()=>{let e=class e{constructor(t){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(ea(t))return Fj;if(cb(t))return Nj;throw Pj(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(me,16))},e.\u0275pipe=Ka({name:"async",type:e,pure:!1,standalone:!0});let i=e;return i})();function Lj(i,e){return{key:i,value:e}}var $E=(()=>{let e=class e{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=FE}transform(t,n=FE){if(!t||!(t instanceof Map)&&typeof t!="object")return null;this.differ??=this.differs.find(t).create();let o=this.differ.diff(t),a=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(Lj(s.key,s.currentValue))})),(o||a)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}};e.\u0275fac=function(n){return new(n||e)(h(eh,16))},e.\u0275pipe=Ka({name:"keyvalue",type:e,pure:!1,standalone:!0});let i=e;return i})();function FE(i,e){let r=i.key,t=e.key;if(r===t)return 0;if(r===void 0)return 1;if(t===void 0)return-1;if(r===null)return 1;if(t===null)return-1;if(typeof r=="string"&&typeof t=="string")return r{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})(),Cb="browser",Vj="server";function xb(i){return i===Cb}function sh(i){return i===Vj}var WE=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>xb(k(Kn))?new _b(k(se),window):new vb});let i=e;return i})(),_b=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=jj(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),t=r.left+this.window.pageXOffset,n=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(t-o[0],n-o[1])}};function jj(i,e){let r=i.getElementById(e)||i.getElementsByName(e)[0];if(r)return r;if(typeof i.createTreeWalker=="function"&&i.body&&typeof i.body.attachShadow=="function"){let t=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT),n=t.currentNode;for(;n;){let o=n.shadowRoot;if(o){let a=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(a)return a}n=t.nextNode()}}return null}var vb=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},ec=class{};var Ml=class{},lh=class{},wo=class i{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let t=r.indexOf(":");if(t>0){let n=r.slice(0,t),o=n.toLowerCase(),a=r.slice(t+1).trim();this.maybeSetNormalizedName(n,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,t)=>{this.setHeaderEntries(t,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,t])=>{this.setHeaderEntries(r,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new i;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,r);let n=(e.op==="a"?this.headers.get(r):void 0)||[];n.push(...t),this.headers.set(r,n);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let a=this.headers.get(r);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,a)}break}}setHeaderEntries(e,r){let t=(Array.isArray(r)?r:[r]).map(o=>o.toString()),n=e.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(e,n)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Sb=class{encodeKey(e){return GE(e)}encodeValue(e){return GE(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Bj(i,e){let r=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[a,s]=o==-1?[e.decodeKey(n),""]:[e.decodeKey(n.slice(0,o)),e.decodeValue(n.slice(o+1))],c=r.get(a)||[];c.push(s),r.set(a,c)}),r}var zj=/%(\d[a-f0-9])/gi,Uj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function GE(i){return encodeURIComponent(i).replace(zj,(e,r)=>Uj[r]??e)}function ch(i){return`${i}`}var ia=class i{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Sb,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Bj(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let t=e.fromObject[r],n=Array.isArray(t)?t.map(ch):[ch(t)];this.map.set(r,n)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(t=>{let n=e[t];Array.isArray(n)?n.forEach(o=>{r.push({param:t,value:o,op:"a"})}):r.push({param:t,value:n,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(t=>r+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new i({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(ch(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],n=t.indexOf(ch(e.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Eb=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Hj(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function qE(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function YE(i){return typeof Blob<"u"&&i instanceof Blob}function QE(i){return typeof FormData<"u"&&i instanceof FormData}function $j(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var Il=class i{constructor(e,r,t,n){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(Hj(this.method)||n?(this.body=t!==void 0?t:null,o=n):o=t,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new wo,this.context??=new Eb,!this.params)this.params=new ia,this.urlWithParams=r;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=r;else{let s=r.indexOf("?"),c=s===-1?"?":sC.set(D,e.setHeaders[D]),u)),e.setParams&&(f=Object.keys(e.setParams).reduce((C,D)=>C.set(D,e.setParams[D]),f)),new i(r,t,a,{params:f,headers:u,context:v,reportProgress:c,responseType:n,withCredentials:s,transferCache:o})}},na=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(na||{}),Tl=class{constructor(e,r=200,t="OK"){this.headers=e.headers||new wo,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},dh=class i extends Tl{constructor(e={}){super(e),this.type=na.ResponseHeader}clone(e={}){return new i({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},kl=class i extends Tl{constructor(e={}){super(e),this.type=na.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new i({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ta=class extends Tl{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},eI=200,Wj=204;function Db(i,e){return{body:e,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var Al=(()=>{let e=class e{constructor(t){this.handler=t}request(t,n,o={}){let a;if(t instanceof Il)a=t;else{let u;o.headers instanceof wo?u=o.headers:u=new wo(o.headers);let f;o.params&&(o.params instanceof ia?f=o.params:f=new ia({fromObject:o.params})),a=new Il(t,n,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=oe(a).pipe(ar(u=>this.handler.handle(u)));if(t instanceof Il||o.observe==="events")return s;let c=s.pipe(qe(u=>u instanceof kl));switch(o.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return c.pipe(de(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(de(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(de(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(de(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:new ia().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,o={}){return this.request("PATCH",t,Db(o,n))}post(t,n,o={}){return this.request("POST",t,Db(o,n))}put(t,n,o={}){return this.request("PUT",t,Db(o,n))}};e.\u0275fac=function(n){return new(n||e)(M(Ml))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Gj=/^\)\]\}',?\n/,qj="X-Request-URL";function KE(i){if(i.url)return i.url;let e=qj.toLocaleLowerCase();return i.headers.get(e)}var Yj=(()=>{let e=class e{constructor(){this.fetchImpl=k(Ib,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=k(Z)}handle(t){return new Re(n=>{let o=new AbortController;return this.doRequest(t,o.signal,n).then(Mb,a=>n.error(new ta({error:a}))),()=>o.abort()})}doRequest(t,n,o){return q(this,null,function*(){let a=this.createRequestInit(t),s;try{let E=this.fetchImpl(t.urlWithParams,B({signal:n},a));Qj(E),o.next({type:na.Sent}),s=yield E}catch(E){o.error(new ta({error:E,status:E.status??0,statusText:E.statusText,url:t.urlWithParams,headers:E.headers}));return}let c=new wo(s.headers),u=s.statusText,f=KE(s)??t.urlWithParams,v=s.status,C=null;if(t.reportProgress&&o.next(new dh({headers:c,status:v,statusText:u,url:f})),s.body){let E=s.headers.get("content-length"),R=[],j=s.body.getReader(),F=0,_e,at,ot=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>q(this,null,function*(){for(;;){let{done:Nt,value:Ht}=yield j.read();if(Nt)break;if(R.push(Ht),F+=Ht.length,t.reportProgress){at=t.responseType==="text"?(at??"")+(_e??=new TextDecoder).decode(Ht,{stream:!0}):void 0;let _i=()=>o.next({type:na.DownloadProgress,total:E?+E:void 0,loaded:F,partialText:at});ot?ot.run(_i):_i()}}}));let Mi=this.concatChunks(R,F);try{let Nt=s.headers.get("Content-Type")??"";C=this.parseBody(t,Mi,Nt)}catch(Nt){o.error(new ta({error:Nt,headers:new wo(s.headers),status:s.status,statusText:s.statusText,url:KE(s)??t.urlWithParams}));return}}v===0&&(v=C?eI:0),v>=200&&v<300?(o.next(new kl({body:C,headers:c,status:v,statusText:u,url:f})),o.complete()):o.error(new ta({error:C,headers:c,status:v,statusText:u,url:f}))})}parseBody(t,n,o){switch(t.responseType){case"json":let a=new TextDecoder().decode(n).replace(Gj,"");return a===""?null:JSON.parse(a);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:o});case"arraybuffer":return n.buffer}}createRequestInit(t){let n={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((a,s)=>n[a]=s.join(",")),n.Accept??="application/json, text/plain, */*",!n["Content-Type"]){let a=t.detectContentTypeHeader();a!==null&&(n["Content-Type"]=a)}return{body:t.serializeBody(),method:t.method,headers:n,credentials:o}}concatChunks(t,n){let o=new Uint8Array(n),a=0;for(let s of t)o.set(s,a),a+=s.length;return o}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Ib=class{};function Mb(){}function Qj(i){i.then(Mb,Mb)}function tI(i,e){return e(i)}function Kj(i,e){return(r,t)=>e.intercept(r,{handle:n=>i(n,t)})}function Zj(i,e,r){return(t,n)=>bn(r,()=>e(t,o=>i(o,n)))}var Xj=new O(""),Tb=new O(""),Jj=new O(""),iI=new O("",{providedIn:"root",factory:()=>!0});function e3(){let i=null;return(e,r)=>{i===null&&(i=(k(Xj,{optional:!0})??[]).reduceRight(Kj,tI));let t=k($o);if(k(iI)){let o=t.add();return i(e,r).pipe(Fo(()=>t.remove(o)))}else return i(e,r)}}var ZE=(()=>{let e=class e extends Ml{constructor(t,n){super(),this.backend=t,this.injector=n,this.chain=null,this.pendingTasks=k($o),this.contributeToStability=k(iI)}handle(t){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Tb),...this.injector.get(Jj,[])]));this.chain=n.reduceRight((o,a)=>Zj(o,a,this.injector),tI)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(Fo(()=>this.pendingTasks.remove(n)))}else return this.chain(t,n=>this.backend.handle(n))}};e.\u0275fac=function(n){return new(n||e)(M(lh),M(Pi))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var t3=/^\)\]\}',?\n/;function i3(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var XE=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new te(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Qt(n.\u0275loadImpl()):oe(null)).pipe(Mt(()=>new Re(a=>{let s=n.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((j,F)=>s.setRequestHeader(j,F.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let j=t.detectContentTypeHeader();j!==null&&s.setRequestHeader("Content-Type",j)}if(t.responseType){let j=t.responseType.toLowerCase();s.responseType=j!=="json"?j:"text"}let c=t.serializeBody(),u=null,f=()=>{if(u!==null)return u;let j=s.statusText||"OK",F=new wo(s.getAllResponseHeaders()),_e=i3(s)||t.url;return u=new dh({headers:F,status:s.status,statusText:j,url:_e}),u},v=()=>{let{headers:j,status:F,statusText:_e,url:at}=f(),ot=null;F!==Wj&&(ot=typeof s.response>"u"?s.responseText:s.response),F===0&&(F=ot?eI:0);let Mi=F>=200&&F<300;if(t.responseType==="json"&&typeof ot=="string"){let Nt=ot;ot=ot.replace(t3,"");try{ot=ot!==""?JSON.parse(ot):null}catch(Ht){ot=Nt,Mi&&(Mi=!1,ot={error:Ht,text:ot})}}Mi?(a.next(new kl({body:ot,headers:j,status:F,statusText:_e,url:at||void 0})),a.complete()):a.error(new ta({error:ot,headers:j,status:F,statusText:_e,url:at||void 0}))},C=j=>{let{url:F}=f(),_e=new ta({error:j,status:s.status||0,statusText:s.statusText||"Unknown Error",url:F||void 0});a.error(_e)},D=!1,E=j=>{D||(a.next(f()),D=!0);let F={type:na.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),t.responseType==="text"&&s.responseText&&(F.partialText=s.responseText),a.next(F)},R=j=>{let F={type:na.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),a.next(F)};return s.addEventListener("load",v),s.addEventListener("error",C),s.addEventListener("timeout",C),s.addEventListener("abort",C),t.reportProgress&&(s.addEventListener("progress",E),c!==null&&s.upload&&s.upload.addEventListener("progress",R)),s.send(c),a.next({type:na.Sent}),()=>{s.removeEventListener("error",C),s.removeEventListener("abort",C),s.removeEventListener("load",v),s.removeEventListener("timeout",C),t.reportProgress&&(s.removeEventListener("progress",E),c!==null&&s.upload&&s.upload.removeEventListener("progress",R)),s.readyState!==s.DONE&&s.abort()}})))}};e.\u0275fac=function(n){return new(n||e)(M(ec))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),nI=new O(""),n3="XSRF-TOKEN",o3=new O("",{providedIn:"root",factory:()=>n3}),r3="X-XSRF-TOKEN",a3=new O("",{providedIn:"root",factory:()=>r3}),uh=class{},s3=(()=>{let e=class e{constructor(t,n,o){this.doc=t,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=oh(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Kn),M(o3))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function c3(i,e){let r=i.url.toLowerCase();if(!k(nI)||i.method==="GET"||i.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(i);let t=k(uh).getToken(),n=k(a3);return t!=null&&!i.headers.has(n)&&(i=i.clone({headers:i.headers.set(n,t)})),e(i)}var oI=function(i){return i[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i[i.Fetch=6]="Fetch",i}(oI||{});function l3(i,e){return{\u0275kind:i,\u0275providers:e}}function rI(...i){let e=[Al,XE,ZE,{provide:Ml,useExisting:ZE},{provide:lh,useFactory:()=>k(Yj,{optional:!0})??k(XE)},{provide:Tb,useValue:c3,multi:!0},{provide:nI,useValue:!0},{provide:uh,useClass:s3}];for(let r of i)e.push(...r.\u0275providers);return Im(e)}var JE=new O("");function aI(){return l3(oI.LegacyInterceptors,[{provide:JE,useFactory:e3},{provide:Tb,useExisting:JE,multi:!0}])}var Ob=class extends th{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Rb=class i extends Ob{static makeCurrent(){LE(new i)}onAndCancel(e,r,t){return e.addEventListener(r,t),()=>{e.removeEventListener(r,t)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=d3();return r==null?null:u3(r)}resetBaseElement(){Ol=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return oh(document.cookie,e)}},Ol=null;function d3(){return Ol=Ol||document.querySelector("base"),Ol?Ol.getAttribute("href"):null}function u3(i){return new URL(i,document.baseURI).pathname}var Pb=class{addToWindow(e){dn.getAngularTestability=(t,n=!0)=>{let o=e.findTestabilityInTree(t,n);if(o==null)throw new te(5103,!1);return o},dn.getAllAngularTestabilities=()=>e.getAllTestabilities(),dn.getAllAngularRootElements=()=>e.getAllRootElements();let r=t=>{let n=dn.getAllAngularTestabilities(),o=n.length,a=function(){o--,o==0&&t()};n.forEach(s=>{s.whenStable(a)})};dn.frameworkStabilizers||(dn.frameworkStabilizers=[]),dn.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,t){if(r==null)return null;let n=e.getTestability(r);return n??(t?Go().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},m3=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Fb=new O(""),dI=(()=>{let e=class e{constructor(t,n){this._zone=n,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,n,o){return this._findPluginFor(n).addEventListener(t,n,o)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(a=>a.supports(t)),!n)throw new te(5101,!1);return this._eventNameToPlugin.set(t,n),n}};e.\u0275fac=function(n){return new(n||e)(M(Fb),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),mh=class{constructor(e){this._doc=e}},kb="ng-app-id",uI=(()=>{let e=class e{constructor(t,n,o,a={}){this.doc=t,this.appId=n,this.nonce=o,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=sh(a),this.resetHostNodes()}addStyles(t){for(let n of t)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(t){for(let n of t)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(n=>n.remove()),t.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let n of this.getAllStyles())this.addStyleToHost(t,n)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let n of this.hostNodes)this.addStyleToHost(n,t)}onStyleRemoved(t){let n=this.styleRef;n.get(t)?.elements?.forEach(o=>o.remove()),n.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${kb}="${this.appId}"]`);if(t?.length){let n=new Map;return t.forEach(o=>{o.textContent!=null&&n.set(o.textContent,o)}),n}return null}changeUsageCount(t,n){let o=this.styleRef;if(o.has(t)){let a=o.get(t);return a.usage+=n,a.usage}return o.set(t,{usage:n,elements:[]}),n}getStyleElement(t,n){let o=this.styleNodesInDOM,a=o?.get(n);if(a?.parentNode===t)return o.delete(n),a.removeAttribute(kb),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=n,this.platformIsServer&&s.setAttribute(kb,this.appId),t.appendChild(s),s}}addStyleToHost(t,n){let o=this.getStyleElement(t,n),a=this.styleRef,s=a.get(n)?.elements;s?s.push(o):a.set(n,{elements:[o],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Ks),M(fl,8),M(Kn))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Ab={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Lb=/%COMP%/g,mI="%COMP%",h3=`_nghost-${mI}`,p3=`_ngcontent-${mI}`,f3=!0,g3=new O("",{providedIn:"root",factory:()=>f3});function _3(i){return p3.replace(Lb,i)}function v3(i){return h3.replace(Lb,i)}function hI(i,e){return e.map(r=>r.replace(Lb,i))}var hh=(()=>{let e=class e{constructor(t,n,o,a,s,c,u,f=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=c,this.ngZone=u,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=sh(c),this.defaultRenderer=new Rl(t,s,u,this.platformIsServer)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===jo.ShadowDom&&(n=mt(B({},n),{encapsulation:jo.Emulated}));let o=this.getOrCreateRenderer(t,n);return o instanceof ph?o.applyToHost(t):o instanceof Pl&&o.applyStyles(),o}getOrCreateRenderer(t,n){let o=this.rendererByCompId,a=o.get(n.id);if(!a){let s=this.doc,c=this.ngZone,u=this.eventManager,f=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,C=this.platformIsServer;switch(n.encapsulation){case jo.Emulated:a=new ph(u,f,n,this.appId,v,s,c,C);break;case jo.ShadowDom:return new Nb(u,f,t,n,s,c,this.nonce,C);default:a=new Pl(u,f,n,v,s,c,C);break}o.set(n.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(M(dI),M(uI),M(Ks),M(g3),M(se),M(Kn),M(Z),M(fl))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Rl=class{constructor(e,r,t,n){this.eventManager=e,this.doc=r,this.ngZone=t,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Ab[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(cI(e)?e.content:e).appendChild(r)}insertBefore(e,r,t){e&&(cI(e)?e.content:e).insertBefore(r,t)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new te(-5104,!1);return r||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,t,n){if(n){r=n+":"+r;let o=Ab[n];o?e.setAttributeNS(o,r,t):e.setAttribute(r,t)}else e.setAttribute(r,t)}removeAttribute(e,r,t){if(t){let n=Ab[t];n?e.removeAttributeNS(n,r):e.removeAttribute(`${t}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,t,n){n&(Uo.DashCase|Uo.Important)?e.style.setProperty(r,t,n&Uo.Important?"important":""):e.style[r]=t}removeStyle(e,r,t){t&Uo.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,t){e!=null&&(e[r]=t)}setValue(e,r){e.nodeValue=r}listen(e,r,t){if(typeof e=="string"&&(e=Go().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(t))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function cI(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var Nb=class extends Rl{constructor(e,r,t,n,o,a,s,c){super(e,o,a,c),this.sharedStylesHost=r,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=hI(n.id,n.styles);for(let f of u){let v=document.createElement("style");s&&v.setAttribute("nonce",s),v.textContent=f,this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,t){return super.insertBefore(this.nodeOrShadowRoot(e),r,t)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Pl=class extends Rl{constructor(e,r,t,n,o,a,s,c){super(e,o,a,s),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=n,this.styles=c?hI(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ph=class extends Pl{constructor(e,r,t,n,o,a,s,c){let u=n+"-"+t.id;super(e,r,t,o,a,s,c,u),this.contentAttr=_3(u),this.hostAttr=v3(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let t=super.createElement(e,r);return super.setAttribute(t,this.contentAttr,""),t}},b3=(()=>{let e=class e extends mh{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,o){return t.addEventListener(n,o,!1),()=>this.removeEventListener(t,n,o)}removeEventListener(t,n,o){return t.removeEventListener(n,o)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),lI=["alt","control","meta","shift"],y3={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},w3={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},C3=(()=>{let e=class e extends mh{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,o){let a=e.parseEventName(n),s=e.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Go().onAndCancel(t,a.domEventName,s))}static parseEventName(t){let n=t.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let a=e._normalizeKey(n.pop()),s="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),s="code."),lI.forEach(f=>{let v=n.indexOf(f);v>-1&&(n.splice(v,1),s+=f+".")}),s+=a,n.length!=0||a.length===0)return null;let u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(t,n){let o=y3[t.key]||t.key,a="";return n.indexOf("code.")>-1&&(o=t.code,a="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),lI.forEach(s=>{if(s!==o){let c=w3[s];c(t)&&(a+=s+".")}}),a+=o,a===n)}static eventCallback(t,n,o){return a=>{e.matchEventFullKeyCode(a,t)&&o.runGuarded(()=>n(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function x3(){Rb.makeCurrent()}function D3(){return new un}function S3(){return GD(document),document}var E3=[{provide:Kn,useValue:Cb},{provide:Lv,useValue:x3,multi:!0},{provide:se,useFactory:S3,deps:[]}],pI=lb(IE,"browser",E3),I3=new O(""),M3=[{provide:Dl,useClass:Pb,deps:[]},{provide:ab,useClass:Qm,deps:[Z,Km,Dl]},{provide:Qm,useClass:Qm,deps:[Z,Km,Dl]}],T3=[{provide:Mm,useValue:"root"},{provide:un,useFactory:D3,deps:[]},{provide:Fb,useClass:b3,multi:!0,deps:[se,Z,Kn]},{provide:Fb,useClass:C3,multi:!0,deps:[se]},hh,uI,dI,{provide:Yr,useExisting:hh},{provide:ec,useClass:m3,deps:[]},[]],fh=(()=>{let e=class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Ks,useValue:t.appId}]}}};e.\u0275fac=function(n){return new(n||e)(M(I3,12))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[...T3,...M3],imports:[Si,ME]});let i=e;return i})();var fI=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ja=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(n){let o=null;return n?o=new(n||e):o=M(k3),o},providedIn:"root"});let i=e;return i})(),k3=(()=>{let e=class e extends Ja{constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case Hi.NONE:return n;case Hi.HTML:return pr(n,"HTML")?Zn(n):jv(this._doc,String(n)).toString();case Hi.STYLE:return pr(n,"Style")?Zn(n):n;case Hi.SCRIPT:if(pr(n,"Script"))return Zn(n);throw new te(5200,!1);case Hi.URL:return pr(n,"URL")?Zn(n):Lm(String(n));case Hi.RESOURCE_URL:if(pr(n,"ResourceURL"))return Zn(n);throw new te(5201,!1);default:throw new te(5202,!1)}}bypassSecurityTrustHtml(t){return KD(t)}bypassSecurityTrustStyle(t){return ZD(t)}bypassSecurityTrustScript(t){return XD(t)}bypassSecurityTrustUrl(t){return JD(t)}bypassSecurityTrustResourceUrl(t){return eS(t)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var dt="primary",Kl=Symbol("RouteTitle"),Ub=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function sc(i){return new Ub(i)}function A3(i,e,r){let t=r.path.split("/");if(t.length>i.length||r.pathMatch==="full"&&(e.hasChildren()||t.lengtht[o]===n)}else return i===e}function II(i){return i.length>0?i[i.length-1]:null}function aa(i){return Fa(i)?i:ea(i)?Qt(Promise.resolve(i)):oe(i)}var R3={exact:TI,subset:kI},MI={exact:P3,subset:F3,ignored:()=>!0};function gI(i,e,r){return R3[r.paths](i.root,e.root,r.matrixParams)&&MI[r.queryParams](i.queryParams,e.queryParams)&&!(r.fragment==="exact"&&i.fragment!==e.fragment)}function P3(i,e){return Yo(i,e)}function TI(i,e,r){if(!ts(i.segments,e.segments)||!vh(i.segments,e.segments,r)||i.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!i.children[t]||!TI(i.children[t],e.children[t],r))return!1;return!0}function F3(i,e){return Object.keys(e).length<=Object.keys(i).length&&Object.keys(e).every(r=>EI(i[r],e[r]))}function kI(i,e,r){return AI(i,e,e.segments,r)}function AI(i,e,r,t){if(i.segments.length>r.length){let n=i.segments.slice(0,r.length);return!(!ts(n,r)||e.hasChildren()||!vh(n,r,t))}else if(i.segments.length===r.length){if(!ts(i.segments,r)||!vh(i.segments,r,t))return!1;for(let n in e.children)if(!i.children[n]||!kI(i.children[n],e.children[n],t))return!1;return!0}else{let n=r.slice(0,i.segments.length),o=r.slice(i.segments.length);return!ts(i.segments,n)||!vh(i.segments,n,t)||!i.children[dt]?!1:AI(i.children[dt],e,o,t)}}function vh(i,e,r){return e.every((t,n)=>MI[r](i[n].parameters,t.parameters))}var oa=class{constructor(e=new Vt([],{}),r={},t=null){this.root=e,this.queryParams=r,this.fragment=t}get queryParamMap(){return this._queryParamMap??=sc(this.queryParams),this._queryParamMap}toString(){return V3.serialize(this)}},Vt=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bh(this)}},es=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=sc(this.parameters),this._parameterMap}toString(){return RI(this)}};function N3(i,e){return ts(i,e)&&i.every((r,t)=>Yo(r.parameters,e[t].parameters))}function ts(i,e){return i.length!==e.length?!1:i.every((r,t)=>r.path===e[t].path)}function L3(i,e){let r=[];return Object.entries(i.children).forEach(([t,n])=>{t===dt&&(r=r.concat(e(n,t)))}),Object.entries(i.children).forEach(([t,n])=>{t!==dt&&(r=r.concat(e(n,t)))}),r}var Zl=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>new cc,providedIn:"root"});let i=e;return i})(),cc=class{parse(e){let r=new Wb(e);return new oa(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Nl(e.root,!0)}`,t=z3(e.queryParams),n=typeof e.fragment=="string"?`#${j3(e.fragment)}`:"";return`${r}${t}${n}`}},V3=new cc;function bh(i){return i.segments.map(e=>RI(e)).join("/")}function Nl(i,e){if(!i.hasChildren())return bh(i);if(e){let r=i.children[dt]?Nl(i.children[dt],!1):"",t=[];return Object.entries(i.children).forEach(([n,o])=>{n!==dt&&t.push(`${n}:${Nl(o,!1)}`)}),t.length>0?`${r}(${t.join("//")})`:r}else{let r=L3(i,(t,n)=>n===dt?[Nl(i.children[dt],!1)]:[`${n}:${Nl(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[dt]!=null?`${bh(i)}/${r[0]}`:`${bh(i)}/(${r.join("//")})`}}function OI(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function gh(i){return OI(i).replace(/%3B/gi,";")}function j3(i){return encodeURI(i)}function $b(i){return OI(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yh(i){return decodeURIComponent(i)}function _I(i){return yh(i.replace(/\+/g,"%20"))}function RI(i){return`${$b(i.path)}${B3(i.parameters)}`}function B3(i){return Object.entries(i).map(([e,r])=>`;${$b(e)}=${$b(r)}`).join("")}function z3(i){let e=Object.entries(i).map(([r,t])=>Array.isArray(t)?t.map(n=>`${gh(r)}=${gh(n)}`).join("&"):`${gh(r)}=${gh(t)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var U3=/^[^\/()?;#]+/;function Vb(i){let e=i.match(U3);return e?e[0]:""}var H3=/^[^\/()?;=#]+/;function $3(i){let e=i.match(H3);return e?e[0]:""}var W3=/^[^=?&#]+/;function G3(i){let e=i.match(W3);return e?e[0]:""}var q3=/^[^&#]+/;function Y3(i){let e=i.match(q3);return e?e[0]:""}var Wb=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vt([],{}):new Vt([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(t[dt]=new Vt(e,r)),t}parseSegment(){let e=Vb(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new te(4009,!1);return this.capture(e),new es(yh(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=$3(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let n=Vb(this.remaining);n&&(t=n,this.capture(t))}e[yh(r)]=yh(t)}parseQueryParam(e){let r=G3(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let a=Y3(this.remaining);a&&(t=a,this.capture(t))}let n=_I(r),o=_I(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){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Vb(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new te(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=dt);let a=this.parseChildren();r[o]=Object.keys(a).length===1?a[dt]:new Vt([],a),this.consumeOptional("//")}return r}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 te(4011,!1)}};function PI(i){return i.segments.length>0?new Vt([],{[dt]:i}):i}function FI(i){let e={};for(let[t,n]of Object.entries(i.children)){let o=FI(n);if(t===dt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))e[a]=s;else(o.segments.length>0||o.hasChildren())&&(e[t]=o)}let r=new Vt(i.segments,e);return Q3(r)}function Q3(i){if(i.numberOfChildren===1&&i.children[dt]){let e=i.children[dt];return new Vt(i.segments.concat(e.segments),e.children)}return i}function Ul(i){return i instanceof oa}function K3(i,e,r=null,t=null){let n=NI(i);return LI(n,e,r,t)}function NI(i){let e;function r(o){let a={};for(let c of o.children){let u=r(c);a[c.outlet]=u}let s=new Vt(o.url,a);return o===i&&(e=s),s}let t=r(i.root),n=PI(t);return e??n}function LI(i,e,r,t){let n=i;for(;n.parent;)n=n.parent;if(e.length===0)return jb(n,n,n,r,t);let o=Z3(e);if(o.toRoot())return jb(n,n,new Vt([],{}),r,t);let a=X3(o,n,i),s=a.processChildren?jl(a.segmentGroup,a.index,o.commands):jI(a.segmentGroup,a.index,o.commands);return jb(n,a.segmentGroup,s,r,t)}function wh(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Hl(i){return typeof i=="object"&&i!=null&&i.outlets}function jb(i,e,r,t,n){let o={};t&&Object.entries(t).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let a;i===e?a=r:a=VI(i,e,r);let s=PI(FI(a));return new oa(s,o,n)}function VI(i,e,r){let t={};return Object.entries(i.children).forEach(([n,o])=>{o===e?t[n]=r:t[n]=VI(o,e,r)}),new Vt(i.segments,t)}var Ch=class{constructor(e,r,t){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=t,e&&t.length>0&&wh(t[0]))throw new te(4003,!1);let n=t.find(Hl);if(n&&n!==II(t))throw new te(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Z3(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new Ch(!0,0,i);let e=0,r=!1,t=i.reduce((n,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([c,u])=>{s[c]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:s}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:a===0?(o.split("/").forEach((s,c)=>{c==0&&s==="."||(c==0&&s===""?r=!0:s===".."?e++:s!=""&&n.push(s))}),n):[...n,o]},[]);return new Ch(r,e,t)}var oc=class{constructor(e,r,t){this.segmentGroup=e,this.processChildren=r,this.index=t}};function X3(i,e,r){if(i.isAbsolute)return new oc(e,!0,0);if(!r)return new oc(e,!1,NaN);if(r.parent===null)return new oc(r,!0,0);let t=wh(i.commands[0])?0:1,n=r.segments.length-1+t;return J3(r,n,i.numberOfDoubleDots)}function J3(i,e,r){let t=i,n=e,o=r;for(;o>n;){if(o-=n,t=t.parent,!t)throw new te(4005,!1);n=t.segments.length}return new oc(t,!1,n-o)}function eB(i){return Hl(i[0])?i[0].outlets:{[dt]:i}}function jI(i,e,r){if(i??=new Vt([],{}),i.segments.length===0&&i.hasChildren())return jl(i,e,r);let t=tB(i,e,r),n=r.slice(t.commandIndex);if(t.match&&t.pathIndexo!==dt)&&i.children[dt]&&i.numberOfChildren===1&&i.children[dt].segments.length===0){let o=jl(i.children[dt],e,r);return new Vt(i.segments,o.children)}return Object.entries(t).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(n[o]=jI(i.children[o],e,a))}),Object.entries(i.children).forEach(([o,a])=>{t[o]===void 0&&(n[o]=a)}),new Vt(i.segments,n)}}function tB(i,e,r){let t=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n=r.length)return o;let a=i.segments[n],s=r[t];if(Hl(s))break;let c=`${s}`,u=t0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!bI(c,u,a))return o;t+=2}else{if(!bI(c,{},a))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function Gb(i,e,r){let t=i.segments.slice(0,e),n=0;for(;n{typeof t=="string"&&(t=[t]),t!==null&&(e[r]=Gb(new Vt([],{}),0,t))}),e}function vI(i){let e={};return Object.entries(i).forEach(([r,t])=>e[r]=`${t}`),e}function bI(i,e,r){return i==r.path&&Yo(e,r.parameters)}var Bl="imperative",Vi=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}(Vi||{}),Jn=class{constructor(e,r){this.id=e,this.url=r}},lc=class extends Jn{constructor(e,r,t="imperative",n=null){super(e,r),this.type=Vi.NavigationStart,this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Qo=class extends Jn{constructor(e,r,t){super(e,r),this.urlAfterRedirects=t,this.type=Vi.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Fn=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(Fn||{}),xh=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(xh||{}),Dr=class extends Jn{constructor(e,r,t,n){super(e,r),this.reason=t,this.code=n,this.type=Vi.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ra=class extends Jn{constructor(e,r,t,n){super(e,r),this.reason=t,this.code=n,this.type=Vi.NavigationSkipped}},$l=class extends Jn{constructor(e,r,t,n){super(e,r),this.error=t,this.target=n,this.type=Vi.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Dh=class extends Jn{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=Vi.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qb=class extends Jn{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=Vi.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yb=class extends Jn{constructor(e,r,t,n,o){super(e,r),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o,this.type=Vi.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Qb=class extends Jn{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=Vi.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kb=class extends Jn{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=Vi.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Zb=class{constructor(e){this.route=e,this.type=Vi.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Xb=class{constructor(e){this.route=e,this.type=Vi.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Jb=class{constructor(e){this.snapshot=e,this.type=Vi.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},e0=class{constructor(e){this.snapshot=e,this.type=Vi.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},t0=class{constructor(e){this.snapshot=e,this.type=Vi.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},i0=class{constructor(e){this.snapshot=e,this.type=Vi.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Sh=class{constructor(e,r,t){this.routerEvent=e,this.position=r,this.anchor=t,this.type=Vi.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Wl=class{},dc=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var n0=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new Xl(this.injector),this.attachRef=null}},Xl=(()=>{let e=class e{constructor(t){this.parentInjector=t,this.contexts=new Map}onChildOutletCreated(t,n){let o=this.getOrCreateContext(t);o.outlet=n,this.contexts.set(t,o)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new n0(this.parentInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(n){return new(n||e)(M(Pi))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Eh=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=o0(e,this._root);return r?r.children.map(t=>t.value):[]}firstChild(e){let r=o0(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=r0(e,this._root);return r.length<2?[]:r[r.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return r0(e,this._root).map(r=>r.value)}};function o0(i,e){if(i===e.value)return e;for(let r of e.children){let t=o0(i,r);if(t)return t}return null}function r0(i,e){if(i===e.value)return[e];for(let r of e.children){let t=r0(i,r);if(t.length)return t.unshift(e),t}return[]}var Pn=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function nc(i){let e={};return i&&i.children.forEach(r=>e[r.value.outlet]=r),e}var Ih=class extends Eh{constructor(e,r){super(e),this.snapshot=r,p0(this,e)}toString(){return this.snapshot.toString()}};function BI(i){let e=nB(i),r=new $t([new es("",{})]),t=new $t({}),n=new $t({}),o=new $t({}),a=new $t(""),s=new Oe(r,t,o,a,n,dt,i,e.root);return s.snapshot=e.root,new Ih(new Pn(s,[]),e)}function nB(i){let e={},r={},t={},n="",o=new rc([],e,t,n,r,dt,i,null,{});return new Th("",new Pn(o,[]))}var Oe=class{constructor(e,r,t,n,o,a,s,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(de(u=>u[Kl]))??oe(void 0),this.url=e,this.params=r,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(de(e=>sc(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(de(e=>sc(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Mh(i,e,r="emptyOnly"){let t,{routeConfig:n}=i;return e!==null&&(r==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:B(B({},e.params),i.params),data:B(B({},e.data),i.data),resolve:B(B(B(B({},i.data),e.data),n?.data),i._resolvedData)}:t={params:B({},i.params),data:B({},i.data),resolve:B(B({},i.data),i._resolvedData??{})},n&&UI(n)&&(t.resolve[Kl]=n.title),t}var rc=class{get title(){return this.data?.[Kl]}constructor(e,r,t,n,o,a,s,c,u){this.url=e,this.params=r,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=u}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??=sc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=sc(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Th=class extends Eh{constructor(e,r){super(r),this.url=e,p0(this,r)}toString(){return zI(this._root)}};function p0(i,e){e.value._routerState=i,e.children.forEach(r=>p0(i,r))}function zI(i){let e=i.children.length>0?` { ${i.children.map(zI).join(", ")} } `:"";return`${i.value}${e}`}function Bb(i){if(i.snapshot){let e=i.snapshot,r=i._futureSnapshot;i.snapshot=r,Yo(e.queryParams,r.queryParams)||i.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&i.fragmentSubject.next(r.fragment),Yo(e.params,r.params)||i.paramsSubject.next(r.params),O3(e.url,r.url)||i.urlSubject.next(r.url),Yo(e.data,r.data)||i.dataSubject.next(r.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function a0(i,e){let r=Yo(i.params,e.params)&&N3(i.url,e.url),t=!i.parent!=!e.parent;return r&&!t&&(!i.parent||a0(i.parent,e.parent))}function UI(i){return typeof i.title=="string"||i.title===null}var f0=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=dt,this.activateEvents=new T,this.deactivateEvents=new T,this.attachEvents=new T,this.detachEvents=new T,this.parentContexts=k(Xl),this.location=k(wt),this.changeDetector=k(me),this.inputBinder=k(Ph,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:o}=t.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new te(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new te(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new te(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new te(4013,!1);this._activatedRoute=t;let o=this.location,s=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new s0(t,c,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Qe]});let i=e;return i})(),s0=class i{__ngOutletInjector(e){return new i(this.route,this.childContexts,e)}constructor(e,r,t){this.route=e,this.childContexts=r,this.parent=t}get(e,r){return e===Oe?this.route:e===Xl?this.childContexts:this.parent.get(e,r)}},Ph=new O(""),yI=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,o=An([n.queryParams,n.params,n.data]).pipe(Mt(([a,s,c],u)=>(c=B(B(B({},a),s),c),u===0?oe(c):Promise.resolve(c)))).subscribe(a=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let s=TE(n.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:c}of s.inputs)t.activatedComponentRef.setInput(c,a[c])});this.outletDataSubscriptions.set(t,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function oB(i,e,r){let t=Gl(i,e._root,r?r._root:void 0);return new Ih(t,e)}function Gl(i,e,r){if(r&&i.shouldReuseRoute(e.value,r.value.snapshot)){let t=r.value;t._futureSnapshot=e.value;let n=rB(i,e,r);return new Pn(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(s=>Gl(i,s)),a}}let t=aB(e.value),n=e.children.map(o=>Gl(i,o));return new Pn(t,n)}}function rB(i,e,r){return e.children.map(t=>{for(let n of r.children)if(i.shouldReuseRoute(t.value,n.value.snapshot))return Gl(i,t,n);return Gl(i,t)})}function aB(i){return new Oe(new $t(i.url),new $t(i.params),new $t(i.queryParams),new $t(i.fragment),new $t(i.data),i.outlet,i.component,i)}var ql=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},HI="ngNavigationCancelingError";function kh(i,e){let{redirectTo:r,navigationBehaviorOptions:t}=Ul(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=$I(!1,Fn.Redirect);return n.url=r,n.navigationBehaviorOptions=t,n}function $I(i,e){let r=new Error(`NavigationCancelingError: ${i||""}`);return r[HI]=!0,r.cancellationCode=e,r}function sB(i){return WI(i)&&Ul(i.url)}function WI(i){return!!i&&i[HI]}var cB=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["ng-component"]],standalone:!0,features:[re],decls:1,vars:0,template:function(n,o){n&1&&I(0,"router-outlet")},dependencies:[f0],encapsulation:2});let i=e;return i})();function lB(i,e){return i.providers&&!i._injector&&(i._injector=qm(i.providers,e,`Route: ${i.path}`)),i._injector??e}function g0(i){let e=i.children&&i.children.map(g0),r=e?mt(B({},i),{children:e}):B({},i);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==dt&&(r.component=cB),r}function Co(i){return i.outlet||dt}function dB(i,e){let r=i.filter(t=>Co(t)===e);return r.push(...i.filter(t=>Co(t)!==e)),r}function Jl(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let e=i.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var uB=(i,e,r,t)=>de(n=>(new c0(e,n.targetRouterState,n.currentRouterState,r,t).activate(i),n)),c0=class{constructor(e,r,t,n,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,t,e),Bb(this.futureState.root),this.activateChildRoutes(r,t,e)}deactivateChildRoutes(e,r,t){let n=nc(r);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,r,t){let n=e.value,o=r?r.value:null;if(n===o)if(n.component){let a=t.getContext(n.outlet);a&&this.deactivateChildRoutes(e,r,a.children)}else this.deactivateChildRoutes(e,r,t);else o&&this.deactivateRouteAndItsChildren(r,t)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let t=r.getContext(e.value.outlet),n=t&&e.value.component?t.children:r,o=nc(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);if(t&&t.outlet){let a=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:s})}}deactivateRouteAndOutlet(e,r){let t=r.getContext(e.value.outlet),n=t&&e.value.component?t.children:r,o=nc(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,r,t){let n=nc(r);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new i0(o.value.snapshot))}),e.children.length&&this.forwardEvent(new e0(e.value.snapshot))}activateRoutes(e,r,t){let n=e.value,o=r?r.value:null;if(Bb(n),n===o)if(n.component){let a=t.getOrCreateContext(n.outlet);this.activateChildRoutes(e,r,a.children)}else this.activateChildRoutes(e,r,t);else if(n.component){let a=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Bb(s.route.value),this.activateChildRoutes(e,null,a.children)}else{let s=Jl(n.snapshot);a.attachRef=null,a.route=n,a.injector=s??a.injector,a.outlet&&a.outlet.activateWith(n,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,t)}},Ah=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ac=class{constructor(e,r){this.component=e,this.route=r}};function mB(i,e,r){let t=i._root,n=e?e._root:null;return Ll(t,n,r,[t.value])}function hB(i){let e=i.routeConfig?i.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:i,guards:e}}function mc(i,e){let r=Symbol(),t=e.get(i,r);return t===r?typeof i=="function"&&!Lx(i)?i:e.get(i):t}function Ll(i,e,r,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=nc(e);return i.children.forEach(a=>{pB(a,o[a.value.outlet],r,t.concat([a.value]),n),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>zl(s,r.getContext(a),n)),n}function pB(i,e,r,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,a=e?e.value:null,s=r?r.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let c=fB(a,o,o.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new Ah(t)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Ll(i,e,s?s.children:null,t,n):Ll(i,e,r,t,n),c&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new ac(s.outlet.component,a))}else a&&zl(e,s,n),n.canActivateChecks.push(new Ah(t)),o.component?Ll(i,null,s?s.children:null,t,n):Ll(i,null,r,t,n);return n}function fB(i,e,r){if(typeof r=="function")return r(i,e);switch(r){case"pathParamsChange":return!ts(i.url,e.url);case"pathParamsOrQueryParamsChange":return!ts(i.url,e.url)||!Yo(i.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!a0(i,e)||!Yo(i.queryParams,e.queryParams);case"paramsChange":default:return!a0(i,e)}}function zl(i,e,r){let t=nc(i),n=i.value;Object.entries(t).forEach(([o,a])=>{n.component?e?zl(a,e.children.getContext(o),r):zl(a,null,r):zl(a,e,r)}),n.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new ac(e.outlet.component,n)):r.canDeactivateChecks.push(new ac(null,n)):r.canDeactivateChecks.push(new ac(null,n))}function ed(i){return typeof i=="function"}function gB(i){return typeof i=="boolean"}function _B(i){return i&&ed(i.canLoad)}function vB(i){return i&&ed(i.canActivate)}function bB(i){return i&&ed(i.canActivateChild)}function yB(i){return i&&ed(i.canDeactivate)}function wB(i){return i&&ed(i.canMatch)}function GI(i){return i instanceof po||i?.name==="EmptyError"}var _h=Symbol("INITIAL_VALUE");function uc(){return Mt(i=>An(i.map(e=>e.pipe(It(1),Ot(_h)))).pipe(de(e=>{for(let r of e)if(r!==!0){if(r===_h)return _h;if(r===!1||CB(r))return r}return!0}),qe(e=>e!==_h),It(1)))}function CB(i){return Ul(i)||i instanceof ql}function xB(i,e){return si(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:a}}=r;return a.length===0&&o.length===0?oe(mt(B({},r),{guardsResult:!0})):DB(a,t,n,i).pipe(si(s=>s&&gB(s)?SB(t,o,i,e):oe(s)),de(s=>mt(B({},r),{guardsResult:s})))})}function DB(i,e,r,t){return Qt(i).pipe(si(n=>kB(n.component,n.route,r,e,t)),No(n=>n!==!0,!0))}function SB(i,e,r,t){return Qt(e).pipe(ar(n=>Po(IB(n.route.parent,t),EB(n.route,t),TB(i,n.path,r),MB(i,n.route,r))),No(n=>n!==!0,!0))}function EB(i,e){return i!==null&&e&&e(new t0(i)),oe(!0)}function IB(i,e){return i!==null&&e&&e(new Jb(i)),oe(!0)}function MB(i,e,r){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return oe(!0);let n=t.map(o=>Wn(()=>{let a=Jl(e)??r,s=mc(o,a),c=vB(s)?s.canActivate(e,i):bn(a,()=>s(e,i));return aa(c).pipe(No())}));return oe(n).pipe(uc())}function TB(i,e,r){let t=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(a=>hB(a)).filter(a=>a!==null).map(a=>Wn(()=>{let s=a.guards.map(c=>{let u=Jl(a.node)??r,f=mc(c,u),v=bB(f)?f.canActivateChild(t,i):bn(u,()=>f(t,i));return aa(v).pipe(No())});return oe(s).pipe(uc())}));return oe(o).pipe(uc())}function kB(i,e,r,t,n){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return oe(!0);let a=o.map(s=>{let c=Jl(e)??n,u=mc(s,c),f=yB(u)?u.canDeactivate(i,e,r,t):bn(c,()=>u(i,e,r,t));return aa(f).pipe(No())});return oe(a).pipe(uc())}function AB(i,e,r,t){let n=e.canLoad;if(n===void 0||n.length===0)return oe(!0);let o=n.map(a=>{let s=mc(a,i),c=_B(s)?s.canLoad(e,r):bn(i,()=>s(e,r));return aa(c)});return oe(o).pipe(uc(),qI(t))}function qI(i){return Pg(zt(e=>{if(typeof e!="boolean")throw kh(i,e)}),de(e=>e===!0))}function OB(i,e,r,t){let n=e.canMatch;if(!n||n.length===0)return oe(!0);let o=n.map(a=>{let s=mc(a,i),c=wB(s)?s.canMatch(e,r):bn(i,()=>s(e,r));return aa(c)});return oe(o).pipe(uc(),qI(t))}var Yl=class{constructor(e){this.segmentGroup=e||null}},Ql=class extends Error{constructor(e){super(),this.urlTree=e}};function ic(i){return Ro(new Yl(i))}function RB(i){return Ro(new te(4e3,!1))}function PB(i){return Ro($I(!1,Fn.GuardRejected))}var l0=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let t=[],n=r.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return oe(t);if(n.numberOfChildren>1||!n.children[dt])return RB(`${e.redirectTo}`);n=n.children[dt]}}applyRedirectCommands(e,r,t,n,o){if(typeof r!="string"){let s=r,{queryParams:c,fragment:u,routeConfig:f,url:v,outlet:C,params:D,data:E,title:R}=n,j=bn(o,()=>s({params:D,data:E,queryParams:c,fragment:u,routeConfig:f,url:v,outlet:C,title:R}));if(j instanceof oa)throw new Ql(j);r=j}let a=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,t);if(r[0]==="/")throw new Ql(a);return a}applyRedirectCreateUrlTree(e,r,t,n){let o=this.createSegmentGroup(e,r.root,t,n);return new oa(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let t={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);t[n]=r[s]}else t[n]=o}),t}createSegmentGroup(e,r,t,n){let o=this.createSegments(e,r.segments,t,n),a={};return Object.entries(r.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(e,c,t,n)}),new Vt(o,a)}createSegments(e,r,t,n){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,t))}findPosParam(e,r,t){let n=t[r.path.substring(1)];if(!n)throw new te(4001,!1);return n}findOrReturn(e,r){let t=0;for(let n of r){if(n.path===e.path)return r.splice(t),n;t++}return e}},d0={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function FB(i,e,r,t,n){let o=_0(i,e,r);return o.matched?(t=lB(e,t),OB(t,e,r,n).pipe(de(a=>a===!0?o:B({},d0)))):oe(o)}function _0(i,e,r){if(e.path==="**")return NB(r);if(e.path==="")return e.pathMatch==="full"&&(i.hasChildren()||r.length>0)?B({},d0):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let n=(e.matcher||A3)(r,i,e);if(!n)return B({},d0);let o={};Object.entries(n.posParams??{}).forEach(([s,c])=>{o[s]=c.path});let a=n.consumed.length>0?B(B({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:r.slice(n.consumed.length),parameters:a,positionalParamSegments:n.posParams??{}}}function NB(i){return{matched:!0,parameters:i.length>0?II(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function wI(i,e,r,t){return r.length>0&&jB(i,r,t)?{segmentGroup:new Vt(e,VB(t,new Vt(r,i.children))),slicedSegments:[]}:r.length===0&&BB(i,r,t)?{segmentGroup:new Vt(i.segments,LB(i,r,t,i.children)),slicedSegments:r}:{segmentGroup:new Vt(i.segments,i.children),slicedSegments:r}}function LB(i,e,r,t){let n={};for(let o of r)if(Fh(i,e,o)&&!t[Co(o)]){let a=new Vt([],{});n[Co(o)]=a}return B(B({},t),n)}function VB(i,e){let r={};r[dt]=e;for(let t of i)if(t.path===""&&Co(t)!==dt){let n=new Vt([],{});r[Co(t)]=n}return r}function jB(i,e,r){return r.some(t=>Fh(i,e,t)&&Co(t)!==dt)}function BB(i,e,r){return r.some(t=>Fh(i,e,t))}function Fh(i,e,r){return(i.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function zB(i,e,r,t){return Co(i)!==t&&(t===dt||!Fh(e,r,i))?!1:_0(e,i,r).matched}function UB(i,e,r){return e.length===0&&!i.children[r]}var u0=class{};function HB(i,e,r,t,n,o,a="emptyOnly"){return new m0(i,e,r,t,n,a,o).recognize()}var $B=31,m0=class{constructor(e,r,t,n,o,a,s){this.injector=e,this.configLoader=r,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new l0(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new te(4002,`'${e.segmentGroup}'`)}recognize(){let e=wI(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(de(({children:r,rootSnapshot:t})=>{let n=new Pn(t,r),o=new Th("",n),a=K3(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){let r=new rc([],Object.freeze({}),Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),dt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,dt,r).pipe(de(t=>({children:t,rootSnapshot:r})),zi(t=>{if(t instanceof Ql)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Yl?this.noMatchError(t):t}))}processSegmentGroup(e,r,t,n,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,r,t,o):this.processSegment(e,r,t,t.segments,n,!0,o).pipe(de(a=>a instanceof Pn?[a]:[]))}processChildren(e,r,t,n){let o=[];for(let a of Object.keys(t.children))a==="primary"?o.unshift(a):o.push(a);return Qt(o).pipe(ar(a=>{let s=t.children[a],c=dB(r,a);return this.processSegmentGroup(e,c,s,a,n)}),Gg((a,s)=>(a.push(...s),a)),jr(null),Wg(),si(a=>{if(a===null)return ic(t);let s=YI(a);return WB(s),oe(s)}))}processSegment(e,r,t,n,o,a,s){return Qt(r).pipe(ar(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,t,n,o,a,s).pipe(zi(u=>{if(u instanceof Yl)return oe(null);throw u}))),No(c=>!!c),zi(c=>{if(GI(c))return UB(t,n,o)?oe(new u0):ic(t);throw c}))}processSegmentAgainstRoute(e,r,t,n,o,a,s,c){return zB(t,n,o,a)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,n,t,o,a,c):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,t,o,a,c):ic(n):ic(n)}expandSegmentAgainstRouteUsingRedirect(e,r,t,n,o,a,s){let{matched:c,parameters:u,consumedSegments:f,positionalParamSegments:v,remainingSegments:C}=_0(r,n,o);if(!c)return ic(r);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>$B&&(this.allowRedirects=!1));let D=new rc(o,u,Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,CI(n),Co(n),n.component??n._loadedComponent??null,n,xI(n)),E=Mh(D,s,this.paramsInheritanceStrategy);D.params=Object.freeze(E.params),D.data=Object.freeze(E.data);let R=this.applyRedirects.applyRedirectCommands(f,n.redirectTo,v,D,e);return this.applyRedirects.lineralizeSegments(n,R).pipe(si(j=>this.processSegment(e,t,r,j.concat(C),a,!1,s)))}matchSegmentAgainstRoute(e,r,t,n,o,a){let s=FB(r,t,n,e,this.urlSerializer);return t.path==="**"&&(r.children={}),s.pipe(Mt(c=>c.matched?(e=t._injector??e,this.getChildConfig(e,t,n).pipe(Mt(({routes:u})=>{let f=t._loadedInjector??e,{parameters:v,consumedSegments:C,remainingSegments:D}=c,E=new rc(C,v,Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,CI(t),Co(t),t.component??t._loadedComponent??null,t,xI(t)),R=Mh(E,a,this.paramsInheritanceStrategy);E.params=Object.freeze(R.params),E.data=Object.freeze(R.data);let{segmentGroup:j,slicedSegments:F}=wI(r,C,D,u);if(F.length===0&&j.hasChildren())return this.processChildren(f,u,j,E).pipe(de(at=>new Pn(E,at)));if(u.length===0&&F.length===0)return oe(new Pn(E,[]));let _e=Co(t)===o;return this.processSegment(f,u,j,F,_e?dt:o,!0,E).pipe(de(at=>new Pn(E,at instanceof Pn?[at]:[])))}))):ic(r)))}getChildConfig(e,r,t){return r.children?oe({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?oe({routes:r._loadedRoutes,injector:r._loadedInjector}):AB(e,r,t,this.urlSerializer).pipe(si(n=>n?this.configLoader.loadChildren(e,r).pipe(zt(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):PB(r))):oe({routes:[],injector:e})}};function WB(i){i.sort((e,r)=>e.value.outlet===dt?-1:r.value.outlet===dt?1:e.value.outlet.localeCompare(r.value.outlet))}function GB(i){let e=i.value.routeConfig;return e&&e.path===""}function YI(i){let e=[],r=new Set;for(let t of i){if(!GB(t)){e.push(t);continue}let n=e.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),r.add(n)):e.push(t)}for(let t of r){let n=YI(t.children);e.push(new Pn(t.value,n))}return e.filter(t=>!r.has(t))}function CI(i){return i.data||{}}function xI(i){return i.resolve||{}}function qB(i,e,r,t,n,o){return si(a=>HB(i,e,r,t,a.extractedUrl,n,o).pipe(de(({state:s,tree:c})=>mt(B({},a),{targetSnapshot:s,urlAfterRedirects:c}))))}function YB(i,e){return si(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return oe(r);let o=new Set(n.map(c=>c.route)),a=new Set;for(let c of o)if(!a.has(c))for(let u of QI(c))a.add(u);let s=0;return Qt(a).pipe(ar(c=>o.has(c)?QB(c,t,i,e):(c.data=Mh(c,c.parent,i).resolve,oe(void 0))),zt(()=>s++),ks(1),si(c=>s===a.size?oe(r):Ti))})}function QI(i){let e=i.children.map(r=>QI(r)).flat();return[i,...e]}function QB(i,e,r,t){let n=i.routeConfig,o=i._resolve;return n?.title!==void 0&&!UI(n)&&(o[Kl]=n.title),KB(o,i,e,t).pipe(de(a=>(i._resolvedData=a,i.data=Mh(i,i.parent,r).resolve,null)))}function KB(i,e,r,t){let n=Hb(i);if(n.length===0)return oe({});let o={};return Qt(n).pipe(si(a=>ZB(i[a],e,r,t).pipe(No(),zt(s=>{if(s instanceof ql)throw kh(new cc,s);o[a]=s}))),ks(1),Jc(o),zi(a=>GI(a)?Ti:Ro(a)))}function ZB(i,e,r,t){let n=Jl(e)??t,o=mc(i,n),a=o.resolve?o.resolve(e,r):bn(n,()=>o(e,r));return aa(a)}function zb(i){return Mt(e=>{let r=i(e);return r?Qt(r).pipe(de(()=>e)):oe(e)})}var KI=(()=>{let e=class e{buildTitle(t){let n,o=t.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(a=>a.outlet===dt);return n}getResolvedTitleForRoute(t){return t.data[Kl]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(XB),providedIn:"root"});let i=e;return i})(),XB=(()=>{let e=class e extends KI{constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}};e.\u0275fac=function(n){return new(n||e)(M(fI))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),td=new O("",{providedIn:"root",factory:()=>({})}),Oh=new O(""),v0=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=k(Jm)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return oe(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=aa(t.loadComponent()).pipe(de(ZI),zt(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),Fo(()=>{this.componentLoaders.delete(t)})),o=new Lr(n,()=>new W).pipe(Ds());return this.componentLoaders.set(t,o),o}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return oe({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let a=JB(n,this.compiler,t,this.onLoadEndListener).pipe(Fo(()=>{this.childrenLoaders.delete(n)})),s=new Lr(a,()=>new W).pipe(Ds());return this.childrenLoaders.set(n,s),s}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function JB(i,e,r,t){return aa(i.loadChildren()).pipe(de(ZI),si(n=>n instanceof ll||Array.isArray(n)?oe(n):Qt(e.compileModuleAsync(n))),de(n=>{t&&t(i);let o,a,s=!1;return Array.isArray(n)?(a=n,s=!0):(o=n.create(r).injector,a=o.get(Oh,[],{optional:!0,self:!0}).flat()),{routes:a.map(g0),injector:o}}))}function e4(i){return i&&typeof i=="object"&&"default"in i}function ZI(i){return e4(i)?i.default:i}var b0=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(t4),providedIn:"root"});let i=e;return i})(),t4=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),XI=new O(""),JI=new O("");function i4(i,e,r){let t=i.get(JI),n=i.get(se);return i.get(Z).runOutsideAngular(()=>{if(!n.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u}),s=n.startViewTransition(()=>(o(),n4(i))),{onViewTransitionCreated:c}=t;return c&&bn(i,()=>c({transition:s,from:e,to:r})),a})}function n4(i){return new Promise(e=>{ri(e,{injector:i})})}var o4=new O(""),y0=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=k(v0),this.environmentInjector=k(Pi),this.urlSerializer=k(Zl),this.rootContexts=k(Xl),this.location=k(qo),this.inputBindingEnabled=k(Ph,{optional:!0})!==null,this.titleStrategy=k(KI),this.options=k(td,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=k(b0),this.createViewTransition=k(XI,{optional:!0}),this.navigationErrorHandler=k(o4,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>oe(void 0),this.rootComponentType=null;let t=o=>this.events.next(new Zb(o)),n=o=>this.events.next(new Xb(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;this.transitions?.next(mt(B(B({},this.transitions.value),t),{id:n}))}setupNavigations(t,n,o){return this.transitions=new $t({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Bl,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(qe(a=>a.id!==0),de(a=>mt(B({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),Mt(a=>{let s=!1,c=!1;return oe(a).pipe(Mt(u=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",Fn.SupersededByNewNavigation),Ti;this.currentTransition=a,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?mt(B({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let f=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=u.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!f&&v!=="reload"){let C="";return this.events.next(new ra(u.id,this.urlSerializer.serialize(u.rawUrl),C,xh.IgnoredSameUrlNavigation)),u.resolve(!1),Ti}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return oe(u).pipe(Mt(C=>{let D=this.transitions?.getValue();return this.events.next(new lc(C.id,this.urlSerializer.serialize(C.extractedUrl),C.source,C.restoredState)),D!==this.transitions?.getValue()?Ti:Promise.resolve(C)}),qB(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),zt(C=>{a.targetSnapshot=C.targetSnapshot,a.urlAfterRedirects=C.urlAfterRedirects,this.currentNavigation=mt(B({},this.currentNavigation),{finalUrl:C.urlAfterRedirects});let D=new Dh(C.id,this.urlSerializer.serialize(C.extractedUrl),this.urlSerializer.serialize(C.urlAfterRedirects),C.targetSnapshot);this.events.next(D)}));if(f&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:C,extractedUrl:D,source:E,restoredState:R,extras:j}=u,F=new lc(C,this.urlSerializer.serialize(D),E,R);this.events.next(F);let _e=BI(this.rootComponentType).snapshot;return this.currentTransition=a=mt(B({},u),{targetSnapshot:_e,urlAfterRedirects:D,extras:mt(B({},j),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=D,oe(a)}else{let C="";return this.events.next(new ra(u.id,this.urlSerializer.serialize(u.extractedUrl),C,xh.IgnoredByUrlHandlingStrategy)),u.resolve(!1),Ti}}),zt(u=>{let f=new qb(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}),de(u=>(this.currentTransition=a=mt(B({},u),{guards:mB(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),a)),xB(this.environmentInjector,u=>this.events.next(u)),zt(u=>{if(a.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw kh(this.urlSerializer,u.guardsResult);let f=new Yb(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(f)}),qe(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Fn.GuardRejected),!1)),zb(u=>{if(u.guards.canActivateChecks.length)return oe(u).pipe(zt(f=>{let v=new Qb(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(v)}),Mt(f=>{let v=!1;return oe(f).pipe(YB(this.paramsInheritanceStrategy,this.environmentInjector),zt({next:()=>v=!0,complete:()=>{v||this.cancelNavigationTransition(f,"",Fn.NoDataFromResolver)}}))}),zt(f=>{let v=new Kb(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(v)}))}),zb(u=>{let f=v=>{let C=[];v.routeConfig?.loadComponent&&!v.routeConfig._loadedComponent&&C.push(this.configLoader.loadComponent(v.routeConfig).pipe(zt(D=>{v.component=D}),de(()=>{})));for(let D of v.children)C.push(...f(D));return C};return An(f(u.targetSnapshot.root)).pipe(jr(null),It(1))}),zb(()=>this.afterPreactivation()),Mt(()=>{let{currentSnapshot:u,targetSnapshot:f}=a,v=this.createViewTransition?.(this.environmentInjector,u.root,f.root);return v?Qt(v).pipe(de(()=>a)):oe(a)}),de(u=>{let f=oB(t.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=a=mt(B({},u),{targetRouterState:f}),this.currentNavigation.targetRouterState=f,a}),zt(()=>{this.events.next(new Wl)}),uB(this.rootContexts,t.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),It(1),zt({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Qo(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),fe(this.transitionAbortSubject.pipe(zt(u=>{throw u}))),Fo(()=>{!s&&!c&&this.cancelNavigationTransition(a,"",Fn.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),zi(u=>{if(c=!0,WI(u))this.events.next(new Dr(a.id,this.urlSerializer.serialize(a.extractedUrl),u.message,u.cancellationCode)),sB(u)?this.events.next(new dc(u.url,u.navigationBehaviorOptions)):a.resolve(!1);else{let f=new $l(a.id,this.urlSerializer.serialize(a.extractedUrl),u,a.targetSnapshot??void 0);try{let v=bn(this.environmentInjector,()=>this.navigationErrorHandler?.(f));if(v instanceof ql){let{message:C,cancellationCode:D}=kh(this.urlSerializer,v);this.events.next(new Dr(a.id,this.urlSerializer.serialize(a.extractedUrl),C,D)),this.events.next(new dc(v.redirectTo,v.navigationBehaviorOptions))}else{this.events.next(f);let C=t.errorHandler(u);a.resolve(!!C)}}catch(v){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(v)}}return Ti}))}))}cancelNavigationTransition(t,n,o){let a=new Dr(t.id,this.urlSerializer.serialize(t.extractedUrl),n,o);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function r4(i){return i!==Bl}var a4=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(s4),providedIn:"root"});let i=e;return i})(),h0=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},s4=(()=>{let e=class e extends h0{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),e1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(c4),providedIn:"root"});let i=e;return i})(),c4=(()=>{let e=class e extends e1{constructor(){super(...arguments),this.location=k(qo),this.urlSerializer=k(Zl),this.options=k(td,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=k(b0),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new oa,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=BI(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&t(n.url,n.state)})}handleRouterEvent(t,n){if(t instanceof lc)this.stateMemento=this.createStateMemento();else if(t instanceof ra)this.rawUrlTree=n.initialUrl;else if(t instanceof Dh){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(o,n)}}else t instanceof Wl?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n))):t instanceof Dr&&(t.code===Fn.GuardRejected||t.code===Fn.NoDataFromResolver)?this.restoreHistory(n):t instanceof $l?this.restoreHistory(n,!0):t instanceof Qo&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){let a=this.browserPageId,s=B(B({},n.extras.state),this.generateNgRouterState(n.id,a));this.location.replaceState(o,"",s)}else{let a=B(B({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(o,"",a)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,a=this.currentPageId-o;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Vl=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Vl||{});function t1(i,e){i.events.pipe(qe(r=>r instanceof Qo||r instanceof Dr||r instanceof $l||r instanceof ra),de(r=>r instanceof Qo||r instanceof ra?Vl.COMPLETE:(r instanceof Dr?r.code===Fn.Redirect||r.code===Fn.SupersededByNewNavigation:!1)?Vl.REDIRECTING:Vl.FAILED),qe(r=>r!==Vl.REDIRECTING),It(1)).subscribe(()=>{e()})}function l4(i){throw i}var d4={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},u4={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ko=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=k(Ym),this.stateManager=k(e1),this.options=k(td,{optional:!0})||{},this.pendingTasks=k($o),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=k(y0),this.urlSerializer=k(Zl),this.location=k(qo),this.urlHandlingStrategy=k(b0),this._events=new W,this.errorHandler=this.options.errorHandler||l4,this.navigated=!1,this.routeReuseStrategy=k(a4),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=k(Oh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!k(Ph,{optional:!0}),this.eventsSubscription=new Ce,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(n,a),n instanceof Dr&&n.code!==Fn.Redirect&&n.code!==Fn.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Qo)this.navigated=!0;else if(n instanceof dc){let s=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),u=B({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||r4(o.source)},s);this.scheduleNavigation(c,Bl,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}h4(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Bl,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",n)},0)})}navigateToSyncWithBrowser(t,n,o){let a={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let u=B({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(a.state=u)}let c=this.parseUrl(t);this.scheduleNavigation(c,n,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(g0),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:o,queryParams:a,fragment:s,queryParamsHandling:c,preserveFragment:u}=n,f=u?this.currentUrlTree.fragment:s,v=null;switch(c){case"merge":v=B(B({},this.currentUrlTree.queryParams),a);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=a||null}v!==null&&(v=this.removeEmptyProps(v));let C;try{let D=o?o.snapshot:this.routerState.snapshot.root;C=NI(D)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),C=this.currentUrlTree.root}return LI(C,t,v,f??null)}navigateByUrl(t,n={skipLocationChange:!1}){let o=Ul(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,Bl,null,n)}navigate(t,n={skipLocationChange:!1}){return m4(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,n){let o;if(n===!0?o=B({},d4):n===!1?o=B({},u4):o=n,Ul(t))return gI(this.currentUrlTree,t,o);let a=this.parseUrl(t);return gI(this.currentUrlTree,a,o)}removeEmptyProps(t){return Object.entries(t).reduce((n,[o,a])=>(a!=null&&(n[o]=a),n),{})}scheduleNavigation(t,n,o,a,s){if(this.disposed)return Promise.resolve(!1);let c,u,f;s?(c=s.resolve,u=s.reject,f=s.promise):f=new Promise((C,D)=>{c=C,u=D});let v=this.pendingTasks.add();return t1(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:c,reject:u,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(C=>Promise.reject(C))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function m4(i){for(let e=0;e{let e=class e{constructor(t,n,o,a,s,c){this.router=t,this.route=n,this.tabIndexAttribute=o,this.renderer=a,this.el=s,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new W,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=t.events.subscribe(f=>{f instanceof Qo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t!=null?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,n,o,a,s){let c=this.urlTree;if(c===null||this.isAnchorElement&&(t!==0||n||o||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let n=this.href===null?null:aS(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(t,n){let o=this.renderer,a=this.el.nativeElement;n!==null?o.setAttribute(a,t,n):o.removeAttribute(a,t)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(n){return new(n||e)(h(Ko),h(Oe),mi("tabindex"),h(gr),h(G),h(xr))},e.\u0275dir=N({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&b("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&ie("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Y],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Y],replaceUrl:[2,"replaceUrl","replaceUrl",Y],routerLink:"routerLink"},standalone:!0,features:[ue,Qe]});let i=e;return i})();var Rh=class{};var p4=(()=>{let e=class e{constructor(t,n,o,a,s){this.router=t,this.injector=o,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(qe(t=>t instanceof Qo),ar(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,n){let o=[];for(let a of n){a.providers&&!a._injector&&(a._injector=qm(a.providers,t,`Route: ${a.path}`));let s=a._injector??t,c=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&o.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&o.push(this.processRoutes(c,a.children??a._loadedRoutes))}return Qt(o).pipe(Vr())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(t,n):o=oe(null);let a=o.pipe(si(s=>s===null?oe(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(n);return Qt([a,s]).pipe(Vr())}else return a})}};e.\u0275fac=function(n){return new(n||e)(M(Ko),M(Jm),M(Pi),M(Rh),M(v0))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),i1=new O(""),f4=(()=>{let e=class e{constructor(t,n,o,a,s={}){this.urlSerializer=t,this.transitions=n,this.viewportScroller=o,this.zone=a,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=k(Pi),s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof lc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Qo?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof ra&&t.code===xh.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Sh&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,n){this.zone.runOutsideAngular(()=>q(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),ri(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Sh(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(n){Xa()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function g4(i){return i.routerState.root}function id(i,e){return{\u0275kind:i,\u0275providers:e}}function _4(){let i=k(Pe);return e=>{let r=i.get(Xn);if(e!==r.components[0])return;let t=i.get(Ko),n=i.get(n1);i.get(w0)===1&&t.initialNavigation(),i.get(o1,null,gt.Optional)?.setUpPreloading(),i.get(i1,null,gt.Optional)?.init(),t.resetRootComponentType(r.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var n1=new O("",{factory:()=>new W}),w0=new O("",{providedIn:"root",factory:()=>1});function v4(){return id(2,[{provide:w0,useValue:0},{provide:Zm,multi:!0,deps:[Pe],useFactory:e=>{let r=e.get(VE,Promise.resolve());return()=>r.then(()=>new Promise(t=>{let n=e.get(Ko),o=e.get(n1);t1(n,()=>{t(!0)}),e.get(y0).afterPreactivation=()=>(t(!0),o.closed?oe(void 0):o),n.initialNavigation()}))}}])}function b4(){return id(3,[{provide:Zm,multi:!0,useFactory:()=>{let e=k(Ko);return()=>{e.setUpLocationChangeListener()}}},{provide:w0,useValue:2}])}var o1=new O("");function y4(i){return id(0,[{provide:o1,useExisting:p4},{provide:Rh,useExisting:i}])}function w4(){return id(8,[yI,{provide:Ph,useExisting:yI}])}function C4(i){let e=[{provide:XI,useValue:i4},{provide:JI,useValue:B({skipNextTransition:!!i?.skipInitialTransition},i)}];return id(9,e)}var DI=new O("ROUTER_FORROOT_GUARD"),x4=[qo,{provide:Zl,useClass:cc},Ko,Xl,{provide:Oe,useFactory:g4,deps:[Ko]},v0,[]],C0=(()=>{let e=class e{constructor(t){}static forRoot(t,n){return{ngModule:e,providers:[x4,[],{provide:Oh,multi:!0,useValue:t},{provide:DI,useFactory:I4,deps:[[Ko,new Yn,new bo]]},{provide:td,useValue:n||{}},n?.useHash?S4():E4(),D4(),n?.preloadingStrategy?y4(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?M4(n):[],n?.bindToComponentInputs?w4().\u0275providers:[],n?.enableViewTransitions?C4().\u0275providers:[],T4()]}}static forChild(t){return{ngModule:e,providers:[{provide:Oh,multi:!0,useValue:t}]}}};e.\u0275fac=function(n){return new(n||e)(M(DI,8))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();function D4(){return{provide:i1,useFactory:()=>{let i=k(WE),e=k(Z),r=k(td),t=k(y0),n=k(Zl);return r.scrollOffset&&i.setOffset(r.scrollOffset),new f4(n,t,i,e,r)}}}function S4(){return{provide:xr,useClass:BE}}function E4(){return{provide:xr,useClass:wb}}function I4(i){return"guarded"}function M4(i){return[i.initialNavigation==="disabled"?b4().\u0275providers:[],i.initialNavigation==="enabledBlocking"?v4().\u0275providers:[]]}var SI=new O("");function T4(){return[{provide:SI,useFactory:_4},{provide:Xm,multi:!0,useExisting:SI}]}var Nh=class{constructor(e){this.user=e.user,this.role=e.role,this.admin=e.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};function Nn(i){return i!=null&&`${i}`!="false"}function xo(i,e=0){return x0(i)?Number(i):e}function x0(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function hc(i){return Array.isArray(i)?i:[i]}function yi(i){return i==null?"":typeof i=="string"?i:`${i}px`}function xn(i){return i instanceof G?i.nativeElement:i}function r1(i,e=/\s+/){let r=[];if(i!=null){let t=Array.isArray(i)?i:`${i}`.split(e);for(let n of t){let o=`${n}`.trim();o&&r.push(o)}}return r}var S0;try{S0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{S0=!1}var je=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?xb(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||S0)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(n){return new(n||e)(M(Kn))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var pc,a1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function E0(){if(pc)return pc;if(typeof document!="object"||!document)return pc=new Set(a1),pc;let i=document.createElement("input");return pc=new Set(a1.filter(e=>(i.setAttribute("type",e),i.type===e))),pc}var nd;function k4(){if(nd==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>nd=!0}))}finally{nd=nd||!1}return nd}function ji(i){return k4()?i:!!i.capture}var Do=function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i}(Do||{}),Lh,is;function Vh(){if(is==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return is=!1,is;if("scrollBehavior"in document.documentElement.style)is=!0;else{let i=Element.prototype.scrollTo;i?is=!/\{\s*\[native code\]\s*\}/.test(i.toString()):is=!1}}return is}function fc(){if(typeof document!="object"||!document)return Do.NORMAL;if(Lh==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let r=document.createElement("div"),t=r.style;t.width="2px",t.height="1px",i.appendChild(r),document.body.appendChild(i),Lh=Do.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,Lh=i.scrollLeft===0?Do.NEGATED:Do.INVERTED),i.remove()}return Lh}var D0;function A4(){if(D0==null){let i=typeof document<"u"?document.head:null;D0=!!(i&&(i.createShadowRoot||i.attachShadow))}return D0}function s1(i){if(A4()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function sa(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e}return i}function mn(i){return i.composedPath?i.composedPath()[0]:i.target}function od(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var O4=new O("cdk-dir-doc",{providedIn:"root",factory:R4});function R4(){return k(se)}var P4=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function F4(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?P4.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var kt=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new T,t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.value=F4(n||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(n){return new(n||e)(M(O4,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var ca=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var jh=class{};function Bh(i){return i&&typeof i.connect=="function"&&!(i instanceof Lr)}var gc=function(i){return i[i.REPLACED=0]="REPLACED",i[i.INSERTED=1]="INSERTED",i[i.MOVED=2]="MOVED",i[i.REMOVED=3]="REMOVED",i}(gc||{}),rd=new O("_ViewRepeater"),_c=class{applyChanges(e,r,t,n,o){e.forEachOperation((a,s,c)=>{let u,f;if(a.previousIndex==null){let v=t(a,s,c);u=r.createEmbeddedView(v.templateRef,v.context,v.index),f=gc.INSERTED}else c==null?(r.remove(s),f=gc.REMOVED):(u=r.get(s),r.move(u,c),f=gc.MOVED);o&&o({context:u?.context,operation:f,record:a})})}detach(){}};var So=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,r,t=!0,n){this._multiple=e,this._emitChanges=t,this.compareWith=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new W,r&&r.length&&(e?r.forEach(o=>this._markSelected(o)):this._markSelected(r[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(t=>this._markSelected(t));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}deselect(...e){this._verifyValueAssignment(e),e.forEach(t=>this._unmarkSelected(t));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}setSelection(...e){this._verifyValueAssignment(e);let r=this.selected,t=new Set(e);e.forEach(o=>this._markSelected(o)),r.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 r=this._hasQueuedChanges();return e&&this._emitChangeEvent(),r}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,r){if(this.compareWith){r=r??this._selection;for(let t of r)if(this.compareWith(e,t))return t;return e}else return e}};var N4=20,vc=(()=>{let e=class e{constructor(t,n,o){this._ngZone=t,this._platform=n,this._scrolled=new W,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=N4){return this._platform.isBrowser?new Re(n=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe(ku(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(qe(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,t)&&n.push(a)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,n){let o=xn(n),a=t.getElementRef().nativeElement;do if(o==a)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return cn(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(M(Z),M(je),M(se,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ad=(()=>{let e=class e{constructor(t,n,o,a){this.elementRef=t,this.scrollDispatcher=n,this.ngZone=o,this.dir=a,this._destroyed=new W,this._elementScrolled=new Re(s=>this.ngZone.runOutsideAngular(()=>cn(this.elementRef.nativeElement,"scroll").pipe(fe(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&fc()!=Do.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),fc()==Do.INVERTED?t.left=t.right:fc()==Do.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Vh()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left))}measureScrollOffset(t){let n="left",o="right",a=this.elementRef.nativeElement;if(t=="top")return a.scrollTop;if(t=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:n:t=="end"&&(t=s?n:o),s&&fc()==Do.INVERTED?t==n?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&fc()==Do.NEGATED?t==n?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:t==n?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}};e.\u0275fac=function(n){return new(n||e)(h(G),h(vc),h(Z),h(kt,8))},e.\u0275dir=N({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let i=e;return i})(),L4=20,pn=(()=>{let e=class e{constructor(t,n,o){this._platform=t,this._change=new W,this._changeListener=a=>{this._change.next(a)},this._document=o,n.runOutsideAngular(()=>{if(t.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,a=o.getBoundingClientRect(),s=-a.top||t.body.scrollTop||n.scrollY||o.scrollTop||0,c=-a.left||t.body.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:s,left:c}}change(t=L4){return t>0?this._change.pipe(ku(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(n){return new(n||e)(M(je),M(Z),M(se,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var to=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})(),sd=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[ca,to,ca,to]});let i=e;return i})();var cd=class{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}},Dn=class extends cd{constructor(e,r,t,n,o){super(),this.component=e,this.viewContainerRef=r,this.injector=t,this.componentFactoryResolver=n,this.projectableNodes=o}},ki=class extends cd{constructor(e,r,t,n){super(),this.templateRef=e,this.viewContainerRef=r,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},I0=class extends cd{constructor(e){super(),this.element=e instanceof G?e.nativeElement:e}},la=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Dn)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof ki)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof I0)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var bc=class extends la{constructor(e,r,t,n,o){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=t,this._defaultInjector=n,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}attachComponentPortal(e){let t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector||Pe.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let r=e.viewContainerRef,t=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=r.indexOf(t);n!==-1&&r.remove(n)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var c1=(()=>{let e=class e extends ki{constructor(t,n){super(t,n)}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(wt))},e.\u0275dir=N({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[ve]});let i=e;return i})();var tn=(()=>{let e=class e extends la{constructor(t,n,o){super(),this._componentFactoryResolver=t,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new T,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let c=this._document.createComment("dom-portal");a.setAttachedHost(this),s.parentNode.insertBefore(c,s),this._getRootNode().appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,a=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=n.createComponent(a,n.length,t.injector||n.injector,t.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}};e.\u0275fac=function(n){return new(n||e)(h(vn),h(wt),h(se))},e.\u0275dir=N({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ve]});let i=e;return i})();var Ln=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();function Rt(i,...e){return e.length?e.some(r=>i[r]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var l1=Vh(),M0=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}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=yi(-this._previousScrollPosition.left),e.style.top=yi(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,t=e.style,n=r.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"),l1&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),l1&&(t.scrollBehavior=o,n.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,t=this._viewportRuler.getViewportSize();return r.scrollHeight>t.height||r.scrollWidth>t.width}};var T0=class{constructor(e,r,t,n){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=t,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(qe(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-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}},zh=class{enable(){}disable(){}attach(){}};function k0(i,e){return e.some(r=>{let t=i.bottomr.bottom,o=i.rightr.right;return t||n||o||a})}function d1(i,e){return e.some(r=>{let t=i.topr.bottom,o=i.leftr.right;return t||n||o||a})}var A0=class{constructor(e,r,t,n){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=t,this._config=n,this._scrollSubscription=null}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 r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();k0(r,[{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}},V4=(()=>{let e=class e{constructor(t,n,o,a){this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=o,this.noop=()=>new zh,this.close=s=>new T0(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new M0(this._viewportRuler,this._document),this.reposition=s=>new A0(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=a}};e.\u0275fac=function(n){return new(n||e)(M(vc),M(pn),M(Z),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Sn=class{constructor(e){if(this.scrollStrategy=new zh,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let t of r)e[t]!==void 0&&(this[t]=e[t])}}};var O0=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var f1=(()=>{let e=class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),j4=(()=>{let e=class e extends f1{constructor(t,n){super(t),this._ngZone=n,this._keydownListener=o=>{let a=this._attachedOverlays;for(let s=a.length-1;s>-1;s--)if(a[s]._keydownEvents.observers.length>0){let c=a[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Z,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),B4=(()=>{let e=class e extends f1{constructor(t,n,o){super(t),this._platform=n,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=mn(a)},this._clickListener=a=>{let s=mn(a),c=a.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let u=this._attachedOverlays.slice();for(let f=u.length-1;f>-1;f--){let v=u[f];if(v._outsidePointerEvents.observers.length<1||!v.hasAttached())continue;if(v.overlayElement.contains(s)||v.overlayElement.contains(c))break;let C=v._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>C.next(a)):C.next(a)}}}add(t){if(super.add(t),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(je),M(Z,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),yc=(()=>{let e=class e{constructor(t,n){this._platform=n,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||od()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let a=0;athis._backdropClick.next(C),this._backdropTransitionendHandler=C=>{this._disposeBackdrop(C.target)},this._keydownEvents=new W,this._outsidePointerEvents=new W,this._renders=new W,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=El(()=>yl(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),ri(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=B(B({},this._config),e),this._updateElementSize()}setDirection(e){this._config=mt(B({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=yi(this._config.width),e.height=yi(this._config.height),e.minWidth=yi(this._config.minWidth),e.minHeight=yi(this._config.minHeight),e.maxWidth=yi(this._config.maxWidth),e.maxHeight=yi(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,t){let n=hc(r||[]).filter(o=>!!o);n.length&&(t?e.classList.add(...n):e.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(fe(yt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},u1="cdk-overlay-connected-position-bounding-box",z4=/([A-Za-z%]+)$/,ld=class{get positions(){return this._preferredPositions}constructor(e,r,t,n,o){this._viewportRuler=r,this._document=t,this._platform=n,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new W,this._resizeSubscription=Ce.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(u1),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,r=this._overlayRect,t=this._viewportRect,n=this._containerRect,o=[],a;for(let s of this._preferredPositions){let c=this._getOriginPoint(e,n,s),u=this._getOverlayPoint(c,r,s),f=this._getOverlayFit(u,r,t,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,c);return}if(this._canFitWithFlexibleDimensions(f,u,t)){o.push({position:s,origin:c,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(c,s)});continue}(!a||a.overlayFit.visibleAreac&&(c=f,s=u)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&os(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(u1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,t){let n;if(t.originX=="center")n=e.left+e.width/2;else{let a=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;n=t.originX=="start"?a:s}r.left<0&&(n-=r.left);let o;return t.originY=="center"?o=e.top+e.height/2:o=t.originY=="top"?e.top:e.bottom,r.top<0&&(o-=r.top),{x:n,y:o}}_getOverlayPoint(e,r,t){let n;t.overlayX=="center"?n=-r.width/2:t.overlayX==="start"?n=this._isRtl()?-r.width:0:n=this._isRtl()?0:-r.width;let o;return t.overlayY=="center"?o=-r.height/2:o=t.overlayY=="top"?0:-r.height,{x:e.x+n,y:e.y+o}}_getOverlayFit(e,r,t,n){let o=h1(r),{x:a,y:s}=e,c=this._getOffset(n,"x"),u=this._getOffset(n,"y");c&&(a+=c),u&&(s+=u);let f=0-a,v=a+o.width-t.width,C=0-s,D=s+o.height-t.height,E=this._subtractOverflows(o.width,f,v),R=this._subtractOverflows(o.height,C,D),j=E*R;return{visibleArea:j,isCompletelyWithinViewport:o.width*o.height===j,fitsInViewportVertically:R===o.height,fitsInViewportHorizontally:E==o.width}}_canFitWithFlexibleDimensions(e,r,t){if(this._hasFlexibleDimensions){let n=t.bottom-r.y,o=t.right-r.x,a=m1(this._overlayRef.getConfig().minHeight),s=m1(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||a!=null&&a<=n,u=e.fitsInViewportHorizontally||s!=null&&s<=o;return c&&u}return!1}_pushOverlayOnScreen(e,r,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=h1(r),o=this._viewportRect,a=Math.max(e.x+n.width-o.width,0),s=Math.max(e.y+n.height-o.height,0),c=Math.max(o.top-t.top-e.y,0),u=Math.max(o.left-t.left-e.x,0),f=0,v=0;return n.width<=o.width?f=u||-a:f=e.xE&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-E/2)}let c=r.overlayX==="start"&&!n||r.overlayX==="end"&&n,u=r.overlayX==="end"&&!n||r.overlayX==="start"&&n,f,v,C;if(u)C=t.width-e.x+this._viewportMargin*2,f=e.x-this._viewportMargin;else if(c)v=e.x,f=t.right-e.x;else{let D=Math.min(t.right-e.x+t.left,e.x),E=this._lastBoundingBoxSize.width;f=D*2,v=e.x-D,f>E&&!this._isInitialRender&&!this._growAfterOpen&&(v=e.x-E/2)}return{top:a,left:v,bottom:s,right:C,width:f,height:o}}_setBoundingBoxStyles(e,r){let t=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;n.height=yi(t.height),n.top=yi(t.top),n.bottom=yi(t.bottom),n.width=yi(t.width),n.left=yi(t.left),n.right=yi(t.right),r.overlayX==="center"?n.alignItems="center":n.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?n.justifyContent="center":n.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=yi(o)),a&&(n.maxWidth=yi(a))}this._lastBoundingBoxSize=t,os(this._boundingBox.style,n)}_resetBoundingBoxStyles(){os(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){os(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let t={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){let f=this._viewportRuler.getViewportScrollPosition();os(t,this._getExactOverlayY(r,e,f)),os(t,this._getExactOverlayX(r,e,f))}else t.position="static";let s="",c=this._getOffset(r,"x"),u=this._getOffset(r,"y");c&&(s+=`translateX(${c}px) `),u&&(s+=`translateY(${u}px)`),t.transform=s.trim(),a.maxHeight&&(n?t.maxHeight=yi(a.maxHeight):o&&(t.maxHeight="")),a.maxWidth&&(n?t.maxWidth=yi(a.maxWidth):o&&(t.maxWidth="")),os(this._pane.style,t)}_getExactOverlayY(e,r,t){let n={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),e.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;n.bottom=`${a-(o.y+this._overlayRect.height)}px`}else n.top=yi(o.y);return n}_getExactOverlayX(e,r,t){let n={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;n.right=`${s-(o.x+this._overlayRect.width)}px`}else n.left=yi(o.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),t=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:d1(e,t),isOriginOutsideView:k0(e,t),isOverlayClipped:d1(r,t),isOverlayOutsideView:k0(r,t)}}_subtractOverflows(e,...r){return r.reduce((t,n)=>t-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&hc(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof G)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+r,height:t,width:r}}};function os(i,e){for(let r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);return i}function m1(i){if(typeof i!="number"&&i!=null){let[e,r]=i.split(z4);return!r||r==="px"?parseFloat(e):null}return i||null}function h1(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function U4(i,e){return i===e?!0:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var p1="cdk-global-overlay-wrapper",R0=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(p1),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:a,maxHeight:s}=t,c=(n==="100%"||n==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,v=this._xOffset,C=this._overlayRef.getConfig().direction==="rtl",D="",E="",R="";c?R="flex-start":f==="center"?(R="center",C?E=v:D=v):C?f==="left"||f==="end"?(R="flex-end",D=v):(f==="right"||f==="start")&&(R="flex-start",E=v):f==="left"||f==="start"?(R="flex-start",D=v):(f==="right"||f==="end")&&(R="flex-end",E=v),e.position=this._cssPosition,e.marginLeft=c?"0":D,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":E,r.justifyContent=R,r.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,t=r.style;r.classList.remove(p1),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},H4=(()=>{let e=class e{constructor(t,n,o,a){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=a}global(){return new R0}flexibleConnectedTo(t){return new ld(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(n){return new(n||e)(M(pn),M(se),M(je),M(yc))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),$4=0,Ct=(()=>{let e=class e{constructor(t,n,o,a,s,c,u,f,v,C,D,E){this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=o,this._positionBuilder=a,this._keyboardDispatcher=s,this._injector=c,this._ngZone=u,this._document=f,this._directionality=v,this._location=C,this._outsideClickDispatcher=D,this._animationsModuleType=E}create(t){let n=this._createHostElement(),o=this._createPaneElement(n),a=this._createPortalOutlet(o),s=new Sn(t);return s.direction=s.direction||this._directionality.value,new Sr(a,n,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Pi))}position(){return this._positionBuilder}_createPaneElement(t){let n=this._document.createElement("div");return n.id=`cdk-overlay-${$4++}`,n.classList.add("cdk-overlay-pane"),t.appendChild(n),n}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Xn)),new bc(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(n){return new(n||e)(M(V4),M(yc),M(vn),M(H4),M(j4),M(Pe),M(Z),M(se),M(kt),M(qo),M(B4),M(Tt,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),W4=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],g1=new O("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}}),dd=(()=>{let e=class e{constructor(t){this.elementRef=t}};e.\u0275fac=function(n){return new(n||e)(h(G))},e.\u0275dir=N({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let i=e;return i})(),P0=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}constructor(t,n,o,a,s){this._overlay=t,this._dir=s,this._backdropSubscription=Ce.EMPTY,this._attachSubscription=Ce.EMPTY,this._detachSubscription=Ce.EMPTY,this._positionSubscription=Ce.EMPTY,this._disposeOnNavigation=!1,this._ngZone=k(Z),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new T,this.positionChange=new T,this.attach=new T,this.detach=new T,this.overlayKeydown=new T,this.overlayOutsideClick=new T,this._templatePortal=new ki(n,o),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=W4);let t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Rt(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),a=mn(n);(!o||o!==a&&!o.contains(a))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Sn({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(t){let n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof dd?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof dd?this.origin.elementRef.nativeElement:this.origin instanceof G?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Yg(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(lt),h(wt),h(g1),h(kt,8))},e.\u0275dir=N({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Y],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Y],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Y],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Y],push:[2,"cdkConnectedOverlayPush","push",Y],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Y]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ue,Qe]});let i=e;return i})();function G4(i){return()=>i.scrollStrategies.reposition()}var q4={provide:g1,deps:[Ct],useFactory:G4},on=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Ct,q4],imports:[ca,Ln,sd,sd]});let i=e;return i})();function Y4(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let e=0;e{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Q4=(()=>{let e=class e{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map,this._ngZone=k(Z)}ngOnDestroy(){this._observedElements.forEach((t,n)=>this._cleanupObserver(n))}observe(t){let n=xn(t);return new Re(o=>{let s=this._observeElement(n).pipe(de(c=>c.filter(u=>!Y4(u))),qe(c=>!!c.length)).subscribe(c=>{this._ngZone.run(()=>{o.next(c)})});return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(t){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(t))this._observedElements.get(t).count++;else{let n=new W,o=this._mutationObserverFactory.create(a=>n.next(a));o&&o.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:o,stream:n,count:1})}return this._observedElements.get(t).stream})}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){let{observer:n,stream:o}=this._observedElements.get(t);n&&n.disconnect(),o.complete(),this._observedElements.delete(t)}}};e.\u0275fac=function(n){return new(n||e)(M(_1))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),v1=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=xo(t),this._subscribe()}constructor(t,n){this._contentObserver=t,this._elementRef=n,this.event=new T,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let t=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?t.pipe(sr(this.debounce)):t).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(Q4),h(G))},e.\u0275dir=N({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Y],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ue]});let i=e;return i})(),Uh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[_1]});let i=e;return i})();var b1=new Set,as,K4=(()=>{let e=class e{constructor(t,n){this._platform=t,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):X4}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&Z4(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(n){return new(n||e)(M(je),M(fl,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Z4(i,e){if(!b1.has(i))try{as||(as=document.createElement("style"),e&&as.setAttribute("nonce",e),as.setAttribute("type","text/css"),document.head.appendChild(as)),as.sheet&&(as.sheet.insertRule(`@media ${i} {body{ }}`,0),b1.add(i))}catch(r){console.error(r)}}function X4(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Hh=(()=>{let e=class e{constructor(t,n){this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new W}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return y1(hc(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=y1(hc(t)).map(s=>this._registerQuery(s).observable),a=An(o);return a=Po(a.pipe(It(1)),a.pipe(Na(1),sr(0))),a.pipe(de(s=>{let c={matches:!1,breakpoints:{}};return s.forEach(({matches:u,query:f})=>{c.matches=c.matches||u,c.breakpoints[f]=u}),c}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),a={observable:new Re(s=>{let c=u=>this._zone.run(()=>s.next(u));return n.addListener(c),()=>{n.removeListener(c)}}).pipe(Ot(n),de(({matches:s})=>({query:t,matches:s})),fe(this._destroySubject)),mql:n};return this._queries.set(t,a),a}};e.\u0275fac=function(n){return new(n||e)(M(K4),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function y1(i){return i.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var w1={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var T1=" ";function Sc(i,e,r){let t=qh(i,e);r=r.trim(),!t.some(n=>n.trim()===r)&&(t.push(r),i.setAttribute(e,t.join(T1)))}function ha(i,e,r){let t=qh(i,e);r=r.trim();let n=t.filter(o=>o!==r);n.length?i.setAttribute(e,n.join(T1)):i.removeAttribute(e)}function qh(i,e){return i.getAttribute(e)?.match(/\S+/g)??[]}var k1="cdk-describedby-message",$h="cdk-describedby-host",L0=0,Kh=(()=>{let e=class e{constructor(t,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${L0++}`,this._document=t,this._id=k(Ks)+"-"+L0++}describe(t,n,o){if(!this._canBeDescribed(t,n))return;let a=F0(n,o);typeof n!="string"?(C1(n,this._id),this._messageRegistry.set(a,{messageElement:n,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(n,o),this._isElementDescribedByMessage(t,a)||this._addMessageReference(t,a)}removeDescription(t,n,o){if(!n||!this._isElementNode(t))return;let a=F0(n,o);if(this._isElementDescribedByMessage(t,a)&&this._removeMessageReference(t,a),typeof n=="string"){let s=this._messageRegistry.get(a);s&&s.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${$h}="${this._id}"]`);for(let n=0;no.indexOf(k1)!=0);t.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(t,n){let o=this._messageRegistry.get(n);Sc(t,"aria-describedby",o.messageElement.id),t.setAttribute($h,this._id),o.referenceCount++}_removeMessageReference(t,n){let o=this._messageRegistry.get(n);o.referenceCount--,ha(t,"aria-describedby",o.messageElement.id),t.removeAttribute($h)}_isElementDescribedByMessage(t,n){let o=qh(t,"aria-describedby"),a=this._messageRegistry.get(n),s=a&&a.messageElement.id;return!!s&&o.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),a=t.getAttribute("aria-label");return o?!a||a.trim()!==o:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(n){return new(n||e)(M(se),M(je))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function F0(i,e){return typeof i=="string"?`${e||""}/${i}`:i}function C1(i,e){i.id||(i.id=`${k1}-${e}-${L0++}`)}var Yh=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new W,this._typeaheadSubscription=Ce.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new W,this.change=new W,e instanceof qn?this._itemChangesSubscription=e.changes.subscribe(t=>this._itemsChanged(t.toArray())):Gm(e)&&(this._effectRef=db(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zt(r=>this._pressedLetters.push(r)),sr(e),qe(()=>this._pressedLetters.length>0),de(()=>this._pressedLetters.join(""))).subscribe(r=>{let t=this._getItemsArray();for(let n=1;n!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let r=this._getItemsArray(),t=typeof e=="number"?e:r.indexOf(e),n=r[t];this._activeItem=n??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let r=this._getItemsArray();for(let t=1;t<=r.length;t++){let n=(this._activeItemIndex+e*t+r.length)%r.length,o=r[n];if(!this._skipPredicateFn(o)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let t=this._getItemsArray();if(t[e]){for(;this._skipPredicateFn(t[e]);)if(e+=r,!t[e])return;this.setActiveItem(e)}}_getItemsArray(){return Gm(this._items)?this._items():this._items instanceof qn?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},Cc=class extends Yh{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},da=class extends Yh{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var md=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return az(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let n=rz(pz(t));if(n&&(x1(n)===-1||!this.isVisible(n)))return!1;let o=t.nodeName.toLowerCase(),a=x1(t);return t.hasAttribute("contenteditable")?a!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!mz(t)?!1:o==="audio"?t.hasAttribute("controls")?a!==-1:!1:o==="video"?a===-1?!1:a!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return hz(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(n){return new(n||e)(M(je))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function rz(i){try{return i.frameElement}catch{return null}}function az(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function sz(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function cz(i){return dz(i)&&i.type=="hidden"}function lz(i){return uz(i)&&i.hasAttribute("href")}function dz(i){return i.nodeName.toLowerCase()=="input"}function uz(i){return i.nodeName.toLowerCase()=="a"}function A1(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let e=i.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function x1(i){if(!A1(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function mz(i){let e=i.nodeName.toLowerCase(),r=e==="input"&&i.type;return r==="text"||r==="password"||e==="select"||e==="textarea"}function hz(i){return cz(i)?!1:sz(i)||lz(i)||i.hasAttribute("contenteditable")||A1(i)}function pz(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var V0=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,r,t,n,o=!1,a){this._element=e,this._checker=r,this._ngZone=t,this._document=n,this._injector=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,r=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),r&&(r.removeEventListener("focus",this.endAnchorListener),r.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let r=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?r.length?r[0]:this._getFirstTabbableElement(this._element):r.length?r[r.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let r=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(r){if(!this._checker.isFocusable(r)){let t=this._getFirstTabbableElement(r);return t?.focus(e),!!t}return r.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let r=this._getRegionBoundary("start");return r&&r.focus(e),!!r}focusLastTabbableElement(e){let r=this._getRegionBoundary("end");return r&&r.focus(e),!!r}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let r=e.children;for(let t=0;t=0;t--){let n=r[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(r[t]):null;if(n)return n}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,r){e?r.setAttribute("tabindex","0"):r.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?this._injector?ri(e,{injector:this._injector}):e():this._ngZone.onStable.pipe(It(1)).subscribe(e)}},hd=(()=>{let e=class e{constructor(t,n,o){this._checker=t,this._ngZone=n,this._injector=k(Pe),this._document=o}create(t,n=!1){return new V0(t,this._checker,this._ngZone,this._document,n,this._injector)}};e.\u0275fac=function(n){return new(n||e)(M(md),M(Z),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),O1=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(t){this.focusTrap&&(this.focusTrap.enabled=t)}constructor(t,n,o){this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,k(je).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(t){let n=t.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=sa(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(hd),h(se))},e.\u0275dir=N({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Y],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Y]},exportAs:["cdkTrapFocus"],standalone:!0,features:[ue,Qe]});let i=e;return i})();function pd(i){return i.buttons===0||i.detail===0}function fd(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var fz=new O("cdk-input-modality-detector-options"),gz={ignoreKeys:[18,17,224,91,16]},R1=650,wc=ji({passive:!0,capture:!0}),_z=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,n,o,a){this._platform=t,this._mostRecentTarget=null,this._modality=new $t(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(c=>c===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=mn(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(fd(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mn(s)},this._options=B(B({},gz),a),this.modalityDetected=this._modality.pipe(Na(1)),this.modalityChanged=this.modalityDetected.pipe(zr()),t.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,wc),o.addEventListener("mousedown",this._onMousedown,wc),o.addEventListener("touchstart",this._onTouchstart,wc)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,wc),document.removeEventListener("mousedown",this._onMousedown,wc),document.removeEventListener("touchstart",this._onTouchstart,wc))}};e.\u0275fac=function(n){return new(n||e)(M(je),M(Z),M(se),M(fz,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),vz=new O("liveAnnouncerElement",{providedIn:"root",factory:bz});function bz(){return null}var yz=new O("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),wz=0,Zh=(()=>{let e=class e{constructor(t,n,o,a){this._ngZone=n,this._defaultOptions=a,this._document=o,this._liveElement=t||this._createLiveElement()}announce(t,...n){let o=this._defaultOptions,a,s;return n.length===1&&typeof n[0]=="number"?s=n[0]:[a,s]=n,this.clear(),clearTimeout(this._previousTimeout),a||(a=o&&o.politeness?o.politeness:"polite"),s==null&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),o=this._document.createElement("div");for(let a=0;a .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(t,n,o,a,s){this._ngZone=t,this._platform=n,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new W,this._rootNodeFocusAndBlurListener=c=>{let u=mn(c);for(let f=u;f;f=f.parentElement)c.type==="focus"?this._onFocus(c,f):this._onBlur(c,f)},this._document=a,this._detectionMode=s?.detectionMode||Gh.IMMEDIATE}monitor(t,n=!1){let o=xn(t);if(!this._platform.isBrowser||o.nodeType!==1)return oe();let a=s1(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return n&&(s.checkChildren=!0),s.subject;let c={checkChildren:n,subject:new W,rootNode:a};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(t){let n=xn(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(t,n,o){let a=xn(t),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([c,u])=>this._originChanged(c,n,u)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(o))}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===Gh.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(t,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===Gh.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?R1:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(t,n){let o=this._elementInfo.get(n),a=mn(t);!o||!o.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),o)}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Wh),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wh)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(fe(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Wh),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wh),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,a)=>{(a===t||o.checkChildren&&a.contains(t))&&n.push([a,o])}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let a=t.labels;if(a){for(let s=0;s{let e=class e{constructor(t,n){this._elementRef=t,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new T}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(wi))},e.\u0275dir=N({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let i=e;return i})(),ss=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(ss||{}),D1="cdk-high-contrast-black-on-white",S1="cdk-high-contrast-white-on-black",N0="cdk-high-contrast-active",j0=(()=>{let e=class e{constructor(t,n){this._platform=t,this._document=n,this._breakpointSubscription=k(Hh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ss.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(t):null,a=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return ss.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ss.BLACK_ON_WHITE}return ss.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(N0,D1,S1),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===ss.BLACK_ON_WHITE?t.add(N0,D1):n===ss.WHITE_ON_BLACK&&t.add(N0,S1)}}};e.\u0275fac=function(n){return new(n||e)(M(je),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Ec=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(n){return new(n||e)(M(j0))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Uh]});let i=e;return i})();function xz(i,e){}var cs=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var z0=(()=>{let e=class e extends la{constructor(t,n,o,a,s,c,u,f){super(),this._elementRef=t,this._focusTrapFactory=n,this._config=a,this._interactivityChecker=s,this._ngZone=c,this._overlayRef=u,this._focusMonitor=f,this._platform=k(je),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=k(me),this._injector=k(Pe),this._isDestroyed=!1,this.attachDomPortal=v=>{this._portalOutlet.hasAttached();let C=this._portalOutlet.attachDomPortal(v);return this._contentAttached(),C},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let n=this._ariaLabelledByQueue.indexOf(t);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),n}attachTemplatePortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,n){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{t.removeEventListener("blur",o),t.removeEventListener("mousedown",o),t.removeAttribute("tabindex")};t.addEventListener("blur",o),t.addEventListener("mousedown",o)})),t.focus(n)}_focusByCssSelector(t,n){let o=this._elementRef.nativeElement.querySelector(t);o&&this._forceFocus(o,n)}_trapFocus(){this._isDestroyed||ri(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,n=null;if(typeof t=="string"?n=this._document.querySelector(t):typeof t=="boolean"?n=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(n=t),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=sa(),a=this._elementRef.nativeElement;(!o||o===this._document.body||o===a||a.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let t=this._elementRef.nativeElement,n=sa();return t===n||t.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=sa()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(n){return new(n||e)(h(G),h(hd),h(se,8),h(cs),h(md),h(Z),h(Sr),h(wi))},e.\u0275cmp=S({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&le(tn,7),n&2){let a;Q(a=K())&&(o._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&ie("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[ve,re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&x(0,xz,0,0,"ng-template",0)},dependencies:[tn],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let i=e;return i})(),gd=class{constructor(e,r){this.overlayRef=e,this.config=r,this.closed=new W,this.disableClose=r.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=r.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!Rt(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{r.closeOnOverlayDetachments!==!1&&this.close()})}close(e,r){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=r?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(e),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",r=""){return this.overlayRef.updateSize({width:e,height:r}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},Dz=new O("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.block()}}),Sz=new O("DialogData"),Ez=new O("DefaultDialogConfig");var Iz=0,U0=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,n,o,a,s,c){this._overlay=t,this._injector=n,this._defaultOptions=o,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new W,this._afterOpenedAtThisLevel=new W,this._ariaHiddenElements=new Map,this.afterAllClosed=Wn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ot(void 0))),this._scrollStrategy=c}open(t,n){let o=this._defaultOptions||new cs;n=B(B({},o),n),n.id=n.id||`cdk-dialog-${Iz++}`,n.id&&this.getDialogById(n.id);let a=this._getOverlayConfig(n),s=this._overlay.create(a),c=new gd(s,n),u=this._attachContainer(s,c,n);return c.containerInstance=u,this._attachDialogContent(t,c,u,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){B0(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){B0(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),B0(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let n=new Sn({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(n.backdropClass=t.backdropClass),n}_attachContainer(t,n,o){let a=o.injector||o.viewContainerRef?.injector,s=[{provide:cs,useValue:o},{provide:gd,useValue:n},{provide:Sr,useValue:t}],c;o.container?typeof o.container=="function"?c=o.container:(c=o.container.type,s.push(...o.container.providers(o))):c=z0;let u=new Dn(c,o.viewContainerRef,Pe.create({parent:a||this._injector,providers:s}),o.componentFactoryResolver);return t.attach(u).instance}_attachDialogContent(t,n,o,a){if(t instanceof lt){let s=this._createInjector(a,n,o,void 0),c={$implicit:a.data,dialogRef:n};a.templateContext&&(c=B(B({},c),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),o.attachTemplatePortal(new ki(t,null,c,s))}else{let s=this._createInjector(a,n,o,this._injector),c=o.attachComponentPortal(new Dn(t,a.viewContainerRef,s,a.componentFactoryResolver));n.componentRef=c,n.componentInstance=c.instance}}_createInjector(t,n,o,a){let s=t.injector||t.viewContainerRef?.injector,c=[{provide:Sz,useValue:t.data},{provide:gd,useValue:n}];return t.providers&&(typeof t.providers=="function"?c.push(...t.providers(n,t,o)):c.push(...t.providers)),t.direction&&(!s||!s.get(kt,null,{optional:!0}))&&c.push({provide:kt,useValue:{value:t.direction,change:oe()}}),Pe.create({parent:s||a,providers:c})}_removeOpenDialog(t,n){let o=this.openDialogs.indexOf(t);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let t=this._overlayContainer.getContainerElement();if(t.parentElement){let n=t.parentElement.children;for(let o=n.length-1;o>-1;o--){let a=n[o];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(n){return new(n||e)(M(Ct),M(Pe),M(Ez,8),M(e,12),M(yc),M(Dz))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function B0(i,e){let r=i.length;for(;r--;)e(i[r])}var P1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[U0],imports:[on,Ln,Ec,Ln]});let i=e;return i})();var Mz=["text"],Tz=[[["mat-icon"]],"*"],kz=["mat-icon","*"];function Az(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",1),i&2){let r=_();p("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function Oz(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function Rz(i,e){if(i&1&&(l(0,"span",4),g(1),d()),i&2){let r=_();m(),P("(",r.group.label,")")}}var Pz=["mat-internal-form-field",""],Fz=["*"];var H1=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let i=e;return i})(),$1=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let i=e;return i})();function Nz(){return!0}var Lz=new O("mat-sanity-checks",{providedIn:"root",factory:Nz}),pe=(()=>{let e=class e{constructor(t,n,o){this._sanityChecks=n,this._document=o,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return od()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(n){return new(n||e)(M(j0),M(Lz,8),M(se))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[ca,ca]});let i=e;return i})();var Er=class{constructor(e,r,t,n,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,o=t?.isErrorState(n,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var ep=new O("MAT_DATE_LOCALE",{providedIn:"root",factory:Vz});function Vz(){return k(Sl)}var Ai=class{constructor(){this._localeChanges=new W,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,r){return this.getYear(e)-this.getYear(r)||this.getMonth(e)-this.getMonth(r)||this.getDate(e)-this.getDate(r)}sameDate(e,r){if(e&&r){let t=this.isValid(e),n=this.isValid(r);return t&&n?!this.compareDate(e,r):t==n}return e==r}clampDate(e,r,t){return r&&this.compareDate(e,r)<0?r:t&&this.compareDate(e,t)>0?t:e}},pa=new O("mat-date-formats"),jz=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function H0(i,e){let r=Array(i);for(let t=0;t{let e=class e extends Ai{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=k(ep,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let n=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return H0(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return H0(31,n=>this._format(t,new Date(2017,0,n+1)))}getDayOfWeekNames(t){let n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return H0(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(t){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,n,o){let a=this._createDateWithOverflow(t,n,o);return a.getMonth()!=n,a}today(){return new Date}parse(t,n){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,n){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,mt(B({},n),{timeZone:"utc"}));return this._format(o,t)}addCalendarYears(t,n){return this.addCalendarMonths(t,n*12)}addCalendarMonths(t,n){let o=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+n,this.getDate(t));return this.getMonth(o)!=((this.getMonth(t)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(t,n){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+n)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(jz.test(t)){let n=new Date(t);if(this.isValid(n))return n}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,n,o){let a=new Date;return a.setFullYear(t,n,o),a.setHours(0,0,0,0),a}_2digit(t){return("00"+t).slice(-2)}_format(t,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t.format(o)}};e.\u0275fac=function(n){return new(n||e)(M(ep,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),zz={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var W1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Uz()]});let i=e;return i})();function Uz(i=zz){return[{provide:Ai,useClass:Bz},{provide:pa,useValue:i}]}var Ir=(()=>{let e=class e{isErrorState(t,n){return!!(t&&t.invalid&&(t.touched||n&&n.submitted))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var io=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(io||{}),G0=class{constructor(e,r,t,n=!1){this._renderer=e,this.element=r,this.config=t,this._animationForciblyDisabledThroughCss=n,this.state=io.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},F1=ji({passive:!0,capture:!0}),q0=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=mn(e);r&&this._events.get(e.type)?.forEach((t,n)=>{(n===r||n.contains(r))&&t.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,t,n){let o=this._events.get(r);if(o){let a=o.get(t);a?a.add(n):o.set(t,new Set([n]))}else this._events.set(r,new Map([[t,new Set([n])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,F1)})}removeHandler(e,r,t){let n=this._events.get(e);if(!n)return;let o=n.get(r);o&&(o.delete(t),o.size===0&&n.delete(r),n.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,F1)))}},N1={enterDuration:225,exitDuration:150},Hz=800,L1=ji({passive:!0,capture:!0}),V1=["mousedown","touchstart"],j1=["mouseup","mouseleave","touchend","touchcancel"],_d=class _d{constructor(e,r,t,n){this._target=e,this._ngZone=r,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=xn(t))}fadeInRipple(e,r,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=B(B({},N1),t.animation);t.centered&&(e=n.left+n.width/2,r=n.top+n.height/2);let a=t.radius||$z(e,r,n),s=e-n.left,c=r-n.top,u=o.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${s-a}px`,f.style.top=`${c-a}px`,f.style.height=`${a*2}px`,f.style.width=`${a*2}px`,t.color!=null&&(f.style.backgroundColor=t.color),f.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(f);let v=window.getComputedStyle(f),C=v.transitionProperty,D=v.transitionDuration,E=C==="none"||D==="0s"||D==="0s, 0s"||n.width===0&&n.height===0,R=new G0(this,f,t,E);f.style.transform="scale3d(1, 1, 1)",R.state=io.FADING_IN,t.persistent||(this._mostRecentTransientRipple=R);let j=null;return!E&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>this._finishRippleTransition(R),_e=()=>this._destroyRipple(R);f.addEventListener("transitionend",F),f.addEventListener("transitioncancel",_e),j={onTransitionEnd:F,onTransitionCancel:_e}}),this._activeRipples.set(R,j),(E||!u)&&this._finishRippleTransition(R),R}fadeOutRipple(e){if(e.state===io.FADING_OUT||e.state===io.HIDDEN)return;let r=e.element,t=B(B({},N1),e.config.animation);r.style.transitionDuration=`${t.exitDuration}ms`,r.style.opacity="0",e.state=io.FADING_OUT,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=xn(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,V1.forEach(t=>{_d._eventManager.addHandler(this._ngZone,t,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{j1.forEach(r=>{this._triggerElement.addEventListener(r,this,L1)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===io.FADING_IN?this._startFadeOutTransition(e):e.state===io.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=io.VISIBLE,!t&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=io.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel)),e.element.remove()}_onMousedown(e){let r=pd(e),t=this._lastTouchStartEvent&&Date.now(){let r=e.state===io.VISIBLE||e.config.terminateOnPointerUp&&e.state===io.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(V1.forEach(r=>_d._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(j1.forEach(r=>e.removeEventListener(r,this,L1)),this._pointerUpEventsRegistered=!1))}};_d._eventManager=new q0;var Y0=_d;function $z(i,e,r){let t=Math.max(Math.abs(i-r.left),Math.abs(i-r.right)),n=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(t*t+n*n)}var Ic=new O("mat-ripple-global-options"),Mn=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,n,o,a,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Y0(this,n,t,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:B(B(B({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,n=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,B(B({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,B(B({},this.rippleConfig),t))}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z),h(je),h(Ic,8),h(Tt,8))},e.\u0275dir=N({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let i=e;return i})(),Mr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})(),Q0=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(n){return new(n||e)(h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&ne("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[re],decls:0,vars:0,template:function(n,o){},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-minimal-pseudo-checkbox-selected-checkmark-color)}.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-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);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-full-pseudo-checkbox-selected-checkmark-color)}.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-full-pseudo-checkbox-disabled-selected-icon-color)}.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-full-pseudo-checkbox-disabled-selected-checkmark-color)}.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}'],encapsulation:2,changeDetection:0});let i=e;return i})(),Wz=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe]});let i=e;return i})(),bd=new O("MAT_OPTION_PARENT_COMPONENT");var yd=new O("MatOptgroup");var Gz=0,vd=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},it=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,n,o,a){this._element=t,this._changeDetectorRef=n,this._parent=o,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${Gz++}`,this.onSelectionChange=new T,this._stateChanges=new W}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,n){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!Rt(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new vd(this,t))}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(bd,8),h(yd,8))},e.\u0275cmp=S({type:e,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&le(Mz,7),n&2){let a;Q(a=K())&&(o._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&b("click",function(){return o._selectViaInteraction()})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Di("id",o.id),ie("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),ne("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[ue,re],ngContentSelectors:kz,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(Ue(Tz),x(0,Az,1,2,"mat-pseudo-checkbox",1),ae(1),l(2,"span",2,0),ae(4,1),d(),x(5,Oz,1,1,"mat-pseudo-checkbox",3)(6,Rz,2,1,"span",4),I(7,"div",5)),n&2&&(xe(o.multiple?0:-1),m(5),xe(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),xe(o.group&&o.group._inert?6:-1),m(),p("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Q0,Mn],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();function tp(i,e,r){if(r.length){let t=e.toArray(),n=r.toArray(),o=0;for(let a=0;ar+t?Math.max(0,i-t+e):r}var Mc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Mr,pe,Wz]});let i=e;return i})(),B1={capture:!0},z1=["focus","mousedown","mouseenter","touchstart"],$0="mat-ripple-loader-uninitialized",W0="mat-ripple-loader-class-name",U1="mat-ripple-loader-centered",Jh="mat-ripple-loader-disabled",np=(()=>{let e=class e{constructor(){this._document=k(se,{optional:!0}),this._animationMode=k(Tt,{optional:!0}),this._globalRippleOptions=k(Ic,{optional:!0}),this._platform=k(je),this._ngZone=k(Z),this._hosts=new Map,this._onInteraction=t=>{let n=mn(t);if(n instanceof HTMLElement){let o=n.closest(`[${$0}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let t of z1)this._document?.addEventListener(t,this._onInteraction,B1)})}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);for(let n of z1)this._document?.removeEventListener(n,this._onInteraction,B1)}configureRipple(t,n){t.setAttribute($0,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(W0))&&t.setAttribute(W0,n.className||""),n.centered&&t.setAttribute(U1,""),n.disabled&&t.setAttribute(Jh,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,n){let o=this._hosts.get(t);if(o){o.disabled=n;return}n?t.setAttribute(Jh,""):t.removeAttribute(Jh)}_createRipple(t){if(!this._document)return;let n=this._hosts.get(t);if(n)return n;t.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",t.getAttribute(W0)),t.append(o);let a=new Mn(new G(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=t,a.centered=t.hasAttribute(U1),a.disabled=t.hasAttribute(Jh),this.attachRipple(t,a),a}attachRipple(t,n){t.removeAttribute($0),this._hosts.set(t,n)}destroyRipple(t){let n=this._hosts.get(t);n&&(n.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),op=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[re],attrs:Pz,ngContentSelectors:Fz,decls:1,vars:0,template:function(n,o){n&1&&(Ue(),ae(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let i=e;return i})();var nt=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(nt||{}),Zo="*";function li(i,e){return{type:nt.Trigger,name:i,definitions:e,options:{}}}function Et(i,e=null){return{type:nt.Animate,styles:e,timings:i}}function G1(i,e=null){return{type:nt.Group,steps:i,options:e}}function q1(i,e=null){return{type:nt.Sequence,steps:i,options:e}}function Me(i){return{type:nt.Style,styles:i,offset:null}}function Pt(i,e,r){return{type:nt.State,name:i,styles:e,options:r}}function ga(i){return{type:nt.Keyframes,steps:i}}function xt(i,e,r=null){return{type:nt.Transition,expr:i,animation:e,options:r}}function rp(i=null){return{type:nt.AnimateChild,options:i}}function ap(i,e,r=null){return{type:nt.Query,selector:i,animation:e,options:r}}var fa=class{constructor(e=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},wd=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,t=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++r==o&&this._onFinish()}),a.onDestroy(()=>{++t==o&&this._onDestroy()}),a.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(t=>{let n=t.totalTime?Math.min(1,r/t.totalTime):1;t.setPosition(n)})}getPosition(){let e=this.players.reduce((r,t)=>r===null||t.totalTime>r.totalTime?t:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},sp="!";function qz(i,e){}var Cd=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},K0="mdc-dialog--open",Y1="mdc-dialog--opening",Q1="mdc-dialog--closing",Yz=150,Qz=75,Kz=(()=>{let e=class e extends z0{constructor(t,n,o,a,s,c,u,f,v){super(t,n,o,a,s,c,u,v),this._animationMode=f,this._animationStateChanged=new T,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Z1(this._config.enterAnimationDuration)??Yz:0,this._exitAnimationDuration=this._animationsEnabled?Z1(this._config.exitAnimationDuration)??Qz:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(K1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Y1,K0)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(K0),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(K0),this._animationsEnabled?(this._hostElement.style.setProperty(K1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Q1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(Y1,Q1)}_waitForAnimationToComplete(t,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let n=super.attachComponentPortal(t);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}};e.\u0275fac=function(n){return new(n||e)(h(G),h(hd),h(se,8),h(Cd),h(md),h(Z),h(Sr),h(Tt,8),h(wi))},e.\u0275cmp=S({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(Di("id",o._config.id),ie("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),ne("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[ve,re],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),x(2,qz,0,0,"ng-template",2),d()())},dependencies:[tn],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let i=e;return i})(),K1="--mat-dialog-transition-duration";function Z1(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?xo(i.substring(0,i.length-2)):i.endsWith("s")?xo(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var cp=function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i}(cp||{}),Le=class{constructor(e,r,t){this._ref=e,this._containerInstance=t,this._afterOpened=new W,this._beforeClosed=new W,this._state=cp.OPEN,this.disableClose=r.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(qe(n=>n.state==="opened"),It(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(qe(n=>n.state==="closed"),It(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),yt(this.backdropClick(),this.keydownEvents().pipe(qe(n=>n.keyCode===27&&!this.disableClose&&!Rt(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),X1(this,n.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(qe(r=>r.state==="closing"),It(1)).subscribe(r=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),r.totalTime+100)}),this._state=cp.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let r=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?r.left(e.left):r.right(e.right):r.centerHorizontally(),e&&(e.top||e.bottom)?e.top?r.top(e.top):r.bottom(e.bottom):r.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",r=""){return this._ref.updateSize(e,r),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=cp.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function X1(i,e,r){return i._closeInteractionType=e,i.close(r)}var Ke=new O("MatMdcDialogData"),Zz=new O("mat-mdc-dialog-default-options"),Xz=new O("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.block()}});var Jz=0,xd=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,n,o,a,s,c,u,f){this._overlay=t,this._defaultOptions=a,this._scrollStrategy=s,this._parentDialog=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new W,this._afterOpenedAtThisLevel=new W,this.dialogConfigClass=Cd,this.afterAllClosed=Wn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ot(void 0))),this._dialog=n.get(U0),this._dialogRefConstructor=Le,this._dialogContainerType=Kz,this._dialogDataToken=Ke}open(t,n){let o;n=B(B({},this._defaultOptions||new Cd),n),n.id=n.id||`mat-mdc-dialog-${Jz++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,mt(B({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:cs,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(s,c,u)=>(o=new this._dialogRefConstructor(s,n,u),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:u},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=a.componentRef,o.componentInstance=a.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let n=t.length;for(;n--;)t[n].close()}};e.\u0275fac=function(n){return new(n||e)(M(Ct),M(Pe),M(qo,8),M(Zz,8),M(Xz),M(e,12),M(yc),M(Tt,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),e5=0,Yt=(()=>{let e=class e{constructor(t,n,o){this.dialogRef=t,this._elementRef=n,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=eM(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){let n=t._matDialogClose||t._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(t){X1(this.dialogRef,t.screenX===0&&t.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(n){return new(n||e)(h(Le,8),h(G),h(xd))},e.\u0275dir=N({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&b("click",function(s){return o._onButtonClick(s)}),n&2&&ie("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Qe]});let i=e;return i})(),J1=(()=>{let e=class e{constructor(t,n,o){this._dialogRef=t,this._elementRef=n,this._dialog=o}ngOnInit(){this._dialogRef||(this._dialogRef=eM(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(n){return new(n||e)(h(Le,8),h(G),h(xd))},e.\u0275dir=N({type:e,standalone:!0});let i=e;return i})(),Xe=(()=>{let e=class e extends J1{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${e5++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&Di("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[ve]});let i=e;return i})(),Je=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[JS([ad])]});let i=e;return i})(),et=(()=>{let e=class e extends J1{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,o){n&2&&ne("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},standalone:!0,features:[ve]});let i=e;return i})();function eM(i,e){let r=i.nativeElement.parentElement;for(;r&&!r.classList.contains("mat-mdc-dialog-container");)r=r.parentElement;return r?e.find(t=>t.id===r.id):null}var tM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[xd],imports:[P1,on,Ln,pe,pe]});let i=e;return i})();var iM,nM=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],oM=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")];var rM=i=>{let e=[];return i.forEach(r=>{e.push(r.substring(0,3))}),e},_a=(i,e,r)=>(typeof e>"u"&&(e=new Date),ls(i,e,r));var ls=(i,e,r,t)=>{t=t||{},e=e||new Date;let n=r||n5;n.formats=n.formats||{};let o=e.getTime();return(t.utc||typeof t.timezone=="number")&&(e=t5(e)),typeof t.timezone=="number"&&(e=new Date(e.getTime()+t.timezone*6e4)),i.replace(/%([-_0]?.)/g,(a,s)=>{let c,u,f,v,C,D,E,R;if(f=null,C=null,s.length===2){if(f=s[0],f==="-")C="";else if(f==="_")C=" ";else if(f==="0")C="0";else return a;s=s[1]}switch(s){case"A":return n.days[e.getDay()];case"a":return n.shortDays[e.getDay()];case"B":return n.months[e.getMonth()];case"b":return n.shortMonths[e.getMonth()];case"C":return fn(Math.floor(e.getFullYear()/100),C);case"D":return ls(n.formats.D||"%m/%d/%y",e,n);case"d":return fn(e.getDate(),C);case"e":return e.getDate();case"F":return ls(n.formats.F||"%Y-%m-%d",e,n);case"H":return fn(e.getHours(),C);case"h":return n.shortMonths[e.getMonth()];case"I":return fn(aM(e),C);case"j":return E=new Date(e.getFullYear(),0,1),c=Math.ceil((e.getTime()-E.getTime())/(1e3*60*60*24)),fn(c,3);case"k":return fn(e.getHours(),C===void 0?" ":C);case"L":return fn(Math.floor(o%1e3),3);case"l":return fn(aM(e),C===void 0?" ":C);case"M":return fn(e.getMinutes(),C);case"m":return fn(e.getMonth()+1,C);case"n":return` -`;case"o":return String(e.getDate())+i5(e.getDate());case"P":return"";case"p":return"";case"R":return ls(n.formats.R||"%H:%M",e,n);case"r":return ls(n.formats.r||"%I:%M:%S %p",e,n);case"S":return fn(e.getSeconds(),C);case"s":return Math.floor(o/1e3);case"T":return ls(n.formats.T||"%H:%M:%S",e,n);case"t":return" ";case"U":return fn(sM(e,"sunday"),C);case"u":return u=e.getDay(),u===0?7:u;case"v":return ls(n.formats.v||"%e-%b-%Y",e,n);case"W":return fn(sM(e,"monday"),C);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return R=String(e.getFullYear()),R.slice(R.length-2);case"Z":return t.utc?"GMT":(D=e.toString().match(/\((\w+)\)/),D&&D[1]||"");case"z":return t.utc?"+0000":(v=typeof t.timezone=="number"?t.timezone:-e.getTimezoneOffset(),(v<0?"-":"+")+fn(Math.abs(v/60))+fn(v%60));default:return s}})},t5=i=>{let e=(i.getTimezoneOffset()||0)*6e4;return new Date(i.getTime()+e)},fn=(i,e,r)=>{typeof e=="number"&&(r=e,e="0"),e=e??"0",r=r??2;let t=String(i);if(e)for(;t.length{let e;return e=i.getHours(),e===0?e=12:e>12&&(e-=12),e},i5=i=>{let e=i%10,r=i%100;if(r>=11&&r<=13||e===0||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},sM=(i,e)=>{e=e||"sunday";let r=i.getDay();e==="monday"&&(r===0?r=6:r--);let t=new Date(i.getFullYear(),0,1),n=Math.floor((i.getTime()-t.getTime())/864e5);return Math.floor((n+7-r)/7)},Z0=i=>i.replace(/./g,e=>{switch(e){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+e;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":return"";case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return e}}),Bi=(i,e,r=null)=>{let t;if(e==="None"||e===null||e===void 0)e=7226578800,t=django.gettext("Never");else{let n=django.get_format(i);r&&(n+=r),t=_a(Z0(n),new Date(e*1e3))}return t},cM=i=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[i]||"OTHER",lM=i=>i===""||i===null||i===void 0,lp=i=>i==="yes"||i===!0||i==="true"||i===1,n5={days:nM,shortDays:rM(nM),months:oM,shortMonths:rM(oM),AM:"AM",PM:"PM",am:"am",pm:"pm"},Xo=(i,e)=>{let r;if(i instanceof Promise)r=i;else if(i instanceof Jt)r=i;else{if(e)return Eu(i.pipe(Ug(e)));r=Eu(i)}return r},Jt=class{constructor(){this[iM]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}then(e,r){return this.promise.then(e,r)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}};iM=Symbol.toStringTag;var dM=["mat-button",""],uM=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],mM=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],o5='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',X0=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var hM=["mat-icon-button",""],pM=["*"],r5='.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',a5=new O("MAT_BUTTON_CONFIG");var s5=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],J0=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,n,o,a){this._elementRef=t,this._platform=n,this._ngZone=o,this._animationMode=a,this._focusMonitor=k(wi),this._rippleLoader=k(np),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=k(a5,{optional:!0}),c=t.nativeElement,u=c.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:f,mdcClasses:v}of s5)c.hasAttribute(f)&&u.add(...v)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(n){Xa()},e.\u0275dir=N({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y],ariaDisabled:[2,"aria-disabled","ariaDisabled",Y],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Y]},features:[ue]});let i=e;return i})();var fM=(()=>{let e=class e extends J0{constructor(t,n,o,a){super(t,n,o,a),this._haltDisabledEvents=s=>{this.disabled&&(s.preventDefault(),s.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}};e.\u0275fac=function(n){Xa()},e.\u0275dir=N({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Zt(t)]},features:[ue,ve]});let i=e;return i})(),ke=(()=>{let e=class e extends J0{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Z),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ve,re],attrs:dM,ngContentSelectors:mM,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(Ue(uM),I(0,"span",0),ae(1),l(2,"span",1),ae(3,1),d(),ae(4,2),I(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),va=(()=>{let e=class e extends fM{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Z),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[ve,re],attrs:dM,ngContentSelectors:mM,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(Ue(uM),I(0,"span",0),ae(1),l(2,"span",1),ae(3,1),d(),ae(4,2),I(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[o5,X0],encapsulation:2,changeDetection:0});let i=e;return i})();var Wi=(()=>{let e=class e extends J0{constructor(t,n,o,a){super(t,n,o,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Z),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ve,re],attrs:hM,ngContentSelectors:pM,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(Ue(),I(0,"span",0),ae(1),I(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',X0],encapsulation:2,changeDetection:0});let i=e;return i})(),dp=(()=>{let e=class e extends fM{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Z),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[ve,re],attrs:hM,ngContentSelectors:pM,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(Ue(),I(0,"span",0),ae(1),I(2,"span",1)(3,"span",2))},styles:[r5,X0],encapsulation:2,changeDetection:0});let i=e;return i})(),Jo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,Mr,pe]});let i=e;return i})();var ce=(()=>{let e=class e{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}};e.\u0275fac=function(n){return new(n||e)(h(G))},e.\u0275dir=N({type:e,selectors:[["uds-translate"]]});let i=e;return i})();var up=(()=>{let e=class e{constructor(t){this.sanitizer=t}transform(t,n){return t=t.replace(/<\s*script\s*/gi,""),t=t.replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,""),t=t.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}};e.\u0275fac=function(n){return new(n||e)(h(Ja,16))},e.\u0275pipe=Ka({name:"safeHtml",type:e,pure:!0});let i=e;return i})();function c5(i,e){if(i&1){let r=A();l(0,"button",4),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!1))}),l(1,"uds-translate"),g(2,"Close"),d(),g(3),d()}if(i&2){let r=_();m(3),He(r.extra)}}function l5(i,e){if(i&1){let r=A();l(0,"button",5),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!0))}),l(1,"uds-translate"),g(2,"Yes"),d()()}if(i&2){let r=_();p("color",r.yesColor)}}function d5(i,e){if(i&1){let r=A();l(0,"button",5),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!1))}),l(1,"uds-translate"),g(2,"No"),d()()}if(i&2){let r=_();p("color",r.noColor)}}var Dd=function(i){return i[i.alert=0]="alert",i[i.question=1]="question",i}(Dd||{}),ey=(()=>{let e=class e{constructor(t,n){this.dialogRef=t,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new Jt}resolveAndClose(t){this.acceptance.resolve(t),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return q(this,null,function*(){let t=this.data.autoclose||0;t>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(t),this.subscription=Hg(1e3).subscribe(n=>{let o=t-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Dd.alert&&this.initAlert()}};e.\u0275fac=function(n){return new(n||e)(h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(I(0,"h4",0),yo(1,"safeHtml"),I(2,"mat-dialog-content",1),yo(3,"safeHtml"),l(4,"mat-dialog-actions"),x(5,c5,4,1,"button",2)(6,l5,3,1,"button",3)(7,d5,3,1,"button",3),d()),n&2&&(p("innerHtml",wr(1,5,o.data.title),Gt),m(2),p("innerHTML",wr(3,7,o.data.body),Gt),m(3),p("ngIf",o.data.type===0),m(),p("ngIf",o.data.type===1),m(),p("ngIf",o.data.type===1))},dependencies:[he,ke,Yt,Xe,et,Je,ce,up],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var Gi=function(i){return i.TEXT="text",i.TEXT_AUTOCOMPLETE="text-autocomplete",i.TEXTBOX="textbox",i.NUMERIC="numeric",i.PASSWORD="password",i.HIDDEN="hidden",i.CHOICE="choice",i.MULTI_CHOICE="multichoice",i.EDITLIST="editlist",i.CHECKBOX="checkbox",i.IMAGECHOICE="imgchoice",i.DATE="date",i.DATETIME="datetime",i.TAGLIST="taglist",i.INFO="internal-info",i}(Gi||{}),Sd=class{static locateChoice(e,r){let t=r.gui.choices;if(t===void 0)return{id:"",img:"",text:""};let n=t.find(o=>o.id===e);if(n===void 0)try{n=t[0]}catch{n={id:"",img:"",text:""}}return n}};var xM=(()=>{let e=class e{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(n){return new(n||e)(h(gr),h(G))},e.\u0275dir=N({type:e});let i=e;return i})(),DM=(()=>{let e=class e extends xM{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,features:[ve]});let i=e;return i})(),qi=new O("");var u5={provide:qi,useExisting:Wt(()=>ct),multi:!0};function m5(){let i=Go()?Go().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var h5=new O(""),ct=(()=>{let e=class e extends xM{constructor(t,n,o){super(t,n),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!m5())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(n){return new(n||e)(h(gr),h(G),h(h5,8))},e.\u0275dir=N({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&b("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[be([u5]),ve]});let i=e;return i})();function ba(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function SM(i){return i!=null&&typeof i.length=="number"}var no=new O(""),xp=new O(""),p5=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,er=class{static min(e){return f5(e)}static max(e){return g5(e)}static required(e){return EM(e)}static requiredTrue(e){return _5(e)}static email(e){return v5(e)}static minLength(e){return b5(e)}static maxLength(e){return IM(e)}static pattern(e){return y5(e)}static nullValidator(e){return hp(e)}static compose(e){return RM(e)}static composeAsync(e){return PM(e)}};function f5(i){return e=>{if(ba(e.value)||ba(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(ba(e.value)||ba(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>i?{max:{max:i,actual:e.value}}:null}}function EM(i){return ba(i.value)?{required:!0}:null}function _5(i){return i.value===!0?null:{required:!0}}function v5(i){return ba(i.value)||p5.test(i.value)?null:{email:!0}}function b5(i){return e=>ba(e.value)||!SM(e.value)?null:e.value.lengthSM(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function y5(i){if(!i)return hp;let e,r;return typeof i=="string"?(r="",i.charAt(0)!=="^"&&(r+="^"),r+=i,i.charAt(i.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=i.toString(),e=i),t=>{if(ba(t.value))return null;let n=t.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function hp(i){return null}function MM(i){return i!=null}function TM(i){return ea(i)?Qt(i):i}function kM(i){let e={};return i.forEach(r=>{e=r!=null?B(B({},e),r):e}),Object.keys(e).length===0?null:e}function AM(i,e){return e.map(r=>r(i))}function w5(i){return!i.validate}function OM(i){return i.map(e=>w5(e)?e:r=>e.validate(r))}function RM(i){if(!i)return null;let e=i.filter(MM);return e.length==0?null:function(r){return kM(AM(r,e))}}function oy(i){return i!=null?RM(OM(i)):null}function PM(i){if(!i)return null;let e=i.filter(MM);return e.length==0?null:function(r){let t=AM(r,e).map(TM);return Xc(t).pipe(de(kM))}}function ry(i){return i!=null?PM(OM(i)):null}function _M(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function FM(i){return i._rawValidators}function NM(i){return i._rawAsyncValidators}function ty(i){return i?Array.isArray(i)?i:[i]:[]}function pp(i,e){return Array.isArray(i)?i.includes(e):i===e}function vM(i,e){let r=ty(e);return ty(i).forEach(n=>{pp(r,n)||r.push(n)}),r}function bM(i,e){return ty(e).filter(r=>!pp(i,r))}var fp=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=oy(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ry(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},ya=class extends fp{get formDirective(){return null}get path(){return null}},Tn=class extends fp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},gp=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},C5={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},wce=mt(B({},C5),{"[class.ng-submitted]":"isSubmitted"}),we=(()=>{let e=class e extends gp{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(h(Tn,2))},e.\u0275dir=N({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&ne("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ve]});let i=e;return i})(),Dp=(()=>{let e=class e extends gp{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(h(ya,10))},e.\u0275dir=N({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&ne("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ve]});let i=e;return i})();var Ed="VALID",mp="INVALID",Tc="PENDING",Id="DISABLED",wa=class{},_p=class extends wa{constructor(e,r){super(),this.value=e,this.source=r}},Td=class extends wa{constructor(e,r){super(),this.pristine=e,this.source=r}},kd=class extends wa{constructor(e,r){super(),this.touched=e,this.source=r}},kc=class extends wa{constructor(e,r){super(),this.status=e,this.source=r}},iy=class extends wa{constructor(e){super(),this.source=e}},ny=class extends wa{constructor(e){super(),this.source=e}};function LM(i){return(Sp(i)?i.validators:i)||null}function x5(i){return Array.isArray(i)?oy(i):i||null}function VM(i,e){return(Sp(e)?e.asyncValidators:i)||null}function D5(i){return Array.isArray(i)?ry(i):i||null}function Sp(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function S5(i,e,r){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new te(1e3,"");if(!t[r])throw new te(1001,"")}function E5(i,e,r){i._forEachChild((t,n)=>{if(r[n]===void 0)throw new te(1002,"")})}var vp=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new W,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Ed}get invalid(){return this.status===mp}get pending(){return this.status==Tc}get disabled(){return this.status===Id}get enabled(){return this.status!==Id}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(vM(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(vM(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(bM(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(bM(e,this._rawAsyncValidators))}hasValidator(e){return pp(this._rawValidators,e)}hasAsyncValidator(e){return pp(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(mt(B({},e),{sourceControl:t})),r&&e.emitEvent!==!1&&this._events.next(new kd(!0,t))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=e.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:t})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t),r&&e.emitEvent!==!1&&this._events.next(new kd(!1,t))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(mt(B({},e),{sourceControl:t})),r&&e.emitEvent!==!1&&this._events.next(new Td(!1,t))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=e.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&e.emitEvent!==!1&&this._events.next(new Td(!0,t))}markAsPending(e={}){this.status=Tc;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new kc(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(mt(B({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Id,this.errors=null,this._forEachChild(n=>{n.disable(mt(B({},e),{onlySelf:!0}))}),this._updateValue();let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new _p(this.value,t)),this._events.next(new kc(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(mt(B({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Ed,this._forEachChild(t=>{t.enable(mt(B({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(mt(B({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ed||this.status===Tc)&&this._runAsyncValidator(t,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new _p(this.value,r)),this._events.next(new kc(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(mt(B({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Id:Ed}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Tc,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let t=TM(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((t,n)=>t&&t._find(n),this)}getError(e,r){let t=r?this.get(r):this;return t&&t.errors?t.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new kc(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,t)}_initObservables(){this.valueChanges=new T,this.statusChanges=new T}_calculateStatus(){return this._allControlsDisabled()?Id:this.errors?mp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tc)?Tc:this._anyControlsHaveStatus(mp)?mp:Ed}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&this._events.next(new Td(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new kd(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Sp(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=x5(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=D5(this._rawAsyncValidators)}},bp=class extends vp{constructor(e,r,t){super(LM(r),VM(t,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,t={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){E5(this,!0,e),Object.keys(e).forEach(t=>{S5(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(t=>{let n=this.controls[t];n&&n.patchValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((t,n)=>{t.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,t)=>(e[t]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,t)=>t._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let t=this.controls[r];t&&e(t,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,t]of Object.entries(this.controls))if(this.contains(r)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,t,n)=>((t.enabled||this.disabled)&&(r[n]=t.value),r))}_reduceChildren(e,r){let t=e;return this._forEachChild((n,o)=>{t=r(t,n,o)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ac=new O("CallSetDisabledState",{providedIn:"root",factory:()=>Ep}),Ep="always";function I5(i,e){return[...e.path,i]}function Ad(i,e,r=Ep){ay(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),T5(i,e),A5(i,e),k5(i,e),M5(i,e)}function yp(i,e,r=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),Cp(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function wp(i,e){i.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function M5(i,e){if(e.valueAccessor.setDisabledState){let r=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(r),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(r)})}}function ay(i,e){let r=FM(i);e.validator!==null?i.setValidators(_M(r,e.validator)):typeof r=="function"&&i.setValidators([r]);let t=NM(i);e.asyncValidator!==null?i.setAsyncValidators(_M(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();wp(e._rawValidators,n),wp(e._rawAsyncValidators,n)}function Cp(i,e){let r=!1;if(i!==null){if(e.validator!==null){let n=FM(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==e.validator);o.length!==n.length&&(r=!0,i.setValidators(o))}}if(e.asyncValidator!==null){let n=NM(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==e.asyncValidator);o.length!==n.length&&(r=!0,i.setAsyncValidators(o))}}}let t=()=>{};return wp(e._rawValidators,t),wp(e._rawAsyncValidators,t),r}function T5(i,e){e.valueAccessor.registerOnChange(r=>{i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&jM(i,e)})}function k5(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&jM(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function jM(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function A5(i,e){let r=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};i.registerOnChange(r),e._registerOnDestroy(()=>{i._unregisterOnChange(r)})}function BM(i,e){i==null,ay(i,e)}function O5(i,e){return Cp(i,e)}function zM(i,e){if(!i.hasOwnProperty("model"))return!1;let r=i.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function R5(i){return Object.getPrototypeOf(i.constructor)===DM}function UM(i,e){i._syncPendingControls(),e.forEach(r=>{let t=r.control;t.updateOn==="submit"&&t._pendingChange&&(r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function HM(i,e){if(!e)return null;Array.isArray(e);let r,t,n;return e.forEach(o=>{o.constructor===ct?r=o:R5(o)?t=o:n=o}),n||t||r||null}function P5(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}var F5={provide:ya,useExisting:Wt(()=>Io)},Md=Promise.resolve(),Io=(()=>{let e=class e extends ya{constructor(t,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new T,this.form=new bp({},oy(t),ry(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Md.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Ad(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Md.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Md.then(()=>{let n=this._findContainer(t.path),o=new bp({});BM(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Md.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){Md.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,UM(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(n){return new(n||e)(h(no,10),h(xp,10),h(Ac,8))},e.\u0275dir=N({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&b("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[be([F5]),ve]});let i=e;return i})();function yM(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function wM(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Ip=class extends vp{constructor(e=null,r,t){super(LM(r),VM(t,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Sp(r)&&(r.nonNullable||r.initialValueIsDefault)&&(wM(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){yM(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){yM(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){wM(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var N5=i=>i instanceof Ip;var L5={provide:Tn,useExisting:Wt(()=>De)},CM=Promise.resolve(),De=(()=>{let e=class e extends Tn{constructor(t,n,o,a,s,c){super(),this._changeDetectorRef=s,this.callSetDisabledState=c,this.control=new Ip,this._registered=!1,this.name="",this.update=new T,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=HM(this,a)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),zM(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ad(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){CM.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Y(n);CM.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?I5(t,this._parent):[t]}};e.\u0275fac=function(n){return new(n||e)(h(ya,9),h(no,10),h(xp,10),h(qi,10),h(me,8),h(Ac,8))},e.\u0275dir=N({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[be([L5]),ve,Qe]});let i=e;return i})(),Mp=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),V5={provide:qi,useExisting:Wt(()=>Vn),multi:!0},Vn=(()=>{let e=class e extends DM{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&b("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[be([V5]),ve]});let i=e;return i})();var $M=new O(""),j5={provide:Tn,useExisting:Wt(()=>sy)},sy=(()=>{let e=class e extends Tn{set isDisabled(t){}constructor(t,n,o,a,s){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=s,this.update=new T,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=HM(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&yp(n,this,!1),Ad(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}zM(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&yp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(h(no,10),h(xp,10),h(qi,10),h($M,8),h(Ac,8))},e.\u0275dir=N({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[be([j5]),ve,Qe]});let i=e;return i})(),B5={provide:ya,useExisting:Wt(()=>ds)},ds=(()=>{let e=class e extends ya{constructor(t,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new T,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Cp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return Ad(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){yp(t.control||null,t,!1),P5(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this.submitted=!0,UM(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new iy(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1,this.form._events.next(new ny(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(yp(n||null,t),N5(o)&&(Ad(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);BM(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&O5(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ay(this.form,this),this._oldForm&&Cp(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(h(no,10),h(xp,10),h(Ac,8))},e.\u0275dir=N({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&b("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[be([B5]),ve,Qe]});let i=e;return i})();function z5(i){return typeof i=="number"?i:parseInt(i,10)}var WM=(()=>{let e=class e{constructor(){this._validator=hp}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):hp,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,features:[Qe]});let i=e;return i})();var U5={provide:no,useExisting:Wt(()=>Oi),multi:!0};var Oi=(()=>{let e=class e extends WM{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Y,this.createValidator=t=>EM}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&ie("required",o._enabled?"":null)},inputs:{required:"required"},features:[be([U5]),ve]});let i=e;return i})();var H5={provide:no,useExisting:Wt(()=>us),multi:!0},us=(()=>{let e=class e extends WM{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>z5(t),this.createValidator=t=>IM(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ie("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[be([H5]),ve]});let i=e;return i})();var GM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var qM=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ac,useValue:t.callSetDisabledState??Ep}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[GM]});let i=e;return i})(),Tp=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:$M,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ac,useValue:t.callSetDisabledState??Ep}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[GM]});let i=e;return i})();var cy=class{constructor(e){this._box=e,this._destroyed=new W,this._resizeSubject=new W,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(r=>this._resizeSubject.next(r)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Re(r=>{let t=this._resizeSubject.subscribe(r);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),t.unsubscribe(),this._elementObservables.delete(e)}}).pipe(qe(r=>r.some(t=>t.target===e)),Ou({bufferSize:1,refCount:!0}),fe(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},kp=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=k(Z),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(t,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new cy(o)),this._observers.get(o).observe(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var my=["*"];function $5(i,e){i&1&&ae(0)}var W5=["tabListContainer"],G5=["tabList"],q5=["tabListInner"],Y5=["nextPaginator"],Q5=["previousPaginator"],K5=i=>({animationDuration:i}),Z5=(i,e)=>({value:i,params:e});function X5(i,e){}var J5=["tabBodyWrapper"],eU=["tabHeader"];function tU(i,e){}function iU(i,e){if(i&1&&x(0,tU,0,0,"ng-template",12),i&2){let r=_().$implicit;p("cdkPortalOutlet",r.templateLabel)}}function nU(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;He(r.textLabel)}}function oU(i,e){if(i&1){let r=A();l(0,"div",7,2),b("click",function(){let n=y(r),o=n.$implicit,a=n.$index,s=_(),c=Ie(1);return w(s._handleClick(o,c,a))})("cdkFocusChange",function(n){let o=y(r).$index,a=_();return w(a._tabFocusChanged(n,o))}),I(2,"span",8)(3,"div",9),l(4,"span",10)(5,"span",11),x(6,iU,1,1,null,12)(7,nU,1,1),d()()()}if(i&2){let r=e.$implicit,t=e.$index,n=Ie(1),o=_();qt(r.labelClass),ne("mdc-tab--active",o.selectedIndex===t),p("id",o._getTabLabelId(t))("disabled",r.disabled)("fitInkBarToContent",o.fitInkBarToContent),ie("tabIndex",o._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(t))("aria-selected",o.selectedIndex===t)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),m(3),p("matRippleTrigger",n)("matRippleDisabled",r.disabled||o.disableRipple),m(3),xe(r.templateLabel?6:7)}}function rU(i,e){i&1&&ae(0)}function aU(i,e){if(i&1){let r=A();l(0,"mat-tab-body",13),b("_onCentered",function(){y(r);let n=_();return w(n._removeTabBodyWrapperHeight())})("_onCentering",function(n){y(r);let o=_();return w(o._setTabBodyWrapperHeight(n))}),d()}if(i&2){let r=e.$implicit,t=e.$index,n=_();qt(r.bodyClass),ne("mat-mdc-tab-body-active",n.selectedIndex===t),p("id",n._getTabContentId(t))("content",r.content)("position",r.position)("origin",r.origin)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),ie("tabindex",n.contentTabIndex!=null&&n.selectedIndex===t?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(t))("aria-hidden",n.selectedIndex!==t)}}var sU=new O("MatTabContent"),cU=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[be([{provide:sU,useExisting:e}])]});let i=e;return i})(),lU=new O("MatTabLabel"),KM=new O("MAT_TAB"),ei=(()=>{let e=class e extends c1{constructor(t,n,o){super(t,n),this._closestTab=o}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(wt),h(KM,8))},e.\u0275dir=N({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[be([{provide:lU,useExisting:e}]),ve]});let i=e;return i})(),ZM=new O("MAT_TAB_GROUP"),ti=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}constructor(t,n){this._viewContainerRef=t,this._closestTabGroup=n,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new W,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ki(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(ZM,8))},e.\u0275cmp=S({type:e,selectors:[["mat-tab"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,ei,5),Fe(a,cU,7,lt)),n&2){let s;Q(s=K())&&(o.templateLabel=s.first),Q(s=K())&&(o._explicitContent=s.first)}},viewQuery:function(n,o){if(n&1&&le(lt,7),n&2){let a;Q(a=K())&&(o._implicitContent=a.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",Y],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[be([{provide:KM,useExisting:e}]),ue,Qe,re],ngContentSelectors:my,decls:1,vars:0,template:function(n,o){n&1&&(Ue(),x(0,$5,1,0,"ng-template"))},encapsulation:2});let i=e;return i})(),ly="mdc-tab-indicator--active",YM="mdc-tab-indicator--no-transition",dy=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let r=this._items.find(n=>n.elementRef.nativeElement===e),t=this._currentItem;if(r!==t&&(t?.deactivateInkBar(),r)){let n=t?.elementRef.nativeElement.getBoundingClientRect?.();r.activateInkBar(n),this._currentItem=r}}},dU=(()=>{let e=class e{constructor(){this._elementRef=k(G),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let n=this._elementRef.nativeElement;if(!t||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(ly);return}let o=n.getBoundingClientRect(),a=t.width/o.width,s=t.left-o.left;n.classList.add(YM),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${a})`),n.getBoundingClientRect(),n.classList.remove(YM),n.classList.add(ly),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ly)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=t.createElement("span"),o=this._inkBarContentElement=t.createElement("span");n.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",n.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Y]},features:[ue]});let i=e;return i})();var XM=(()=>{let e=class e extends dU{constructor(t){super(),this.elementRef=t,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(n){return new(n||e)(h(G))},e.\u0275dir=N({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(ie("aria-disabled",!!o.disabled),ne("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",Y]},standalone:!0,features:[ue,ve]});let i=e;return i})(),QM=ji({passive:!0}),uU=650,mU=100,hU=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let n=isNaN(t)?0:t;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}constructor(t,n,o,a,s,c,u){this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=o,this._dir=a,this._ngZone=s,this._platform=c,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new W,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new W,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new T,this.indexFocused=new T,this._sharedResizeObserver=k(kp),this._injector=k(Pe),s.runOutsideAngular(()=>{cn(t.nativeElement,"mouseleave").pipe(fe(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){cn(this._previousPaginator.nativeElement,"touchstart",QM).pipe(fe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),cn(this._nextPaginator.nativeElement,"touchstart",QM).pipe(fe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let t=this._dir?this._dir.change:oe("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(sr(32),fe(this._destroyed)),o=this._viewportRuler.change(150).pipe(fe(this._destroyed)),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new da(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),ri(a,{injector:this._injector}),yt(t,o,n,this._items.changes,this._itemsResized()).pipe(fe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),a()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?Ti:this._items.changes.pipe(Ot(this._items),Mt(t=>new Re(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(a=>n.next(a));return t.forEach(a=>o.observe(a.elementRef.nativeElement)),()=>{o.disconnect()}}))),Na(1),qe(t=>t.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Rt(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let n=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?n.scrollLeft=0:n.scrollLeft=n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let n=this._tabListContainer.nativeElement.offsetWidth,o=(t=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let n=this._items?this._items.toArray()[t]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:s}=n.elementRef.nativeElement,c,u;this._getLayoutDirection()=="ltr"?(c=a,u=c+s):(u=this._tabListInner.nativeElement.offsetWidth-a,c=u-s);let f=this.scrollDistance,v=this.scrollDistance+o;cv&&(this.scrollDistance+=Math.min(u-v,c-f))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=t-n>=5;o||(this.scrollDistance=0),o!==this._showPaginationControls&&(this._showPaginationControls=o,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return t-n||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),fo(uU,mU).pipe(fe(yt(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:a}=this._scrollHeader(t);(a===0||a>=o)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(pn),h(kt,8),h(Z),h(je),h(Tt,8))},e.\u0275dir=N({type:e,inputs:{disablePagination:[2,"disablePagination","disablePagination",Y],selectedIndex:[2,"selectedIndex","selectedIndex",Zt]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ue]});let i=e;return i})(),pU=(()=>{let e=class e extends hU{constructor(t,n,o,a,s,c,u){super(t,n,o,a,s,c,u),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new dy(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(pn),h(kt,8),h(Z),h(je),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-tab-header"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,XM,4),n&2){let s;Q(s=K())&&(o._items=s)}},viewQuery:function(n,o){if(n&1&&(le(W5,7),le(G5,7),le(q5,7),le(Y5,5),le(Q5,5)),n&2){let a;Q(a=K())&&(o._tabListContainer=a.first),Q(a=K())&&(o._tabList=a.first),Q(a=K())&&(o._tabListInner=a.first),Q(a=K())&&(o._nextPaginator=a.first),Q(a=K())&&(o._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&ne("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{disableRipple:[2,"disableRipple","disableRipple",Y]},standalone:!0,features:[ue,ve,re],ngContentSelectors:my,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"button",5,0),b("click",function(){return y(a),w(o._handlePaginatorClick("before"))})("mousedown",function(c){return y(a),w(o._handlePaginatorPress("before",c))})("touchend",function(){return y(a),w(o._stopInterval())}),I(2,"div",6),d(),l(3,"div",7,1),b("keydown",function(c){return y(a),w(o._handleKeydown(c))}),l(5,"div",8,2),b("cdkObserveContent",function(){return y(a),w(o._onContentChanges())}),l(7,"div",9,3),ae(9),d()()(),l(10,"button",10,4),b("mousedown",function(c){return y(a),w(o._handlePaginatorPress("after",c))})("click",function(){return y(a),w(o._handlePaginatorClick("after"))})("touchend",function(){return y(a),w(o._stopInterval())}),I(12,"div",6),d()}n&2&&(ne("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),p("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),m(3),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations"),m(7),ne("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),p("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[Mn,v1],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2});let i=e;return i})(),fU=new O("MAT_TABS_CONFIG"),gU={translateTab:li("translateTab",[Pt("center, void, left-origin-center, right-origin-center",Me({transform:"none"})),Pt("left",Me({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Pt("right",Me({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),xt("* => left, * => right, left => center, right => center",Et("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),xt("void => left-origin-center",[Me({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Et("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),xt("void => right-origin-center",[Me({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Et("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},_U=(()=>{let e=class e extends tn{constructor(t,n,o,a){super(t,n,a),this._host=o,this._centeringSub=Ce.EMPTY,this._leavingSub=Ce.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ot(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(vn),h(wt),h(Wt(()=>JM)),h(se))},e.\u0275dir=N({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[ve]});let i=e;return i})(),JM=(()=>{let e=class e{set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(t,n,o){this._elementRef=t,this._dir=n,this._dirChangeSubscription=Ce.EMPTY,this._translateTabComplete=new W,this._onCentering=new T,this._beforeCentering=new T,this._afterLeavingCenter=new T,this._onCentered=new T(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(a=>{this._computePositionAnimationState(a),o.markForCheck()})),this._translateTabComplete.pipe(zr((a,s)=>a.fromState===s.fromState&&a.toState===s.toState)).subscribe(a=>{this._isCenterPosition(a.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(a.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){let n=this._isCenterPosition(t.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(t){return t=="center"||t=="left-origin-center"||t=="right-origin-center"}_computePositionAnimationState(t=this._getLayoutDirection()){this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(t){let n=this._getLayoutDirection();return n=="ltr"&&t<=0||n=="rtl"&&t>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(n){return new(n||e)(h(G),h(kt,8),h(me))},e.\u0275cmp=S({type:e,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&le(tn,5),n&2){let a;Q(a=K())&&(o._portalHost=a.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[re],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){if(n&1){let a=A();l(0,"div",1,0),b("@translateTab.start",function(c){return y(a),w(o._onTranslateTabStarted(c))})("@translateTab.done",function(c){return y(a),w(o._translateTabComplete.next(c))}),x(2,X5,0,0,"ng-template",2),d()}n&2&&p("@translateTab",Js(3,Z5,o._position,Li(1,K5,o.animationDuration)))},dependencies:[_U,ad],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[gU.translateTab]}});let i=e;return i})(),vU=0,bU=!0,ni=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}get animationDuration(){return this._animationDuration}set animationDuration(t){let n=t+"";this._animationDuration=/^\d+$/.test(n)?t+"ms":n}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){if(!bU)throw new Error("mat-tab-group background color must be set through the Sass theming API");let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&n.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}constructor(t,n,o,a){this._elementRef=t,this._changeDetectorRef=n,this._animationMode=a,this._tabs=new qn,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ce.EMPTY,this._tabLabelSubscription=Ce.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new T,this.focusChange=new T,this.animationDone=new T,this.selectedTabChange=new T(!0),this._isServer=!k(je).isBrowser,this._groupId=vU++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=o&&o.disablePagination!=null?o.disablePagination:!1,this.dynamicHeight=o&&o.dynamicHeight!=null?o.dynamicHeight:!1,o?.contentTabIndex!=null&&(this.contentTabIndex=o.contentTabIndex),this.preserveContent=!!o?.preserveContent,this.fitInkBarToContent=o&&o.fitInkBarToContent!=null?o.fitInkBarToContent:!1,this.stretchTabs=o&&o.stretchTabs!=null?o.stretchTabs:!0}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(t));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,a)=>o.isActive=a===t),n||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-t,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let n=this._tabs.toArray(),o;for(let a=0;a{n[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Ot(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let n=this._tabHeader;n&&(n.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let n=new uy;return n.index=t,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[t]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=yt(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,n,o){n.focusIndex=o,t.disabled||(this.selectedIndex=o)}_getTabIndex(t){let n=this._lastFocusedTabIndex??this.selectedIndex;return t===n?0:-1}_tabFocusChanged(t,n){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=n)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(fU,8),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-tab-group"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,ti,5),n&2){let s;Q(s=K())&&(o._allTabs=s)}},viewQuery:function(n,o){if(n&1&&(le(J5,5),le(eU,5)),n&2){let a;Q(a=K())&&(o._tabBodyWrapper=a.first),Q(a=K())&&(o._tabHeader=a.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(n,o){n&2&&(qt("mat-"+(o.color||"primary")),xi("--mat-tab-animation-duration",o.animationDuration),ne("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Y],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Y],dynamicHeight:[2,"dynamicHeight","dynamicHeight",Y],selectedIndex:[2,"selectedIndex","selectedIndex",Zt],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Zt],disablePagination:[2,"disablePagination","disablePagination",Y],disableRipple:[2,"disableRipple","disableRipple",Y],preserveContent:[2,"preserveContent","preserveContent",Y],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[be([{provide:ZM,useExisting:e}]),ue,re],ngContentSelectors:my,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"mat-tab-header",3,0),b("indexFocused",function(c){return y(a),w(o._focusChanged(c))})("selectFocusedIndex",function(c){return y(a),w(o.selectedIndex=c)}),vr(2,oU,8,17,"div",4,wl),d(),x(4,rU,1,0),l(5,"div",5,1),vr(7,aU,1,13,"mat-tab-body",6,wl),d()}n&2&&(p("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),m(2),br(o._tabs),m(2),xe(o._isServer?4:-1),m(),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations"),m(2),br(o._tabs))},dependencies:[pU,XM,Xh,Mn,tn,JM],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2});let i=e;return i})(),uy=class{};var eT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})();function yU(i,e){if(i&1){let r=A();l(0,"uds-field-text",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function wU(i,e){if(i&1){let r=A();l(0,"uds-field-autocomplete",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function CU(i,e){if(i&1){let r=A();l(0,"uds-field-textbox",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function xU(i,e){if(i&1){let r=A();l(0,"uds-field-numeric",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function DU(i,e){if(i&1){let r=A();l(0,"uds-field-password",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function SU(i,e){if(i&1){let r=A();l(0,"uds-field-hidden",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function EU(i,e){if(i&1){let r=A();l(0,"uds-field-choice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function IU(i,e){if(i&1){let r=A();l(0,"uds-field-multichoice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function MU(i,e){if(i&1){let r=A();l(0,"uds-field-editlist",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function TU(i,e){if(i&1){let r=A();l(0,"uds-field-checkbox",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function kU(i,e){if(i&1){let r=A();l(0,"uds-field-imgchoice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function AU(i,e){if(i&1){let r=A();l(0,"uds-field-date",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function OU(i,e){if(i&1){let r=A();l(0,"uds-field-tags",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}var Ap=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.udsGuiFieldType=Gi}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"changed","field"]],template:function(n,o){n&1&&(l(0,"div",0),x(1,yU,1,1,"uds-field-text",1)(2,wU,1,1,"uds-field-autocomplete",1)(3,CU,1,1,"uds-field-textbox",1)(4,xU,1,1,"uds-field-numeric",1)(5,DU,1,1,"uds-field-password",1)(6,SU,1,1,"uds-field-hidden",1)(7,EU,1,1,"uds-field-choice",1)(8,IU,1,1,"uds-field-multichoice",1)(9,MU,1,1,"uds-field-editlist",1)(10,TU,1,1,"uds-field-checkbox",1)(11,kU,1,1,"uds-field-imgchoice",1)(12,AU,1,1,"uds-field-date",1)(13,OU,1,1,"uds-field-tags",1),d()),n&2&&(p("ngSwitch",o.field.gui.type)("matTooltip",o.field.gui.tooltip),m(),p("ngSwitchCase",o.udsGuiFieldType.TEXT),m(),p("ngSwitchCase",o.udsGuiFieldType.TEXT_AUTOCOMPLETE),m(),p("ngSwitchCase",o.udsGuiFieldType.TEXTBOX),m(),p("ngSwitchCase",o.udsGuiFieldType.NUMERIC),m(),p("ngSwitchCase",o.udsGuiFieldType.PASSWORD),m(),p("ngSwitchCase",o.udsGuiFieldType.HIDDEN),m(),p("ngSwitchCase",o.udsGuiFieldType.CHOICE),m(),p("ngSwitchCase",o.udsGuiFieldType.MULTI_CHOICE),m(),p("ngSwitchCase",o.udsGuiFieldType.EDITLIST),m(),p("ngSwitchCase",o.udsGuiFieldType.CHECKBOX),m(),p("ngSwitchCase",o.udsGuiFieldType.IMAGECHOICE),m(),p("ngSwitchCase",o.udsGuiFieldType.DATE),m(),p("ngSwitchCase",o.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-mdc-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-mdc-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]});let i=e;return i})();function PU(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;P(" ",r," ")}}function FU(i,e){if(i&1){let r=A();l(0,"uds-field",9),b("changed",function(n){y(r);let o=_(3);return w(o.changed.emit(n))}),d()}if(i&2){let r=e.$implicit;p("field",r)}}function NU(i,e){if(i&1&&(l(0,"mat-tab",4),x(1,PU,1,1,"ng-template",5),l(2,"div",6)(3,"div",7),x(4,FU,1,1,"uds-field",8),d()()()),i&2){let r=e.$implicit,t=_(2);m(4),p("ngForOf",t.fieldsByTab[r])}}function LU(i,e){if(i&1&&(l(0,"mat-tab-group",2),x(1,NU,5,1,"mat-tab",3),d()),i&2){let r=_();p("disableRipple",!1)("@.disabled",!0),m(),p("ngForOf",r.tabs)}}function VU(i,e){if(i&1){let r=A();l(0,"div")(1,"uds-field",9),b("changed",function(n){y(r);let o=_(2);return w(o.changed.emit(n))}),d()()}if(i&2){let r=e.$implicit;m(),p("field",r)}}function jU(i,e){if(i&1&&(l(0,"div",6),x(1,VU,2,1,"div",10),d()),i&2){let r=_();m(),p("ngForOf",r.fields)}}var BU=django.gettext("Main"),tT=(()=>{let e=class e{constructor(){this.fields=[],this.changed=new T,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let t of this.fields){let n=t.gui.tab===void 0?BU:t.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[["onlyone",""],["backgroundColor","primary",3,"disableRipple",4,"ngIf","ngIfElse"],["backgroundColor","primary",3,"disableRipple"],["class","noOverflow",4,"ngFor","ngForOf"],[1,"noOverflow"],["mat-tab-label",""],[1,"form-content"],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"changed","field"],[4,"ngFor","ngForOf"]],template:function(n,o){if(n&1&&x(0,LU,2,3,"mat-tab-group",1)(1,jU,2,1,"ng-template",null,0,hi),n&2){let a=Ie(2);p("ngIf",o.tabs.length>1)("ngIfElse",a)}},dependencies:[$e,he,ei,ti,ni,Ap],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.form-content[_ngcontent-%COMP%]{padding-top:1rem} .mat-mdc-tab-body-content{overflow:hidden!important} .mat-mdc-form-field-infix{min-height:3rem} .mat-mdc-tab-header{position:sticky;top:0;z-index:1000}"]});let i=e;return i})();function UU(i,e){if(i&1){let r=A();l(0,"button",10),b("click",function(){y(r);let n=_();return w(n.customButtonClicked())}),g(1),d()}if(i&2){let r=_();m(),He(r.data.customButton)}}var iT=(()=>{let e=class e{constructor(t,n){this.dialogRef=t,this.data=n,this.onEvent=new T(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})}getFields(){let t={},n=[];return this.data.guiFields.forEach(o=>{let a=o.value;if(o.gui.required&&a!==0&&a!==!1&&(!a||a instanceof Array&&a.length===0)&&n.push(o.gui.label),typeof a=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),c=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&a= "+o.gui.minValue),c!==987654321&&a>c&&n.push(o.gui.label+" <= "+o.gui.maxValue),a=a.toString()}t[o.name]=a}),{data:t,errors:n}}save(){let t=this.getFields();if(t.errors.length>0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", "));return}this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton||"",errors:t.errors,dialog:this.dialogRef})}};e.\u0275fac=function(n){return new(n||e)(h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["vc",""],["mat-dialog-title","",3,"innerHtml"],["autocomplete","off"],[3,"changed","fields"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click","disabled"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(n,o){if(n&1){let a=A();I(0,"h4",1),yo(1,"safeHtml"),l(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),b("changed",function(c){return y(a),w(o.changed(c))}),d()()(),l(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),x(9,UU,2,1,"button",6),d(),l(10,"div",7)(11,"button",8),b("click",function(){return y(a),w(o.dialogRef.close())})("click",function(){return y(a),w(o.cancel())}),l(12,"uds-translate"),g(13,"Discard & close"),d()(),l(14,"button",9),b("click",function(){return y(a),w(o.save())}),l(15,"uds-translate"),g(16,"Save"),d()()()()()}n&2&&(p("innerHtml",wr(1,5,o.data.title),Gt),m(5),p("fields",o.data.guiFields),m(4),p("ngIf",o.data.customButton!==void 0),m(2),p("disabled",o.saving),m(3),p("disabled",o.saving))},dependencies:[Cn,he,Mp,Dp,Io,ke,Xe,et,Je,ce,tT,up],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}.modal-form[_ngcontent-%COMP%]{padding-top:1.5rem}"]});let i=e;return i})();var Op=class{constructor(e){this.gui=e}modalForm(e,r,t=null,n){r.sort((c,u)=>c.gui.order>u.gui.order?1:-1);let o=t!=null;t=o?t:{},r.forEach(c=>{(o===!1||c.gui.readonly===void 0)&&(c.gui.readonly=!1),c.gui.type===Gi.TEXT&&c.gui.lines&&(c.gui.type=Gi.TEXTBOX);let u=t[c.name];if(u!==void 0)if(u instanceof Array){let f=new Array;u.forEach(v=>f.push(v)),c.value=f}else c.value=u});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(iT,{position:{top:"64px"},width:a,data:{title:e,guiFields:r,customButton:n,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(e,r,t,n,o,a,s){return q(this,null,function*(){let c=s||{},u=c.callback||(()=>{}),f=n||[],v=t?django.gettext("Test"):void 0,C={},D={},E=F=>{if(D.hasOwnProperty(F.name)){let _e=D[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(e,F,C)}},R=c.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield e.table.rest.gui(a);if(R.dismiss(),f!==void 0)for(let F of f)j.push(F);for(let F of j){if(F.gui.type===Gi.INFO){F.name==="title"&&(r+=" "+(F.value||F.gui.default||""));continue}C[F.name]=F,F.gui.fills!==void 0&&(D[F.name]=F.gui.fills)}this.modalForm(r,j,o,v).subscribe(F=>q(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case v:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),e.table.rest.test(a,F.data).then(_e=>{_e!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+_e,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let _e of j)E(_e);else E(F.data.field);u({on:F.data,all:C});break;case"save":if(c.save===void 0){F.dialog.componentInstance.saving=!0;try{o?yield e.table.rest.save(F.data,o.id):yield e.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),e.table.overview()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),c.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(e,r,t=!1,n,o=()=>{}){return q(this,null,function*(){let a=e.table.selection.selected[0],s=a.type,c=new T,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),f=yield e.table.rest.get(a.id);return this.typedForm(e,r,t,n,f,s,{snack:u,callback:o})})}typedNewForm(e,r,t=!1,n,o=()=>{}){return q(this,null,function*(){let a=e.param?e.param.type:void 0;return this.typedForm(e,r,t,n,null,a,{callback:o})})}deleteForm(e,r,t){return q(this,null,function*(){let n=new Array,o=new Array;for(let c of e.table.selection.selected){let u=c.name||c.friendly_name||c[t||"name"]||c.id;u&&u.changingThisBreaksApplicationSecurity&&(u=u.changingThisBreaksApplicationSecurity),n.push(u),o.push(c.id)}let a=django.gettext("Are you sure do you want to delete the following items?")+"
"+n.join(", ")+"";if(yield this.gui.questionDialog(r,a,!0)){for(let u of o)try{yield e.table.rest.delete(u)}catch(f){console.warn("Error deleting item",u,f)}let c=o.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()}})}executeCallback(o,a,s){return q(this,arguments,function*(e,r,t,n={}){let c=new Array;if(!r.gui.fills)return;for(let v of r.gui.fills.parameters)c.push(v+"="+encodeURIComponent(t[v].value));let u=yield e.table.rest.callback(r.gui.fills.callback_name,c.join("&")),f=new Array;for(let v of u){let C=t[v.name];if(C!==void 0){C.gui.fills!==void 0&&f.push(C);let D=new Array;for(let E of v.choices)D.push({id:E.id,text:E.text,img:E.img});if(C.gui.choices=D,C.value instanceof Array){let E=new Array;for(let R of C.gui.choices)C.value.indexOf(R.id)>=0&&E.push(R.id);C.value=E}else(!C.value||C.value instanceof Array&&C.value.length===0)&&(C.value=v.choices.length>0?v.choices[0].id:"")}}for(let v of f)n[v.name]===void 0&&(n[v.name]=!0,this.executeCallback(e,v,t,n))})}};var HU="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Rp=class{constructor(e,r){this.dialog=e,this.snackbar=r,this.forms=new Op(this)}alert(e,r,t=0,n){return q(this,null,function*(){let o=n||(window.innerWidth<800?"80%":"40%");return this.dialog.open(ey,{width:o,data:{title:e,body:r,autoclose:t,type:Dd.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(e,r,t=!1){return q(this,null,function*(){let n=window.innerWidth<800?"80%":"40%",o=this.dialog.open(ey,{width:n,data:{title:e,body:r,type:Dd.question,warnOnYes:t},disableClose:!0});return Xo(o.componentInstance.acceptance)})}icon(e,r="24px"){return''}};var Pp={production:!0};var pi=function(i){return i.NUMERIC="numeric",i.ALPHANUMERIC="alphanumeric",i.DATETIME="datetime",i.DATETIMESEC="datetimesec",i.DATE="date",i.TIME="time",i.ICON="iconType",i.CALLBACK="callback",i.DICTIONARY="dict",i.IMAGE="image",i}(pi||{}),ut=function(i){return i[i.ALWAYS=0]="ALWAYS",i[i.SINGLE_SELECT=1]="SINGLE_SELECT",i[i.MULTI_SELECT=2]="MULTI_SELECT",i[i.ONLY_MENU=3]="ONLY_MENU",i[i.ACCELERATOR=4]="ACCELERATOR",i}(ut||{});var hy="provider",py="service",Od="pool",$U="authenticator",Rd="user",fy="group",gy="transport",_y="osmanager",Fp="calendar",vy="poolgroup",WU={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),mfa:django.gettext("MFA"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},Ei=class{constructor(e){this.router=e}static getGotoButton(e,r,t){return{id:e,html:'link'+django.gettext("Go to")+" "+WU[e]+"",type:ut.ACCELERATOR,acceleratorProperties:[r,t||""]}}gotoProvider(e){e!==void 0?this.router.navigate(["services","providers",e]):this.router.navigate(["services","providers"])}gotoService(e,r){r!==void 0?this.router.navigate(["services","providers",e,"detail",r]):this.router.navigate(["services","providers",e,"detail"])}gotoServer(e){this.router.navigate(["services","servers",e])}gotoServerDetail(e){this.router.navigate(["services","servers",e,"detail"])}gotoServicePool(e){this.router.navigate(["pools","service-pools",e])}gotoServicePoolDetail(e){this.router.navigate(["pools","service-pools",e,"detail"])}gotoMetapool(e){this.router.navigate(["pools","meta-pools",e])}gotoMetapoolDetail(e){this.router.navigate(["pools","meta-pools",e,"detail"])}gotoCalendar(e){this.router.navigate(["pools","calendars",e])}gotoCalendarDetail(e){this.router.navigate(["pools","calendars",e,"detail"])}gotoAccount(e){this.router.navigate(["pools","accounts",e])}gotoAccountDetail(e){this.router.navigate(["pools","accounts",e,"detail"])}gotoPoolGroup(e){e=e||"",this.router.navigate(["pools","pool-groups",e])}gotoAuthenticator(e){this.router.navigate(["authenticators",e])}gotoAuthenticatorDetail(e){this.router.navigate(["authenticators",e,"detail"])}gotoMFA(e){this.router.navigate(["mfas",e])}gotoUser(e,r){this.router.navigate(["authenticators",e,"detail","users",r])}gotoGroup(e,r){this.router.navigate(["authenticators",e,"detail","groups",r])}gotoTransport(e){this.router.navigate(["connectivity/transports",e])}gotoTunnel(e){this.router.navigate(["connectivity/tunnels",e])}gotoTunnelDetail(e){this.router.navigate(["connectivity/tunnels",e,"detail"])}gotoOSManager(e){this.router.navigate(["osmanagers",e])}goto(e,r,t){let n=o=>{let a=r;if(t[o].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(e){case hy:this.gotoProvider(n(0));break;case py:this.gotoService(n(0),n(1));break;case Od:this.gotoServicePool(n(0));break;case $U:this.gotoAuthenticator(n(0));break;case Rd:this.gotoUser(n(0),n(1));break;case fy:this.gotoGroup(n(0),n(1));break;case gy:this.gotoTransport(n(0));break;case _y:this.gotoOSManager(n(0));break;case Fp:this.gotoCalendar(n(0));break;case vy:this.gotoPoolGroup(n(0));break}}catch{}}};function GU(i,e){if(i&1){let r=A();l(0,"div",1)(1,"button",2),b("click",function(){y(r);let n=_();return w(n.action())}),g(2),d()()}if(i&2){let r=_();m(2),P(" ",r.data.action," ")}}var qU=["label"];function YU(i,e){}var QU=Math.pow(2,31)-1,Pd=class{constructor(e,r){this._overlayRef=r,this._afterDismissed=new W,this._afterOpened=new W,this._onAction=new W,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,QU))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},nT=new O("MatSnackBarData"),Oc=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},KU=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let i=e;return i})(),ZU=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let i=e;return i})(),XU=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let i=e;return i})(),oT=(()=>{let e=class e{constructor(t,n){this.snackBarRef=t,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(n){return new(n||e)(h(Pd),h(nT))},e.\u0275cmp=S({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[re],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(l(0,"div",0),g(1),d(),x(2,GU,3,1,"div",1)),n&2&&(m(),P(" ",o.data.message,` -`),m(),xe(o.hasAction?2:-1))},dependencies:[ke,KU,ZU,XU],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let i=e;return i})(),JU={snackBarState:li("state",[Pt("void, hidden",Me({transform:"scale(0.8)",opacity:0})),Pt("visible",Me({transform:"scale(1)",opacity:1})),xt("* => visible",Et("150ms cubic-bezier(0, 0, 0.2, 1)")),xt("* => void, * => hidden",Et("75ms cubic-bezier(0.4, 0.0, 1, 1)",Me({opacity:0})))])},e8=0,t8=(()=>{let e=class e extends la{constructor(t,n,o,a,s){super(),this._ngZone=t,this._elementRef=n,this._changeDetectorRef=o,this._platform=a,this.snackBarConfig=s,this._document=k(se),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new W,this._onExit=new W,this._onEnter=new W,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${e8++}`,this.attachDomPortal=c=>{this._assertNotAttached();let u=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),u},s.politeness==="assertive"&&!s.announcementMessage?this._live="assertive":s.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),n}attachTemplatePortal(t){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),n}onAnimationEnd(t){let{fromState:n,toState:o}=t;if((o==="void"&&n!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let a=this._onEnter;this._ngZone.run(()=>{a.next(),a.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let t=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(s=>t.classList.add(s)):t.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,a="mdc-snackbar__label";o.classList.toggle(a,!o.querySelector(`.${a}`))}_exposeToModals(){let t=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=t.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?t.setAttribute("aria-owns",o):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(o=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(n){return new(n||e)(h(Z),h(G),h(me),h(je),h(Oc))},e.\u0275cmp=S({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(le(tn,7),le(qU,7)),n&2){let a;Q(a=K())&&(o._portalOutlet=a.first),Q(a=K())&&(o._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,o){n&1&&xl("@state.done",function(s){return o.onAnimationEnd(s)}),n&2&&Cl("@state",o._animationState)},standalone:!0,features:[ve,re],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(l(0,"div",1)(1,"div",2,0)(3,"div",3),x(4,YU,0,0,"ng-template",4),d(),I(5,"div"),d()()),n&2&&(m(5),ie("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[tn],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[JU.snackBarState]}});let i=e;return i})();function i8(){return new Oc}var n8=new O("mat-snack-bar-default-options",{providedIn:"root",factory:i8}),by=(()=>{let e=class e{get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,n,o,a,s,c){this._overlay=t,this._live=n,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=c,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=oT,this.snackBarContainerComponent=t8,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(t,n){return this._attach(t,n)}openFromTemplate(t,n){return this._attach(t,n)}open(t,n="",o){let a=B(B({},this._defaultConfig),o);return a.data={message:t,action:n},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=Pe.create({parent:o||this._injector,providers:[{provide:Oc,useValue:n}]}),s=new Dn(this.snackBarContainerComponent,n.viewContainerRef,a),c=t.attach(s);return c.instance.snackBarConfig=n,c.instance}_attach(t,n){let o=B(B(B({},new Oc),this._defaultConfig),n),a=this._createOverlay(o),s=this._attachSnackBarContainer(a,o),c=new Pd(s,a);if(t instanceof lt){let u=new ki(t,null,{$implicit:o.data,snackBarRef:c});c.instance=s.attachTemplatePortal(u)}else{let u=this._createInjector(o,c),f=new Dn(t,void 0,u),v=s.attachComponentPortal(f);c.instance=v.instance}return this._breakpointObserver.observe(w1.HandsetPortrait).pipe(fe(a.detachments())).subscribe(u=>{a.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),o.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(c,o),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(t,n){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),n.duration&&n.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(n.duration))}_createOverlay(t){let n=new Sn;n.direction=t.direction;let o=this._overlay.position().global(),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,c=!s&&t.horizontalPosition!=="center";return s?o.left("0"):c?o.right("0"):o.centerHorizontally(),t.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,this._overlay.create(n)}_createInjector(t,n){let o=t&&t.viewContainerRef&&t.viewContainerRef.injector;return Pe.create({parent:o||this._injector,providers:[{provide:Pd,useValue:n},{provide:nT,useValue:t.data}]})}};e.\u0275fac=function(n){return new(n||e)(M(Ct),M(Zh),M(Pe),M(Hh),M(e,12),M(n8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var rT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[by],imports:[on,Ln,Jo,pe,oT,pe]});let i=e;return i})();var aT="dark-theme",sT="light-theme",z=(()=>{let e=class e{constructor(t,n,o,a,s,c){this.http=t,this.router=n,this.dialog=o,this.snackbar=a,this.sanitizer=s,this.dateAdapter=c,this.user=new Nh(udsData.profile),this.navigation=new Ei(this.router),this.gui=new Rp(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(t){return this.config.urls.rest+t}staticURL(t){return Pp.production?this.config.urls.static+t:"/static/"+t}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(t,n){typeof Storage!==void 0&&sessionStorage.setItem(t,n)}getFromStorage(t){return typeof Storage!==void 0?sessionStorage.getItem(t):null}safeString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}boolAsHumanString(t){return t?django.gettext("yes"):django.gettext("no")}switchTheme(t){let n=document.getElementsByTagName("html")[0];[aT,sT].forEach(o=>{n.classList.contains(o)&&n.classList.remove(o)}),n.classList.add(t?aT:sT)}};e.\u0275fac=function(n){return new(n||e)(M(Al),M(Ko),M(xd),M(by),M(Ja),M(Ai))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var cT=(()=>{let e=class e{constructor(t){this.api=t}canActivate(t,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}};e.\u0275fac=function(n){return new(n||e)(M(z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Rc=3e4,Tr=function(i){return i[i.NONE=0]="NONE",i[i.READ=32]="READ",i[i.MANAGEMENT=64]="MANAGEMENT",i[i.ALL=96]="ALL",i}(Tr||{}),fi=class{constructor(e,r,t){this.api=e,t===void 0&&(t={}),t.base===void 0&&(t.base=r);let n=(o,a)=>o===void 0?a:o;this.id=r,this.paths={base:t.base,get:n(t.get,t.base),log:n(t.log,t.base),put:n(t.put,t.base),test:n(t.test,t.base+"/test"),delete:n(t.delete,t.base),types:n(t.types,t.base+"/types"),gui:n(t.gui,t.base+"/gui"),tableInfo:n(t.tableInfo,t.base+"/tableinfo")},this.headers=new wo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(e){return this.typedGet(e)}getLogs(e){return this.doGet(this.getPath(this.paths.log,e)+"/log")}overview(e){return this.typedGet("overview"+(e!==void 0?"?filter="+e:""))}summary(e){return this.typedGet("overview?summarize"+(e!==void 0?"&filter="+e:""))}put(e,r){return this.typedPut(e,r)}create(e){return this.typedPut(e)}save(e,r){return r=r!==void 0?r:e.id,this.typedPut(e,r)}test(e,r){return Xo(this.api.http.post(this.getPath(this.paths.test,e),r,{headers:this.headers}).pipe(zi(t=>this.handleError(t))),Rc)}delete(e){return Xo(this.api.http.delete(this.getPath(this.paths.delete,e),{headers:this.headers}).pipe(zi(r=>this.handleError(r))),Rc)}permision(){return this.api.user.isAdmin?Tr.ALL:Tr.NONE}getPermissions(e){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+e))}addPermission(e,r,t,n){let o=this.getPath("permissions/"+this.paths.base+"/"+e+"/"+r+"/add/"+t),a={perm:n};return Xo(this.api.http.put(o,a,{headers:this.headers}).pipe(zi(s=>this.handleError(s))),Rc)}revokePermission(e){let r=this.getPath("permissions/revoke"),t={items:e};return Xo(this.api.http.put(r,t,{headers:this.headers}).pipe(zi(n=>this.handleError(n))),Rc)}types(){return this.doGet(this.getPath(this.paths.types))}gui(e){let r=this.getPath(this.paths.gui+(e!==void 0?"/"+e:""));return this.doGet(r)}callback(e,r){let t=this.getPath("gui/callback/"+e+"?"+r);return this.doGet(t)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(e,r){return new yy(this,e,r)}invoke(e,r){let t=e+(r?"?"+r:"");return this.typedGet(t)}getPath(e,r){if(e===void 0)throw new Error("Path is undefined");return this.api.restPath(e+(r!==void 0?"/"+r:""))}doGet(e){return Xo(this.api.http.get(e,{headers:this.headers}).pipe(zi(r=>this.handleError(r))),Rc)}typedGet(e){return this.doGet(this.getPath(this.paths.get,e))}typedPut(e,r){return Xo(this.api.http.put(this.getPath(this.paths.put,r),e,{headers:this.headers}).pipe(zi(t=>this.handleError(t,!0))),Rc)}handleError(e,r=!1){let t="";return e.error instanceof ErrorEvent?t=e.error.message:r?t=django.gettext("Error saving: ")+e.error:t=`Error ${e.status}: ${e.error}`,this.api.gui.alert(r?django.gettext("Error saving element"):django.gettext("Error handling your request"),t),Ro(()=>new Error(t))}},yy=class extends fi{constructor(e,r,t,n){super(e.api,[e.paths.base,r,t].join("/")),this.parentModel=e,this.parentId=r,this.model=t,this.perm=n}permision(){return this.perm||Tr.ALL}},Np=class extends fi{constructor(e){super(e,"providers"),this.api=e}allServices(){return this.get("allservices")}service(e){return this.get("service/"+e)}maintenance(e){return this.get(e+"/maintenance")}},Lp=class extends fi{constructor(e){super(e,"authenticators"),this.api=e}search(e,r,t,n=12){return this.get(e+"/search?type="+encodeURIComponent(r)+"&term="+encodeURIComponent(t)+"&limit="+n)}},Vp=class extends fi{constructor(e){super(e,"osmanagers"),this.api=e}},jp=class extends fi{constructor(e){super(e,"transports"),this.api=e}},Bp=class extends fi{constructor(e){super(e,"networks"),this.api=e}},zp=class extends fi{constructor(e){super(e,"tunnels/tunnels"),this.api=e}maintenance(e){return this.get(e+"/maintenance")}tunnels(e){return this.get(e+"/tunnels")}assign(e,r){return this.get(e+"/assign/"+r)}},Up=class extends fi{constructor(e){super(e,"servers/groups"),this.api=e}maintenance(e){return this.get(e+"/maintenance")}},Hp=class extends fi{constructor(e){super(e,"servicespools"),this.api=e}setFallbackAccess(e,r){return this.get(e+"/setFallbackAccess?fallbackAccess="+r)}getFallbackAccess(e){return this.get(e+"/getFallbackAccess")}actionsList(e){return this.get(e+"/actionsList")}listAssignables(e){return this.get(e+"/listAssignables")}createFromAssignable(e,r,t){return this.get(e+"/createFromAssignable?user_id="+encodeURIComponent(r)+"&assignable_id="+encodeURIComponent(t))}},$p=class extends fi{constructor(e){super(e,"metapools"),this.api=e}setFallbackAccess(e,r){return this.get(e+"/setFallbackAccess?fallbackAccess="+r)}getFallbackAccess(e){return this.get(e+"/getFallbackAccess")}},Wp=class extends fi{constructor(e){super(e,"config"),this.api=e}},Gp=class extends fi{constructor(e){super(e,"gallery/images"),this.api=e}},qp=class extends fi{constructor(e){super(e,"gallery/servicespoolgroups"),this.api=e}},Yp=class extends fi{constructor(e){super(e,"system"),this.api=e}information(){return this.get("overview")}stats(e,r){let t="stats/"+e;return r&&(t+="/"+r),this.get(t)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},Qp=class extends fi{constructor(e){super(e,"reports"),this.api=e}types(){return Xo(oe([]))}},Kp=class extends fi{constructor(e){super(e,"calendars"),this.api=e}},Zp=class extends fi{constructor(e){super(e,"accounts"),this.api=e}timemark(e){return this.get(e+"/timemark")}},Xp=class extends fi{constructor(e){super(e,"actortokens"),this.api=e}},Jp=class extends fi{constructor(e){super(e,"servers/tokens"),this.api=e}},ef=class extends fi{constructor(e){super(e,"mfa"),this.api=e}},tf=class extends fi{constructor(e){super(e,"messaging/notifiers"),this.api=e}};var X=(()=>{let e=class e{constructor(t){this.api=t,this.providers=new Np(t),this.serverGroups=new Up(t),this.authenticators=new Lp(t),this.mfas=new ef(t),this.osManagers=new Vp(t),this.transports=new jp(t),this.networks=new Bp(t),this.tunnels=new zp(t),this.servicesPools=new Hp(t),this.metaPools=new $p(t),this.gallery=new Gp(t),this.servicesPoolGroups=new qp(t),this.calendars=new Kp(t),this.accounts=new Zp(t),this.system=new Yp(t),this.configuration=new Wp(t),this.actorToken=new Xp(t),this.serversTokens=new Jp(t),this.reports=new Qp(t),this.notifiers=new tf(t)}};e.\u0275fac=function(n){return new(n||e)(M(z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var wy=class{constructor(){this.subject=new $n(1),this.subscriptions=new Ce}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let n=t[e].currentValue;n!=null&&r(n)}}))}has(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let n=t[e].currentValue;r(n)}}))}notFirst(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let n=t[e].currentValue;r(n)}}))}notFirstAndEmpty(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let n=t[e].currentValue;n!=null&&r(n)}}))}},lT=new O("NGX_ECHARTS_CONFIG"),nf=(()=>{class i{constructor(r,t,n){this.el=t,this.ngZone=n,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new T,this.optionsError=new T,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new $n(1),this.resize$=new W,this.changeFilter=new wy,this.echarts=r.echarts}ngOnChanges(r){this.changeFilter.doFilter(r)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(Qg(100,Ki,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",r=>this.onOptionsChange(r)),this.changeFilter.notFirstAndEmpty("merge",r=>this.setOption(r)),this.changeFilter.has("loading",r=>this.toggleLoading(!!r)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(r){this.chart?r?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(t=>r?t.showLoading(this.loadingType,this.loadingOpts):t.hideLoading())}setOption(r,t){if(this.chart)try{this.chart.setOption(r,t)}catch(n){console.error(n),this.optionsError.emit(n)}}refreshChart(){return q(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let r=this.el.nativeElement;if(window&&window.getComputedStyle){let t=window.getComputedStyle(r,null).getPropertyValue("height");(!t||t==="0px")&&(!r.style.height||r.style.height==="0px")&&(r.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:n})=>n(r,this.theme,this.initOpts)))}initChart(){return q(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(r){return q(this,null,function*(){r&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(r){return this.chartInit.pipe(Mt(t=>new Re(n=>(t.on(r,o=>this.ngZone.run(()=>n.next(o))),()=>{this.chart&&(this.chart.isDisposed()||t.off(r))}))))}}return i.\u0275fac=function(r){return new(r||i)(h(lT),h(G),h(Z))},i.\u0275dir=N({type:i,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[Qe]}),i})(),dT=(()=>{class i{static forRoot(r){return{ngModule:i,providers:[{provide:lT,useValue:r}]}}static forChild(){return{ngModule:i}}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ee({type:i}),i.\u0275inj=J({}),i})();function r8(i,e){if(i&1&&(l(0,"div",21)(1,"div",11),I(2,"img",4),l(3,"div",12),g(4),d()(),l(5,"div",13)(6,"a",15)(7,"uds-translate"),g(8,"View service pools"),d()()()()),i&2){let r=_(2);m(2),p("src",r.api.staticURL("admin/img/icons/logs.png"),Ee),m(2),P(" ",r.data.restrained," ")}}function a8(i,e){if(i&1){let r=A();l(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),I(5,"img",4),l(6,"div",12),g(7),d()(),l(8,"div",13)(9,"a",14)(10,"uds-translate"),g(11,"View authenticators"),d()()()(),l(12,"div",10)(13,"div",11),I(14,"img",4),l(15,"div",12),g(16),d()(),l(17,"div",13)(18,"a",15)(19,"uds-translate"),g(20,"View service pools"),d()()()(),l(21,"div",10)(22,"div",11),I(23,"img",4),l(24,"div",12),g(25),d()(),l(26,"div",13)(27,"a",15)(28,"uds-translate"),g(29,"View service pools"),d()()()(),x(30,r8,9,2,"div",16),d(),l(31,"div",17)(32,"div",18)(33,"div",19)(34,"uds-translate"),g(35,"Assigned services chart"),d()(),l(36,"div",20),b("chartInit",function(n){y(r);let o=_();return w(o.chartInit("assigned",n))}),d()(),l(37,"div",18)(38,"div",19)(39,"uds-translate"),g(40,"In use services chart"),d()(),l(41,"div",20),b("chartInit",function(n){y(r);let o=_();return w(o.chartInit("inuse",n))}),d()()()()()}if(i&2){let r=_();m(5),p("src",r.api.staticURL("admin/img/icons/authenticators.png"),Ee),m(2),P(" ",r.data.users," "),m(7),p("src",r.api.staticURL("admin/img/icons/pools.png"),Ee),m(2),P(" ",r.data.pools," "),m(7),p("src",r.api.staticURL("admin/img/icons/services.png"),Ee),m(2),P(" ",r.data.user_services," "),m(5),p("ngIf",r.data.restrained),m(6),p("options",r.assignedChartOpts),m(5),p("options",r.inuseChartOpts)}}function s8(i,e){i&1&&(l(0,"div",22)(1,"div",23)(2,"div",24)(3,"uds-translate"),g(4,"UDS Administration"),d()(),l(5,"div",25)(6,"p")(7,"uds-translate"),g(8,"You are accessing UDS Administration as staff member."),d()(),l(9,"p")(10,"uds-translate"),g(11,"This means that you have restricted access to elements."),d()(),l(12,"p")(13,"uds-translate"),g(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),I(15,"br"),l(16,"p")(17,"uds-translate"),g(18,"Thank you."),d()()()()())}var mT=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}onResize(t){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()}ngOnInit(){if(this.api.user.isAdmin){this.rest.system.information().then(t=>{this.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",t.users).replace("#GRP_NUMBER#",t.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",t.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",t.user_services)},t.restrained_services_pools>0&&(this.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",t.restrained_services_pools))});for(let t of["assigned","inuse"])this.rest.system.stats(t).then(n=>{let o={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:n.map(a=>Bi("SHORT_DATE_FORMAT",new Date(a.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:t==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:n.map(a=>a.value)}]};t==="assigned"?this.assignedChartOpts=o:this.inuseChartOpts=o})}}chartInit(t,n){t==="assigned"?this.assignedChartInstance=n:this.inuseChartInstance=n}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-summary"]],hostBindings:function(n,o){n&1&&b("resize",function(s){return o.onResize(s)},!1,Vm)},decls:11,vars:3,consts:[["noAdmin",""],[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],[1,"admin"],[1,"information"],[1,"info-panel"],[1,"info-panel-data"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/authenticators"],["mat-button","","routerLink","/pools/service-pools"],["class","info-panel info-danger",4,"ngIf"],[1,"statistics"],[1,"statistics-chart"],[1,"statistics-title"],["echarts","","theme","dark-digerati",3,"chartInit","options"],[1,"info-panel","info-danger"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){if(n&1&&(l(0,"div",1)(1,"div",2)(2,"div",3),I(3,"img",4),l(4,"uds-translate"),g(5,"Dashboard"),d()(),I(6,"div",5),d(),l(7,"div",6),x(8,a8,42,9,"div",7)(9,s8,19,0,"ng-template",null,0,hi),d()()),n&2){let a=Ie(10);m(3),p("src",o.api.staticURL("admin/img/icons/dashboard-monitor.png"),Ee),m(5),p("ngIf",o.api.user.isAdmin)("ngIfElse",a)}},dependencies:[he,gi,va,nf,ce],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.staff-container[_ngcontent-%COMP%]{margin-top:2rem;display:flex;justify-content:center}.staff[_ngcontent-%COMP%]{border:#337ab7;border-width:1px;border-style:solid}.staff-header[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#337ab7;color:#fff;font-weight:700;padding:.5rem 1rem}.staff-content[_ngcontent-%COMP%]{padding:.5rem 1rem}.admin[_ngcontent-%COMP%]{display:flex;flex-direction:column}.information[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.info-panel[_ngcontent-%COMP%]{border-color:#333;background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#f83600,#f9d423);color:#fff;font-weight:700;font-size:1.5em}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1rem}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1rem;width:5rem}.info-text[_ngcontent-%COMP%]{width:100%;text-align:center}.info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(60deg,#4b5266,#465d9c)}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}.statistics[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.statistics-title[_ngcontent-%COMP%]{background:linear-gradient(60deg,#4b5266,#465d9c);width:100%;color:#fff;padding:1rem 0rem;text-align:center}.statistics-chart[_ngcontent-%COMP%]{border-color:#333;box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%;height:400px} .dark-theme .staff{border:#337ab7} .dark-theme .staff-header{color:#fff} .dark-theme .info-panel{border-color:lightned(#303030,60%);background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:#00000024 0 1px 4px;color:#b3b3b3} .dark-theme .info-danger{background-image:linear-gradient(to right,#f83600,#f9d423);color:#fff} .dark-theme .info-panel-link{background:#4682b4} .dark-theme .info-panel-link a{color:#fff} .dark-theme .statistics-title{color:#fff} .dark-theme .statistics-chart{border-color:#333;box-shadow:#00000024 0 1px 4px;color:#333}']});let i=e;return i})();var c8=["notch"],l8=["matFormFieldNotchedOutline",""],d8=["*"],u8=["textField"],m8=["iconPrefixContainer"],h8=["textPrefixContainer"],p8=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],f8=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function g8(i,e){i&1&&I(0,"span",19)}function _8(i,e){if(i&1&&(l(0,"label",18),ae(1,1),x(2,g8,1,0,"span",19),d()),i&2){let r=_(2);p("floating",r._shouldLabelFloat())("monitorResize",r._hasOutline())("id",r._labelId),ie("for",r._control.disableAutomaticLabeling?null:r._control.id),m(2),xe(!r.hideRequiredMarker&&r._control.required?2:-1)}}function v8(i,e){if(i&1&&x(0,_8,3,5,"label",18),i&2){let r=_();xe(r._hasFloatingLabel()?0:-1)}}function b8(i,e){i&1&&I(0,"div",5)}function y8(i,e){}function w8(i,e){if(i&1&&x(0,y8,0,0,"ng-template",11),i&2){_(2);let r=Ie(1);p("ngTemplateOutlet",r)}}function C8(i,e){if(i&1&&(l(0,"div",7),x(1,w8,1,1,null,11),d()),i&2){let r=_();p("matFormFieldNotchedOutlineOpen",r._shouldLabelFloat()),m(),xe(r._forceDisplayInfixLabel()?-1:1)}}function x8(i,e){i&1&&(l(0,"div",8,2),ae(2,2),d())}function D8(i,e){i&1&&(l(0,"div",9,3),ae(2,3),d())}function S8(i,e){}function E8(i,e){if(i&1&&x(0,S8,0,0,"ng-template",11),i&2){_();let r=Ie(1);p("ngTemplateOutlet",r)}}function I8(i,e){i&1&&(l(0,"div",12),ae(1,4),d())}function M8(i,e){i&1&&(l(0,"div",13),ae(1,5),d())}function T8(i,e){i&1&&I(0,"div",14)}function k8(i,e){if(i&1&&(l(0,"div",16),ae(1,6),d()),i&2){let r=_();p("@transitionMessages",r._subscriptAnimationState)}}function A8(i,e){if(i&1&&(l(0,"mat-hint",20),g(1),d()),i&2){let r=_(2);p("id",r._hintLabelId),m(),He(r.hintLabel)}}function O8(i,e){if(i&1&&(l(0,"div",17),x(1,A8,2,2,"mat-hint",20),ae(2,7),I(3,"div",21),ae(4,8),d()),i&2){let r=_();p("@transitionMessages",r._subscriptAnimationState),m(),xe(r.hintLabel?1:-1)}}var Ae=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-label"]],standalone:!0});let i=e;return i})();var R8=new O("MatError");var P8=0,hT=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${P8++}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(Di("id",o.id),ie("align",null),ne("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=e;return i})(),F8=new O("MatPrefix");var wT=new O("MatSuffix"),oo=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[be([{provide:wT,useExisting:e}])]});let i=e;return i})(),CT=new O("FloatingLabelParent"),pT=(()=>{let e=class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=k(kp),this._ngZone=k(Z),this._parent=k(CT),this._resizeSubscription=new Ce}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return N8(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(n){return new(n||e)(h(G))},e.\u0275dir=N({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=e;return i})();function N8(i){let e=i;if(e.offsetParent!==null)return e.scrollWidth;let r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);let t=r.scrollWidth;return r.remove(),t}var fT="mdc-line-ripple--active",of="mdc-line-ripple--deactivating",gT=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._handleTransitionEnd=o=>{let a=this._elementRef.nativeElement.classList,s=a.contains(of);o.propertyName==="opacity"&&s&&a.remove(fT,of)},n.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(of),t.add(fT)}deactivate(){this._elementRef.nativeElement.classList.add(of)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z))},e.\u0275dir=N({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=e;return i})(),_T=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._ngZone=n,this.open=!1}ngAfterViewInit(){let t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){!this.open||!t?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z))},e.\u0275cmp=S({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&le(c8,5),n&2){let a;Q(a=K())&&(o._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[re],attrs:l8,ngContentSelectors:d8,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(n,o){n&1&&(Ue(),I(0,"div",1),l(1,"div",2,0),ae(3),d(),I(4,"div",3))},encapsulation:2,changeDetection:0});let i=e;return i})(),L8={transitionMessages:li("transitionMessages",[Pt("enter",Me({opacity:1,transform:"translateY(0%)"})),xt("void => enter",[Me({opacity:0,transform:"translateY(-5px)"}),Et("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ca=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e});let i=e;return i})();var Mo=new O("MatFormField"),Cy=new O("MAT_FORM_FIELD_DEFAULT_OPTIONS"),vT=0,bT="fill",V8="auto",yT="fixed",j8="translateY(-50%)",ge=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Nn(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||V8}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){let n=this._appearance,o=t||this._defaults?.appearance||bT;this._appearance=o,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||yT}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||yT}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,n,o,a,s,c,u,f){this._elementRef=t,this._changeDetectorRef=n,this._dir=a,this._platform=s,this._defaults=c,this._animationMode=u,this._hideRequiredMarker=!1,this.color="primary",this._appearance=bT,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${vT++}`,this._hintLabelId=`mat-mdc-hint-${vT++}`,this._subscriptAnimationState="",this._destroyed=new W,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=k(Pe),c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${t.controlType}`),t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(fe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),yt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),yl(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(fe(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(t){let n=this._control?this._control.ngControl:null;return n&&n[t]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(a=>a.align==="start"):null,o=this._hintChildren?this._hintChildren.find(a=>a.align==="end"):null;n?t.push(n.id):this._hintLabel&&t.push(this._hintLabelId),o&&t.push(o.id)}else this._errorChildren&&t.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let t=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){t.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,a=n?.getBoundingClientRect().width??0,s=o?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",u=`${a+s}px`,v=`calc(${c} * (${u} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;t.style.transform=`var( + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Ta(i,e){if(i){let r=i.indexOf(e);0<=r&&i.splice(r,1)}}var Ce=class i{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:t}=this;if(Be(t))try{t()}catch(o){e=o instanceof ou?o.errors:[o]}let{_finalizers:n}=this;if(n){this._finalizers=null;for(let o of n)try{mC(o)}catch(a){e=e??[],a instanceof ou?e=[...e,...a.errors]:e.push(a)}}if(e)throw new ou(e)}}add(e){var r;if(e&&e!==this)if(this.closed)mC(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Ta(r,e)}remove(e){let{_finalizers:r}=this;r&&Ta(r,e),e instanceof i&&e._removeParent(this)}};Ce.EMPTY=(()=>{let i=new Ce;return i.closed=!0,i})();var Eg=Ce.EMPTY;function ru(i){return i instanceof Ce||i&&"closed"in i&&Be(i.remove)&&Be(i.add)&&Be(i.unsubscribe)}function mC(i){Be(i)?i():i.unsubscribe()}var mo={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ys={setTimeout(i,e,...r){let{delegate:t}=ys;return t?.setTimeout?t.setTimeout(i,e,...r):setTimeout(i,e,...r)},clearTimeout(i){let{delegate:e}=ys;return(e?.clearTimeout||clearTimeout)(i)},delegate:void 0};function au(i){ys.setTimeout(()=>{let{onUnhandledError:e}=mo;if(e)e(i);else throw i})}function ka(){}var hC=Ig("C",void 0,void 0);function pC(i){return Ig("E",void 0,i)}function fC(i){return Ig("N",i,void 0)}function Ig(i,e,r){return{kind:i,value:e,error:r}}var Aa=null;function ws(i){if(mo.useDeprecatedSynchronousErrorHandling){let e=!Aa;if(e&&(Aa={errorThrown:!1,error:null}),i(),e){let{errorThrown:r,error:t}=Aa;if(Aa=null,r)throw t}}else i()}function gC(i){mo.useDeprecatedSynchronousErrorHandling&&Aa&&(Aa.errorThrown=!0,Aa.error=i)}var Oa=class extends Ce{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,ru(e)&&e.add(this)):this.destination=tP}static create(e,r,t){return new ho(e,r,t)}next(e){this.isStopped?Tg(fC(e),this):this._next(e)}error(e){this.isStopped?Tg(pC(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Tg(hC,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},JR=Function.prototype.bind;function Mg(i,e){return JR.call(i,e)}var kg=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(t){su(t)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(t){su(t)}else su(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){su(r)}}},ho=class extends Oa{constructor(e,r,t){super();let n;if(Be(e)||!e)n={next:e??void 0,error:r??void 0,complete:t??void 0};else{let o;this&&mo.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),n={next:e.next&&Mg(e.next,o),error:e.error&&Mg(e.error,o),complete:e.complete&&Mg(e.complete,o)}):n=e}this.destination=new kg(n)}};function su(i){mo.useDeprecatedSynchronousErrorHandling?gC(i):au(i)}function eP(i){throw i}function Tg(i,e){let{onStoppedNotification:r}=mo;r&&ys.setTimeout(()=>r(i,e))}var tP={closed:!0,next:ka,error:eP,complete:ka};var Cs=typeof Symbol=="function"&&Symbol.observable||"@@observable";function sn(i){return i}function Ag(...i){return Og(i)}function Og(i){return i.length===0?sn:i.length===1?i[0]:function(r){return i.reduce((t,n)=>n(t),r)}}var Re=(()=>{class i{constructor(r){r&&(this._subscribe=r)}lift(r){let t=new i;return t.source=this,t.operator=r,t}subscribe(r,t,n){let o=nP(r)?r:new ho(r,t,n);return ws(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(t){r.error(t)}}forEach(r,t){return t=_C(t),new t((n,o)=>{let a=new ho({next:s=>{try{r(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:n});this.subscribe(a)})}_subscribe(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)}[Cs](){return this}pipe(...r){return Og(r)(this)}toPromise(r){return r=_C(r),new r((t,n)=>{let o;this.subscribe(a=>o=a,a=>n(a),()=>t(o))})}}return i.create=e=>new i(e),i})();function _C(i){var e;return(e=i??mo.Promise)!==null&&e!==void 0?e:Promise}function iP(i){return i&&Be(i.next)&&Be(i.error)&&Be(i.complete)}function nP(i){return i&&i instanceof Oa||iP(i)&&ru(i)}function Rg(i){return Be(i?.lift)}function ze(i){return e=>{if(Rg(e))return e.lift(function(r){try{return i(r,this)}catch(t){this.error(t)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ve(i,e,r,t,n){return new Pg(i,e,r,t,n)}var Pg=class extends Oa{constructor(e,r,t,n,o,a){super(e),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=r?function(s){try{r(s)}catch(c){e.error(c)}}:super._next,this._error=n?function(s){try{n(s)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=t?function(){try{t()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function xs(){return ze((i,e)=>{let r=null;i._refCount++;let t=Ve(e,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount){r=null;return}let n=i._connection,o=r;r=null,n&&(!o||n===o)&&n.unsubscribe(),e.unsubscribe()});i.subscribe(t),t.closed||(r=i.connect())})}var Nr=class extends Re{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Rg(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ce;let r=this.getSubject();e.add(this.source.subscribe(Ve(r,void 0,()=>{this._teardown(),r.complete()},t=>{this._teardown(),r.error(t)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ce.EMPTY)}return e}refCount(){return xs()(this)}};var vC=Fr(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var W=(()=>{class i extends Re{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let t=new cu(this,this);return t.operator=r,t}_throwIfClosed(){if(this.closed)throw new vC}next(r){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let t of this.currentObservers)t.next(r)}})}error(r){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:t}=this;for(;t.length;)t.shift().error(r)}})}complete(){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:t,isStopped:n,observers:o}=this;return t||n?Eg:(this.currentObservers=null,o.push(r),new Ce(()=>{this.currentObservers=null,Ta(o,r)}))}_checkFinalizedStatuses(r){let{hasError:t,thrownError:n,isStopped:o}=this;t?r.error(n):o&&r.complete()}asObservable(){let r=new Re;return r.source=this,r}}return i.create=(e,r)=>new cu(e,r),i})(),cu=class extends W{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,t;(t=(r=this.destination)===null||r===void 0?void 0:r.next)===null||t===void 0||t.call(r,e)}error(e){var r,t;(t=(r=this.destination)===null||r===void 0?void 0:r.error)===null||t===void 0||t.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,t;return(t=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&t!==void 0?t:Eg}};var $t=class extends W{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:t}=this;if(e)throw r;return this._throwIfClosed(),t}next(e){super.next(this._value=e)}};var qc={now(){return(qc.delegate||Date).now()},delegate:void 0};var $n=class extends W{constructor(e=1/0,r=1/0,t=qc){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:t,_infiniteTimeWindow:n,_timestampProvider:o,_windowTime:a}=this;r||(t.push(e),!n&&t.push(o.now()+a)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:t,_buffer:n}=this,o=n.slice();for(let a=0;abC(e)&&i()),e},clearImmediate(i){bC(i)}};var{setImmediate:rP,clearImmediate:aP}=yC,Qc={setImmediate(...i){let{delegate:e}=Qc;return(e?.setImmediate||rP)(...i)},clearImmediate(i){let{delegate:e}=Qc;return(e?.clearImmediate||aP)(i)},delegate:void 0};var du=class extends Ds{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,t=0){return t!==null&&t>0?super.requestAsyncId(e,r,t):(e.actions.push(this),e._scheduled||(e._scheduled=Qc.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,t=0){var n;if(t!=null?t>0:this.delay>0)return super.recycleAsyncId(e,r,t);let{actions:o}=e;r!=null&&((n=o[o.length-1])===null||n===void 0?void 0:n.id)!==r&&(Qc.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var Ss=class i{constructor(e,r=i.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,t){return new this.schedulerActionCtor(this,e).schedule(t,r)}};Ss.now=qc.now;var Es=class extends Ss{constructor(e,r=Ss.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let t;this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}}};var uu=class extends Es{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:t}=this,n;e=e||t.shift();do if(n=e.execute(e.state,e.delay))break;while((e=t[0])&&e.id===r&&t.shift());if(this._active=!1,n){for(;(e=t[0])&&e.id===r&&t.shift();)e.unsubscribe();throw n}}};var Kc=new uu(du);var Ki=new Es(Ds),Lg=Ki;var Ti=new Re(i=>i.complete());function mu(i){return i&&Be(i.schedule)}function Vg(i){return i[i.length-1]}function hu(i){return Be(Vg(i))?i.pop():void 0}function Oo(i){return mu(Vg(i))?i.pop():void 0}function wC(i,e){return typeof Vg(i)=="number"?i.pop():e}function xC(i,e,r,t){function n(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(f){try{u(t.next(f))}catch(v){a(v)}}function c(f){try{u(t.throw(f))}catch(v){a(v)}}function u(f){f.done?o(f.value):n(f.value).then(s,c)}u((t=t.apply(i,e||[])).next())})}function CC(i){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&i[e],t=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&t>=i.length&&(i=void 0),{value:i&&i[t++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ra(i){return this instanceof Ra?(this.v=i,this):new Ra(i)}function DC(i,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r.apply(i,e||[]),n,o=[];return n={},s("next"),s("throw"),s("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(x){return function(E){return Promise.resolve(E).then(x,v)}}function s(x,E){t[x]&&(n[x]=function(R){return new Promise(function(j,F){o.push([x,R,j,F])>1||c(x,R)})},E&&(n[x]=E(n[x])))}function c(x,E){try{u(t[x](E))}catch(R){C(o[0][3],R)}}function u(x){x.value instanceof Ra?Promise.resolve(x.value.v).then(f,v):C(o[0][2],x)}function f(x){c("next",x)}function v(x){c("throw",x)}function C(x,E){x(E),o.shift(),o.length&&c(o[0][0],o[0][1])}}function SC(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],r;return e?e.call(i):(i=typeof CC=="function"?CC(i):i[Symbol.iterator](),r={},t("next"),t("throw"),t("return"),r[Symbol.asyncIterator]=function(){return this},r);function t(o){r[o]=i[o]&&function(a){return new Promise(function(s,c){a=i[o](a),n(s,c,a.done,a.value)})}}function n(o,a,s,c){Promise.resolve(c).then(function(u){o({value:u,done:s})},a)}}var Is=i=>i&&typeof i.length=="number"&&typeof i!="function";function pu(i){return Be(i?.then)}function fu(i){return Be(i[Cs])}function gu(i){return Symbol.asyncIterator&&Be(i?.[Symbol.asyncIterator])}function _u(i){return new TypeError(`You provided ${i!==null&&typeof i=="object"?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function sP(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vu=sP();function bu(i){return Be(i?.[vu])}function yu(i){return DC(this,arguments,function*(){let r=i.getReader();try{for(;;){let{value:t,done:n}=yield Ra(r.read());if(n)return yield Ra(void 0);yield yield Ra(t)}}finally{r.releaseLock()}})}function wu(i){return Be(i?.getReader)}function St(i){if(i instanceof Re)return i;if(i!=null){if(fu(i))return cP(i);if(Is(i))return lP(i);if(pu(i))return dP(i);if(gu(i))return EC(i);if(bu(i))return uP(i);if(wu(i))return mP(i)}throw _u(i)}function cP(i){return new Re(e=>{let r=i[Cs]();if(Be(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function lP(i){return new Re(e=>{for(let r=0;r{i.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,au)})}function uP(i){return new Re(e=>{for(let r of i)if(e.next(r),e.closed)return;e.complete()})}function EC(i){return new Re(e=>{hP(i,e).catch(r=>e.error(r))})}function mP(i){return EC(yu(i))}function hP(i,e){var r,t,n,o;return xC(this,void 0,void 0,function*(){try{for(r=SC(i);t=yield r.next(),!t.done;){let a=t.value;if(e.next(a),e.closed)return}}catch(a){n={error:a}}finally{try{t&&!t.done&&(o=r.return)&&(yield o.call(r))}finally{if(n)throw n.error}}e.complete()})}function Zi(i,e,r,t=0,n=!1){let o=e.schedule(function(){r(),n?i.add(this.schedule(null,t)):this.unsubscribe()},t);if(i.add(o),!n)return o}function Cu(i,e=0){return ze((r,t)=>{r.subscribe(Ve(t,n=>Zi(t,i,()=>t.next(n),e),()=>Zi(t,i,()=>t.complete(),e),n=>Zi(t,i,()=>t.error(n),e)))})}function xu(i,e=0){return ze((r,t)=>{t.add(i.schedule(()=>r.subscribe(t),e))})}function IC(i,e){return St(i).pipe(xu(e),Cu(e))}function MC(i,e){return St(i).pipe(xu(e),Cu(e))}function TC(i,e){return new Re(r=>{let t=0;return e.schedule(function(){t===i.length?r.complete():(r.next(i[t++]),r.closed||this.schedule())})})}function kC(i,e){return new Re(r=>{let t;return Zi(r,e,()=>{t=i[vu](),Zi(r,e,()=>{let n,o;try{({value:n,done:o}=t.next())}catch(a){r.error(a);return}o?r.complete():r.next(n)},0,!0)}),()=>Be(t?.return)&&t.return()})}function Du(i,e){if(!i)throw new Error("Iterable cannot be null");return new Re(r=>{Zi(r,e,()=>{let t=i[Symbol.asyncIterator]();Zi(r,e,()=>{t.next().then(n=>{n.done?r.complete():r.next(n.value)})},0,!0)})})}function AC(i,e){return Du(yu(i),e)}function OC(i,e){if(i!=null){if(fu(i))return IC(i,e);if(Is(i))return TC(i,e);if(pu(i))return MC(i,e);if(gu(i))return Du(i,e);if(bu(i))return kC(i,e);if(wu(i))return AC(i,e)}throw _u(i)}function Qt(i,e){return e?OC(i,e):St(i)}function oe(...i){let e=Oo(i);return Qt(i,e)}function Ro(i,e){let r=Be(i)?i:()=>i,t=n=>n.error(r());return new Re(e?n=>e.schedule(t,0,n):t)}function Pa(i){return!!i&&(i instanceof Re||Be(i.lift)&&Be(i.subscribe))}var po=Fr(i=>function(){i(this),this.name="EmptyError",this.message="no elements in sequence"});function Su(i,e){let r=typeof e=="object";return new Promise((t,n)=>{let o=new ho({next:a=>{t(a),o.unsubscribe()},error:n,complete:()=>{r?t(e.defaultValue):n(new po)}});i.subscribe(o)})}function Eu(i){return i instanceof Date&&!isNaN(i)}var pP=Fr(i=>function(r=null){i(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function jg(i,e){let{first:r,each:t,with:n=fP,scheduler:o=e??Ki,meta:a=null}=Eu(i)?{first:i}:typeof i=="number"?{each:i}:i;if(r==null&&t==null)throw new TypeError("No timeout provided.");return ze((s,c)=>{let u,f,v=null,C=0,x=E=>{f=Zi(c,o,()=>{try{u.unsubscribe(),St(n({meta:a,lastValue:v,seen:C})).subscribe(c)}catch(R){c.error(R)}},E)};u=s.subscribe(Ve(c,E=>{f?.unsubscribe(),C++,c.next(v=E),t>0&&x(t)},void 0,void 0,()=>{f?.closed||f?.unsubscribe(),v=null})),!C&&x(r!=null?typeof r=="number"?r:+r-o.now():t)})}function fP(i){throw new pP(i)}function de(i,e){return ze((r,t)=>{let n=0;r.subscribe(Ve(t,o=>{t.next(i.call(e,o,n++))}))})}var{isArray:gP}=Array;function _P(i,e){return gP(e)?i(...e):i(e)}function Ms(i){return de(e=>_P(i,e))}var{isArray:vP}=Array,{getPrototypeOf:bP,prototype:yP,keys:wP}=Object;function Iu(i){if(i.length===1){let e=i[0];if(vP(e))return{args:e,keys:null};if(CP(e)){let r=wP(e);return{args:r.map(t=>e[t]),keys:r}}}return{args:i,keys:null}}function CP(i){return i&&typeof i=="object"&&bP(i)===yP}function Mu(i,e){return i.reduce((r,t,n)=>(r[t]=e[n],r),{})}function An(...i){let e=Oo(i),r=hu(i),{args:t,keys:n}=Iu(i);if(t.length===0)return Qt([],e);let o=new Re(xP(t,e,n?a=>Mu(n,a):sn));return r?o.pipe(Ms(r)):o}function xP(i,e,r=sn){return t=>{RC(e,()=>{let{length:n}=i,o=new Array(n),a=n,s=n;for(let c=0;c{let u=Qt(i[c],e),f=!1;u.subscribe(Ve(t,v=>{o[c]=v,f||(f=!0,s--),s||t.next(r(o.slice()))},()=>{--a||t.complete()}))},t)},t)}}function RC(i,e,r){i?Zi(r,i,e):e()}function PC(i,e,r,t,n,o,a,s){let c=[],u=0,f=0,v=!1,C=()=>{v&&!c.length&&!u&&e.complete()},x=R=>u{o&&e.next(R),u++;let j=!1;St(r(R,f++)).subscribe(Ve(e,F=>{n?.(F),o?x(F):e.next(F)},()=>{j=!0},void 0,()=>{if(j)try{for(u--;c.length&&uE(F)):E(F)}C()}catch(F){e.error(F)}}))};return i.subscribe(Ve(e,x,()=>{v=!0,C()})),()=>{s?.()}}function si(i,e,r=1/0){return Be(e)?si((t,n)=>de((o,a)=>e(t,o,n,a))(St(i(t,n))),r):(typeof e=="number"&&(r=e),ze((t,n)=>PC(t,n,i,r)))}function Lr(i=1/0){return si(sn,i)}function FC(){return Lr(1)}function Po(...i){return FC()(Qt(i,Oo(i)))}function Wn(i){return new Re(e=>{St(i()).subscribe(e)})}function Zc(...i){let e=hu(i),{args:r,keys:t}=Iu(i),n=new Re(o=>{let{length:a}=r;if(!a){o.complete();return}let s=new Array(a),c=a,u=a;for(let f=0;f{v||(v=!0,u--),s[f]=C},()=>c--,void 0,()=>{(!c||!v)&&(u||o.next(t?Mu(t,s):s),o.complete())}))}});return e?n.pipe(Ms(e)):n}var DP=["addListener","removeListener"],SP=["addEventListener","removeEventListener"],EP=["on","off"];function cn(i,e,r,t){if(Be(r)&&(t=r,r=void 0),t)return cn(i,e,r).pipe(Ms(t));let[n,o]=TP(i)?SP.map(a=>s=>i[a](e,s,r)):IP(i)?DP.map(NC(i,e)):MP(i)?EP.map(NC(i,e)):[];if(!n&&Is(i))return si(a=>cn(a,e,r))(St(i));if(!n)throw new TypeError("Invalid event target");return new Re(a=>{let s=(...c)=>a.next(1o(s)})}function NC(i,e){return r=>t=>i[r](e,t)}function IP(i){return Be(i.addListener)&&Be(i.removeListener)}function MP(i){return Be(i.on)&&Be(i.off)}function TP(i){return Be(i.addEventListener)&&Be(i.removeEventListener)}function fo(i=0,e,r=Lg){let t=-1;return e!=null&&(mu(e)?r=e:t=e),new Re(n=>{let o=Eu(i)?+i-r.now():i;o<0&&(o=0);let a=0;return r.schedule(function(){n.closed||(n.next(a++),0<=t?this.schedule(void 0,t):n.complete())},o)})}function Bg(i=0,e=Ki){return i<0&&(i=0),fo(i,i,e)}function yt(...i){let e=Oo(i),r=wC(i,1/0),t=i;return t.length?t.length===1?St(t[0]):Lr(r)(Qt(t,e)):Ti}function qe(i,e){return ze((r,t)=>{let n=0;r.subscribe(Ve(t,o=>i.call(e,o,n++)&&t.next(o)))})}function LC(i){return ze((e,r)=>{let t=!1,n=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,t){t=!1;let u=n;n=null,r.next(u)}a&&r.complete()},c=()=>{o=null,a&&r.complete()};e.subscribe(Ve(r,u=>{t=!0,n=u,o||St(i(u)).subscribe(o=Ve(r,s,c))},()=>{a=!0,(!t||!o||o.closed)&&r.complete()}))})}function Tu(i,e=Ki){return LC(()=>fo(i,e))}function zi(i){return ze((e,r)=>{let t=null,n=!1,o;t=e.subscribe(Ve(r,void 0,void 0,a=>{o=St(i(a,zi(i)(e))),t?(t.unsubscribe(),t=null,o.subscribe(r)):n=!0})),n&&(t.unsubscribe(),t=null,o.subscribe(r))})}function VC(i,e,r,t,n){return(o,a)=>{let s=r,c=e,u=0;o.subscribe(Ve(a,f=>{let v=u++;c=s?i(c,f,v):(s=!0,f),t&&a.next(c)},n&&(()=>{s&&a.next(c),a.complete()})))}}function rr(i,e){return Be(e)?si(i,e,1):si(i,1)}function ar(i,e=Ki){return ze((r,t)=>{let n=null,o=null,a=null,s=()=>{if(n){n.unsubscribe(),n=null;let u=o;o=null,t.next(u)}};function c(){let u=a+i,f=e.now();if(f{o=u,a=e.now(),n||(n=e.schedule(c,i),t.add(n))},()=>{s(),t.complete()},void 0,()=>{o=n=null}))})}function Vr(i){return ze((e,r)=>{let t=!1;e.subscribe(Ve(r,n=>{t=!0,r.next(n)},()=>{t||r.next(i),r.complete()}))})}function It(i){return i<=0?()=>Ti:ze((e,r)=>{let t=0;e.subscribe(Ve(r,n=>{++t<=i&&(r.next(n),i<=t&&r.complete())}))})}function jC(){return ze((i,e)=>{i.subscribe(Ve(e,ka))})}function Xc(i){return de(()=>i)}function zg(i,e){return e?r=>Po(e.pipe(It(1),jC()),r.pipe(zg(i))):si((r,t)=>St(i(r,t)).pipe(It(1),Xc(r)))}function jr(i,e=Ki){let r=fo(i,e);return zg(()=>r)}function Br(i,e=sn){return i=i??kP,ze((r,t)=>{let n,o=!0;r.subscribe(Ve(t,a=>{let s=e(a);(o||!i(n,s))&&(o=!1,n=s,t.next(a))}))})}function kP(i,e){return i===e}function ku(i=AP){return ze((e,r)=>{let t=!1;e.subscribe(Ve(r,n=>{t=!0,r.next(n)},()=>t?r.complete():r.error(i())))})}function AP(){return new po}function Fo(i){return ze((e,r)=>{try{e.subscribe(r)}finally{r.add(i)}})}function No(i,e){let r=arguments.length>=2;return t=>t.pipe(i?qe((n,o)=>i(n,o,t)):sn,It(1),r?Vr(e):ku(()=>new po))}function Ts(i){return i<=0?()=>Ti:ze((e,r)=>{let t=[];e.subscribe(Ve(r,n=>{t.push(n),i{for(let n of t)r.next(n);r.complete()},void 0,()=>{t=null}))})}function Ug(i,e){let r=arguments.length>=2;return t=>t.pipe(i?qe((n,o)=>i(n,o,t)):sn,Ts(1),r?Vr(e):ku(()=>new po))}function Hg(i,e){return ze(VC(i,e,arguments.length>=2,!0))}function Jc(i={}){let{connector:e=()=>new W,resetOnError:r=!0,resetOnComplete:t=!0,resetOnRefCountZero:n=!0}=i;return o=>{let a,s,c,u=0,f=!1,v=!1,C=()=>{s?.unsubscribe(),s=void 0},x=()=>{C(),a=c=void 0,f=v=!1},E=()=>{let R=a;x(),R?.unsubscribe()};return ze((R,j)=>{u++,!v&&!f&&C();let F=c=c??e();j.add(()=>{u--,u===0&&!v&&!f&&(s=$g(E,n))}),F.subscribe(j),!a&&u>0&&(a=new ho({next:_e=>F.next(_e),error:_e=>{v=!0,C(),s=$g(x,r,_e),F.error(_e)},complete:()=>{f=!0,C(),s=$g(x,t),F.complete()}}),St(R).subscribe(a))})(o)}}function $g(i,e,...r){if(e===!0){i();return}if(e===!1)return;let t=new ho({next:()=>{t.unsubscribe(),i()}});return St(e(...r)).subscribe(t)}function Au(i,e,r){let t,n=!1;return i&&typeof i=="object"?{bufferSize:t=1/0,windowTime:e=1/0,refCount:n=!1,scheduler:r}=i:t=i??1/0,Jc({connector:()=>new $n(t,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:n})}function Fa(i){return qe((e,r)=>i<=r)}function Ot(...i){let e=Oo(i);return ze((r,t)=>{(e?Po(i,r,e):Po(i,r)).subscribe(t)})}function Mt(i,e){return ze((r,t)=>{let n=null,o=0,a=!1,s=()=>a&&!n&&t.complete();r.subscribe(Ve(t,c=>{n?.unsubscribe();let u=0,f=o++;St(i(c,f)).subscribe(n=Ve(t,v=>t.next(e?e(c,v,f,u++):v),()=>{n=null,s()}))},()=>{a=!0,s()}))})}function fe(i){return ze((e,r)=>{St(i).subscribe(Ve(r,()=>r.complete(),ka)),!r.closed&&e.subscribe(r)})}function Wg(i,e=!1){return ze((r,t)=>{let n=0;r.subscribe(Ve(t,o=>{let a=i(o,n++);(a||e)&&t.next(o),!a&&t.complete()}))})}function zt(i,e,r){let t=Be(i)||e||r?{next:i,error:e,complete:r}:i;return t?ze((n,o)=>{var a;(a=t.subscribe)===null||a===void 0||a.call(t);let s=!0;n.subscribe(Ve(o,c=>{var u;(u=t.next)===null||u===void 0||u.call(t,c),o.next(c)},()=>{var c;s=!1,(c=t.complete)===null||c===void 0||c.call(t),o.complete()},c=>{var u;s=!1,(u=t.error)===null||u===void 0||u.call(t,c),o.error(c)},()=>{var c,u;s&&((c=t.unsubscribe)===null||c===void 0||c.call(t)),(u=t.finalize)===null||u===void 0||u.call(t)}))}):sn}function BC(i,e){return ze((r,t)=>{let{leading:n=!0,trailing:o=!1}=e??{},a=!1,s=null,c=null,u=!1,f=()=>{c?.unsubscribe(),c=null,o&&(x(),u&&t.complete())},v=()=>{c=null,u&&t.complete()},C=E=>c=St(i(E)).subscribe(Ve(t,f,v)),x=()=>{if(a){a=!1;let E=s;s=null,t.next(E),!u&&C(E)}};r.subscribe(Ve(t,E=>{a=!0,s=E,!(c&&!c.closed)&&(n?x():C(E))},()=>{u=!0,!(o&&a&&c&&!c.closed)&&t.complete()}))})}function Gg(i,e=Ki,r){let t=fo(i,e);return BC(()=>t,r)}var Ax="https://g.co/ng/security#xss",te=class extends Error{constructor(e,r){super(Cm(e,r)),this.code=e}};function Cm(i,e){return`${`NG0${Math.abs(i)}`}${e?": "+e:""}`}function dl(i){return{toString:i}.toString()}var Ou="__parameters__";function OP(i){return function(...r){if(i){let t=i(...r);for(let n in t)this[n]=t[n]}}}function Ox(i,e,r){return dl(()=>{let t=OP(e);function n(...o){if(this instanceof n)return t.apply(this,o),this;let a=new n(...o);return s.annotation=a,s;function s(c,u,f){let v=c.hasOwnProperty(Ou)?c[Ou]:Object.defineProperty(c,Ou,{value:[]})[Ou];for(;v.length<=f;)v.push(null);return(v[f]=v[f]||[]).push(a),c}}return r&&(n.prototype=Object.create(r.prototype)),n.prototype.ngMetadataName=i,n.annotationCls=n,n})}var dn=globalThis;function Kt(i){for(let e in i)if(i[e]===Kt)return e;throw Error("Could not find renamed property on target object.")}function RP(i,e){for(let r in e)e.hasOwnProperty(r)&&!i.hasOwnProperty(r)&&(i[r]=e[r])}function ln(i){if(typeof i=="string")return i;if(Array.isArray(i))return"["+i.map(ln).join(", ")+"]";if(i==null)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;let e=i.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function a_(i,e){return i==null||i===""?e===null?"":e:e==null||e===""?i:i+" "+e}var PP=Kt({__forward_ref__:Kt});function Wt(i){return i.__forward_ref__=Wt,i.toString=function(){return ln(this())},i}function Ui(i){return Rx(i)?i():i}function Rx(i){return typeof i=="function"&&i.hasOwnProperty(PP)&&i.__forward_ref__===Wt}function V(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function J(i){return{providers:i.providers||[],imports:i.imports||[]}}function xm(i){return zC(i,Fx)||zC(i,Nx)}function Px(i){return xm(i)!==null}function zC(i,e){return i.hasOwnProperty(e)?i[e]:null}function FP(i){let e=i&&(i[Fx]||i[Nx]);return e||null}function UC(i){return i&&(i.hasOwnProperty(HC)||i.hasOwnProperty(NP))?i[HC]:null}var Fx=Kt({\u0275prov:Kt}),HC=Kt({\u0275inj:Kt}),Nx=Kt({ngInjectableDef:Kt}),NP=Kt({ngInjectorDef:Kt}),O=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=V({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Lx(i){return i&&!!i.\u0275providers}var LP=Kt({\u0275cmp:Kt}),VP=Kt({\u0275dir:Kt}),jP=Kt({\u0275pipe:Kt}),BP=Kt({\u0275mod:Kt}),Gu=Kt({\u0275fac:Kt}),el=Kt({__NG_ELEMENT_ID__:Kt}),$C=Kt({__NG_ENV_ID__:Kt});function ja(i){return typeof i=="string"?i:i==null?"":String(i)}function zP(i){return typeof i=="function"?i.name||i.toString():typeof i=="object"&&i!=null&&typeof i.type=="function"?i.type.name||i.type.toString():ja(i)}function UP(i,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${i}`:"";throw new te(-200,i)}function pv(i,e){throw new te(-201,!1)}var gt=function(i){return i[i.Default=0]="Default",i[i.Host=1]="Host",i[i.Self=2]="Self",i[i.SkipSelf=4]="SkipSelf",i[i.Optional=8]="Optional",i}(gt||{}),s_;function Vx(){return s_}function gn(i){let e=s_;return s_=i,e}function jx(i,e,r){let t=xm(i);if(t&&t.providedIn=="root")return t.value===void 0?t.value=t.factory():t.value;if(r>.Optional)return null;if(e!==void 0)return e;pv(i,"Injector")}var HP={},il=HP,c_="__NG_DI_FLAG__",qu="ngTempTokenPath",$P="ngTokenPath",WP=/\n/gm,GP="\u0275",WC="__source",Rs;function qP(){return Rs}function zr(i){let e=Rs;return Rs=i,e}function YP(i,e=gt.Default){if(Rs===void 0)throw new te(-203,!1);return Rs===null?jx(i,void 0,e):Rs.get(i,e>.Optional?null:void 0,e)}function M(i,e=gt.Default){return(Vx()||YP)(Ui(i),e)}function k(i,e=gt.Default){return M(i,Dm(e))}function Dm(i){return typeof i>"u"||typeof i=="number"?i:0|(i.optional&&8)|(i.host&&1)|(i.self&&2)|(i.skipSelf&&4)}function l_(i){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let a in e)if(e.hasOwnProperty(a)){let s=e[a];o.push(a+":"+(typeof s=="string"?JSON.stringify(s):ln(s)))}n=`{${o.join(", ")}}`}return`${r}${t?"("+t+")":""}[${n}]: ${i.replace(WP,` + `)}`}var Yn=Bx(Ox("Optional"),8);var bo=Bx(Ox("SkipSelf"),4);function Ba(i,e){let r=i.hasOwnProperty(Gu);return r?i[Gu]:null}function XP(i,e,r){if(i.length!==e.length)return!1;for(let t=0;tArray.isArray(r)?fv(r,e):e(r))}function zx(i,e,r){e>=i.length?i.push(r):i.splice(e,0,r)}function Yu(i,e){return e>=i.length-1?i.pop():i.splice(e,1)[0]}function eF(i,e){let r=[];for(let t=0;te;){let o=n-2;i[n]=i[o],n--}i[e]=r,i[e+1]=t}}function Sm(i,e,r){let t=ul(i,e);return t>=0?i[t|1]=r:(t=~t,tF(i,t,e,r)),t}function qg(i,e){let r=ul(i,e);if(r>=0)return i[r|1]}function ul(i,e){return iF(i,e,1)}function iF(i,e,r){let t=0,n=i.length>>r;for(;n!==t;){let o=t+(n-t>>1),a=i[o<e?n=o:t=o+1}return~(n<e){a=o-1;break}}}for(;o-1){let o;for(;++no?v="":v=n[f+1].toLowerCase(),t&2&&u!==v){if(go(t))return!1;a=!0}}}}return go(t)||a}function go(i){return(i&1)===0}function cF(i,e,r,t){if(e===null)return-1;let n=0;if(t||!r){let o=!1;for(;n-1)for(r++;r0?'="'+s+'"':"")+"]"}else t&8?n+="."+a:t&4&&(n+=" "+a);else n!==""&&!go(a)&&(e+=qC(o,n),n=""),t=a,o=o||!go(t);r++}return n!==""&&(e+=qC(o,n)),e}function pF(i){return i.map(hF).join(",")}function fF(i){let e=[],r=[],t=1,n=2;for(;t{let e=Zx(i),r=mt(B({},e),{decls:i.decls,vars:i.vars,template:i.template,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,onPush:i.changeDetection===$x.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&i.dependencies||null,getStandaloneInjector:null,signals:i.signals??!1,data:i.data||{},encapsulation:i.encapsulation||jo.Emulated,styles:i.styles||_n,_:null,schemas:i.schemas||null,tView:null,id:""});Xx(r);let t=i.dependencies;return r.directiveDefs=Ku(t,!1),r.pipeDefs=Ku(t,!0),r.id=vF(r),r})}function gF(i){return $r(i)||_v(i)}function _F(i){return i!==null}function ee(i){return dl(()=>({type:i.type,bootstrap:i.bootstrap||_n,declarations:i.declarations||_n,imports:i.imports||_n,exports:i.exports||_n,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function YC(i,e){if(i==null)return sr;let r={};for(let t in i)if(i.hasOwnProperty(t)){let n=i[t],o,a,s=Ns.None;Array.isArray(n)?(s=n[0],o=n[1],a=n[2]??o):(o=n,a=n),e?(r[o]=s!==Ns.None?[t,s]:t,e[o]=a):r[o]=t}return r}function N(i){return dl(()=>{let e=Zx(i);return Xx(e),e})}function Qa(i){return{type:i.type,name:i.name,factory:null,pure:i.pure!==!1,standalone:i.standalone===!0,onDestroy:i.type.prototype.ngOnDestroy||null}}function $r(i){return i[LP]||null}function _v(i){return i[VP]||null}function Yx(i){return i[jP]||null}function Qx(i){let e=$r(i)||_v(i)||Yx(i);return e!==null?e.standalone:!1}function Kx(i,e){let r=i[BP]||null;if(!r&&e===!0)throw new Error(`Type ${ln(i)} does not have '\u0275mod' property.`);return r}function Zx(i){let e={};return{type:i.type,providersResolver:null,factory:null,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:i.inputs||sr,exportAs:i.exportAs||null,standalone:i.standalone===!0,signals:i.signals===!0,selectors:i.selectors||_n,viewQuery:i.viewQuery||null,features:i.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:YC(i.inputs,e),outputs:YC(i.outputs),debugInfo:null}}function Xx(i){i.features?.forEach(e=>e(i))}function Ku(i,e){if(!i)return null;let r=e?Yx:gF;return()=>(typeof i=="function"?i():i).map(t=>r(t)).filter(_F)}function vF(i){let e=0,r=[i.selectors,i.ngContentSelectors,i.hostVars,i.hostAttrs,i.consts,i.vars,i.decls,i.encapsulation,i.standalone,i.signals,i.exportAs,JSON.stringify(i.inputs),JSON.stringify(i.outputs),Object.getOwnPropertyNames(i.type.prototype),!!i.contentQueries,!!i.viewQuery].join("|");for(let n of r)e=Math.imul(31,e)+n.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Em(i){return{\u0275providers:i}}function bF(...i){return{\u0275providers:Jx(!0,i),\u0275fromNgModule:!0}}function Jx(i,...e){let r=[],t=new Set,n,o=a=>{r.push(a)};return fv(e,a=>{let s=a;u_(s,o,[],t)&&(n||=[],n.push(s))}),n!==void 0&&eD(n,o),r}function eD(i,e){for(let r=0;r{e(o,t)})}}function u_(i,e,r,t){if(i=Ui(i),!i)return!1;let n=null,o=UC(i),a=!o&&$r(i);if(!o&&!a){let c=i.ngModule;if(o=UC(c),o)n=c;else return!1}else{if(a&&!a.standalone)return!1;n=i}let s=t.has(n);if(a){if(s)return!1;if(t.add(n),a.dependencies){let c=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of c)u_(u,e,r,t)}}else if(o){if(o.imports!=null&&!s){t.add(n);let u;try{fv(o.imports,f=>{u_(f,e,r,t)&&(u||=[],u.push(f))})}finally{}u!==void 0&&eD(u,e)}if(!s){let u=Ba(n)||(()=>new n);e({provide:n,useFactory:u,deps:_n},n),e({provide:Hx,useValue:n,multi:!0},n),e({provide:Fs,useValue:()=>M(n),multi:!0},n)}let c=o.providers;if(c!=null&&!s){let u=i;vv(c,f=>{e(f,u)})}}else return!1;return n!==i&&i.providers!==void 0}function vv(i,e){for(let r of i)Lx(r)&&(r=r.\u0275providers),Array.isArray(r)?vv(r,e):e(r)}var yF=Kt({provide:String,useValue:Kt});function tD(i){return i!==null&&typeof i=="object"&&yF in i}function wF(i){return!!(i&&i.useExisting)}function CF(i){return!!(i&&i.useFactory)}function Ls(i){return typeof i=="function"}function xF(i){return!!i.useClass}var Im=new O(""),ju={},DF={},Yg;function bv(){return Yg===void 0&&(Yg=new Qu),Yg}var Pi=class{},ol=class extends Pi{get destroyed(){return this._destroyed}constructor(e,r,t,n){super(),this.parent=r,this.source=t,this.scopes=n,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,h_(e,a=>this.processProvider(a)),this.records.set(Ux,ks(void 0,this)),n.has("environment")&&this.records.set(Pi,ks(void 0,this));let o=this.records.get(Im);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Hx,_n,gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=bt(null);try{for(let t of this._ngOnDestroyHooks)t.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let t of r)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),bt(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=zr(this),t=gn(void 0),n;try{return e()}finally{zr(r),gn(t)}}get(e,r=il,t=gt.Default){if(this.assertNotDestroyed(),e.hasOwnProperty($C))return e[$C](this);t=Dm(t);let n,o=zr(this),a=gn(void 0);try{if(!(t>.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=TF(e)&&xm(e);u&&this.injectableDefInScope(u)?c=ks(m_(e),ju):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let s=t>.Self?bv():this.parent;return r=t>.Optional&&r===il?null:r,s.get(e,r)}catch(s){if(s.name==="NullInjectorError"){if((s[qu]=s[qu]||[]).unshift(ln(e)),o)throw s;return KP(s,e,"R3InjectorError",this.source)}else throw s}finally{gn(a),zr(o)}}resolveInjectorInitializers(){let e=bt(null),r=zr(this),t=gn(void 0),n;try{let o=this.get(Fs,_n,gt.Self);for(let a of o)a()}finally{zr(r),gn(t),bt(e)}}toString(){let e=[],r=this.records;for(let t of r.keys())e.push(ln(t));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new te(205,!1)}processProvider(e){e=Ui(e);let r=Ls(e)?e:Ui(e&&e.provide),t=EF(e);if(!Ls(e)&&e.multi===!0){let n=this.records.get(r);n||(n=ks(void 0,ju,!0),n.factory=()=>l_(n.multi),this.records.set(r,n)),r=e,n.multi.push(e)}this.records.set(r,t)}hydrate(e,r){let t=bt(null);try{return r.value===ju&&(r.value=DF,r.value=r.factory()),typeof r.value=="object"&&r.value&&MF(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{bt(t)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Ui(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function m_(i){let e=xm(i),r=e!==null?e.factory:Ba(i);if(r!==null)return r;if(i instanceof O)throw new te(204,!1);if(i instanceof Function)return SF(i);throw new te(204,!1)}function SF(i){if(i.length>0)throw new te(204,!1);let r=FP(i);return r!==null?()=>r.factory(i):()=>new i}function EF(i){if(tD(i))return ks(void 0,i.useValue);{let e=iD(i);return ks(e,ju)}}function iD(i,e,r){let t;if(Ls(i)){let n=Ui(i);return Ba(n)||m_(n)}else if(tD(i))t=()=>Ui(i.useValue);else if(CF(i))t=()=>i.useFactory(...l_(i.deps||[]));else if(wF(i))t=()=>M(Ui(i.useExisting));else{let n=Ui(i&&(i.useClass||i.provide));if(IF(i))t=()=>new n(...l_(i.deps));else return Ba(n)||m_(n)}return t}function ks(i,e,r=!1){return{factory:i,value:e,multi:r?[]:void 0}}function IF(i){return!!i.deps}function MF(i){return i!==null&&typeof i=="object"&&typeof i.ngOnDestroy=="function"}function TF(i){return typeof i=="function"||typeof i=="object"&&i instanceof O}function h_(i,e){for(let r of i)Array.isArray(r)?h_(r,e):r&&Lx(r)?h_(r.\u0275providers,e):e(r)}function bn(i,e){i instanceof ol&&i.assertNotDestroyed();let r,t=zr(i),n=gn(void 0);try{return e()}finally{zr(t),gn(n)}}function nD(){return Vx()!==void 0||qP()!=null}function yv(i){if(!nD())throw new te(-203,!1)}function kF(i){let e=dn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function AF(i){return typeof i=="function"}var Ho=0,rt=1,tt=2,en=3,vo=4,yn=5,Vs=6,Zu=7,Xi=8,js=9,Bo=10,oi=11,rl=12,QC=13,Gs=14,On=15,za=16,As=17,cr=18,Mm=19,oD=20,Ur=21,Bu=22,Gn=23,Fi=25,wv=1;var Ua=7,Xu=8,Bs=9,Ji=10,Ju=function(i){return i[i.None=0]="None",i[i.HasTransplantedViews=2]="HasTransplantedViews",i}(Ju||{});function Hr(i){return Array.isArray(i)&&typeof i[wv]=="object"}function ur(i){return Array.isArray(i)&&i[wv]===!0}function Cv(i){return(i.flags&4)!==0}function Tm(i){return i.componentOffset>-1}function km(i){return(i.flags&1)===1}function lr(i){return!!i.template}function p_(i){return(i[tt]&512)!==0}var f_=class{constructor(e,r,t){this.previousValue=e,this.currentValue=r,this.firstChange=t}isFirstChange(){return this.firstChange}};function rD(i,e,r,t){e!==null?e.applyValueToInputSignal(e,t):i[r]=t}function Qe(){return aD}function aD(i){return i.type.prototype.ngOnChanges&&(i.setInput=RF),OF}Qe.ngInherit=!0;function OF(){let i=cD(this),e=i?.current;if(e){let r=i.previous;if(r===sr)i.previous=e;else for(let t in e)r[t]=e[t];i.current=null,this.ngOnChanges(e)}}function RF(i,e,r,t,n){let o=this.declaredInputs[t],a=cD(i)||PF(i,{previous:sr,current:null}),s=a.current||(a.current={}),c=a.previous,u=c[o];s[o]=new f_(u&&u.currentValue,r,c===sr),rD(i,e,n,r)}var sD="__ngSimpleChanges__";function cD(i){return i[sD]||null}function PF(i,e){return i[sD]=e}var KC=null;var Lo=function(i,e,r){KC?.(i,e,r)},lD="svg",FF="math";function zo(i){for(;Array.isArray(i);)i=i[Ho];return i}function NF(i){for(;Array.isArray(i);){if(typeof i[wv]=="object")return i;i=i[Ho]}return null}function dD(i,e){return zo(e[i])}function Qn(i,e){return zo(e[i.index])}function xv(i,e){return i.data[e]}function Dv(i,e){return i[e]}function Qr(i,e){let r=e[i];return Hr(r)?r:r[Ho]}function LF(i){return(i[tt]&4)===4}function Sv(i){return(i[tt]&128)===128}function VF(i){return ur(i[en])}function Wr(i,e){return e==null?null:i[e]}function uD(i){i[As]=0}function mD(i){i[tt]&1024||(i[tt]|=1024,Sv(i)&&Am(i))}function jF(i,e){for(;i>0;)e=e[Gs],i--;return e}function al(i){return!!(i[tt]&9216||i[Gn]?.dirty)}function g_(i){i[Bo].changeDetectionScheduler?.notify(7),i[tt]&64&&(i[tt]|=1024),al(i)&&Am(i)}function Am(i){i[Bo].changeDetectionScheduler?.notify(0);let e=Ha(i);for(;e!==null&&!(e[tt]&8192||(e[tt]|=8192,!Sv(e)));)e=Ha(e)}function hD(i,e){if((i[tt]&256)===256)throw new te(911,!1);i[Ur]===null&&(i[Ur]=[]),i[Ur].push(e)}function BF(i,e){if(i[Ur]===null)return;let r=i[Ur].indexOf(e);r!==-1&&i[Ur].splice(r,1)}function Ha(i){let e=i[en];return ur(e)?e[en]:e}var st={lFrame:CD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var pD=!1;function zF(){return st.lFrame.elementDepthCount}function UF(){st.lFrame.elementDepthCount++}function HF(){st.lFrame.elementDepthCount--}function fD(){return st.bindingsEnabled}function gD(){return st.skipHydrationRootTNode!==null}function $F(i){return st.skipHydrationRootTNode===i}function WF(){st.skipHydrationRootTNode=null}function Ye(){return st.lFrame.lView}function ii(){return st.lFrame.tView}function y(i){return st.lFrame.contextLView=i,i[Xi]}function w(i){return st.lFrame.contextLView=null,i}function Ni(){let i=_D();for(;i!==null&&i.type===64;)i=i.parent;return i}function _D(){return st.lFrame.currentTNode}function GF(){let i=st.lFrame,e=i.currentTNode;return i.isParent?e:e.parent}function Ka(i,e){let r=st.lFrame;r.currentTNode=i,r.isParent=e}function Ev(){return st.lFrame.isParent}function Iv(){st.lFrame.isParent=!1}function qF(){return st.lFrame.contextLView}function vD(){return pD}function ZC(i){pD=i}function ml(){let i=st.lFrame,e=i.bindingRootIndex;return e===-1&&(e=i.bindingRootIndex=i.tView.bindingStartIndex),e}function YF(){return st.lFrame.bindingIndex}function QF(i){return st.lFrame.bindingIndex=i}function Kr(){return st.lFrame.bindingIndex++}function Mv(i){let e=st.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+i,r}function KF(){return st.lFrame.inI18n}function ZF(i,e){let r=st.lFrame;r.bindingIndex=r.bindingRootIndex=i,__(e)}function XF(){return st.lFrame.currentDirectiveIndex}function __(i){st.lFrame.currentDirectiveIndex=i}function Tv(i){let e=st.lFrame.currentDirectiveIndex;return e===-1?null:i[e]}function bD(){return st.lFrame.currentQueryIndex}function kv(i){st.lFrame.currentQueryIndex=i}function JF(i){let e=i[rt];return e.type===2?e.declTNode:e.type===1?i[yn]:null}function yD(i,e,r){if(r>.SkipSelf){let n=e,o=i;for(;n=n.parent,n===null&&!(r>.Host);)if(n=JF(o),n===null||(o=o[Gs],n.type&10))break;if(n===null)return!1;e=n,i=o}let t=st.lFrame=wD();return t.currentTNode=e,t.lView=i,!0}function Av(i){let e=wD(),r=i[rt];st.lFrame=e,e.currentTNode=r.firstChild,e.lView=i,e.tView=r,e.contextLView=i,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function wD(){let i=st.lFrame,e=i===null?null:i.child;return e===null?CD(i):e}function CD(i){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return i!==null&&(i.child=e),e}function xD(){let i=st.lFrame;return st.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var DD=xD;function Ov(){let i=xD();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function eN(i){return(st.lFrame.contextLView=jF(i,st.lFrame.contextLView))[Xi]}function mr(){return st.lFrame.selectedIndex}function $a(i){st.lFrame.selectedIndex=i}function qs(){let i=st.lFrame;return xv(i.tView,i.selectedIndex)}function vi(){st.lFrame.currentNamespace=lD}function Zr(){tN()}function tN(){st.lFrame.currentNamespace=null}function iN(){return st.lFrame.currentNamespace}var SD=!0;function Om(){return SD}function Rm(i){SD=i}function nN(i,e,r){let{ngOnChanges:t,ngOnInit:n,ngDoCheck:o}=e.type.prototype;if(t){let a=aD(e);(r.preOrderHooks??=[]).push(i,a),(r.preOrderCheckHooks??=[]).push(i,a)}n&&(r.preOrderHooks??=[]).push(0-i,n),o&&((r.preOrderHooks??=[]).push(i,o),(r.preOrderCheckHooks??=[]).push(i,o))}function Pm(i,e){for(let r=e.directiveStart,t=e.directiveEnd;r=t)break}else e[c]<0&&(i[As]+=65536),(s>14>16&&(i[tt]&3)===e&&(i[tt]+=16384,XC(s,o)):XC(s,o)}var Ps=-1,Wa=class{constructor(e,r,t){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=t}};function rN(i){return i instanceof Wa}function aN(i){return(i.flags&8)!==0}function sN(i){return(i.flags&16)!==0}function ID(i){return i!==Ps}function em(i){return i&32767}function cN(i){return i>>16}function tm(i,e){let r=cN(i),t=e;for(;r>0;)t=t[Gs],r--;return t}var v_=!0;function im(i){let e=v_;return v_=i,e}var lN=256,MD=lN-1,TD=5,dN=0,Vo={};function uN(i,e,r){let t;typeof r=="string"?t=r.charCodeAt(0)||0:r.hasOwnProperty(el)&&(t=r[el]),t==null&&(t=r[el]=dN++);let n=t&MD,o=1<>TD)]|=o}function nm(i,e){let r=kD(i,e);if(r!==-1)return r;let t=e[rt];t.firstCreatePass&&(i.injectorIndex=e.length,Kg(t.data,i),Kg(e,null),Kg(t.blueprint,null));let n=Rv(i,e),o=i.injectorIndex;if(ID(n)){let a=em(n),s=tm(n,e),c=s[rt].data;for(let u=0;u<8;u++)e[o+u]=s[a+u]|c[a+u]}return e[o+8]=n,o}function Kg(i,e){i.push(0,0,0,0,0,0,0,0,e)}function kD(i,e){return i.injectorIndex===-1||i.parent&&i.parent.injectorIndex===i.injectorIndex||e[i.injectorIndex+8]===null?-1:i.injectorIndex}function Rv(i,e){if(i.parent&&i.parent.injectorIndex!==-1)return i.parent.injectorIndex;let r=0,t=null,n=e;for(;n!==null;){if(t=FD(n),t===null)return Ps;if(r++,n=n[Gs],t.injectorIndex!==-1)return t.injectorIndex|r<<16}return Ps}function b_(i,e,r){uN(i,e,r)}function mN(i,e){if(e==="class")return i.classes;if(e==="style")return i.styles;let r=i.attrs;if(r){let t=r.length,n=0;for(;n>20,v=t?s:s+f,C=n?s+f:u;for(let x=v;x=c&&E.type===r)return x}if(n){let x=a[c];if(x&&lr(x)&&x.type===r)return c}return null}function Ga(i,e,r,t){let n=i[r],o=e.data;if(rN(n)){let a=n;a.resolving&&UP(zP(o[r]));let s=im(a.canSeeViewProviders);a.resolving=!0;let c,u=a.injectImpl?gn(a.injectImpl):null,f=yD(i,t,gt.Default);try{n=i[r]=a.factory(void 0,o,i,t),e.firstCreatePass&&r>=t.directiveStart&&nN(r,o[r],e)}finally{u!==null&&gn(u),im(s),a.resolving=!1,DD()}}return n}function pN(i){if(typeof i=="string")return i.charCodeAt(0)||0;let e=i.hasOwnProperty(el)?i[el]:void 0;return typeof e=="number"?e>=0?e&MD:fN:e}function JC(i,e,r){let t=1<>TD)]&t)}function ex(i,e){return!(i>.Self)&&!(i>.Host&&e)}var Va=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,t){return RD(this._tNode,this._lView,e,Dm(t),r)}};function fN(){return new Va(Ni(),Ye())}function Lt(i){return dl(()=>{let e=i.prototype.constructor,r=e[Gu]||y_(e),t=Object.prototype,n=Object.getPrototypeOf(i.prototype).constructor;for(;n&&n!==t;){let o=n[Gu]||y_(n);if(o&&o!==r)return o;n=Object.getPrototypeOf(n)}return o=>new o})}function y_(i){return Rx(i)?()=>{let e=y_(Ui(i));return e&&e()}:Ba(i)}function gN(i,e,r,t,n){let o=i,a=e;for(;o!==null&&a!==null&&a[tt]&2048&&!(a[tt]&512);){let s=PD(o,a,r,t|gt.Self,Vo);if(s!==Vo)return s;let c=o.parent;if(!c){let u=a[oD];if(u){let f=u.get(r,Vo,t);if(f!==Vo)return f}c=FD(a),a=a[Gs]}o=c}return n}function FD(i){let e=i[rt],r=e.type;return r===2?e.declTNode:r===1?i[yn]:null}function mi(i){return mN(Ni(),i)}function tx(i,e=null,r=null,t){let n=ND(i,e,r,t);return n.resolveInjectorInitializers(),n}function ND(i,e=null,r=null,t,n=new Set){let o=[r||_n,bF(i)];return t=t||(typeof i=="object"?void 0:ln(i)),new ol(o,e||bv(),t||null,n)}var Na=class Na{static create(e,r){if(Array.isArray(e))return tx({name:""},r,e,"");{let t=e.name??"";return tx({name:t},e.parent,e.providers,t)}}};Na.THROW_IF_NOT_FOUND=il,Na.NULL=new Qu,Na.\u0275prov=V({token:Na,providedIn:"any",factory:()=>M(Ux)}),Na.__NG_ELEMENT_ID__=-1;var Pe=Na;var _N=new O("");_N.__NG_ELEMENT_ID__=i=>{let e=Ni();if(e===null)throw new te(204,!1);if(e.type&2)return e.value;if(i>.Optional)return null;throw new te(204,!1)};var vN="ngOriginalError";function Zg(i){return i[vN]}var un=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Zg(e);for(;r&&Zg(r);)r=Zg(r);return r||null}},LD=new O("",{providedIn:"root",factory:()=>k(un).handleError.bind(void 0)}),hl=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=bN,e.__NG_ENV_ID__=t=>t;let i=e;return i})(),w_=class extends hl{constructor(e){super(),this._lView=e}onDestroy(e){return hD(this._lView,e),()=>BF(this._lView,e)}};function bN(){return new w_(Ye())}function yN(){return Ys(Ni(),Ye())}function Ys(i,e){return new G(Qn(i,e))}var G=(()=>{let e=class e{constructor(t){this.nativeElement=t}};e.__NG_ELEMENT_ID__=yN;let i=e;return i})();function wN(i){return i instanceof G?i.nativeElement:i}var $o=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new $t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new e});let i=e;return i})();var C_=class extends W{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,nD()&&(this.destroyRef=k(hl,{optional:!0})??void 0,this.pendingTasks=k($o,{optional:!0})??void 0)}emit(e){let r=bt(null);try{super.next(e)}finally{bt(r)}}subscribe(e,r,t){let n=e,o=r||(()=>null),a=t;if(e&&typeof e=="object"){let c=e;n=c.next?.bind(c),o=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),n&&(n=this.wrapInTimeout(n)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:n,error:o,complete:a});return e instanceof Ce&&e.add(s),s}wrapInTimeout(e){return r=>{let t=this.pendingTasks?.add();setTimeout(()=>{e(r),t!==void 0&&this.pendingTasks?.remove(t)})}}},T=C_;function CN(){return this._results[Symbol.iterator]()}var qn=class i{get changes(){return this._changes??=new T}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=i.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=CN)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let t=JP(e);(this._changesDetected=!XP(this._results,t,r))&&(this._results=t,this.length=t.length,this.last=t[this.length-1],this.first=t[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function VD(i){return(i.flags&128)===128}var jD=new Map,xN=0;function DN(){return xN++}function SN(i){jD.set(i[Mm],i)}function EN(i){jD.delete(i[Mm])}var ix="__ngContext__";function Gr(i,e){Hr(e)?(i[ix]=e[Mm],SN(e)):i[ix]=e}function BD(i){return UD(i[rl])}function zD(i){return UD(i[vo])}function UD(i){for(;i!==null&&!ur(i);)i=i[vo];return i}var x_;function HD(i){x_=i}function $D(){if(x_!==void 0)return x_;if(typeof document<"u")return document;throw new te(210,!1)}var Qs=new O("",{providedIn:"root",factory:()=>IN}),IN="ng",Pv=new O(""),Kn=new O("",{providedIn:"platform",factory:()=>"unknown"});var Tt=new O(""),pl=new O("",{providedIn:"root",factory:()=>$D().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var MN="h",TN="b";var kN=()=>null;function Fv(i,e,r=!1){return kN(i,e,r)}var WD=!1,AN=new O("",{providedIn:"root",factory:()=>WD});var Ru;function ON(){if(Ru===void 0&&(Ru=null,dn.trustedTypes))try{Ru=dn.trustedTypes.createPolicy("angular",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Ru}function Fm(i){return ON()?.createHTML(i)||i}var Pu;function GD(){if(Pu===void 0&&(Pu=null,dn.trustedTypes))try{Pu=dn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return Pu}function nx(i){return GD()?.createHTML(i)||i}function ox(i){return GD()?.createScriptURL(i)||i}var dr=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ax})`}},D_=class extends dr{getTypeName(){return"HTML"}},S_=class extends dr{getTypeName(){return"Style"}},E_=class extends dr{getTypeName(){return"Script"}},I_=class extends dr{getTypeName(){return"URL"}},M_=class extends dr{getTypeName(){return"ResourceURL"}};function Zn(i){return i instanceof dr?i.changingThisBreaksApplicationSecurity:i}function hr(i,e){let r=RN(i);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Ax})`)}return r===e}function RN(i){return i instanceof dr&&i.getTypeName()||null}function qD(i){return new D_(i)}function YD(i){return new S_(i)}function QD(i){return new E_(i)}function KD(i){return new I_(i)}function ZD(i){return new M_(i)}function PN(i){let e=new k_(i);return FN()?new T_(e):e}var T_=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(Fm(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},k_=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=Fm(e),r}};function FN(){try{return!!new window.DOMParser().parseFromString(Fm(""),"text/html")}catch{return!1}}var NN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Nm(i){return i=String(i),i.match(NN)?i:"unsafe:"+i}function pr(i){let e={};for(let r of i.split(","))e[r]=!0;return e}function fl(...i){let e={};for(let r of i)for(let t in r)r.hasOwnProperty(t)&&(e[t]=!0);return e}var XD=pr("area,br,col,hr,img,wbr"),JD=pr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),eS=pr("rp,rt"),LN=fl(eS,JD),VN=fl(JD,pr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),jN=fl(eS,pr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),rx=fl(XD,VN,jN,LN),tS=pr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),BN=pr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zN=pr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),UN=fl(tS,BN,zN),HN=pr("script,style,template"),A_=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,t=!0,n=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?t=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,t&&r.firstChild){n.push(r),r=GN(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=WN(r);if(o){r=o;break}r=n.pop()}}return this.buf.join("")}startElement(e){let r=ax(e).toLowerCase();if(!rx.hasOwnProperty(r))return this.sanitizedSomething=!0,!HN.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let t=e.attributes;for(let n=0;n"),!0}endElement(e){let r=ax(e).toLowerCase();rx.hasOwnProperty(r)&&!XD.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(sx(e))}};function $N(i,e){return(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function WN(i){let e=i.nextSibling;if(e&&i!==e.previousSibling)throw iS(e);return e}function GN(i){let e=i.firstChild;if(e&&$N(i,e))throw iS(e);return e}function ax(i){let e=i.nodeName;return typeof e=="string"?e:"FORM"}function iS(i){return new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`)}var qN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,YN=/([^\#-~ |!])/g;function sx(i){return i.replace(/&/g,"&").replace(qN,function(e){let r=e.charCodeAt(0),t=e.charCodeAt(1);return"&#"+((r-55296)*1024+(t-56320)+65536)+";"}).replace(YN,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Fu;function Nv(i,e){let r=null;try{Fu=Fu||PN(i);let t=e?String(e):"";r=Fu.getInertBodyElement(t);let n=5,o=t;do{if(n===0)throw new Error("Failed to sanitize html because the input is unstable");n--,t=o,o=r.innerHTML,r=Fu.getInertBodyElement(t)}while(t!==o);let s=new A_().sanitizeChildren(cx(r)||r);return Fm(s)}finally{if(r){let t=cx(r)||r;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function cx(i){return"content"in i&&QN(i)?i.content:null}function QN(i){return i.nodeType===Node.ELEMENT_NODE&&i.nodeName==="TEMPLATE"}var Hi=function(i){return i[i.NONE=0]="NONE",i[i.HTML=1]="HTML",i[i.STYLE=2]="STYLE",i[i.SCRIPT=3]="SCRIPT",i[i.URL=4]="URL",i[i.RESOURCE_URL=5]="RESOURCE_URL",i}(Hi||{});function Gt(i){let e=Lv();return e?nx(e.sanitize(Hi.HTML,i)||""):hr(i,"HTML")?nx(Zn(i)):Nv($D(),ja(i))}function Ee(i){let e=Lv();return e?e.sanitize(Hi.URL,i)||"":hr(i,"URL")?Zn(i):Nm(ja(i))}function KN(i){let e=Lv();if(e)return ox(e.sanitize(Hi.RESOURCE_URL,i)||"");if(hr(i,"ResourceURL"))return ox(Zn(i));throw new te(904,!1)}function ZN(i,e){return e==="src"&&(i==="embed"||i==="frame"||i==="iframe"||i==="media"||i==="script")||e==="href"&&(i==="base"||i==="link")?KN:Ee}function nS(i,e,r){return ZN(e,r)(i)}function Lv(){let i=Ye();return i&&i[Bo].sanitizer}var XN=/^>|^->||--!>|)/g,e2="\u200B$1\u200B";function t2(i){return i.replace(XN,e=>e.replace(JN,e2))}function Lm(i){return i.ownerDocument.defaultView}function oS(i){return i.ownerDocument}function rS(i){return i instanceof Function?i():i}function aS(i){return(i??k(Pe)).get(Kn)==="browser"}var Uo=function(i){return i[i.Important=1]="Important",i[i.DashCase=2]="DashCase",i}(Uo||{}),i2;function Vv(i,e){return i2(i,e)}function Os(i,e,r,t,n){if(t!=null){let o,a=!1;ur(t)?o=t:Hr(t)&&(a=!0,t=t[Ho]);let s=zo(t);i===0&&r!==null?n==null?uS(e,r,s):om(e,r,s,n||null,!0):i===1&&r!==null?om(e,r,s,n||null,!0):i===2?_2(e,s,a):i===3&&e.destroyNode(s),o!=null&&b2(e,i,o,r,n)}}function n2(i,e){return i.createText(e)}function o2(i,e,r){i.setValue(e,r)}function r2(i,e){return i.createComment(t2(e))}function sS(i,e,r){return i.createElement(e,r)}function a2(i,e){cS(i,e),e[Ho]=null,e[yn]=null}function s2(i,e,r,t,n,o){t[Ho]=n,t[yn]=e,Bm(i,t,r,1,n,o)}function cS(i,e){e[Bo].changeDetectionScheduler?.notify(8),Bm(i,e,e[oi],2,null,null)}function c2(i){let e=i[rl];if(!e)return Xg(i[rt],i);for(;e;){let r=null;if(Hr(e))r=e[rl];else{let t=e[Ji];t&&(r=t)}if(!r){for(;e&&!e[vo]&&e!==i;)Hr(e)&&Xg(e[rt],e),e=e[en];e===null&&(e=i),Hr(e)&&Xg(e[rt],e),r=e&&e[vo]}e=r}}function l2(i,e,r,t){let n=Ji+t,o=r.length;t>0&&(r[n-1][vo]=e),t0&&(i[r-1][vo]=t[vo]);let o=Yu(i,Ji+e);a2(t[rt],t);let a=o[cr];a!==null&&a.detachView(o[rt]),t[en]=null,t[vo]=null,t[tt]&=-129}return t}function Vm(i,e){if(!(e[tt]&256)){let r=e[oi];r.destroyNode&&Bm(i,e,r,3,null,null),c2(e)}}function Xg(i,e){if(e[tt]&256)return;let r=bt(null);try{e[tt]&=-129,e[tt]|=256,e[Gn]&&nu(e[Gn]),u2(i,e),d2(i,e),e[rt].type===1&&e[oi].destroy();let t=e[za];if(t!==null&&ur(e[en])){t!==e[en]&&jv(t,e);let n=e[cr];n!==null&&n.detachView(i)}EN(e)}finally{bt(r)}}function d2(i,e){let r=i.cleanup,t=e[Zu];if(r!==null)for(let o=0;o=0?t[a]():t[-a].unsubscribe(),o+=2}else{let a=t[r[o+1]];r[o].call(a)}t!==null&&(e[Zu]=null);let n=e[Ur];if(n!==null){e[Ur]=null;for(let o=0;o-1){let{encapsulation:o}=i.data[t.directiveStart+n];if(o===jo.None||o===jo.Emulated)return null}return Qn(t,r)}}function om(i,e,r,t,n){i.insertBefore(e,r,t,n)}function uS(i,e,r){i.appendChild(e,r)}function lx(i,e,r,t,n){t!==null?om(i,e,r,t,n):uS(i,e,r)}function h2(i,e,r,t){i.removeChild(e,r,t)}function Bv(i,e){return i.parentNode(e)}function p2(i,e){return i.nextSibling(e)}function mS(i,e,r){return g2(i,e,r)}function f2(i,e,r){return i.type&40?Qn(i,r):null}var g2=f2,dx;function jm(i,e,r,t){let n=dS(i,t,e),o=e[oi],a=t.parent||e[yn],s=mS(a,t,e);if(n!=null)if(Array.isArray(r))for(let c=0;cFi&&_S(i,e,Fi,!1),Lo(a?2:0,n),r(t,n)}finally{$a(o),Lo(a?3:1,n)}}function Uv(i,e,r){if(Cv(e)){let t=bt(null);try{let n=e.directiveStart,o=e.directiveEnd;for(let a=n;anull;function M2(i,e,r,t){let n=ES(e);n.push(r),i.firstCreatePass&&IS(i).push(t,n.length-1)}function T2(i,e,r,t,n,o){let a=e?e.injectorIndex:-1,s=0;return gD()&&(s|=128),{type:r,index:t,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:n,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ux(i,e,r,t,n){for(let o in e){if(!e.hasOwnProperty(o))continue;let a=e[o];if(a===void 0)continue;t??={};let s,c=Ns.None;Array.isArray(a)?(s=a[0],c=a[1]):s=a;let u=o;if(n!==null){if(!n.hasOwnProperty(o))continue;u=n[o]}i===0?mx(t,r,u,s,c):mx(t,r,u,s)}return t}function mx(i,e,r,t,n){let o;i.hasOwnProperty(r)?(o=i[r]).push(e,t):o=i[r]=[e,t],n!==void 0&&o.push(n)}function k2(i,e,r){let t=e.directiveStart,n=e.directiveEnd,o=i.data,a=e.attrs,s=[],c=null,u=null;for(let f=t;f0;){let r=i[--e];if(typeof r=="number"&&r<0)return r}return 0}function F2(i,e,r,t){let n=r.directiveStart,o=r.directiveEnd;Tm(r)&&U2(e,r,i.data[n+r.componentOffset]),i.firstCreatePass||nm(r,e),Gr(t,e);let a=r.initialInputs;for(let s=n;s{Am(i.lView)},consumerOnSignalRead(){this.lView[Gn]=this}});function tL(i){let e=i[Gn]??Object.create(iL);return e.lView=i,e}var iL=mt(B({},eu),{consumerIsAlwaysLive:!0,consumerMarkedDirty:i=>{let e=Ha(i.lView);for(;e&&!PS(e[rt]);)e=Ha(e);e&&mD(e)},consumerOnSignalRead(){this.lView[Gn]=this}});function PS(i){return i.type!==2}var nL=100;function FS(i,e=!0,r=0){let t=i[Bo],n=t.rendererFactory,o=!1;o||n.begin?.();try{oL(i,r)}catch(a){throw e&&TS(i,a),a}finally{o||(n.end?.(),t.inlineEffectRunner?.flush())}}function oL(i,e){let r=vD();try{ZC(!0),F_(i,e);let t=0;for(;al(i);){if(t===nL)throw new te(103,!1);t++,F_(i,1)}}finally{ZC(r)}}function rL(i,e,r,t){let n=e[tt];if((n&256)===256)return;let o=!1,a=!1;!o&&e[Bo].inlineEffectRunner?.flush(),Av(e);let s=!0,c=null,u=null;o||(PS(i)?(u=Z2(e),c=tu(u)):cC()===null?(s=!1,u=tL(e),c=tu(u)):e[Gn]&&(nu(e[Gn]),e[Gn]=null));try{uD(e),QF(i.bindingStartIndex),r!==null&&yS(i,e,r,2,t);let f=(n&3)===3;if(!o)if(f){let x=i.preOrderCheckHooks;x!==null&&zu(e,x,null)}else{let x=i.preOrderHooks;x!==null&&Uu(e,x,0,null),Qg(e,0)}if(a||aL(e),NS(e,0),i.contentQueries!==null&&SS(i,e),!o)if(f){let x=i.contentCheckHooks;x!==null&&zu(e,x)}else{let x=i.contentHooks;x!==null&&Uu(e,x,1),Qg(e,1)}C2(i,e);let v=i.components;v!==null&&VS(e,v,0);let C=i.viewQuery;if(C!==null&&P_(2,C,t),!o)if(f){let x=i.viewCheckHooks;x!==null&&zu(e,x)}else{let x=i.viewHooks;x!==null&&Uu(e,x,2),Qg(e,2)}if(i.firstUpdatePass===!0&&(i.firstUpdatePass=!1),e[Bu]){for(let x of e[Bu])x();e[Bu]=null}o||(e[tt]&=-73)}catch(f){throw o||Am(e),f}finally{u!==null&&(Cg(u,c),s&&J2(u)),Ov()}}function NS(i,e){for(let r=BD(i);r!==null;r=zD(r))for(let t=Ji;t-1&&(sl(e,t),Yu(r,t))}this._attachedToViewContainer=!1}Vm(this._lView[rt],this._lView)}onDestroy(e){hD(this._lView,e)}markForCheck(){Qv(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[tt]&=-129}reattach(){g_(this._lView),this._lView[tt]|=128}detectChanges(){this._lView[tt]|=1024,FS(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=p_(this._lView),r=this._lView[za];r!==null&&!e&&jv(r,this._lView),cS(this._lView[rt],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new te(902,!1);this._appRef=e;let r=p_(this._lView),t=this._lView[za];t!==null&&!r&&lS(t,this._lView),g_(this._lView)}},lt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=dL;let i=e;return i})(),cL=lt,lL=class extends cL{constructor(e,r,t){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=t}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,t){let n=_l(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:t});return new qa(n)}};function dL(){return Hm(Ni(),Ye())}function Hm(i,e){return i.type&4?new lL(e,i,Ys(i,e)):null}var Mne=new RegExp(`^(\\d+)*(${TN}|${MN})*(.*)`);var uL=()=>null;function Us(i,e){return uL(i,e)}var Hs=class{},jS=new O("",{providedIn:"root",factory:()=>!1});var BS=new O(""),N_=class{},am=class{};function mL(i){let e=Error(`No component factory found for ${ln(i)}.`);return e[hL]=i,e}var hL="ngComponent";var L_=class{resolveComponentFactory(e){throw mL(e)}},cb=class cb{};cb.NULL=new L_;var vn=cb,qr=class{},fr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>pL();let i=e;return i})();function pL(){let i=Ye(),e=Ni(),r=Qr(e.index,i);return(Hr(r)?r:i)[oi]}var fL=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>null});let i=e;return i})(),Jg={};var hx=new Set;function gr(i){hx.has(i)||(hx.add(i),performance?.mark?.("mark_feature_usage",{detail:{feature:i}}))}function zS(i){let e=!0;return setTimeout(()=>{e&&(e=!1,i())}),typeof dn.requestAnimationFrame=="function"&&dn.requestAnimationFrame(()=>{e&&(e=!1,i())}),()=>{e=!1}}function px(i){let e=!0;return queueMicrotask(()=>{e&&i()}),()=>{e=!1}}function fx(...i){}var Z=class i{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new T(!1),this.onMicrotaskEmpty=new T(!1),this.onStable=new T(!1),this.onError=new T(!1),typeof Zone>"u")throw new te(908,!1);Zone.assertZonePatched();let n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!t&&r,n.shouldCoalesceRunChangeDetection=t,n.callbackScheduled=!1,vL(n)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!i.isInAngularZone())throw new te(909,!1)}static assertNotInAngularZone(){if(i.isInAngularZone())throw new te(909,!1)}run(e,r,t){return this._inner.run(e,r,t)}runTask(e,r,t,n){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+n,e,gL,fx,fx);try{return o.runTask(a,r,t)}finally{o.cancelTask(a)}}runGuarded(e,r,t){return this._inner.runGuarded(e,r,t)}runOutsideAngular(e){return this._outer.run(e)}},gL={};function Kv(i){if(i._nesting==0&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function _L(i){i.isCheckStableRunning||i.callbackScheduled||(i.callbackScheduled=!0,Zone.root.run(()=>{zS(()=>{i.callbackScheduled=!1,V_(i),i.isCheckStableRunning=!0,Kv(i),i.isCheckStableRunning=!1})}),V_(i))}function vL(i){let e=()=>{_L(i)};i._inner=i._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,t,n,o,a,s)=>{if(bL(s))return r.invokeTask(n,o,a,s);try{return gx(i),r.invokeTask(n,o,a,s)}finally{(i.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||i.shouldCoalesceRunChangeDetection)&&e(),_x(i)}},onInvoke:(r,t,n,o,a,s,c)=>{try{return gx(i),r.invoke(n,o,a,s,c)}finally{i.shouldCoalesceRunChangeDetection&&!i.callbackScheduled&&!yL(s)&&e(),_x(i)}},onHasTask:(r,t,n,o)=>{r.hasTask(n,o),t===n&&(o.change=="microTask"?(i._hasPendingMicrotasks=o.microTask,V_(i),Kv(i)):o.change=="macroTask"&&(i.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,t,n,o)=>(r.handleError(n,o),i.runOutsideAngular(()=>i.onError.emit(o)),!1)})}function V_(i){i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&i.callbackScheduled===!0?i.hasPendingMicrotasks=!0:i.hasPendingMicrotasks=!1}function gx(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function _x(i){i._nesting--,Kv(i)}var sm=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new T,this.onMicrotaskEmpty=new T,this.onStable=new T,this.onError=new T}run(e,r,t){return e.apply(r,t)}runGuarded(e,r,t){return e.apply(r,t)}runOutsideAngular(e){return e()}runTask(e,r,t,n){return e.apply(r,t)}};function bL(i){return US(i,"__ignore_ng_zone__")}function yL(i){return US(i,"__scheduler_tick__")}function US(i,e){return!Array.isArray(i)||i.length!==1?!1:i[0]?.data?.[e]===!0}function wL(i="zone.js",e){return i==="noop"?new sm:i==="zone.js"?new Z(e):i}var La=function(i){return i[i.EarlyRead=0]="EarlyRead",i[i.Write=1]="Write",i[i.MixedReadWrite=2]="MixedReadWrite",i[i.Read=3]="Read",i}(La||{}),HS={destroy(){}};function bl(i,e){!e&&yv(bl);let r=e?.injector??k(Pe);if(!aS(r))return HS;gr("NgAfterRender");let t=r.get($m),n=t.handler??=new lm,o=e?.phase??La.MixedReadWrite,a=()=>{n.unregister(c),s()},s=r.get(hl).onDestroy(a),c=bn(r,()=>new cm(o,i));return n.register(c),{destroy:a}}function ri(i,e){!e&&yv(ri);let r=e?.injector??k(Pe);if(!aS(r))return HS;gr("NgAfterNextRender");let t=r.get($m),n=t.handler??=new lm,o=e?.phase??La.MixedReadWrite,a=()=>{n.unregister(c),s()},s=r.get(hl).onDestroy(a),c=bn(r,()=>new cm(o,()=>{a(),i()}));return n.register(c),{destroy:a}}var cm=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=k(Z),this.errorHandler=k(un,{optional:!0}),k(Hs,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},lm=class{constructor(){this.executingCallbacks=!1,this.buckets={[La.EarlyRead]:new Set,[La.Write]:new Set,[La.MixedReadWrite]:new Set,[La.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},$m=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let n of t)n()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new e});let i=e;return i})();function dm(i,e,r){let t=r?i.styles:null,n=r?i.classes:null,o=0;if(e!==null)for(let a=0;a0&&fS(i,r,o.join(" "))}}function ML(i,e,r){let t=i.projection=[];for(let n=0;n{let e=class e{};e.__NG_ELEMENT_ID__=kL;let i=e;return i})();function kL(){let i=Ni();return WS(i,Ye())}var AL=wt,$S=class extends AL{constructor(e,r,t){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=t}get element(){return Ys(this._hostTNode,this._hostLView)}get injector(){return new Va(this._hostTNode,this._hostLView)}get parentInjector(){let e=Rv(this._hostTNode,this._hostLView);if(ID(e)){let r=tm(e,this._hostLView),t=em(e),n=r[rt].data[t+8];return new Va(n,r)}else return new Va(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=bx(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ji}createEmbeddedView(e,r,t){let n,o;typeof t=="number"?n=t:t!=null&&(n=t.index,o=t.injector);let a=Us(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(r||{},o,a);return this.insertImpl(s,n,zs(this._hostTNode,a)),s}createComponent(e,r,t,n,o){let a=e&&!AF(e),s;if(a)s=r;else{let E=r||{};s=E.index,t=E.injector,n=E.projectableNodes,o=E.environmentInjector||E.ngModuleRef}let c=a?e:new $s($r(e)),u=t||this.parentInjector;if(!o&&c.ngModule==null){let R=(a?u:this.parentInjector).get(Pi,null);R&&(o=R)}let f=$r(c.componentType??{}),v=Us(this._lContainer,f?.id??null),C=v?.firstChild??null,x=c.create(u,n,C,o);return this.insertImpl(x.hostView,s,zs(this._hostTNode,v)),x}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,t){let n=e._lView;if(VF(n)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let c=n[en],u=new $S(c,c[yn],c[en]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),a=this._lContainer;return vl(a,n,o,t),e.attachToViewContainerRef(),zx(e_(a),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=bx(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),t=sl(this._lContainer,r);t&&(Yu(e_(this._lContainer),r),Vm(t[rt],t))}detach(e){let r=this._adjustIndex(e,-1),t=sl(this._lContainer,r);return t&&Yu(e_(this._lContainer),r)!=null?new qa(t):null}_adjustIndex(e,r=0){return e??this.length+r}};function bx(i){return i[Xu]}function e_(i){return i[Xu]||(i[Xu]=[])}function WS(i,e){let r,t=e[i.index];return ur(t)?r=t:(r=DS(t,e,null,i),e[i.index]=r,Um(e,r)),RL(r,e,i,t),new $S(r,i,e)}function OL(i,e){let r=i[oi],t=r.createComment(""),n=Qn(e,i),o=Bv(r,n);return om(r,o,t,p2(r,n),!1),t}var RL=NL,PL=()=>!1;function FL(i,e,r){return PL(i,e,r)}function NL(i,e,r,t){if(i[Ua])return;let n;r.type&8?n=zo(t):n=OL(e,r),i[Ua]=n}var z_=class i{constructor(e){this.queryList=e,this.matches=null}clone(){return new i(this.queryList)}setDirty(){this.queryList.setDirty()}},U_=class i{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let t=e.contentQueries!==null?e.contentQueries[0]:r.length,n=[];for(let o=0;o0)t.push(a[s/2]);else{let u=o[s+1],f=e[-c];for(let v=Ji;ve.trim())}function YS(i,e,r){i.queries===null&&(i.queries=new H_),i.queries.track(new $_(e,r))}function WL(i,e){let r=i.contentQueries||(i.contentQueries=[]),t=r.length?r[r.length-1]:-1;e!==t&&r.push(i.queries.length-1,e)}function Zv(i,e){return i.queries.getByIndex(e)}function GL(i,e){let r=i[rt],t=Zv(r,e);return t.crossesNgTemplate?W_(r,i,e,[]):GS(r,i,t,e)}function Wm(i){return typeof i=="function"&&i[Jd]!==void 0}function QS(i){return Wm(i)&&typeof i.set=="function"}function qL(i){let e=[],r=new Map;function t(n){let o=r.get(n);if(!o){let a=i(n);r.set(n,o=a.then(ZL))}return o}return hm.forEach((n,o)=>{let a=[];n.templateUrl&&a.push(t(n.templateUrl).then(u=>{n.template=u}));let s=typeof n.styles=="string"?[n.styles]:n.styles||[];if(n.styles=s,n.styleUrl&&n.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(n.styleUrls?.length){let u=n.styles.length,f=n.styleUrls;n.styleUrls.forEach((v,C)=>{s.push(""),a.push(t(v).then(x=>{s[u+C]=x,f.splice(f.indexOf(v),1),f.length==0&&(n.styleUrls=void 0)}))})}else n.styleUrl&&a.push(t(n.styleUrl).then(u=>{s.push(u),n.styleUrl=void 0}));let c=Promise.all(a).then(()=>XL(o));e.push(c)}),QL(),Promise.all(e).then(()=>{})}var hm=new Map,YL=new Set;function QL(){let i=hm;return hm=new Map,i}function KL(){return hm.size===0}function ZL(i){return typeof i=="string"?i:i.text()}function XL(i){YL.delete(i)}function JL(i){return Object.getPrototypeOf(i.prototype).constructor}function ve(i){let e=JL(i.type),r=!0,t=[i];for(;e;){let n;if(lr(i))n=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new te(903,!1);n=e.\u0275dir}if(n){if(r){t.push(n);let a=i;a.inputs=Nu(i.inputs),a.inputTransforms=Nu(i.inputTransforms),a.declaredInputs=Nu(i.declaredInputs),a.outputs=Nu(i.outputs);let s=n.hostBindings;s&&oV(i,s);let c=n.viewQuery,u=n.contentQueries;if(c&&iV(i,c),u&&nV(i,u),eV(i,n),RP(i.outputs,n.outputs),lr(n)&&n.data.animation){let f=i.data;f.animation=(f.animation||[]).concat(n.data.animation)}}let o=n.features;if(o)for(let a=0;a=0;t--){let n=i[t];n.hostVars=e+=n.hostVars,n.hostAttrs=nl(n.hostAttrs,r=nl(r,n.hostAttrs))}}function Nu(i){return i===sr?{}:i===_n?[]:i}function iV(i,e){let r=i.viewQuery;r?i.viewQuery=(t,n)=>{e(t,n),r(t,n)}:i.viewQuery=e}function nV(i,e){let r=i.contentQueries;r?i.contentQueries=(t,n,o)=>{e(t,n,o),r(t,n,o)}:i.contentQueries=e}function oV(i,e){let r=i.hostBindings;r?i.hostBindings=(t,n)=>{e(t,n),r(t,n)}:i.hostBindings=e}function KS(i){let e=r=>{let t=(Array.isArray(i)?i:i()).map(n=>typeof n=="function"?{directive:Ui(n),inputs:sr,outputs:sr}:{directive:Ui(n.directive),inputs:yx(n.inputs),outputs:yx(n.outputs)});r.hostDirectives===null?(r.findHostDirectiveDefs=ZS,r.hostDirectives=t):r.hostDirectives.unshift(...t)};return e.ngInherit=!0,e}function ZS(i,e,r){if(i.hostDirectives!==null)for(let t of i.hostDirectives){let n=_v(t.directive);rV(n.declaredInputs,t.inputs),ZS(n,e,r),r.set(n,t),e.push(n)}}function yx(i){if(i===void 0||i.length===0)return sr;let e={};for(let r=0;rr()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},fm=class extends cl{constructor(e){super(),this.moduleType=e}create(e){return new pm(this.moduleType,e,[])}};function aV(i,e,r){return new pm(i,e,r)}var G_=class extends Yr{constructor(e){super(),this.componentFactoryResolver=new um(this),this.instance=null;let r=new ol([...e.providers,{provide:Yr,useValue:this},{provide:vn,useValue:this.componentFactoryResolver}],e.parent||bv(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Gm(i,e,r=null){return new G_({providers:i,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function XS(i){return Xv(i)?Array.isArray(i)||!(i instanceof Map)&&Symbol.iterator in i:!1}function sV(i,e){if(Array.isArray(i))for(let r=0;r>17&32767}function pV(i){return(i&2)==2}function fV(i,e){return i&131071|e<<17}function q_(i){return i|2}function Ws(i){return(i&131068)>>2}function t_(i,e){return i&-131069|e<<2}function gV(i){return(i&1)===1}function Y_(i){return i|1}function _V(i,e,r,t,n,o){let a=o?e.classBindings:e.styleBindings,s=Ya(a),c=Ws(a);i[t]=r;let u=!1,f;if(Array.isArray(r)){let v=r;f=v[1],(f===null||ul(v,f)>0)&&(u=!0)}else f=r;if(n)if(c!==0){let C=Ya(i[s+1]);i[t+1]=Lu(C,s),C!==0&&(i[C+1]=t_(i[C+1],t)),i[s+1]=fV(i[s+1],t)}else i[t+1]=Lu(s,0),s!==0&&(i[s+1]=t_(i[s+1],t)),s=t;else i[t+1]=Lu(c,0),s===0?s=t:i[c+1]=t_(i[c+1],t),c=t;u&&(i[t+1]=q_(i[t+1])),wx(i,f,t,!0),wx(i,f,t,!1),vV(e,f,i,t,o),a=Lu(s,c),o?e.classBindings=a:e.styleBindings=a}function vV(i,e,r,t,n){let o=n?i.residualClasses:i.residualStyles;o!=null&&typeof e=="string"&&ul(o,e)>=0&&(r[t+1]=Y_(r[t+1]))}function wx(i,e,r,t){let n=i[r+1],o=e===null,a=t?Ya(n):Ws(n),s=!1;for(;a!==0&&(s===!1||o);){let c=i[a],u=i[a+1];bV(c,e)&&(s=!0,i[a+1]=t?Y_(u):q_(u)),a=t?Ya(u):Ws(u)}s&&(i[r+1]=t?q_(n):Y_(n))}function bV(i,e){return i===null||e==null||(Array.isArray(i)?i[1]:i)===e?!0:Array.isArray(i)&&typeof e=="string"?ul(i,e)>=0:!1}var _o={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yV(i){return i.substring(_o.key,_o.keyEnd)}function wV(i){return CV(i),eE(i,tE(i,0,_o.textEnd))}function eE(i,e){let r=_o.textEnd;return r===e?-1:(e=_o.keyEnd=xV(i,_o.key=e,r),tE(i,e,r))}function CV(i){_o.key=0,_o.keyEnd=0,_o.value=0,_o.valueEnd=0,_o.textEnd=i.length}function tE(i,e,r){for(;e32;)e++;return e}function p(i,e,r){let t=Ye(),n=Kr();if(Rn(t,n,e)){let o=ii(),a=qs();gl(o,a,t,i,e,t[oi],r,!1)}return p}function Q_(i,e,r,t,n){let o=e.inputs,a=n?"class":"style";qv(i,r,o[a],a,t)}function xi(i,e,r){return nE(i,e,r,!1),xi}function ne(i,e){return nE(i,e,null,!0),ne}function qt(i){oE(TV,iE,i,!0)}function iE(i,e){for(let r=wV(e);r>=0;r=eE(e,r))Sm(i,yV(e),!0)}function nE(i,e,r,t){let n=Ye(),o=ii(),a=Mv(2);if(o.firstUpdatePass&&aE(o,i,a,t),e!==wn&&Rn(n,a,e)){let s=o.data[mr()];sE(o,s,n,n[oi],i,n[a+1]=AV(e,r),t,a)}}function oE(i,e,r,t){let n=ii(),o=Mv(2);n.firstUpdatePass&&aE(n,null,o,t);let a=Ye();if(r!==wn&&Rn(a,o,r)){let s=n.data[mr()];if(cE(s,t)&&!rE(n,o)){let c=t?s.classesWithoutHost:s.stylesWithoutHost;c!==null&&(r=a_(c,r||"")),Q_(n,s,a,r,t)}else kV(n,s,a,a[oi],a[o+1],a[o+1]=MV(i,e,r),t,o)}}function rE(i,e){return e>=i.expandoStartIndex}function aE(i,e,r,t){let n=i.data;if(n[r+1]===null){let o=n[mr()],a=rE(i,r);cE(o,t)&&e===null&&!a&&(e=!1),e=DV(n,o,e,t),_V(n,o,e,r,a,t)}}function DV(i,e,r,t){let n=Tv(i),o=t?e.residualClasses:e.residualStyles;if(n===null)(t?e.classBindings:e.styleBindings)===0&&(r=i_(null,i,e,r,t),r=ll(r,e.attrs,t),o=null);else{let a=e.directiveStylingLast;if(a===-1||i[a]!==n)if(r=i_(n,i,e,r,t),o===null){let c=SV(i,e,t);c!==void 0&&Array.isArray(c)&&(c=i_(null,i,e,c[1],t),c=ll(c,e.attrs,t),EV(i,e,t,c))}else o=IV(i,e,t)}return o!==void 0&&(t?e.residualClasses=o:e.residualStyles=o),r}function SV(i,e,r){let t=r?e.classBindings:e.styleBindings;if(Ws(t)!==0)return i[Ya(t)]}function EV(i,e,r,t){let n=r?e.classBindings:e.styleBindings;i[Ya(n)]=t}function IV(i,e,r){let t,n=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=i[n],u=Array.isArray(c),f=u?c[1]:c,v=f===null,C=r[n+1];C===wn&&(C=v?_n:void 0);let x=v?qg(C,t):f===t?C:void 0;if(u&&!_m(x)&&(x=qg(c,t)),_m(x)&&(s=x,a))return s;let E=i[n+1];n=a?Ya(E):Ws(E)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(s=qg(c,t))}return s}function _m(i){return i!==void 0}function AV(i,e){return i==null||i===""||(typeof e=="string"?i=i+e:typeof i=="object"&&(i=ln(Zn(i)))),i}function cE(i,e){return(i.flags&(e?8:16))!==0}function lE(i,e,r){let t=Ye(),n=eb(t,i,e,r);oE(Sm,iE,n,!0)}var K_=class{destroy(e){}updateValue(e,r){}swap(e,r){let t=Math.min(e,r),n=Math.max(e,r),o=this.detach(n);if(n-t>1){let a=this.detach(t);this.attach(t,o),this.attach(n,a)}else this.attach(t,o)}move(e,r){this.attach(r,this.detach(e))}};function n_(i,e,r,t,n){return i===r&&Object.is(e,t)?1:Object.is(n(i,e),n(r,t))?-1:0}function OV(i,e,r){let t,n,o=0,a=i.length-1,s=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=a&&o<=c;){let u=i.at(o),f=e[o],v=n_(o,u,o,f,r);if(v!==0){v<0&&i.updateValue(o,f),o++;continue}let C=i.at(a),x=e[c],E=n_(a,C,c,x,r);if(E!==0){E<0&&i.updateValue(a,x),a--,c--;continue}let R=r(o,u),j=r(a,C),F=r(o,f);if(Object.is(F,j)){let _e=r(c,x);Object.is(_e,R)?(i.swap(o,a),i.updateValue(a,x),c--,a--):i.move(a,o),i.updateValue(o,f),o++;continue}if(t??=new vm,n??=Dx(i,o,a,r),Z_(i,t,o,F))i.updateValue(o,f),o++,a++;else if(n.has(F))t.set(R,i.detach(o)),a--;else{let _e=i.create(o,e[o]);i.attach(o,_e),o++,a++}}for(;o<=c;)xx(i,t,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),u=c.next();for(;!u.done&&o<=a;){let f=i.at(o),v=u.value,C=n_(o,f,o,v,r);if(C!==0)C<0&&i.updateValue(o,v),o++,u=c.next();else{t??=new vm,n??=Dx(i,o,a,r);let x=r(o,v);if(Z_(i,t,o,x))i.updateValue(o,v),o++,a++,u=c.next();else if(!n.has(x))i.attach(o,i.create(o,v)),o++,a++,u=c.next();else{let E=r(o,f);t.set(E,i.detach(o)),a--}}}for(;!u.done;)xx(i,t,r,i.length,u.value),u=c.next()}for(;o<=a;)i.destroy(i.detach(a--));t?.forEach(c=>{i.destroy(c)})}function Z_(i,e,r,t){return e!==void 0&&e.has(t)?(i.attach(r,e.get(t)),e.delete(t),!0):!1}function xx(i,e,r,t,n){if(Z_(i,e,t,r(t,n)))i.updateValue(t,n);else{let o=i.create(t,n);i.attach(t,o)}}function Dx(i,e,r,t){let n=new Set;for(let o=e;o<=r;o++)n.add(t(o,i.at(o)));return n}var vm=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let t=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let n=this._vMap;for(;n.has(t);)t=n.get(t);n.set(t,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,t]of this.kvMap)if(e(t,r),this._vMap!==void 0){let n=this._vMap;for(;n.has(t);)t=n.get(t),e(t,r)}}};function xe(i,e){gr("NgControlFlow");let r=Ye(),t=Kr(),n=r[t]!==wn?r[t]:-1,o=n!==-1?bm(r,Fi+n):void 0,a=0;if(Rn(r,t,i)){let s=bt(null);try{if(o!==void 0&&OS(o,a),i!==-1){let c=Fi+i,u=bm(r,c),f=tv(r[rt],c),v=Us(u,f.tView.ssrId),C=_l(r,f,e,{dehydratedView:v});vl(u,C,a,zs(f,v))}}finally{bt(s)}}else if(o!==void 0){let s=AS(o,a);s!==void 0&&(s[Xi]=e)}}var X_=class{constructor(e,r,t){this.lContainer=e,this.$implicit=r,this.$index=t}get $count(){return this.lContainer.length-Ji}};function yl(i,e){return e}var J_=class{constructor(e,r,t){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=t}};function _r(i,e,r,t,n,o,a,s,c,u,f,v,C){gr("NgControlFlow");let x=Ye(),E=ii(),R=c!==void 0,j=Ye(),F=s?a.bind(j[On][Xi]):a,_e=new J_(R,F);j[Fi+i]=_e,gm(x,E,i+1,e,r,t,n,Wr(E.consts,o)),R&&gm(x,E,i+2,c,u,f,v,Wr(E.consts,C))}var ev=class extends K_{constructor(e,r,t){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=t,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ji}at(e){return this.getLView(e)[Xi].$implicit}attach(e,r){let t=r[Vs];this.needsIndexUpdate||=e!==this.length,vl(this.lContainer,r,e,zs(this.templateTNode,t))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,RV(this.lContainer,e)}create(e,r){let t=Us(this.lContainer,this.templateTNode.tView.ssrId),n=_l(this.hostLView,this.templateTNode,new X_(this.lContainer,r,e),{dehydratedView:t});return this.operationsCounter?.recordCreate(),n}destroy(e){Vm(e[rt],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[Xi].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Rm(!0),sS(t,n,iN()));function LV(i,e,r,t,n){let o=e.consts,a=Wr(o,t),s=Ks(e,i,8,"ng-container",a);a!==null&&dm(s,a,!0);let c=Wr(o,n);return Gv(e,r,s,c),e.queries!==null&&e.queries.elementStart(e,s),s}function ht(i,e,r){let t=Ye(),n=ii(),o=i+Fi,a=n.firstCreatePass?LV(o,n,t,e,r):n.data[o];Ka(a,!0);let s=VV(n,t,a,i);return t[o]=s,Om()&&jm(n,t,s,a),Gr(s,t),km(a)&&(Hv(n,t,a),Uv(n,a,t)),r!=null&&$v(t,a),ht}function pt(){let i=Ni(),e=ii();return Ev()?Iv():(i=i.parent,Ka(i,!1)),e.firstCreatePass&&(Pm(e,i),Cv(i)&&e.queries.elementEnd(i)),pt}function bi(i,e,r){return ht(i,e,r),pt(),bi}var VV=(i,e,r,t)=>(Rm(!0),r2(e[oi],""));function A(){return Ye()}function Di(i,e,r){let t=Ye(),n=Kr();if(Rn(t,n,e)){let o=ii(),a=qs();gl(o,a,t,i,e,t[oi],r,!0)}return Di}function wl(i,e,r){let t=Ye(),n=Kr();if(Rn(t,n,e)){let o=ii(),a=qs(),s=Tv(o.data),c=MS(s,a,t);gl(o,a,t,i,e,c,r,!0)}return wl}var ym="en-US";var jV=ym;function BV(i){typeof i=="string"&&(jV=i.toLowerCase().replace(/_/g,"-"))}var zV=(i,e,r)=>{};function b(i,e,r,t){let n=Ye(),o=ii(),a=Ni();return tb(o,n,n[oi],a,i,e,t),b}function Cl(i,e){let r=Ni(),t=Ye(),n=ii(),o=Tv(n.data),a=MS(o,r,t);return tb(n,t,a,r,i,e),Cl}function UV(i,e,r,t){let n=i.cleanup;if(n!=null)for(let o=0;oc?s[c]:null}typeof a=="string"&&(o+=2)}return null}function tb(i,e,r,t,n,o,a){let s=km(t),u=i.firstCreatePass&&IS(i),f=e[Xi],v=ES(e),C=!0;if(t.type&3||a){let R=Qn(t,e),j=a?a(R):R,F=v.length,_e=a?ot=>a(zo(ot[t.index])):t.index,at=null;if(!a&&s&&(at=UV(i,e,n,t.index)),at!==null){let ot=at.__ngLastListenerFn__||at;ot.__ngNextListenerFn__=o,at.__ngLastListenerFn__=o,C=!1}else{o=Ex(t,e,f,o),zV(R,n,o);let ot=r.listen(j,n,o);v.push(o,ot),u&&u.push(n,_e,F,F+1)}}else o=Ex(t,e,f,o);let x=t.outputs,E;if(C&&x!==null&&(E=x[n])){let R=E.length;if(R)for(let j=0;j-1?Qr(i.index,e):e;Qv(a,5);let s=Sx(e,r,t,o),c=n.__ngNextListenerFn__;for(;c;)s=Sx(e,r,c,o)&&s,c=c.__ngNextListenerFn__;return s}}function _(i=1){return eN(i)}function HV(i,e){let r=null,t=lF(i);for(let n=0;n=i.data.length&&(i.data[r]=null,i.blueprint[r]=null),e[r]=t}function Ie(i){let e=qF();return Dv(e,Fi+i)}function g(i,e=""){let r=Ye(),t=ii(),n=i+Fi,o=t.firstCreatePass?Ks(t,n,1,e,null):t.data[n],a=GV(t,r,o,e,i);r[n]=a,Om()&&jm(t,r,a,o),Ka(o,!1)}var GV=(i,e,r,t,n)=>(Rm(!0),n2(e[oi],t));function He(i){return P("",i,""),He}function P(i,e,r){let t=Ye(),n=eb(t,i,e,r);return n!==wn&&kS(t,mr(),n),P}function br(i,e,r,t,n){let o=Ye(),a=hV(o,i,e,r,t,n);return a!==wn&&kS(o,mr(),a),br}function U(i,e,r){QS(e)&&(e=e());let t=Ye(),n=Kr();if(Rn(t,n,e)){let o=ii(),a=qs();gl(o,a,t,i,e,t[oi],r,!1)}return U}function $(i,e){let r=QS(i);return r&&i.set(e),r}function H(i,e){let r=Ye(),t=ii(),n=Ni();return tb(t,r,r[oi],n,i,e),H}function qV(i,e,r){let t=ii();if(t.firstCreatePass){let n=lr(i);iv(r,t.data,t.blueprint,n,!0),iv(e,t.data,t.blueprint,n,!1)}}function iv(i,e,r,t,n){if(i=Ui(i),Array.isArray(i))for(let o=0;o>20;if(Ls(i)||!i.multi){let x=new Wa(u,n,h),E=r_(c,e,n?f:f+C,v);E===-1?(b_(nm(s,a),o,c),o_(o,i,e.length),e.push(c),s.directiveStart++,s.directiveEnd++,n&&(s.providerIndexes+=1048576),r.push(x),a.push(x)):(r[E]=x,a[E]=x)}else{let x=r_(c,e,f+C,v),E=r_(c,e,f,f+C),R=x>=0&&r[x],j=E>=0&&r[E];if(n&&!j||!n&&!R){b_(nm(s,a),o,c);let F=KV(n?QV:YV,r.length,n,t,u);!n&&j&&(r[E].providerFactory=F),o_(o,i,e.length,0),e.push(c),s.directiveStart++,s.directiveEnd++,n&&(s.providerIndexes+=1048576),r.push(F),a.push(F)}else{let F=uE(r[n?E:x],u,!n&&t);o_(o,i,x>-1?x:E,F)}!n&&t&&j&&r[E].componentProviders++}}}function o_(i,e,r,t){let n=Ls(e),o=xF(e);if(n||o){let c=(o?Ui(e.useClass):e).prototype.ngOnDestroy;if(c){let u=i.destroyHooks||(i.destroyHooks=[]);if(!n&&e.multi){let f=u.indexOf(r);f===-1?u.push(r,[t,c]):u[f+1].push(t,c)}else u.push(r,c)}}}function uE(i,e,r){return r&&i.componentProviders++,i.multi.push(e)-1}function r_(i,e,r,t){for(let n=r;n{r.providersResolver=(t,n)=>qV(t,n?n(i):i,e)}}var ZV=(()=>{let e=class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let n=Jx(!1,t.type),o=n.length>0?Gm([n],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=V({token:e,providedIn:"environment",factory:()=>new e(M(Pi))});let i=e;return i})();function re(i){gr("NgStandalone"),i.getStandaloneInjector=e=>e.get(ZV).getOrCreateStandaloneInjector(i)}function mE(i,e,r){let t=i.\u0275cmp;t.directiveDefs=Ku(e,!1),t.pipeDefs=Ku(r,!0)}function Zs(i,e,r){let t=ml()+i,n=Ye();return n[t]===wn?Jv(n,t,r?e.call(r):e()):cV(n,t)}function Li(i,e,r,t){return pE(Ye(),ml(),i,e,r,t)}function Xs(i,e,r,t,n){return fE(Ye(),ml(),i,e,r,t,n)}function hE(i,e){let r=i[e];return r===wn?void 0:r}function pE(i,e,r,t,n,o){let a=e+r;return Rn(i,a,n)?Jv(i,a+1,o?t.call(o,n):t(n)):hE(i,a+1)}function fE(i,e,r,t,n,o,a){let s=e+r;return JS(i,s,n,o)?Jv(i,s+2,a?t.call(a,n,o):t(n,o)):hE(i,s+2)}function yo(i,e){let r=ii(),t,n=i+Fi;r.firstCreatePass?(t=XV(e,r.pipeRegistry),r.data[n]=t,t.onDestroy&&(r.destroyHooks??=[]).push(n,t.onDestroy)):t=r.data[n];let o=t.factory||(t.factory=Ba(t.type,!0)),a,s=gn(h);try{let c=im(!1),u=o();return im(c),WV(r,Ye(),n,u),u}finally{gn(s)}}function XV(i,e){if(e)for(let r=e.length-1;r>=0;r--){let t=e[r];if(i===t.name)return t}}function yr(i,e,r){let t=i+Fi,n=Ye(),o=Dv(n,t);return gE(n,t)?pE(n,ml(),e,o.transform,r,o):o.transform(r)}function ib(i,e,r,t){let n=i+Fi,o=Ye(),a=Dv(o,n);return gE(o,n)?fE(o,ml(),e,a.transform,r,t,a):a.transform(r,t)}function gE(i,e){return i[rt].data[e].pure}function hi(i,e){return Hm(i,e)}var Vu=null;function JV(i){Vu!==null&&(i.defaultEncapsulation!==Vu.defaultEncapsulation||i.preserveWhitespaces!==Vu.preserveWhitespaces)||(Vu=i)}var qm=(()=>{let e=class e{log(t){console.log(t)}warn(t){console.warn(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})();var nb=new O(""),xl=new O(""),Ym=(()=>{let e=class e{constructor(t,n,o){this._ngZone=t,this.registry=n,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,ob||(ej(o),o.addToWindow(n)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(t)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,n,o){let a=-1;n&&n>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==a),t()},n)),this._callbacks.push({doneCb:t,timeoutId:a,updateCb:o})}whenStable(t,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,n,o),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,n,o){return[]}};e.\u0275fac=function(n){return new(n||e)(M(Z),M(Qm),M(xl))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Qm=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(t,n){this._applications.set(t,n)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,n=!0){return ob?.findTestabilityInTree(this,t,n)??null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})();function ej(i){ob=i}var ob;function Jr(i){return!!i&&typeof i.then=="function"}function rb(i){return!!i&&typeof i.subscribe=="function"}var Km=new O(""),_E=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,n)=>{this.resolve=t,this.reject=n}),this.appInits=k(Km,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let t=[];for(let o of this.appInits){let a=o();if(Jr(a))t.push(a);else if(rb(a)){let s=new Promise((c,u)=>{a.subscribe({complete:c,error:u})});t.push(s)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{n()}).catch(o=>{this.reject(o)}),t.length===0&&n(),this.initialized=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Zm=new O("");function tj(){dC(()=>{throw new te(600,!1)})}function ij(i){return i.isBoundToModule}var nj=10;function oj(i,e,r){try{let t=r();return Jr(t)?t.catch(n=>{throw e.runOutsideAngular(()=>i.handleError(n)),n}):t}catch(t){throw e.runOutsideAngular(()=>i.handleError(t)),t}}function vE(i,e){return Array.isArray(e)?e.reduce(vE,i):B(B({},i),e)}var Xn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=k(LD),this.afterRenderEffectManager=k($m),this.zonelessEnabled=k(jS),this.externalTestViews=new Set,this.beforeRender=new W,this.afterTick=new W,this.componentTypes=[],this.components=[],this.isStable=k($o).hasPendingTasks.pipe(de(t=>!t)),this._injector=k(Pi)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,n){let o=t instanceof am;if(!this._injector.get(_E).done){let x=!o&&Qx(t),E=!1;throw new te(405,E)}let s;o?s=t:s=this._injector.get(vn).resolveComponentFactory(t),this.componentTypes.push(s.componentType);let c=ij(s)?void 0:this._injector.get(Yr),u=n||s.selector,f=s.create(Pe.NULL,[],u,c),v=f.location.nativeElement,C=f.injector.get(nb,null);return C?.registerApplication(v),f.onDestroy(()=>{this.detachView(f.hostView),Wu(this.components,f),C?.unregisterApplication(v)}),this._loadComponent(f),f}tick(){this._tick(!0)}_tick(t){if(this._runningTick)throw new te(101,!1);let n=bt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(t)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,bt(n),this.afterTick.next()}}detectChangesInAttachedViews(t){let n=null;this._injector.destroyed||(n=this._injector.get(qr,null,{optional:!0}));let o=0,a=this.afterRenderEffectManager;for(;oal(c))&&(a.execute(),!this.allViews.some(({_lView:c})=>al(c))))break}}attachView(t){let n=t;this._views.push(n),n.attachToAppRef(this)}detachView(t){let n=t;Wu(this._views,n),n.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);let n=this._injector.get(Zm,[]);[...this._bootstrapListeners,...n].forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Wu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new te(406,!1);let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Wu(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function rj(i,e,r,t){if(!r&&!al(i))return;FS(i,e,r&&!t?0:1)}var ov=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Xm=(()=>{let e=class e{compileModuleSync(t){return new fm(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){let n=this.compileModuleSync(t),o=Kx(t),a=rS(o.declarations).reduce((s,c)=>{let u=$r(c);return u&&s.push(new $s(u)),s},[]);return new ov(n,a)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),aj=new O("");function sj(i,e,r){let t=new fm(r);return Promise.resolve(t)}function Ix(i){for(let e=i.length-1;e>=0;e--)if(i[e]!==void 0)return i[e]}var cj=(()=>{let e=class e{constructor(){this.zone=k(Z),this.changeDetectionScheduler=k(Hs),this.applicationRef=k(Xn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function lj({ngZoneFactory:i,ignoreChangesOutsideZone:e}){return i??=()=>new Z(bE()),[{provide:Z,useFactory:i},{provide:Fs,multi:!0,useFactory:()=>{let r=k(cj,{optional:!0});return()=>r.initialize()}},{provide:Fs,multi:!0,useFactory:()=>{let r=k(uj);return()=>{r.initialize()}}},{provide:LD,useFactory:dj},e===!0?{provide:BS,useValue:!0}:[]]}function dj(){let i=k(Z),e=k(un);return r=>i.runOutsideAngular(()=>e.handleError(r))}function bE(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:i?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:i?.runCoalescing??!1}}var uj=(()=>{let e=class e{constructor(){this.subscription=new Ce,this.initialized=!1,this.zone=k(Z),this.pendingTasks=k($o)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var mj=(()=>{let e=class e{constructor(){this.appRef=k(Xn),this.taskService=k($o),this.ngZone=k(Z),this.zonelessEnabled=k(jS),this.disableScheduling=k(BS,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ce,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof sm||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&t===5)return;switch(t){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?px:zS;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=n(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Z.isInAngularZone())}tick(t){if(this.runningTick||this.appRef.destroyed)return;let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(t)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(n),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,px(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function hj(){return typeof $localize<"u"&&$localize.locale||ym}var Dl=new O("",{providedIn:"root",factory:()=>k(Dl,gt.Optional|gt.SkipSelf)||hj()});var yE=new O(""),wE=(()=>{let e=class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,n){let o=wL(n?.ngZone,bE({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{let a=n?.ignoreChangesOutsideZone,s=aV(t.moduleType,this.injector,[...lj({ngZoneFactory:()=>o,ignoreChangesOutsideZone:a}),{provide:Hs,useExisting:mj}]),c=s.injector.get(un,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:f=>{c.handleError(f)}});s.onDestroy(()=>{Wu(this._modules,s),u.unsubscribe()})}),oj(c,o,()=>{let u=s.injector.get(_E);return u.runInitializers(),u.donePromise.then(()=>{let f=s.injector.get(Dl,ym);return BV(f||ym),this._moduleDoBootstrap(s),s})})})}bootstrapModule(t,n=[]){let o=vE({},n);return sj(this.injector,o,t).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(t){let n=t.injector.get(Xn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>n.bootstrap(o));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(n);else throw new te(-403,!1);this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new te(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let t=this._injector.get(yE,null);t&&(t.forEach(n=>n()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(n){return new(n||e)(M(Pe))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"platform"});let i=e;return i})(),tl=null,CE=new O("");function pj(i){if(tl&&!tl.get(CE,!1))throw new te(400,!1);tj(),tl=i;let e=i.get(wE);return _j(i),e}function ab(i,e,r=[]){let t=`Platform: ${e}`,n=new O(t);return(o=[])=>{let a=xE();if(!a||a.injector.get(CE,!1)){let s=[...r,...o,{provide:n,useValue:!0}];i?i(s):pj(fj(s,t))}return gj(n)}}function fj(i=[],e){return Pe.create({name:e,providers:[{provide:Im,useValue:"platform"},{provide:yE,useValue:new Set([()=>tl=null])},...i]})}function gj(i){let e=xE();if(!e)throw new te(401,!1);return e}function xE(){return tl?.get(wE)??null}function _j(i){i.get(Pv,null)?.forEach(r=>r())}var me=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=vj;let i=e;return i})();function vj(i){return bj(Ni(),Ye(),(i&16)===16)}function bj(i,e,r){if(Tm(i)&&!r){let t=Qr(i.index,e);return new qa(t,t)}else if(i.type&47){let t=e[On];return new qa(t,e)}return null}var rv=class{constructor(){}supports(e){return XS(e)}create(e){return new av(e)}},yj=(i,e)=>e,av=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||yj}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,t=this._removalsHead,n=0,o=null;for(;r||t;){let a=!t||r&&r.currentIndex{a=this._trackByFn(n,s),r===null||!Object.is(r.trackById,a)?(r=this._mismatch(r,s,a,n),t=!0):(t&&(r=this._verifyReinsertion(r,s,a,n)),Object.is(r.item,s)||this._addIdentityChange(r,s)),r=r._next,n++}),this.length=n;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,t,n){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(t,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,n)):(e=this._linkedRecords===null?null:this._linkedRecords.get(t,n),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,n)):e=this._addAfter(new sv(r,t),o,n)),e}_verifyReinsertion(e,r,t,n){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(t,null);return o!==null?e=this._reinsertAfter(o,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,t){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let n=e._prevRemoved,o=e._nextRemoved;return n===null?this._removalsHead=o:n._nextRemoved=o,o===null?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(e,r,t),this._addToMoves(e,t),e}_moveAfter(e,r,t){return this._unlink(e),this._insertAfter(e,r,t),this._addToMoves(e,t),e}_addAfter(e,r,t){return this._insertAfter(e,r,t),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,t){let n=r===null?this._itHead:r._next;return e._next=n,e._prev=r,n===null?this._itTail=e:n._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new wm),this._linkedRecords.put(e),e.currentIndex=t,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,t=e._next;return r===null?this._itHead=t:r._next=t,t===null?this._itTail=r:t._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new wm),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},sv=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},cv=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let t;for(t=this._head;t!==null;t=t._nextDup)if((r===null||r<=t.currentIndex)&&Object.is(t.trackById,e))return t;return null}remove(e){let r=e._prevDup,t=e._nextDup;return r===null?this._head=t:r._nextDup=t,t===null?this._tail=r:t._prevDup=r,this._head===null}},wm=class{constructor(){this.map=new Map}put(e){let r=e.trackById,t=this.map.get(r);t||(t=new cv,this.map.set(r,t)),t.add(e)}get(e,r){let t=e,n=this.map.get(t);return n?n.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Mx(i,e,r){let t=i.previousIndex;if(t===null)return t;let n=0;return r&&t{if(r&&r.key===n)this._maybeAddToChanges(r,t),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(n,t);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let t=r;t!==null;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let t=e._prev;return r._next=e,r._prev=t,e._prev=r,t&&(t._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let n=this._records.get(e);this._maybeAddToChanges(n,r);let o=n._prev,a=n._next;return o&&(o._next=a),a&&(a._prev=o),n._next=null,n._prev=null,n}let t=new uv(e);return this._records.set(e,t),t.currentValue=r,this._addToAdditions(t),t}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(t=>r(e[t],t))}},uv=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Tx(){return new Wo([new rv])}var Wo=(()=>{let e=class e{constructor(t){this.factories=t}static create(t,n){if(n!=null){let o=n.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||Tx()),deps:[[e,new bo,new Yn]]}}find(t){let n=this.factories.find(o=>o.supports(t));if(n!=null)return n;throw new te(901,!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:Tx});let i=e;return i})();function kx(){return new Jm([new lv])}var Jm=(()=>{let e=class e{constructor(t){this.factories=t}static create(t,n){if(n){let o=n.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||kx()),deps:[[e,new bo,new Yn]]}}find(t){let n=this.factories.find(o=>o.supports(t));if(n)return n;throw new te(901,!1)}};e.\u0275prov=V({token:e,providedIn:"root",factory:kx});let i=e;return i})();var DE=ab(null,"core",[]),SE=(()=>{let e=class e{constructor(t){}};e.\u0275fac=function(n){return new(n||e)(M(Xn))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();function Y(i){return typeof i=="boolean"?i:i!=null&&i!=="false"}function Zt(i,e=NaN){return!isNaN(parseFloat(i))&&!isNaN(Number(i))?Number(i):e}function Sl(i){let e=bt(null);try{return i()}finally{bt(e)}}var wj=new O("",{providedIn:"root",factory:()=>k(Cj)}),Cj=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>new mv});let i=e;return i})(),mv=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=k($o),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let t=this.queues.get(r);t.has(e)||(this.queuedEffectCount++,t.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},hv=class{constructor(e,r,t,n,o,a){this.scheduler=e,this.effectFn=r,this.creationZone=t,this.injector=o,this.watcher=uC(s=>this.runEffect(s),()=>this.schedule(),a),this.unregisterOnDestroy=n?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(un,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function sb(i,e){gr("NgSignals"),!e?.injector&&yv(sb);let r=e?.injector??k(Pe),t=e?.manualCleanup!==!0?r.get(hl):null,n=new hv(r.get(wj),i,typeof Zone>"u"?null:Zone.current,t,r,e?.allowSignalWrites??!1),o=r.get(me,null,{optional:!0});return!o||!(o._lView[tt]&8)?n.watcher.notify():(o._lView[Bu]??=[]).push(n.watcher.notify),n}function EE(i){let e=$r(i);if(!e)return null;let r=new $s(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var RE=null;function Go(){return RE}function PE(i){RE??=i}var eh=class{};var se=new O(""),gb=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(xj),providedIn:"platform"});let i=e;return i})(),FE=new O(""),xj=(()=>{let e=class e extends gb{constructor(){super(),this._doc=k(se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Go().getBaseHref(this._doc)}onPopState(t){let n=Go().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=Go().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,o){this._history.pushState(t,n,o)}replaceState(t,n,o){this._history.replaceState(t,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>new e,providedIn:"platform"});let i=e;return i})();function _b(i,e){if(i.length==0)return e;if(e.length==0)return i;let r=0;return i.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?i+e.substring(1):r==1?i+e:i+"/"+e}function IE(i){let e=i.match(/#|\?|$/),r=e&&e.index||i.length,t=r-(i[r-1]==="/"?1:0);return i.slice(0,t)+i.slice(r)}function wr(i){return i&&i[0]!=="?"?"?"+i:i}var Cr=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(vb),providedIn:"root"});let i=e;return i})(),NE=new O(""),vb=(()=>{let e=class e extends Cr{constructor(t,n){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??k(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return _b(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+wr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${n}${o}`:n}pushState(t,n,o,a){let s=this.prepareExternalUrl(o+wr(a));this._platformLocation.pushState(t,n,s)}replaceState(t,n,o,a){let s=this.prepareExternalUrl(o+wr(a));this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(n){return new(n||e)(M(gb),M(NE,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),LE=(()=>{let e=class e extends Cr{constructor(t,n){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=_b(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,o,a){let s=this.prepareExternalUrl(o+wr(a));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,n,s)}replaceState(t,n,o,a){let s=this.prepareExternalUrl(o+wr(a));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(n){return new(n||e)(M(gb),M(NE,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),qo=(()=>{let e=class e{constructor(t){this._subject=new T,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=Ej(IE(ME(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+wr(n))}normalize(t){return e.stripTrailingSlash(Sj(this._basePath,ME(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",o=null){this._locationStrategy.pushState(o,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+wr(n)),o)}replaceState(t,n="",o=null){this._locationStrategy.replaceState(o,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+wr(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(o=>o(t,n))}subscribe(t,n,o){return this._subject.subscribe({next:t,error:n,complete:o})}};e.normalizeQueryParams=wr,e.joinWithSlash=_b,e.stripTrailingSlash=IE,e.\u0275fac=function(n){return new(n||e)(M(Cr))},e.\u0275prov=V({token:e,factory:()=>Dj(),providedIn:"root"});let i=e;return i})();function Dj(){return new qo(M(Cr))}function Sj(i,e){if(!i||!e.startsWith(i))return e;let r=e.substring(i.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function ME(i){return i.replace(/\/index.html$/,"")}function Ej(i){if(new RegExp("^(https?:)?//").test(i)){let[,r]=i.split(/\/\/[^\/]+/);return r}return i}function nh(i,e){e=encodeURIComponent(e);for(let r of i.split(";")){let t=r.indexOf("="),[n,o]=t==-1?[r,""]:[r.slice(0,t),r.slice(t+1)];if(n.trim()===e)return decodeURIComponent(o)}return null}var lb=/\s+/,TE=[],Cn=(()=>{let e=class e{constructor(t,n){this._ngEl=t,this._renderer=n,this.initialClasses=TE,this.stateMap=new Map}set klass(t){this.initialClasses=t!=null?t.trim().split(lb):TE}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(lb):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let o=this.stateMap.get(t);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],o=t[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(lb).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(n){return new(n||e)(h(G),h(fr))},e.\u0275dir=N({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let i=e;return i})();var db=class{constructor(e,r,t,n){this.$implicit=e,this.ngForOf=r,this.index=t,this.count=n}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},$e=(()=>{let e=class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,n,o){this._viewContainer=t,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;if(!this._differ&&t)if(0)try{}catch{}else this._differ=this._differs.find(t).create(this.ngForTrackBy)}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((o,a,s)=>{if(o.previousIndex==null)n.createEmbeddedView(this._template,new db(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(a===null?void 0:a);else if(a!==null){let c=n.get(a);n.move(c,s),kE(c,o)}});for(let o=0,a=n.length;o{let a=n.get(o.currentIndex);kE(a,o)})}static ngTemplateContextGuard(t,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(lt),h(Wo))},e.\u0275dir=N({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let i=e;return i})();function kE(i,e){i.context.$implicit=e.item}var he=(()=>{let e=class e{constructor(t,n){this._viewContainer=t,this._context=new ub,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){AE("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){AE("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,n){return!0}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(lt))},e.\u0275dir=N({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let i=e;return i})(),ub=class{constructor(){this.$implicit=null,this.ngIf=null}};function AE(i,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${i} must be a TemplateRef, but received '${ln(e)}'.`)}var Ij=!0,th=class{constructor(e,r){this._viewContainerRef=e,this._templateRef=r,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},ec=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=Ij?t===this._ngSwitch:t==this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let i=e;return i})(),oh=(()=>{let e=class e{constructor(t,n,o){this.ngSwitch=o,o._addCase(),this._view=new th(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(lt),h(ec,9))},e.\u0275dir=N({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let i=e;return i})(),VE=(()=>{let e=class e{constructor(t,n,o){o._addDefault(new th(t,n))}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(lt),h(ec,9))},e.\u0275dir=N({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let i=e;return i})();var jE=(()=>{let e=class e{constructor(t,n,o){this._ngEl=t,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[o,a]=t.split("."),s=o.indexOf("-")===-1?void 0:Uo.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,a?`${n}${a}`:n,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Jm),h(fr))},e.\u0275dir=N({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let i=e;return i})(),rh=(()=>{let e=class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(t,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}};e.\u0275fac=function(n){return new(n||e)(h(wt))},e.\u0275dir=N({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Qe]});let i=e;return i})();function Mj(i,e){return new te(2100,!1)}var mb=class{createSubscription(e,r){return Sl(()=>e.subscribe({next:r,error:t=>{throw t}}))}dispose(e){Sl(()=>e.unsubscribe())}},hb=class{createSubscription(e,r){return e.then(r,t=>{throw t})}dispose(e){}},Tj=new hb,kj=new mb,BE=(()=>{let e=class e{constructor(t){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(Jr(t))return Tj;if(rb(t))return kj;throw Mj(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(me,16))},e.\u0275pipe=Qa({name:"async",type:e,pure:!1,standalone:!0});let i=e;return i})();function Aj(i,e){return{key:i,value:e}}var zE=(()=>{let e=class e{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=OE}transform(t,n=OE){if(!t||!(t instanceof Map)&&typeof t!="object")return null;this.differ??=this.differs.find(t).create();let o=this.differ.diff(t),a=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(Aj(s.key,s.currentValue))})),(o||a)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}};e.\u0275fac=function(n){return new(n||e)(h(Jm,16))},e.\u0275pipe=Qa({name:"keyvalue",type:e,pure:!1,standalone:!0});let i=e;return i})();function OE(i,e){let r=i.key,t=e.key;if(r===t)return 0;if(r===void 0)return 1;if(t===void 0)return-1;if(r===null)return 1;if(t===null)return-1;if(typeof r=="string"&&typeof t=="string")return r{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})(),bb="browser",Oj="server";function yb(i){return i===bb}function ah(i){return i===Oj}var UE=(()=>{let e=class e{};e.\u0275prov=V({token:e,providedIn:"root",factory:()=>yb(k(Kn))?new pb(k(se),window):new fb});let i=e;return i})(),pb=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=Rj(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),t=r.left+this.window.pageXOffset,n=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(t-o[0],n-o[1])}};function Rj(i,e){let r=i.getElementById(e)||i.getElementsByName(e)[0];if(r)return r;if(typeof i.createTreeWalker=="function"&&i.body&&typeof i.body.attachShadow=="function"){let t=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT),n=t.currentNode;for(;n;){let o=n.shadowRoot;if(o){let a=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(a)return a}n=t.nextNode()}}return null}var fb=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Js=class{};var Il=class{},ch=class{},wo=class i{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let t=r.indexOf(":");if(t>0){let n=r.slice(0,t),o=n.toLowerCase(),a=r.slice(t+1).trim();this.maybeSetNormalizedName(n,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,t)=>{this.setHeaderEntries(t,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,t])=>{this.setHeaderEntries(r,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new i;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,r);let n=(e.op==="a"?this.headers.get(r):void 0)||[];n.push(...t),this.headers.set(r,n);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let a=this.headers.get(r);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,a)}break}}setHeaderEntries(e,r){let t=(Array.isArray(r)?r:[r]).map(o=>o.toString()),n=e.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(e,n)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Cb=class{encodeKey(e){return HE(e)}encodeValue(e){return HE(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Pj(i,e){let r=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[a,s]=o==-1?[e.decodeKey(n),""]:[e.decodeKey(n.slice(0,o)),e.decodeValue(n.slice(o+1))],c=r.get(a)||[];c.push(s),r.set(a,c)}),r}var Fj=/%(\d[a-f0-9])/gi,Nj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function HE(i){return encodeURIComponent(i).replace(Fj,(e,r)=>Nj[r]??e)}function sh(i){return`${i}`}var ta=class i{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Cb,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Pj(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let t=e.fromObject[r],n=Array.isArray(t)?t.map(sh):[sh(t)];this.map.set(r,n)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(t=>{let n=e[t];Array.isArray(n)?n.forEach(o=>{r.push({param:t,value:o,op:"a"})}):r.push({param:t,value:n,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(t=>r+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new i({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(sh(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],n=t.indexOf(sh(e.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var xb=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Lj(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function $E(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function WE(i){return typeof Blob<"u"&&i instanceof Blob}function GE(i){return typeof FormData<"u"&&i instanceof FormData}function Vj(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var El=class i{constructor(e,r,t,n){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(Lj(this.method)||n?(this.body=t!==void 0?t:null,o=n):o=t,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new wo,this.context??=new xb,!this.params)this.params=new ta,this.urlWithParams=r;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=r;else{let s=r.indexOf("?"),c=s===-1?"?":sC.set(x,e.setHeaders[x]),u)),e.setParams&&(f=Object.keys(e.setParams).reduce((C,x)=>C.set(x,e.setParams[x]),f)),new i(r,t,a,{params:f,headers:u,context:v,reportProgress:c,responseType:n,withCredentials:s,transferCache:o})}},ia=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(ia||{}),Ml=class{constructor(e,r=200,t="OK"){this.headers=e.headers||new wo,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},lh=class i extends Ml{constructor(e={}){super(e),this.type=ia.ResponseHeader}clone(e={}){return new i({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Tl=class i extends Ml{constructor(e={}){super(e),this.type=ia.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new i({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ea=class extends Ml{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},ZE=200,jj=204;function wb(i,e){return{body:e,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var kl=(()=>{let e=class e{constructor(t){this.handler=t}request(t,n,o={}){let a;if(t instanceof El)a=t;else{let u;o.headers instanceof wo?u=o.headers:u=new wo(o.headers);let f;o.params&&(o.params instanceof ta?f=o.params:f=new ta({fromObject:o.params})),a=new El(t,n,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:f,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=oe(a).pipe(rr(u=>this.handler.handle(u)));if(t instanceof El||o.observe==="events")return s;let c=s.pipe(qe(u=>u instanceof Tl));switch(o.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return c.pipe(de(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(de(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(de(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(de(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:new ta().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,o={}){return this.request("PATCH",t,wb(o,n))}post(t,n,o={}){return this.request("POST",t,wb(o,n))}put(t,n,o={}){return this.request("PUT",t,wb(o,n))}};e.\u0275fac=function(n){return new(n||e)(M(Il))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Bj=/^\)\]\}',?\n/,zj="X-Request-URL";function qE(i){if(i.url)return i.url;let e=zj.toLocaleLowerCase();return i.headers.get(e)}var Uj=(()=>{let e=class e{constructor(){this.fetchImpl=k(Db,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=k(Z)}handle(t){return new Re(n=>{let o=new AbortController;return this.doRequest(t,o.signal,n).then(Sb,a=>n.error(new ea({error:a}))),()=>o.abort()})}doRequest(t,n,o){return q(this,null,function*(){let a=this.createRequestInit(t),s;try{let E=this.fetchImpl(t.urlWithParams,B({signal:n},a));Hj(E),o.next({type:ia.Sent}),s=yield E}catch(E){o.error(new ea({error:E,status:E.status??0,statusText:E.statusText,url:t.urlWithParams,headers:E.headers}));return}let c=new wo(s.headers),u=s.statusText,f=qE(s)??t.urlWithParams,v=s.status,C=null;if(t.reportProgress&&o.next(new lh({headers:c,status:v,statusText:u,url:f})),s.body){let E=s.headers.get("content-length"),R=[],j=s.body.getReader(),F=0,_e,at,ot=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>q(this,null,function*(){for(;;){let{done:Nt,value:Ht}=yield j.read();if(Nt)break;if(R.push(Ht),F+=Ht.length,t.reportProgress){at=t.responseType==="text"?(at??"")+(_e??=new TextDecoder).decode(Ht,{stream:!0}):void 0;let _i=()=>o.next({type:ia.DownloadProgress,total:E?+E:void 0,loaded:F,partialText:at});ot?ot.run(_i):_i()}}}));let Mi=this.concatChunks(R,F);try{let Nt=s.headers.get("Content-Type")??"";C=this.parseBody(t,Mi,Nt)}catch(Nt){o.error(new ea({error:Nt,headers:new wo(s.headers),status:s.status,statusText:s.statusText,url:qE(s)??t.urlWithParams}));return}}v===0&&(v=C?ZE:0),v>=200&&v<300?(o.next(new Tl({body:C,headers:c,status:v,statusText:u,url:f})),o.complete()):o.error(new ea({error:C,headers:c,status:v,statusText:u,url:f}))})}parseBody(t,n,o){switch(t.responseType){case"json":let a=new TextDecoder().decode(n).replace(Bj,"");return a===""?null:JSON.parse(a);case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:o});case"arraybuffer":return n.buffer}}createRequestInit(t){let n={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((a,s)=>n[a]=s.join(",")),n.Accept??="application/json, text/plain, */*",!n["Content-Type"]){let a=t.detectContentTypeHeader();a!==null&&(n["Content-Type"]=a)}return{body:t.serializeBody(),method:t.method,headers:n,credentials:o}}concatChunks(t,n){let o=new Uint8Array(n),a=0;for(let s of t)o.set(s,a),a+=s.length;return o}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Db=class{};function Sb(){}function Hj(i){i.then(Sb,Sb)}function XE(i,e){return e(i)}function $j(i,e){return(r,t)=>e.intercept(r,{handle:n=>i(n,t)})}function Wj(i,e,r){return(t,n)=>bn(r,()=>e(t,o=>i(o,n)))}var Gj=new O(""),Eb=new O(""),qj=new O(""),JE=new O("",{providedIn:"root",factory:()=>!0});function Yj(){let i=null;return(e,r)=>{i===null&&(i=(k(Gj,{optional:!0})??[]).reduceRight($j,XE));let t=k($o);if(k(JE)){let o=t.add();return i(e,r).pipe(Fo(()=>t.remove(o)))}else return i(e,r)}}var YE=(()=>{let e=class e extends Il{constructor(t,n){super(),this.backend=t,this.injector=n,this.chain=null,this.pendingTasks=k($o),this.contributeToStability=k(JE)}handle(t){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Eb),...this.injector.get(qj,[])]));this.chain=n.reduceRight((o,a)=>Wj(o,a,this.injector),XE)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(Fo(()=>this.pendingTasks.remove(n)))}else return this.chain(t,n=>this.backend.handle(n))}};e.\u0275fac=function(n){return new(n||e)(M(ch),M(Pi))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Qj=/^\)\]\}',?\n/;function Kj(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var QE=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new te(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Qt(n.\u0275loadImpl()):oe(null)).pipe(Mt(()=>new Re(a=>{let s=n.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((j,F)=>s.setRequestHeader(j,F.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let j=t.detectContentTypeHeader();j!==null&&s.setRequestHeader("Content-Type",j)}if(t.responseType){let j=t.responseType.toLowerCase();s.responseType=j!=="json"?j:"text"}let c=t.serializeBody(),u=null,f=()=>{if(u!==null)return u;let j=s.statusText||"OK",F=new wo(s.getAllResponseHeaders()),_e=Kj(s)||t.url;return u=new lh({headers:F,status:s.status,statusText:j,url:_e}),u},v=()=>{let{headers:j,status:F,statusText:_e,url:at}=f(),ot=null;F!==jj&&(ot=typeof s.response>"u"?s.responseText:s.response),F===0&&(F=ot?ZE:0);let Mi=F>=200&&F<300;if(t.responseType==="json"&&typeof ot=="string"){let Nt=ot;ot=ot.replace(Qj,"");try{ot=ot!==""?JSON.parse(ot):null}catch(Ht){ot=Nt,Mi&&(Mi=!1,ot={error:Ht,text:ot})}}Mi?(a.next(new Tl({body:ot,headers:j,status:F,statusText:_e,url:at||void 0})),a.complete()):a.error(new ea({error:ot,headers:j,status:F,statusText:_e,url:at||void 0}))},C=j=>{let{url:F}=f(),_e=new ea({error:j,status:s.status||0,statusText:s.statusText||"Unknown Error",url:F||void 0});a.error(_e)},x=!1,E=j=>{x||(a.next(f()),x=!0);let F={type:ia.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),t.responseType==="text"&&s.responseText&&(F.partialText=s.responseText),a.next(F)},R=j=>{let F={type:ia.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),a.next(F)};return s.addEventListener("load",v),s.addEventListener("error",C),s.addEventListener("timeout",C),s.addEventListener("abort",C),t.reportProgress&&(s.addEventListener("progress",E),c!==null&&s.upload&&s.upload.addEventListener("progress",R)),s.send(c),a.next({type:ia.Sent}),()=>{s.removeEventListener("error",C),s.removeEventListener("abort",C),s.removeEventListener("load",v),s.removeEventListener("timeout",C),t.reportProgress&&(s.removeEventListener("progress",E),c!==null&&s.upload&&s.upload.removeEventListener("progress",R)),s.readyState!==s.DONE&&s.abort()}})))}};e.\u0275fac=function(n){return new(n||e)(M(Js))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),eI=new O(""),Zj="XSRF-TOKEN",Xj=new O("",{providedIn:"root",factory:()=>Zj}),Jj="X-XSRF-TOKEN",e3=new O("",{providedIn:"root",factory:()=>Jj}),dh=class{},t3=(()=>{let e=class e{constructor(t,n,o){this.doc=t,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=nh(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Kn),M(Xj))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function i3(i,e){let r=i.url.toLowerCase();if(!k(eI)||i.method==="GET"||i.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(i);let t=k(dh).getToken(),n=k(e3);return t!=null&&!i.headers.has(n)&&(i=i.clone({headers:i.headers.set(n,t)})),e(i)}var tI=function(i){return i[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i[i.Fetch=6]="Fetch",i}(tI||{});function n3(i,e){return{\u0275kind:i,\u0275providers:e}}function iI(...i){let e=[kl,QE,YE,{provide:Il,useExisting:YE},{provide:ch,useFactory:()=>k(Uj,{optional:!0})??k(QE)},{provide:Eb,useValue:i3,multi:!0},{provide:eI,useValue:!0},{provide:dh,useClass:t3}];for(let r of i)e.push(...r.\u0275providers);return Em(e)}var KE=new O("");function nI(){return n3(tI.LegacyInterceptors,[{provide:KE,useFactory:Yj},{provide:Eb,useExisting:KE,multi:!0}])}var Tb=class extends eh{constructor(){super(...arguments),this.supportsDOMEvents=!0}},kb=class i extends Tb{static makeCurrent(){PE(new i)}onAndCancel(e,r,t){return e.addEventListener(r,t),()=>{e.removeEventListener(r,t)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=o3();return r==null?null:r3(r)}resetBaseElement(){Al=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return nh(document.cookie,e)}},Al=null;function o3(){return Al=Al||document.querySelector("base"),Al?Al.getAttribute("href"):null}function r3(i){return new URL(i,document.baseURI).pathname}var Ab=class{addToWindow(e){dn.getAngularTestability=(t,n=!0)=>{let o=e.findTestabilityInTree(t,n);if(o==null)throw new te(5103,!1);return o},dn.getAllAngularTestabilities=()=>e.getAllTestabilities(),dn.getAllAngularRootElements=()=>e.getAllRootElements();let r=t=>{let n=dn.getAllAngularTestabilities(),o=n.length,a=function(){o--,o==0&&t()};n.forEach(s=>{s.whenStable(a)})};dn.frameworkStabilizers||(dn.frameworkStabilizers=[]),dn.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,t){if(r==null)return null;let n=e.getTestability(r);return n??(t?Go().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},a3=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Ob=new O(""),sI=(()=>{let e=class e{constructor(t,n){this._zone=n,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,n,o){return this._findPluginFor(n).addEventListener(t,n,o)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(a=>a.supports(t)),!n)throw new te(5101,!1);return this._eventNameToPlugin.set(t,n),n}};e.\u0275fac=function(n){return new(n||e)(M(Ob),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),uh=class{constructor(e){this._doc=e}},Ib="ng-app-id",cI=(()=>{let e=class e{constructor(t,n,o,a={}){this.doc=t,this.appId=n,this.nonce=o,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ah(a),this.resetHostNodes()}addStyles(t){for(let n of t)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(t){for(let n of t)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(n=>n.remove()),t.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let n of this.getAllStyles())this.addStyleToHost(t,n)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let n of this.hostNodes)this.addStyleToHost(n,t)}onStyleRemoved(t){let n=this.styleRef;n.get(t)?.elements?.forEach(o=>o.remove()),n.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${Ib}="${this.appId}"]`);if(t?.length){let n=new Map;return t.forEach(o=>{o.textContent!=null&&n.set(o.textContent,o)}),n}return null}changeUsageCount(t,n){let o=this.styleRef;if(o.has(t)){let a=o.get(t);return a.usage+=n,a.usage}return o.set(t,{usage:n,elements:[]}),n}getStyleElement(t,n){let o=this.styleNodesInDOM,a=o?.get(n);if(a?.parentNode===t)return o.delete(n),a.removeAttribute(Ib),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=n,this.platformIsServer&&s.setAttribute(Ib,this.appId),t.appendChild(s),s}}addStyleToHost(t,n){let o=this.getStyleElement(t,n),a=this.styleRef,s=a.get(n)?.elements;s?s.push(o):a.set(n,{elements:[o],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Qs),M(pl,8),M(Kn))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Mb={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Pb=/%COMP%/g,lI="%COMP%",s3=`_nghost-${lI}`,c3=`_ngcontent-${lI}`,l3=!0,d3=new O("",{providedIn:"root",factory:()=>l3});function u3(i){return c3.replace(Pb,i)}function m3(i){return s3.replace(Pb,i)}function dI(i,e){return e.map(r=>r.replace(Pb,i))}var mh=(()=>{let e=class e{constructor(t,n,o,a,s,c,u,f=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=c,this.ngZone=u,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=ah(c),this.defaultRenderer=new Ol(t,s,u,this.platformIsServer)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===jo.ShadowDom&&(n=mt(B({},n),{encapsulation:jo.Emulated}));let o=this.getOrCreateRenderer(t,n);return o instanceof hh?o.applyToHost(t):o instanceof Rl&&o.applyStyles(),o}getOrCreateRenderer(t,n){let o=this.rendererByCompId,a=o.get(n.id);if(!a){let s=this.doc,c=this.ngZone,u=this.eventManager,f=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,C=this.platformIsServer;switch(n.encapsulation){case jo.Emulated:a=new hh(u,f,n,this.appId,v,s,c,C);break;case jo.ShadowDom:return new Rb(u,f,t,n,s,c,this.nonce,C);default:a=new Rl(u,f,n,v,s,c,C);break}o.set(n.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(n){return new(n||e)(M(sI),M(cI),M(Qs),M(d3),M(se),M(Kn),M(Z),M(pl))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Ol=class{constructor(e,r,t,n){this.eventManager=e,this.doc=r,this.ngZone=t,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Mb[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(rI(e)?e.content:e).appendChild(r)}insertBefore(e,r,t){e&&(rI(e)?e.content:e).insertBefore(r,t)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new te(-5104,!1);return r||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,t,n){if(n){r=n+":"+r;let o=Mb[n];o?e.setAttributeNS(o,r,t):e.setAttribute(r,t)}else e.setAttribute(r,t)}removeAttribute(e,r,t){if(t){let n=Mb[t];n?e.removeAttributeNS(n,r):e.removeAttribute(`${t}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,t,n){n&(Uo.DashCase|Uo.Important)?e.style.setProperty(r,t,n&Uo.Important?"important":""):e.style[r]=t}removeStyle(e,r,t){t&Uo.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,t){e!=null&&(e[r]=t)}setValue(e,r){e.nodeValue=r}listen(e,r,t){if(typeof e=="string"&&(e=Go().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(t))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function rI(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var Rb=class extends Ol{constructor(e,r,t,n,o,a,s,c){super(e,o,a,c),this.sharedStylesHost=r,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=dI(n.id,n.styles);for(let f of u){let v=document.createElement("style");s&&v.setAttribute("nonce",s),v.textContent=f,this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,t){return super.insertBefore(this.nodeOrShadowRoot(e),r,t)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Rl=class extends Ol{constructor(e,r,t,n,o,a,s,c){super(e,o,a,s),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=n,this.styles=c?dI(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},hh=class extends Rl{constructor(e,r,t,n,o,a,s,c){let u=n+"-"+t.id;super(e,r,t,o,a,s,c,u),this.contentAttr=u3(u),this.hostAttr=m3(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let t=super.createElement(e,r);return super.setAttribute(t,this.contentAttr,""),t}},h3=(()=>{let e=class e extends uh{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,o){return t.addEventListener(n,o,!1),()=>this.removeEventListener(t,n,o)}removeEventListener(t,n,o){return t.removeEventListener(n,o)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),aI=["alt","control","meta","shift"],p3={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},f3={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},g3=(()=>{let e=class e extends uh{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,o){let a=e.parseEventName(n),s=e.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Go().onAndCancel(t,a.domEventName,s))}static parseEventName(t){let n=t.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let a=e._normalizeKey(n.pop()),s="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),s="code."),aI.forEach(f=>{let v=n.indexOf(f);v>-1&&(n.splice(v,1),s+=f+".")}),s+=a,n.length!=0||a.length===0)return null;let u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(t,n){let o=p3[t.key]||t.key,a="";return n.indexOf("code.")>-1&&(o=t.code,a="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),aI.forEach(s=>{if(s!==o){let c=f3[s];c(t)&&(a+=s+".")}}),a+=o,a===n)}static eventCallback(t,n,o){return a=>{e.matchEventFullKeyCode(a,t)&&o.runGuarded(()=>n(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function _3(){kb.makeCurrent()}function v3(){return new un}function b3(){return HD(document),document}var y3=[{provide:Kn,useValue:bb},{provide:Pv,useValue:_3,multi:!0},{provide:se,useFactory:b3,deps:[]}],uI=ab(DE,"browser",y3),w3=new O(""),C3=[{provide:xl,useClass:Ab,deps:[]},{provide:nb,useClass:Ym,deps:[Z,Qm,xl]},{provide:Ym,useClass:Ym,deps:[Z,Qm,xl]}],x3=[{provide:Im,useValue:"root"},{provide:un,useFactory:v3,deps:[]},{provide:Ob,useClass:h3,multi:!0,deps:[se,Z,Kn]},{provide:Ob,useClass:g3,multi:!0,deps:[se]},mh,cI,sI,{provide:qr,useExisting:mh},{provide:Js,useClass:a3,deps:[]},[]],ph=(()=>{let e=class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Qs,useValue:t.appId}]}}};e.\u0275fac=function(n){return new(n||e)(M(w3,12))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[...x3,...C3],imports:[Si,SE]});let i=e;return i})();var mI=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Xa=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:function(n){let o=null;return n?o=new(n||e):o=M(D3),o},providedIn:"root"});let i=e;return i})(),D3=(()=>{let e=class e extends Xa{constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case Hi.NONE:return n;case Hi.HTML:return hr(n,"HTML")?Zn(n):Nv(this._doc,String(n)).toString();case Hi.STYLE:return hr(n,"Style")?Zn(n):n;case Hi.SCRIPT:if(hr(n,"Script"))return Zn(n);throw new te(5200,!1);case Hi.URL:return hr(n,"URL")?Zn(n):Nm(String(n));case Hi.RESOURCE_URL:if(hr(n,"ResourceURL"))return Zn(n);throw new te(5201,!1);default:throw new te(5202,!1)}}bypassSecurityTrustHtml(t){return qD(t)}bypassSecurityTrustStyle(t){return YD(t)}bypassSecurityTrustScript(t){return QD(t)}bypassSecurityTrustUrl(t){return KD(t)}bypassSecurityTrustResourceUrl(t){return ZD(t)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var dt="primary",Ql=Symbol("RouteTitle"),jb=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function ac(i){return new jb(i)}function S3(i,e,r){let t=r.path.split("/");if(t.length>i.length||r.pathMatch==="full"&&(e.hasChildren()||t.lengtht[o]===n)}else return i===e}function DI(i){return i.length>0?i[i.length-1]:null}function ra(i){return Pa(i)?i:Jr(i)?Qt(Promise.resolve(i)):oe(i)}var I3={exact:EI,subset:II},SI={exact:M3,subset:T3,ignored:()=>!0};function hI(i,e,r){return I3[r.paths](i.root,e.root,r.matrixParams)&&SI[r.queryParams](i.queryParams,e.queryParams)&&!(r.fragment==="exact"&&i.fragment!==e.fragment)}function M3(i,e){return Yo(i,e)}function EI(i,e,r){if(!es(i.segments,e.segments)||!_h(i.segments,e.segments,r)||i.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!i.children[t]||!EI(i.children[t],e.children[t],r))return!1;return!0}function T3(i,e){return Object.keys(e).length<=Object.keys(i).length&&Object.keys(e).every(r=>xI(i[r],e[r]))}function II(i,e,r){return MI(i,e,e.segments,r)}function MI(i,e,r,t){if(i.segments.length>r.length){let n=i.segments.slice(0,r.length);return!(!es(n,r)||e.hasChildren()||!_h(n,r,t))}else if(i.segments.length===r.length){if(!es(i.segments,r)||!_h(i.segments,r,t))return!1;for(let n in e.children)if(!i.children[n]||!II(i.children[n],e.children[n],t))return!1;return!0}else{let n=r.slice(0,i.segments.length),o=r.slice(i.segments.length);return!es(i.segments,n)||!_h(i.segments,n,t)||!i.children[dt]?!1:MI(i.children[dt],e,o,t)}}function _h(i,e,r){return e.every((t,n)=>SI[r](i[n].parameters,t.parameters))}var na=class{constructor(e=new Vt([],{}),r={},t=null){this.root=e,this.queryParams=r,this.fragment=t}get queryParamMap(){return this._queryParamMap??=ac(this.queryParams),this._queryParamMap}toString(){return O3.serialize(this)}},Vt=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vh(this)}},Ja=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=ac(this.parameters),this._parameterMap}toString(){return kI(this)}};function k3(i,e){return es(i,e)&&i.every((r,t)=>Yo(r.parameters,e[t].parameters))}function es(i,e){return i.length!==e.length?!1:i.every((r,t)=>r.path===e[t].path)}function A3(i,e){let r=[];return Object.entries(i.children).forEach(([t,n])=>{t===dt&&(r=r.concat(e(n,t)))}),Object.entries(i.children).forEach(([t,n])=>{t!==dt&&(r=r.concat(e(n,t)))}),r}var Kl=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>new sc,providedIn:"root"});let i=e;return i})(),sc=class{parse(e){let r=new Ub(e);return new na(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Fl(e.root,!0)}`,t=F3(e.queryParams),n=typeof e.fragment=="string"?`#${R3(e.fragment)}`:"";return`${r}${t}${n}`}},O3=new sc;function vh(i){return i.segments.map(e=>kI(e)).join("/")}function Fl(i,e){if(!i.hasChildren())return vh(i);if(e){let r=i.children[dt]?Fl(i.children[dt],!1):"",t=[];return Object.entries(i.children).forEach(([n,o])=>{n!==dt&&t.push(`${n}:${Fl(o,!1)}`)}),t.length>0?`${r}(${t.join("//")})`:r}else{let r=A3(i,(t,n)=>n===dt?[Fl(i.children[dt],!1)]:[`${n}:${Fl(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[dt]!=null?`${vh(i)}/${r[0]}`:`${vh(i)}/(${r.join("//")})`}}function TI(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fh(i){return TI(i).replace(/%3B/gi,";")}function R3(i){return encodeURI(i)}function zb(i){return TI(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bh(i){return decodeURIComponent(i)}function pI(i){return bh(i.replace(/\+/g,"%20"))}function kI(i){return`${zb(i.path)}${P3(i.parameters)}`}function P3(i){return Object.entries(i).map(([e,r])=>`;${zb(e)}=${zb(r)}`).join("")}function F3(i){let e=Object.entries(i).map(([r,t])=>Array.isArray(t)?t.map(n=>`${fh(r)}=${fh(n)}`).join("&"):`${fh(r)}=${fh(t)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var N3=/^[^\/()?;#]+/;function Fb(i){let e=i.match(N3);return e?e[0]:""}var L3=/^[^\/()?;=#]+/;function V3(i){let e=i.match(L3);return e?e[0]:""}var j3=/^[^=?&#]+/;function B3(i){let e=i.match(j3);return e?e[0]:""}var z3=/^[^&#]+/;function U3(i){let e=i.match(z3);return e?e[0]:""}var Ub=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vt([],{}):new Vt([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(t[dt]=new Vt(e,r)),t}parseSegment(){let e=Fb(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new te(4009,!1);return this.capture(e),new Ja(bh(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=V3(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let n=Fb(this.remaining);n&&(t=n,this.capture(t))}e[bh(r)]=bh(t)}parseQueryParam(e){let r=B3(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let a=U3(this.remaining);a&&(t=a,this.capture(t))}let n=pI(r),o=pI(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){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Fb(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new te(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=dt);let a=this.parseChildren();r[o]=Object.keys(a).length===1?a[dt]:new Vt([],a),this.consumeOptional("//")}return r}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 te(4011,!1)}};function AI(i){return i.segments.length>0?new Vt([],{[dt]:i}):i}function OI(i){let e={};for(let[t,n]of Object.entries(i.children)){let o=OI(n);if(t===dt&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))e[a]=s;else(o.segments.length>0||o.hasChildren())&&(e[t]=o)}let r=new Vt(i.segments,e);return H3(r)}function H3(i){if(i.numberOfChildren===1&&i.children[dt]){let e=i.children[dt];return new Vt(i.segments.concat(e.segments),e.children)}return i}function zl(i){return i instanceof na}function $3(i,e,r=null,t=null){let n=RI(i);return PI(n,e,r,t)}function RI(i){let e;function r(o){let a={};for(let c of o.children){let u=r(c);a[c.outlet]=u}let s=new Vt(o.url,a);return o===i&&(e=s),s}let t=r(i.root),n=AI(t);return e??n}function PI(i,e,r,t){let n=i;for(;n.parent;)n=n.parent;if(e.length===0)return Nb(n,n,n,r,t);let o=W3(e);if(o.toRoot())return Nb(n,n,new Vt([],{}),r,t);let a=G3(o,n,i),s=a.processChildren?Vl(a.segmentGroup,a.index,o.commands):NI(a.segmentGroup,a.index,o.commands);return Nb(n,a.segmentGroup,s,r,t)}function yh(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Ul(i){return typeof i=="object"&&i!=null&&i.outlets}function Nb(i,e,r,t,n){let o={};t&&Object.entries(t).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let a;i===e?a=r:a=FI(i,e,r);let s=AI(OI(a));return new na(s,o,n)}function FI(i,e,r){let t={};return Object.entries(i.children).forEach(([n,o])=>{o===e?t[n]=r:t[n]=FI(o,e,r)}),new Vt(i.segments,t)}var wh=class{constructor(e,r,t){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=t,e&&t.length>0&&yh(t[0]))throw new te(4003,!1);let n=t.find(Ul);if(n&&n!==DI(t))throw new te(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function W3(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new wh(!0,0,i);let e=0,r=!1,t=i.reduce((n,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([c,u])=>{s[c]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:s}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:a===0?(o.split("/").forEach((s,c)=>{c==0&&s==="."||(c==0&&s===""?r=!0:s===".."?e++:s!=""&&n.push(s))}),n):[...n,o]},[]);return new wh(r,e,t)}var nc=class{constructor(e,r,t){this.segmentGroup=e,this.processChildren=r,this.index=t}};function G3(i,e,r){if(i.isAbsolute)return new nc(e,!0,0);if(!r)return new nc(e,!1,NaN);if(r.parent===null)return new nc(r,!0,0);let t=yh(i.commands[0])?0:1,n=r.segments.length-1+t;return q3(r,n,i.numberOfDoubleDots)}function q3(i,e,r){let t=i,n=e,o=r;for(;o>n;){if(o-=n,t=t.parent,!t)throw new te(4005,!1);n=t.segments.length}return new nc(t,!1,n-o)}function Y3(i){return Ul(i[0])?i[0].outlets:{[dt]:i}}function NI(i,e,r){if(i??=new Vt([],{}),i.segments.length===0&&i.hasChildren())return Vl(i,e,r);let t=Q3(i,e,r),n=r.slice(t.commandIndex);if(t.match&&t.pathIndexo!==dt)&&i.children[dt]&&i.numberOfChildren===1&&i.children[dt].segments.length===0){let o=Vl(i.children[dt],e,r);return new Vt(i.segments,o.children)}return Object.entries(t).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(n[o]=NI(i.children[o],e,a))}),Object.entries(i.children).forEach(([o,a])=>{t[o]===void 0&&(n[o]=a)}),new Vt(i.segments,n)}}function Q3(i,e,r){let t=0,n=e,o={match:!1,pathIndex:0,commandIndex:0};for(;n=r.length)return o;let a=i.segments[n],s=r[t];if(Ul(s))break;let c=`${s}`,u=t0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!gI(c,u,a))return o;t+=2}else{if(!gI(c,{},a))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function Hb(i,e,r){let t=i.segments.slice(0,e),n=0;for(;n{typeof t=="string"&&(t=[t]),t!==null&&(e[r]=Hb(new Vt([],{}),0,t))}),e}function fI(i){let e={};return Object.entries(i).forEach(([r,t])=>e[r]=`${t}`),e}function gI(i,e,r){return i==r.path&&Yo(e,r.parameters)}var jl="imperative",Vi=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}(Vi||{}),Jn=class{constructor(e,r){this.id=e,this.url=r}},cc=class extends Jn{constructor(e,r,t="imperative",n=null){super(e,r),this.type=Vi.NavigationStart,this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Qo=class extends Jn{constructor(e,r,t){super(e,r),this.urlAfterRedirects=t,this.type=Vi.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Fn=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(Fn||{}),Ch=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(Ch||{}),xr=class extends Jn{constructor(e,r,t,n){super(e,r),this.reason=t,this.code=n,this.type=Vi.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},oa=class extends Jn{constructor(e,r,t,n){super(e,r),this.reason=t,this.code=n,this.type=Vi.NavigationSkipped}},Hl=class extends Jn{constructor(e,r,t,n){super(e,r),this.error=t,this.target=n,this.type=Vi.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},xh=class extends Jn{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=Vi.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$b=class extends Jn{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=Vi.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wb=class extends Jn{constructor(e,r,t,n,o){super(e,r),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o,this.type=Vi.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Gb=class extends Jn{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=Vi.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qb=class extends Jn{constructor(e,r,t,n){super(e,r),this.urlAfterRedirects=t,this.state=n,this.type=Vi.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yb=class{constructor(e){this.route=e,this.type=Vi.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Qb=class{constructor(e){this.route=e,this.type=Vi.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Kb=class{constructor(e){this.snapshot=e,this.type=Vi.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zb=class{constructor(e){this.snapshot=e,this.type=Vi.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xb=class{constructor(e){this.snapshot=e,this.type=Vi.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jb=class{constructor(e){this.snapshot=e,this.type=Vi.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dh=class{constructor(e,r,t){this.routerEvent=e,this.position=r,this.anchor=t,this.type=Vi.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},$l=class{},lc=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var e0=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new Zl(this.injector),this.attachRef=null}},Zl=(()=>{let e=class e{constructor(t){this.parentInjector=t,this.contexts=new Map}onChildOutletCreated(t,n){let o=this.getOrCreateContext(t);o.outlet=n,this.contexts.set(t,o)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new e0(this.parentInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(n){return new(n||e)(M(Pi))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Sh=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=t0(e,this._root);return r?r.children.map(t=>t.value):[]}firstChild(e){let r=t0(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=i0(e,this._root);return r.length<2?[]:r[r.length-2].children.map(n=>n.value).filter(n=>n!==e)}pathFromRoot(e){return i0(e,this._root).map(r=>r.value)}};function t0(i,e){if(i===e.value)return e;for(let r of e.children){let t=t0(i,r);if(t)return t}return null}function i0(i,e){if(i===e.value)return[e];for(let r of e.children){let t=i0(i,r);if(t.length)return t.unshift(e),t}return[]}var Pn=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function ic(i){let e={};return i&&i.children.forEach(r=>e[r.value.outlet]=r),e}var Eh=class extends Sh{constructor(e,r){super(e),this.snapshot=r,u0(this,e)}toString(){return this.snapshot.toString()}};function LI(i){let e=Z3(i),r=new $t([new Ja("",{})]),t=new $t({}),n=new $t({}),o=new $t({}),a=new $t(""),s=new Oe(r,t,o,a,n,dt,i,e.root);return s.snapshot=e.root,new Eh(new Pn(s,[]),e)}function Z3(i){let e={},r={},t={},n="",o=new oc([],e,t,n,r,dt,i,null,{});return new Mh("",new Pn(o,[]))}var Oe=class{constructor(e,r,t,n,o,a,s,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(de(u=>u[Ql]))??oe(void 0),this.url=e,this.params=r,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(de(e=>ac(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(de(e=>ac(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ih(i,e,r="emptyOnly"){let t,{routeConfig:n}=i;return e!==null&&(r==="always"||n?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:B(B({},e.params),i.params),data:B(B({},e.data),i.data),resolve:B(B(B(B({},i.data),e.data),n?.data),i._resolvedData)}:t={params:B({},i.params),data:B({},i.data),resolve:B(B({},i.data),i._resolvedData??{})},n&&jI(n)&&(t.resolve[Ql]=n.title),t}var oc=class{get title(){return this.data?.[Ql]}constructor(e,r,t,n,o,a,s,c,u){this.url=e,this.params=r,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=u}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??=ac(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ac(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Mh=class extends Sh{constructor(e,r){super(r),this.url=e,u0(this,r)}toString(){return VI(this._root)}};function u0(i,e){e.value._routerState=i,e.children.forEach(r=>u0(i,r))}function VI(i){let e=i.children.length>0?` { ${i.children.map(VI).join(", ")} } `:"";return`${i.value}${e}`}function Lb(i){if(i.snapshot){let e=i.snapshot,r=i._futureSnapshot;i.snapshot=r,Yo(e.queryParams,r.queryParams)||i.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&i.fragmentSubject.next(r.fragment),Yo(e.params,r.params)||i.paramsSubject.next(r.params),E3(e.url,r.url)||i.urlSubject.next(r.url),Yo(e.data,r.data)||i.dataSubject.next(r.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function n0(i,e){let r=Yo(i.params,e.params)&&k3(i.url,e.url),t=!i.parent!=!e.parent;return r&&!t&&(!i.parent||n0(i.parent,e.parent))}function jI(i){return typeof i.title=="string"||i.title===null}var m0=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=dt,this.activateEvents=new T,this.deactivateEvents=new T,this.attachEvents=new T,this.detachEvents=new T,this.parentContexts=k(Zl),this.location=k(wt),this.changeDetector=k(me),this.inputBinder=k(Rh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:o}=t.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new te(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new te(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new te(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new te(4013,!1);this._activatedRoute=t;let o=this.location,s=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new o0(t,c,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Qe]});let i=e;return i})(),o0=class i{__ngOutletInjector(e){return new i(this.route,this.childContexts,e)}constructor(e,r,t){this.route=e,this.childContexts=r,this.parent=t}get(e,r){return e===Oe?this.route:e===Zl?this.childContexts:this.parent.get(e,r)}},Rh=new O(""),_I=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,o=An([n.queryParams,n.params,n.data]).pipe(Mt(([a,s,c],u)=>(c=B(B(B({},a),s),c),u===0?oe(c):Promise.resolve(c)))).subscribe(a=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let s=EE(n.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:c}of s.inputs)t.activatedComponentRef.setInput(c,a[c])});this.outletDataSubscriptions.set(t,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function X3(i,e,r){let t=Wl(i,e._root,r?r._root:void 0);return new Eh(t,e)}function Wl(i,e,r){if(r&&i.shouldReuseRoute(e.value,r.value.snapshot)){let t=r.value;t._futureSnapshot=e.value;let n=J3(i,e,r);return new Pn(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(s=>Wl(i,s)),a}}let t=eB(e.value),n=e.children.map(o=>Wl(i,o));return new Pn(t,n)}}function J3(i,e,r){return e.children.map(t=>{for(let n of r.children)if(i.shouldReuseRoute(t.value,n.value.snapshot))return Wl(i,t,n);return Wl(i,t)})}function eB(i){return new Oe(new $t(i.url),new $t(i.params),new $t(i.queryParams),new $t(i.fragment),new $t(i.data),i.outlet,i.component,i)}var Gl=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},BI="ngNavigationCancelingError";function Th(i,e){let{redirectTo:r,navigationBehaviorOptions:t}=zl(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,n=zI(!1,Fn.Redirect);return n.url=r,n.navigationBehaviorOptions=t,n}function zI(i,e){let r=new Error(`NavigationCancelingError: ${i||""}`);return r[BI]=!0,r.cancellationCode=e,r}function tB(i){return UI(i)&&zl(i.url)}function UI(i){return!!i&&i[BI]}var iB=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["ng-component"]],standalone:!0,features:[re],decls:1,vars:0,template:function(n,o){n&1&&I(0,"router-outlet")},dependencies:[m0],encapsulation:2});let i=e;return i})();function nB(i,e){return i.providers&&!i._injector&&(i._injector=Gm(i.providers,e,`Route: ${i.path}`)),i._injector??e}function h0(i){let e=i.children&&i.children.map(h0),r=e?mt(B({},i),{children:e}):B({},i);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==dt&&(r.component=iB),r}function Co(i){return i.outlet||dt}function oB(i,e){let r=i.filter(t=>Co(t)===e);return r.push(...i.filter(t=>Co(t)!==e)),r}function Xl(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let e=i.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var rB=(i,e,r,t)=>de(n=>(new r0(e,n.targetRouterState,n.currentRouterState,r,t).activate(i),n)),r0=class{constructor(e,r,t,n,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,t,e),Lb(this.futureState.root),this.activateChildRoutes(r,t,e)}deactivateChildRoutes(e,r,t){let n=ic(r);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,r,t){let n=e.value,o=r?r.value:null;if(n===o)if(n.component){let a=t.getContext(n.outlet);a&&this.deactivateChildRoutes(e,r,a.children)}else this.deactivateChildRoutes(e,r,t);else o&&this.deactivateRouteAndItsChildren(r,t)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let t=r.getContext(e.value.outlet),n=t&&e.value.component?t.children:r,o=ic(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);if(t&&t.outlet){let a=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:s})}}deactivateRouteAndOutlet(e,r){let t=r.getContext(e.value.outlet),n=t&&e.value.component?t.children:r,o=ic(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,r,t){let n=ic(r);e.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new Jb(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Zb(e.value.snapshot))}activateRoutes(e,r,t){let n=e.value,o=r?r.value:null;if(Lb(n),n===o)if(n.component){let a=t.getOrCreateContext(n.outlet);this.activateChildRoutes(e,r,a.children)}else this.activateChildRoutes(e,r,t);else if(n.component){let a=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Lb(s.route.value),this.activateChildRoutes(e,null,a.children)}else{let s=Xl(n.snapshot);a.attachRef=null,a.route=n,a.injector=s??a.injector,a.outlet&&a.outlet.activateWith(n,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,t)}},kh=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},rc=class{constructor(e,r){this.component=e,this.route=r}};function aB(i,e,r){let t=i._root,n=e?e._root:null;return Nl(t,n,r,[t.value])}function sB(i){let e=i.routeConfig?i.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:i,guards:e}}function uc(i,e){let r=Symbol(),t=e.get(i,r);return t===r?typeof i=="function"&&!Px(i)?i:e.get(i):t}function Nl(i,e,r,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=ic(e);return i.children.forEach(a=>{cB(a,o[a.value.outlet],r,t.concat([a.value]),n),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Bl(s,r.getContext(a),n)),n}function cB(i,e,r,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,a=e?e.value:null,s=r?r.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let c=lB(a,o,o.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new kh(t)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Nl(i,e,s?s.children:null,t,n):Nl(i,e,r,t,n),c&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new rc(s.outlet.component,a))}else a&&Bl(e,s,n),n.canActivateChecks.push(new kh(t)),o.component?Nl(i,null,s?s.children:null,t,n):Nl(i,null,r,t,n);return n}function lB(i,e,r){if(typeof r=="function")return r(i,e);switch(r){case"pathParamsChange":return!es(i.url,e.url);case"pathParamsOrQueryParamsChange":return!es(i.url,e.url)||!Yo(i.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!n0(i,e)||!Yo(i.queryParams,e.queryParams);case"paramsChange":default:return!n0(i,e)}}function Bl(i,e,r){let t=ic(i),n=i.value;Object.entries(t).forEach(([o,a])=>{n.component?e?Bl(a,e.children.getContext(o),r):Bl(a,null,r):Bl(a,e,r)}),n.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new rc(e.outlet.component,n)):r.canDeactivateChecks.push(new rc(null,n)):r.canDeactivateChecks.push(new rc(null,n))}function Jl(i){return typeof i=="function"}function dB(i){return typeof i=="boolean"}function uB(i){return i&&Jl(i.canLoad)}function mB(i){return i&&Jl(i.canActivate)}function hB(i){return i&&Jl(i.canActivateChild)}function pB(i){return i&&Jl(i.canDeactivate)}function fB(i){return i&&Jl(i.canMatch)}function HI(i){return i instanceof po||i?.name==="EmptyError"}var gh=Symbol("INITIAL_VALUE");function dc(){return Mt(i=>An(i.map(e=>e.pipe(It(1),Ot(gh)))).pipe(de(e=>{for(let r of e)if(r!==!0){if(r===gh)return gh;if(r===!1||gB(r))return r}return!0}),qe(e=>e!==gh),It(1)))}function gB(i){return zl(i)||i instanceof Gl}function _B(i,e){return si(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:a}}=r;return a.length===0&&o.length===0?oe(mt(B({},r),{guardsResult:!0})):vB(a,t,n,i).pipe(si(s=>s&&dB(s)?bB(t,o,i,e):oe(s)),de(s=>mt(B({},r),{guardsResult:s})))})}function vB(i,e,r,t){return Qt(i).pipe(si(n=>DB(n.component,n.route,r,e,t)),No(n=>n!==!0,!0))}function bB(i,e,r,t){return Qt(e).pipe(rr(n=>Po(wB(n.route.parent,t),yB(n.route,t),xB(i,n.path,r),CB(i,n.route,r))),No(n=>n!==!0,!0))}function yB(i,e){return i!==null&&e&&e(new Xb(i)),oe(!0)}function wB(i,e){return i!==null&&e&&e(new Kb(i)),oe(!0)}function CB(i,e,r){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return oe(!0);let n=t.map(o=>Wn(()=>{let a=Xl(e)??r,s=uc(o,a),c=mB(s)?s.canActivate(e,i):bn(a,()=>s(e,i));return ra(c).pipe(No())}));return oe(n).pipe(dc())}function xB(i,e,r){let t=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(a=>sB(a)).filter(a=>a!==null).map(a=>Wn(()=>{let s=a.guards.map(c=>{let u=Xl(a.node)??r,f=uc(c,u),v=hB(f)?f.canActivateChild(t,i):bn(u,()=>f(t,i));return ra(v).pipe(No())});return oe(s).pipe(dc())}));return oe(o).pipe(dc())}function DB(i,e,r,t,n){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return oe(!0);let a=o.map(s=>{let c=Xl(e)??n,u=uc(s,c),f=pB(u)?u.canDeactivate(i,e,r,t):bn(c,()=>u(i,e,r,t));return ra(f).pipe(No())});return oe(a).pipe(dc())}function SB(i,e,r,t){let n=e.canLoad;if(n===void 0||n.length===0)return oe(!0);let o=n.map(a=>{let s=uc(a,i),c=uB(s)?s.canLoad(e,r):bn(i,()=>s(e,r));return ra(c)});return oe(o).pipe(dc(),$I(t))}function $I(i){return Ag(zt(e=>{if(typeof e!="boolean")throw Th(i,e)}),de(e=>e===!0))}function EB(i,e,r,t){let n=e.canMatch;if(!n||n.length===0)return oe(!0);let o=n.map(a=>{let s=uc(a,i),c=fB(s)?s.canMatch(e,r):bn(i,()=>s(e,r));return ra(c)});return oe(o).pipe(dc(),$I(t))}var ql=class{constructor(e){this.segmentGroup=e||null}},Yl=class extends Error{constructor(e){super(),this.urlTree=e}};function tc(i){return Ro(new ql(i))}function IB(i){return Ro(new te(4e3,!1))}function MB(i){return Ro(zI(!1,Fn.GuardRejected))}var a0=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let t=[],n=r.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return oe(t);if(n.numberOfChildren>1||!n.children[dt])return IB(`${e.redirectTo}`);n=n.children[dt]}}applyRedirectCommands(e,r,t,n,o){if(typeof r!="string"){let s=r,{queryParams:c,fragment:u,routeConfig:f,url:v,outlet:C,params:x,data:E,title:R}=n,j=bn(o,()=>s({params:x,data:E,queryParams:c,fragment:u,routeConfig:f,url:v,outlet:C,title:R}));if(j instanceof na)throw new Yl(j);r=j}let a=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,t);if(r[0]==="/")throw new Yl(a);return a}applyRedirectCreateUrlTree(e,r,t,n){let o=this.createSegmentGroup(e,r.root,t,n);return new na(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let t={};return Object.entries(e).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);t[n]=r[s]}else t[n]=o}),t}createSegmentGroup(e,r,t,n){let o=this.createSegments(e,r.segments,t,n),a={};return Object.entries(r.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(e,c,t,n)}),new Vt(o,a)}createSegments(e,r,t,n){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,n):this.findOrReturn(o,t))}findPosParam(e,r,t){let n=t[r.path.substring(1)];if(!n)throw new te(4001,!1);return n}findOrReturn(e,r){let t=0;for(let n of r){if(n.path===e.path)return r.splice(t),n;t++}return e}},s0={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TB(i,e,r,t,n){let o=p0(i,e,r);return o.matched?(t=nB(e,t),EB(t,e,r,n).pipe(de(a=>a===!0?o:B({},s0)))):oe(o)}function p0(i,e,r){if(e.path==="**")return kB(r);if(e.path==="")return e.pathMatch==="full"&&(i.hasChildren()||r.length>0)?B({},s0):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let n=(e.matcher||S3)(r,i,e);if(!n)return B({},s0);let o={};Object.entries(n.posParams??{}).forEach(([s,c])=>{o[s]=c.path});let a=n.consumed.length>0?B(B({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:r.slice(n.consumed.length),parameters:a,positionalParamSegments:n.posParams??{}}}function kB(i){return{matched:!0,parameters:i.length>0?DI(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function vI(i,e,r,t){return r.length>0&&RB(i,r,t)?{segmentGroup:new Vt(e,OB(t,new Vt(r,i.children))),slicedSegments:[]}:r.length===0&&PB(i,r,t)?{segmentGroup:new Vt(i.segments,AB(i,r,t,i.children)),slicedSegments:r}:{segmentGroup:new Vt(i.segments,i.children),slicedSegments:r}}function AB(i,e,r,t){let n={};for(let o of r)if(Ph(i,e,o)&&!t[Co(o)]){let a=new Vt([],{});n[Co(o)]=a}return B(B({},t),n)}function OB(i,e){let r={};r[dt]=e;for(let t of i)if(t.path===""&&Co(t)!==dt){let n=new Vt([],{});r[Co(t)]=n}return r}function RB(i,e,r){return r.some(t=>Ph(i,e,t)&&Co(t)!==dt)}function PB(i,e,r){return r.some(t=>Ph(i,e,t))}function Ph(i,e,r){return(i.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function FB(i,e,r,t){return Co(i)!==t&&(t===dt||!Ph(e,r,i))?!1:p0(e,i,r).matched}function NB(i,e,r){return e.length===0&&!i.children[r]}var c0=class{};function LB(i,e,r,t,n,o,a="emptyOnly"){return new l0(i,e,r,t,n,a,o).recognize()}var VB=31,l0=class{constructor(e,r,t,n,o,a,s){this.injector=e,this.configLoader=r,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new a0(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new te(4002,`'${e.segmentGroup}'`)}recognize(){let e=vI(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(de(({children:r,rootSnapshot:t})=>{let n=new Pn(t,r),o=new Mh("",n),a=$3(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){let r=new oc([],Object.freeze({}),Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),dt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,dt,r).pipe(de(t=>({children:t,rootSnapshot:r})),zi(t=>{if(t instanceof Yl)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ql?this.noMatchError(t):t}))}processSegmentGroup(e,r,t,n,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,r,t,o):this.processSegment(e,r,t,t.segments,n,!0,o).pipe(de(a=>a instanceof Pn?[a]:[]))}processChildren(e,r,t,n){let o=[];for(let a of Object.keys(t.children))a==="primary"?o.unshift(a):o.push(a);return Qt(o).pipe(rr(a=>{let s=t.children[a],c=oB(r,a);return this.processSegmentGroup(e,c,s,a,n)}),Hg((a,s)=>(a.push(...s),a)),Vr(null),Ug(),si(a=>{if(a===null)return tc(t);let s=WI(a);return jB(s),oe(s)}))}processSegment(e,r,t,n,o,a,s){return Qt(r).pipe(rr(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,t,n,o,a,s).pipe(zi(u=>{if(u instanceof ql)return oe(null);throw u}))),No(c=>!!c),zi(c=>{if(HI(c))return NB(t,n,o)?oe(new c0):tc(t);throw c}))}processSegmentAgainstRoute(e,r,t,n,o,a,s,c){return FB(t,n,o,a)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,n,t,o,a,c):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,t,o,a,c):tc(n):tc(n)}expandSegmentAgainstRouteUsingRedirect(e,r,t,n,o,a,s){let{matched:c,parameters:u,consumedSegments:f,positionalParamSegments:v,remainingSegments:C}=p0(r,n,o);if(!c)return tc(r);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>VB&&(this.allowRedirects=!1));let x=new oc(o,u,Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,bI(n),Co(n),n.component??n._loadedComponent??null,n,yI(n)),E=Ih(x,s,this.paramsInheritanceStrategy);x.params=Object.freeze(E.params),x.data=Object.freeze(E.data);let R=this.applyRedirects.applyRedirectCommands(f,n.redirectTo,v,x,e);return this.applyRedirects.lineralizeSegments(n,R).pipe(si(j=>this.processSegment(e,t,r,j.concat(C),a,!1,s)))}matchSegmentAgainstRoute(e,r,t,n,o,a){let s=TB(r,t,n,e,this.urlSerializer);return t.path==="**"&&(r.children={}),s.pipe(Mt(c=>c.matched?(e=t._injector??e,this.getChildConfig(e,t,n).pipe(Mt(({routes:u})=>{let f=t._loadedInjector??e,{parameters:v,consumedSegments:C,remainingSegments:x}=c,E=new oc(C,v,Object.freeze(B({},this.urlTree.queryParams)),this.urlTree.fragment,bI(t),Co(t),t.component??t._loadedComponent??null,t,yI(t)),R=Ih(E,a,this.paramsInheritanceStrategy);E.params=Object.freeze(R.params),E.data=Object.freeze(R.data);let{segmentGroup:j,slicedSegments:F}=vI(r,C,x,u);if(F.length===0&&j.hasChildren())return this.processChildren(f,u,j,E).pipe(de(at=>new Pn(E,at)));if(u.length===0&&F.length===0)return oe(new Pn(E,[]));let _e=Co(t)===o;return this.processSegment(f,u,j,F,_e?dt:o,!0,E).pipe(de(at=>new Pn(E,at instanceof Pn?[at]:[])))}))):tc(r)))}getChildConfig(e,r,t){return r.children?oe({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?oe({routes:r._loadedRoutes,injector:r._loadedInjector}):SB(e,r,t,this.urlSerializer).pipe(si(n=>n?this.configLoader.loadChildren(e,r).pipe(zt(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):MB(r))):oe({routes:[],injector:e})}};function jB(i){i.sort((e,r)=>e.value.outlet===dt?-1:r.value.outlet===dt?1:e.value.outlet.localeCompare(r.value.outlet))}function BB(i){let e=i.value.routeConfig;return e&&e.path===""}function WI(i){let e=[],r=new Set;for(let t of i){if(!BB(t)){e.push(t);continue}let n=e.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),r.add(n)):e.push(t)}for(let t of r){let n=WI(t.children);e.push(new Pn(t.value,n))}return e.filter(t=>!r.has(t))}function bI(i){return i.data||{}}function yI(i){return i.resolve||{}}function zB(i,e,r,t,n,o){return si(a=>LB(i,e,r,t,a.extractedUrl,n,o).pipe(de(({state:s,tree:c})=>mt(B({},a),{targetSnapshot:s,urlAfterRedirects:c}))))}function UB(i,e){return si(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return oe(r);let o=new Set(n.map(c=>c.route)),a=new Set;for(let c of o)if(!a.has(c))for(let u of GI(c))a.add(u);let s=0;return Qt(a).pipe(rr(c=>o.has(c)?HB(c,t,i,e):(c.data=Ih(c,c.parent,i).resolve,oe(void 0))),zt(()=>s++),Ts(1),si(c=>s===a.size?oe(r):Ti))})}function GI(i){let e=i.children.map(r=>GI(r)).flat();return[i,...e]}function HB(i,e,r,t){let n=i.routeConfig,o=i._resolve;return n?.title!==void 0&&!jI(n)&&(o[Ql]=n.title),$B(o,i,e,t).pipe(de(a=>(i._resolvedData=a,i.data=Ih(i,i.parent,r).resolve,null)))}function $B(i,e,r,t){let n=Bb(i);if(n.length===0)return oe({});let o={};return Qt(n).pipe(si(a=>WB(i[a],e,r,t).pipe(No(),zt(s=>{if(s instanceof Gl)throw Th(new sc,s);o[a]=s}))),Ts(1),Xc(o),zi(a=>HI(a)?Ti:Ro(a)))}function WB(i,e,r,t){let n=Xl(e)??t,o=uc(i,n),a=o.resolve?o.resolve(e,r):bn(n,()=>o(e,r));return ra(a)}function Vb(i){return Mt(e=>{let r=i(e);return r?Qt(r).pipe(de(()=>e)):oe(e)})}var qI=(()=>{let e=class e{buildTitle(t){let n,o=t.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(a=>a.outlet===dt);return n}getResolvedTitleForRoute(t){return t.data[Ql]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(GB),providedIn:"root"});let i=e;return i})(),GB=(()=>{let e=class e extends qI{constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}};e.\u0275fac=function(n){return new(n||e)(M(mI))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ed=new O("",{providedIn:"root",factory:()=>({})}),Ah=new O(""),f0=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=k(Xm)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return oe(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=ra(t.loadComponent()).pipe(de(YI),zt(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),Fo(()=>{this.componentLoaders.delete(t)})),o=new Nr(n,()=>new W).pipe(xs());return this.componentLoaders.set(t,o),o}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return oe({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let a=qB(n,this.compiler,t,this.onLoadEndListener).pipe(Fo(()=>{this.childrenLoaders.delete(n)})),s=new Nr(a,()=>new W).pipe(xs());return this.childrenLoaders.set(n,s),s}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function qB(i,e,r,t){return ra(i.loadChildren()).pipe(de(YI),si(n=>n instanceof cl||Array.isArray(n)?oe(n):Qt(e.compileModuleAsync(n))),de(n=>{t&&t(i);let o,a,s=!1;return Array.isArray(n)?(a=n,s=!0):(o=n.create(r).injector,a=o.get(Ah,[],{optional:!0,self:!0}).flat()),{routes:a.map(h0),injector:o}}))}function YB(i){return i&&typeof i=="object"&&"default"in i}function YI(i){return YB(i)?i.default:i}var g0=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(QB),providedIn:"root"});let i=e;return i})(),QB=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),QI=new O(""),KI=new O("");function KB(i,e,r){let t=i.get(KI),n=i.get(se);return i.get(Z).runOutsideAngular(()=>{if(!n.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u}),s=n.startViewTransition(()=>(o(),ZB(i))),{onViewTransitionCreated:c}=t;return c&&bn(i,()=>c({transition:s,from:e,to:r})),a})}function ZB(i){return new Promise(e=>{ri(e,{injector:i})})}var XB=new O(""),_0=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=k(f0),this.environmentInjector=k(Pi),this.urlSerializer=k(Kl),this.rootContexts=k(Zl),this.location=k(qo),this.inputBindingEnabled=k(Rh,{optional:!0})!==null,this.titleStrategy=k(qI),this.options=k(ed,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=k(g0),this.createViewTransition=k(QI,{optional:!0}),this.navigationErrorHandler=k(XB,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>oe(void 0),this.rootComponentType=null;let t=o=>this.events.next(new Yb(o)),n=o=>this.events.next(new Qb(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;this.transitions?.next(mt(B(B({},this.transitions.value),t),{id:n}))}setupNavigations(t,n,o){return this.transitions=new $t({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:jl,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(qe(a=>a.id!==0),de(a=>mt(B({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),Mt(a=>{let s=!1,c=!1;return oe(a).pipe(Mt(u=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",Fn.SupersededByNewNavigation),Ti;this.currentTransition=a,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?mt(B({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let f=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=u.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!f&&v!=="reload"){let C="";return this.events.next(new oa(u.id,this.urlSerializer.serialize(u.rawUrl),C,Ch.IgnoredSameUrlNavigation)),u.resolve(!1),Ti}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return oe(u).pipe(Mt(C=>{let x=this.transitions?.getValue();return this.events.next(new cc(C.id,this.urlSerializer.serialize(C.extractedUrl),C.source,C.restoredState)),x!==this.transitions?.getValue()?Ti:Promise.resolve(C)}),zB(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),zt(C=>{a.targetSnapshot=C.targetSnapshot,a.urlAfterRedirects=C.urlAfterRedirects,this.currentNavigation=mt(B({},this.currentNavigation),{finalUrl:C.urlAfterRedirects});let x=new xh(C.id,this.urlSerializer.serialize(C.extractedUrl),this.urlSerializer.serialize(C.urlAfterRedirects),C.targetSnapshot);this.events.next(x)}));if(f&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:C,extractedUrl:x,source:E,restoredState:R,extras:j}=u,F=new cc(C,this.urlSerializer.serialize(x),E,R);this.events.next(F);let _e=LI(this.rootComponentType).snapshot;return this.currentTransition=a=mt(B({},u),{targetSnapshot:_e,urlAfterRedirects:x,extras:mt(B({},j),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=x,oe(a)}else{let C="";return this.events.next(new oa(u.id,this.urlSerializer.serialize(u.extractedUrl),C,Ch.IgnoredByUrlHandlingStrategy)),u.resolve(!1),Ti}}),zt(u=>{let f=new $b(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}),de(u=>(this.currentTransition=a=mt(B({},u),{guards:aB(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),a)),_B(this.environmentInjector,u=>this.events.next(u)),zt(u=>{if(a.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Th(this.urlSerializer,u.guardsResult);let f=new Wb(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(f)}),qe(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Fn.GuardRejected),!1)),Vb(u=>{if(u.guards.canActivateChecks.length)return oe(u).pipe(zt(f=>{let v=new Gb(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(v)}),Mt(f=>{let v=!1;return oe(f).pipe(UB(this.paramsInheritanceStrategy,this.environmentInjector),zt({next:()=>v=!0,complete:()=>{v||this.cancelNavigationTransition(f,"",Fn.NoDataFromResolver)}}))}),zt(f=>{let v=new qb(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(v)}))}),Vb(u=>{let f=v=>{let C=[];v.routeConfig?.loadComponent&&!v.routeConfig._loadedComponent&&C.push(this.configLoader.loadComponent(v.routeConfig).pipe(zt(x=>{v.component=x}),de(()=>{})));for(let x of v.children)C.push(...f(x));return C};return An(f(u.targetSnapshot.root)).pipe(Vr(null),It(1))}),Vb(()=>this.afterPreactivation()),Mt(()=>{let{currentSnapshot:u,targetSnapshot:f}=a,v=this.createViewTransition?.(this.environmentInjector,u.root,f.root);return v?Qt(v).pipe(de(()=>a)):oe(a)}),de(u=>{let f=X3(t.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=a=mt(B({},u),{targetRouterState:f}),this.currentNavigation.targetRouterState=f,a}),zt(()=>{this.events.next(new $l)}),rB(this.rootContexts,t.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),It(1),zt({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Qo(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),fe(this.transitionAbortSubject.pipe(zt(u=>{throw u}))),Fo(()=>{!s&&!c&&this.cancelNavigationTransition(a,"",Fn.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),zi(u=>{if(c=!0,UI(u))this.events.next(new xr(a.id,this.urlSerializer.serialize(a.extractedUrl),u.message,u.cancellationCode)),tB(u)?this.events.next(new lc(u.url,u.navigationBehaviorOptions)):a.resolve(!1);else{let f=new Hl(a.id,this.urlSerializer.serialize(a.extractedUrl),u,a.targetSnapshot??void 0);try{let v=bn(this.environmentInjector,()=>this.navigationErrorHandler?.(f));if(v instanceof Gl){let{message:C,cancellationCode:x}=Th(this.urlSerializer,v);this.events.next(new xr(a.id,this.urlSerializer.serialize(a.extractedUrl),C,x)),this.events.next(new lc(v.redirectTo,v.navigationBehaviorOptions))}else{this.events.next(f);let C=t.errorHandler(u);a.resolve(!!C)}}catch(v){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(v)}}return Ti}))}))}cancelNavigationTransition(t,n,o){let a=new xr(t.id,this.urlSerializer.serialize(t.extractedUrl),n,o);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function JB(i){return i!==jl}var e4=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(t4),providedIn:"root"});let i=e;return i})(),d0=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},t4=(()=>{let e=class e extends d0{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ZI=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:()=>k(i4),providedIn:"root"});let i=e;return i})(),i4=(()=>{let e=class e extends ZI{constructor(){super(...arguments),this.location=k(qo),this.urlSerializer=k(Kl),this.options=k(ed,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=k(g0),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new na,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=LI(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&t(n.url,n.state)})}handleRouterEvent(t,n){if(t instanceof cc)this.stateMemento=this.createStateMemento();else if(t instanceof oa)this.rawUrlTree=n.initialUrl;else if(t instanceof xh){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(o,n)}}else t instanceof $l?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n))):t instanceof xr&&(t.code===Fn.GuardRejected||t.code===Fn.NoDataFromResolver)?this.restoreHistory(n):t instanceof Hl?this.restoreHistory(n,!0):t instanceof Qo&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){let a=this.browserPageId,s=B(B({},n.extras.state),this.generateNgRouterState(n.id,a));this.location.replaceState(o,"",s)}else{let a=B(B({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(o,"",a)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,a=this.currentPageId-o;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Ll=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Ll||{});function XI(i,e){i.events.pipe(qe(r=>r instanceof Qo||r instanceof xr||r instanceof Hl||r instanceof oa),de(r=>r instanceof Qo||r instanceof oa?Ll.COMPLETE:(r instanceof xr?r.code===Fn.Redirect||r.code===Fn.SupersededByNewNavigation:!1)?Ll.REDIRECTING:Ll.FAILED),qe(r=>r!==Ll.REDIRECTING),It(1)).subscribe(()=>{e()})}function n4(i){throw i}var o4={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},r4={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ko=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=k(qm),this.stateManager=k(ZI),this.options=k(ed,{optional:!0})||{},this.pendingTasks=k($o),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=k(_0),this.urlSerializer=k(Kl),this.location=k(qo),this.urlHandlingStrategy=k(g0),this._events=new W,this.errorHandler=this.options.errorHandler||n4,this.navigated=!1,this.routeReuseStrategy=k(e4),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=k(Ah,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!k(Rh,{optional:!0}),this.eventsSubscription=new Ce,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(n,a),n instanceof xr&&n.code!==Fn.Redirect&&n.code!==Fn.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Qo)this.navigated=!0;else if(n instanceof lc){let s=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),u=B({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||JB(o.source)},s);this.scheduleNavigation(c,jl,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}s4(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),jl,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",n)},0)})}navigateToSyncWithBrowser(t,n,o){let a={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let u=B({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(a.state=u)}let c=this.parseUrl(t);this.scheduleNavigation(c,n,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(h0),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:o,queryParams:a,fragment:s,queryParamsHandling:c,preserveFragment:u}=n,f=u?this.currentUrlTree.fragment:s,v=null;switch(c){case"merge":v=B(B({},this.currentUrlTree.queryParams),a);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=a||null}v!==null&&(v=this.removeEmptyProps(v));let C;try{let x=o?o.snapshot:this.routerState.snapshot.root;C=RI(x)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),C=this.currentUrlTree.root}return PI(C,t,v,f??null)}navigateByUrl(t,n={skipLocationChange:!1}){let o=zl(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,jl,null,n)}navigate(t,n={skipLocationChange:!1}){return a4(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,n){let o;if(n===!0?o=B({},o4):n===!1?o=B({},r4):o=n,zl(t))return hI(this.currentUrlTree,t,o);let a=this.parseUrl(t);return hI(this.currentUrlTree,a,o)}removeEmptyProps(t){return Object.entries(t).reduce((n,[o,a])=>(a!=null&&(n[o]=a),n),{})}scheduleNavigation(t,n,o,a,s){if(this.disposed)return Promise.resolve(!1);let c,u,f;s?(c=s.resolve,u=s.reject,f=s.promise):f=new Promise((C,x)=>{c=C,u=x});let v=this.pendingTasks.add();return XI(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:c,reject:u,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(C=>Promise.reject(C))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function a4(i){for(let e=0;e{let e=class e{constructor(t,n,o,a,s,c){this.router=t,this.route=n,this.tabIndexAttribute=o,this.renderer=a,this.el=s,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new W,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=t.events.subscribe(f=>{f instanceof Qo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t!=null?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,n,o,a,s){let c=this.urlTree;if(c===null||this.isAnchorElement&&(t!==0||n||o||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let n=this.href===null?null:nS(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(t,n){let o=this.renderer,a=this.el.nativeElement;n!==null?o.setAttribute(a,t,n):o.removeAttribute(a,t)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(n){return new(n||e)(h(Ko),h(Oe),mi("tabindex"),h(fr),h(G),h(Cr))},e.\u0275dir=N({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&b("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&ie("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Y],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Y],replaceUrl:[2,"replaceUrl","replaceUrl",Y],routerLink:"routerLink"},standalone:!0,features:[ue,Qe]});let i=e;return i})();var Oh=class{};var c4=(()=>{let e=class e{constructor(t,n,o,a,s){this.router=t,this.injector=o,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(qe(t=>t instanceof Qo),rr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,n){let o=[];for(let a of n){a.providers&&!a._injector&&(a._injector=Gm(a.providers,t,`Route: ${a.path}`));let s=a._injector??t,c=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&o.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&o.push(this.processRoutes(c,a.children??a._loadedRoutes))}return Qt(o).pipe(Lr())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(t,n):o=oe(null);let a=o.pipe(si(s=>s===null?oe(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(n);return Qt([a,s]).pipe(Lr())}else return a})}};e.\u0275fac=function(n){return new(n||e)(M(Ko),M(Xm),M(Pi),M(Oh),M(f0))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),JI=new O(""),l4=(()=>{let e=class e{constructor(t,n,o,a,s={}){this.urlSerializer=t,this.transitions=n,this.viewportScroller=o,this.zone=a,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=k(Pi),s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof cc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Qo?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof oa&&t.code===Ch.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Dh&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,n){this.zone.runOutsideAngular(()=>q(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),ri(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Dh(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(n){Za()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function d4(i){return i.routerState.root}function td(i,e){return{\u0275kind:i,\u0275providers:e}}function u4(){let i=k(Pe);return e=>{let r=i.get(Xn);if(e!==r.components[0])return;let t=i.get(Ko),n=i.get(e1);i.get(v0)===1&&t.initialNavigation(),i.get(t1,null,gt.Optional)?.setUpPreloading(),i.get(JI,null,gt.Optional)?.init(),t.resetRootComponentType(r.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var e1=new O("",{factory:()=>new W}),v0=new O("",{providedIn:"root",factory:()=>1});function m4(){return td(2,[{provide:v0,useValue:0},{provide:Km,multi:!0,deps:[Pe],useFactory:e=>{let r=e.get(FE,Promise.resolve());return()=>r.then(()=>new Promise(t=>{let n=e.get(Ko),o=e.get(e1);XI(n,()=>{t(!0)}),e.get(_0).afterPreactivation=()=>(t(!0),o.closed?oe(void 0):o),n.initialNavigation()}))}}])}function h4(){return td(3,[{provide:Km,multi:!0,useFactory:()=>{let e=k(Ko);return()=>{e.setUpLocationChangeListener()}}},{provide:v0,useValue:2}])}var t1=new O("");function p4(i){return td(0,[{provide:t1,useExisting:c4},{provide:Oh,useExisting:i}])}function f4(){return td(8,[_I,{provide:Rh,useExisting:_I}])}function g4(i){let e=[{provide:QI,useValue:KB},{provide:KI,useValue:B({skipNextTransition:!!i?.skipInitialTransition},i)}];return td(9,e)}var wI=new O("ROUTER_FORROOT_GUARD"),_4=[qo,{provide:Kl,useClass:sc},Ko,Zl,{provide:Oe,useFactory:d4,deps:[Ko]},f0,[]],b0=(()=>{let e=class e{constructor(t){}static forRoot(t,n){return{ngModule:e,providers:[_4,[],{provide:Ah,multi:!0,useValue:t},{provide:wI,useFactory:w4,deps:[[Ko,new Yn,new bo]]},{provide:ed,useValue:n||{}},n?.useHash?b4():y4(),v4(),n?.preloadingStrategy?p4(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?C4(n):[],n?.bindToComponentInputs?f4().\u0275providers:[],n?.enableViewTransitions?g4().\u0275providers:[],x4()]}}static forChild(t){return{ngModule:e,providers:[{provide:Ah,multi:!0,useValue:t}]}}};e.\u0275fac=function(n){return new(n||e)(M(wI,8))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();function v4(){return{provide:JI,useFactory:()=>{let i=k(UE),e=k(Z),r=k(ed),t=k(_0),n=k(Kl);return r.scrollOffset&&i.setOffset(r.scrollOffset),new l4(n,t,i,e,r)}}}function b4(){return{provide:Cr,useClass:LE}}function y4(){return{provide:Cr,useClass:vb}}function w4(i){return"guarded"}function C4(i){return[i.initialNavigation==="disabled"?h4().\u0275providers:[],i.initialNavigation==="enabledBlocking"?m4().\u0275providers:[]]}var CI=new O("");function x4(){return[{provide:CI,useFactory:u4},{provide:Zm,multi:!0,useExisting:CI}]}var Fh=class{constructor(e){this.user=e.user,this.role=e.role,this.admin=e.admin}get isStaff(){return this.role==="staff"||this.role==="admin"}get isAdmin(){return this.role==="admin"}get isLogged(){return this.user!=null}};function Nn(i){return i!=null&&`${i}`!="false"}function xo(i,e=0){return y0(i)?Number(i):e}function y0(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function mc(i){return Array.isArray(i)?i:[i]}function yi(i){return i==null?"":typeof i=="string"?i:`${i}px`}function xn(i){return i instanceof G?i.nativeElement:i}function i1(i,e=/\s+/){let r=[];if(i!=null){let t=Array.isArray(i)?i:`${i}`.split(e);for(let n of t){let o=`${n}`.trim();o&&r.push(o)}}return r}var C0;try{C0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{C0=!1}var je=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?yb(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||C0)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(n){return new(n||e)(M(Kn))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var hc,n1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function x0(){if(hc)return hc;if(typeof document!="object"||!document)return hc=new Set(n1),hc;let i=document.createElement("input");return hc=new Set(n1.filter(e=>(i.setAttribute("type",e),i.type===e))),hc}var id;function D4(){if(id==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>id=!0}))}finally{id=id||!1}return id}function ji(i){return D4()?i:!!i.capture}var Do=function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i}(Do||{}),Nh,ts;function Lh(){if(ts==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ts=!1,ts;if("scrollBehavior"in document.documentElement.style)ts=!0;else{let i=Element.prototype.scrollTo;i?ts=!/\{\s*\[native code\]\s*\}/.test(i.toString()):ts=!1}}return ts}function pc(){if(typeof document!="object"||!document)return Do.NORMAL;if(Nh==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let r=document.createElement("div"),t=r.style;t.width="2px",t.height="1px",i.appendChild(r),document.body.appendChild(i),Nh=Do.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,Nh=i.scrollLeft===0?Do.NEGATED:Do.INVERTED),i.remove()}return Nh}var w0;function S4(){if(w0==null){let i=typeof document<"u"?document.head:null;w0=!!(i&&(i.createShadowRoot||i.attachShadow))}return w0}function o1(i){if(S4()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function aa(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e}return i}function mn(i){return i.composedPath?i.composedPath()[0]:i.target}function nd(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var E4=new O("cdk-dir-doc",{providedIn:"root",factory:I4});function I4(){return k(se)}var M4=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function T4(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?M4.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var kt=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new T,t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.value=T4(n||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(n){return new(n||e)(M(E4,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var sa=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var Vh=class{};function jh(i){return i&&typeof i.connect=="function"&&!(i instanceof Nr)}var fc=function(i){return i[i.REPLACED=0]="REPLACED",i[i.INSERTED=1]="INSERTED",i[i.MOVED=2]="MOVED",i[i.REMOVED=3]="REMOVED",i}(fc||{}),od=new O("_ViewRepeater"),gc=class{applyChanges(e,r,t,n,o){e.forEachOperation((a,s,c)=>{let u,f;if(a.previousIndex==null){let v=t(a,s,c);u=r.createEmbeddedView(v.templateRef,v.context,v.index),f=fc.INSERTED}else c==null?(r.remove(s),f=fc.REMOVED):(u=r.get(s),r.move(u,c),f=fc.MOVED);o&&o({context:u?.context,operation:f,record:a})})}detach(){}};var So=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,r,t=!0,n){this._multiple=e,this._emitChanges=t,this.compareWith=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new W,r&&r.length&&(e?r.forEach(o=>this._markSelected(o)):this._markSelected(r[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(t=>this._markSelected(t));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}deselect(...e){this._verifyValueAssignment(e),e.forEach(t=>this._unmarkSelected(t));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}setSelection(...e){this._verifyValueAssignment(e);let r=this.selected,t=new Set(e);e.forEach(o=>this._markSelected(o)),r.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 r=this._hasQueuedChanges();return e&&this._emitChangeEvent(),r}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,r){if(this.compareWith){r=r??this._selection;for(let t of r)if(this.compareWith(e,t))return t;return e}else return e}};var k4=20,_c=(()=>{let e=class e{constructor(t,n,o){this._ngZone=t,this._platform=n,this._scrolled=new W,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=k4){return this._platform.isBrowser?new Re(n=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe(Tu(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(qe(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,t)&&n.push(a)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,n){let o=xn(n),a=t.getElementRef().nativeElement;do if(o==a)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return cn(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(n){return new(n||e)(M(Z),M(je),M(se,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),rd=(()=>{let e=class e{constructor(t,n,o,a){this.elementRef=t,this.scrollDispatcher=n,this.ngZone=o,this.dir=a,this._destroyed=new W,this._elementScrolled=new Re(s=>this.ngZone.runOutsideAngular(()=>cn(this.elementRef.nativeElement,"scroll").pipe(fe(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&pc()!=Do.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),pc()==Do.INVERTED?t.left=t.right:pc()==Do.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Lh()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left))}measureScrollOffset(t){let n="left",o="right",a=this.elementRef.nativeElement;if(t=="top")return a.scrollTop;if(t=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:n:t=="end"&&(t=s?n:o),s&&pc()==Do.INVERTED?t==n?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&pc()==Do.NEGATED?t==n?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:t==n?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}};e.\u0275fac=function(n){return new(n||e)(h(G),h(_c),h(Z),h(kt,8))},e.\u0275dir=N({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let i=e;return i})(),A4=20,pn=(()=>{let e=class e{constructor(t,n,o){this._platform=t,this._change=new W,this._changeListener=a=>{this._change.next(a)},this._document=o,n.runOutsideAngular(()=>{if(t.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,a=o.getBoundingClientRect(),s=-a.top||t.body.scrollTop||n.scrollY||o.scrollTop||0,c=-a.left||t.body.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:s,left:c}}change(t=A4){return t>0?this._change.pipe(Tu(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(n){return new(n||e)(M(je),M(Z),M(se,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var to=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})(),ad=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[sa,to,sa,to]});let i=e;return i})();var sd=class{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}},Dn=class extends sd{constructor(e,r,t,n,o){super(),this.component=e,this.viewContainerRef=r,this.injector=t,this.componentFactoryResolver=n,this.projectableNodes=o}},ki=class extends sd{constructor(e,r,t,n){super(),this.templateRef=e,this.viewContainerRef=r,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,r=this.context){return this.context=r,super.attach(e)}detach(){return this.context=void 0,super.detach()}},D0=class extends sd{constructor(e){super(),this.element=e instanceof G?e.nativeElement:e}},ca=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Dn)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof ki)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof D0)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var vc=class extends ca{constructor(e,r,t,n,o){super(),this.outletElement=e,this._componentFactoryResolver=r,this._appRef=t,this._defaultInjector=n,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}attachComponentPortal(e){let t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector||Pe.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let r=e.viewContainerRef,t=r.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=r.indexOf(t);n!==-1&&r.remove(n)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var r1=(()=>{let e=class e extends ki{constructor(t,n){super(t,n)}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(wt))},e.\u0275dir=N({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[ve]});let i=e;return i})();var tn=(()=>{let e=class e extends ca{constructor(t,n,o){super(),this._componentFactoryResolver=t,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new T,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let c=this._document.createComment("dom-portal");a.setAttachedHost(this),s.parentNode.insertBefore(c,s),this._getRootNode().appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,a=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=n.createComponent(a,n.length,t.injector||n.injector,t.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}};e.\u0275fac=function(n){return new(n||e)(h(vn),h(wt),h(se))},e.\u0275dir=N({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ve]});let i=e;return i})();var Ln=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();function Rt(i,...e){return e.length?e.some(r=>i[r]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var a1=Lh(),S0=class{constructor(e,r){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=r}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=yi(-this._previousScrollPosition.left),e.style.top=yi(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,r=this._document.body,t=e.style,n=r.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"),a1&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),a1&&(t.scrollBehavior=o,n.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let r=this._document.body,t=this._viewportRuler.getViewportSize();return r.scrollHeight>t.height||r.scrollWidth>t.width}};var E0=class{constructor(e,r,t,n){this._scrollDispatcher=e,this._ngZone=r,this._viewportRuler=t,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(qe(r=>!r||!this._overlayRef.overlayElement.contains(r.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let r=this._viewportRuler.getViewportScrollPosition().top;Math.abs(r-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}},Bh=class{enable(){}disable(){}attach(){}};function I0(i,e){return e.some(r=>{let t=i.bottomr.bottom,o=i.rightr.right;return t||n||o||a})}function s1(i,e){return e.some(r=>{let t=i.topr.bottom,o=i.leftr.right;return t||n||o||a})}var M0=class{constructor(e,r,t,n){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=t,this._config=n,this._scrollSubscription=null}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 r=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();I0(r,[{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}},O4=(()=>{let e=class e{constructor(t,n,o,a){this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=o,this.noop=()=>new Bh,this.close=s=>new E0(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new S0(this._viewportRuler,this._document),this.reposition=s=>new M0(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=a}};e.\u0275fac=function(n){return new(n||e)(M(_c),M(pn),M(Z),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Sn=class{constructor(e){if(this.scrollStrategy=new Bh,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let r=Object.keys(e);for(let t of r)e[t]!==void 0&&(this[t]=e[t])}}};var T0=class{constructor(e,r){this.connectionPair=e,this.scrollableViewProperties=r}};var m1=(()=>{let e=class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),R4=(()=>{let e=class e extends m1{constructor(t,n){super(t),this._ngZone=n,this._keydownListener=o=>{let a=this._attachedOverlays;for(let s=a.length-1;s>-1;s--)if(a[s]._keydownEvents.observers.length>0){let c=a[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(o)):c.next(o);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(Z,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),P4=(()=>{let e=class e extends m1{constructor(t,n,o){super(t),this._platform=n,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=mn(a)},this._clickListener=a=>{let s=mn(a),c=a.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let u=this._attachedOverlays.slice();for(let f=u.length-1;f>-1;f--){let v=u[f];if(v._outsidePointerEvents.observers.length<1||!v.hasAttached())continue;if(v.overlayElement.contains(s)||v.overlayElement.contains(c))break;let C=v._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>C.next(a)):C.next(a)}}}add(t){if(super.add(t),!this._isAttached){let n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(n){return new(n||e)(M(se),M(je),M(Z,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),bc=(()=>{let e=class e{constructor(t,n){this._platform=n,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||nd()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let a=0;athis._backdropClick.next(C),this._backdropTransitionendHandler=C=>{this._disposeBackdrop(C.target)},this._keydownEvents=new W,this._outsidePointerEvents=new W,this._renders=new W,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=Sl(()=>bl(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let r=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),ri(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof r?.onDestroy=="function"&&r.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),r}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=B(B({},this._config),e),this._updateElementSize()}setDirection(e){this._config=mt(B({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=yi(this._config.width),e.height=yi(this._config.height),e.minWidth=yi(this._config.minWidth),e.minHeight=yi(this._config.minHeight),e.maxWidth=yi(this._config.maxWidth),e.maxHeight=yi(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,r,t){let n=mc(r||[]).filter(o=>!!o);n.length&&(t?e.classList.add(...n):e.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(fe(yt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},c1="cdk-overlay-connected-position-bounding-box",F4=/([A-Za-z%]+)$/,cd=class{get positions(){return this._preferredPositions}constructor(e,r,t,n,o){this._viewportRuler=r,this._document=t,this._platform=n,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new W,this._resizeSubscription=Ce.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(c1),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,r=this._overlayRect,t=this._viewportRect,n=this._containerRect,o=[],a;for(let s of this._preferredPositions){let c=this._getOriginPoint(e,n,s),u=this._getOverlayPoint(c,r,s),f=this._getOverlayFit(u,r,t,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,c);return}if(this._canFitWithFlexibleDimensions(f,u,t)){o.push({position:s,origin:c,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(c,s)});continue}(!a||a.overlayFit.visibleAreac&&(c=f,s=u)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ns(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(c1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let r=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,r)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,r,t){let n;if(t.originX=="center")n=e.left+e.width/2;else{let a=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;n=t.originX=="start"?a:s}r.left<0&&(n-=r.left);let o;return t.originY=="center"?o=e.top+e.height/2:o=t.originY=="top"?e.top:e.bottom,r.top<0&&(o-=r.top),{x:n,y:o}}_getOverlayPoint(e,r,t){let n;t.overlayX=="center"?n=-r.width/2:t.overlayX==="start"?n=this._isRtl()?-r.width:0:n=this._isRtl()?0:-r.width;let o;return t.overlayY=="center"?o=-r.height/2:o=t.overlayY=="top"?0:-r.height,{x:e.x+n,y:e.y+o}}_getOverlayFit(e,r,t,n){let o=d1(r),{x:a,y:s}=e,c=this._getOffset(n,"x"),u=this._getOffset(n,"y");c&&(a+=c),u&&(s+=u);let f=0-a,v=a+o.width-t.width,C=0-s,x=s+o.height-t.height,E=this._subtractOverflows(o.width,f,v),R=this._subtractOverflows(o.height,C,x),j=E*R;return{visibleArea:j,isCompletelyWithinViewport:o.width*o.height===j,fitsInViewportVertically:R===o.height,fitsInViewportHorizontally:E==o.width}}_canFitWithFlexibleDimensions(e,r,t){if(this._hasFlexibleDimensions){let n=t.bottom-r.y,o=t.right-r.x,a=l1(this._overlayRef.getConfig().minHeight),s=l1(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||a!=null&&a<=n,u=e.fitsInViewportHorizontally||s!=null&&s<=o;return c&&u}return!1}_pushOverlayOnScreen(e,r,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=d1(r),o=this._viewportRect,a=Math.max(e.x+n.width-o.width,0),s=Math.max(e.y+n.height-o.height,0),c=Math.max(o.top-t.top-e.y,0),u=Math.max(o.left-t.left-e.x,0),f=0,v=0;return n.width<=o.width?f=u||-a:f=e.xE&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-E/2)}let c=r.overlayX==="start"&&!n||r.overlayX==="end"&&n,u=r.overlayX==="end"&&!n||r.overlayX==="start"&&n,f,v,C;if(u)C=t.width-e.x+this._viewportMargin*2,f=e.x-this._viewportMargin;else if(c)v=e.x,f=t.right-e.x;else{let x=Math.min(t.right-e.x+t.left,e.x),E=this._lastBoundingBoxSize.width;f=x*2,v=e.x-x,f>E&&!this._isInitialRender&&!this._growAfterOpen&&(v=e.x-E/2)}return{top:a,left:v,bottom:s,right:C,width:f,height:o}}_setBoundingBoxStyles(e,r){let t=this._calculateBoundingBoxRect(e,r);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;n.height=yi(t.height),n.top=yi(t.top),n.bottom=yi(t.bottom),n.width=yi(t.width),n.left=yi(t.left),n.right=yi(t.right),r.overlayX==="center"?n.alignItems="center":n.alignItems=r.overlayX==="end"?"flex-end":"flex-start",r.overlayY==="center"?n.justifyContent="center":n.justifyContent=r.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=yi(o)),a&&(n.maxWidth=yi(a))}this._lastBoundingBoxSize=t,ns(this._boundingBox.style,n)}_resetBoundingBoxStyles(){ns(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ns(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,r){let t={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){let f=this._viewportRuler.getViewportScrollPosition();ns(t,this._getExactOverlayY(r,e,f)),ns(t,this._getExactOverlayX(r,e,f))}else t.position="static";let s="",c=this._getOffset(r,"x"),u=this._getOffset(r,"y");c&&(s+=`translateX(${c}px) `),u&&(s+=`translateY(${u}px)`),t.transform=s.trim(),a.maxHeight&&(n?t.maxHeight=yi(a.maxHeight):o&&(t.maxHeight="")),a.maxWidth&&(n?t.maxWidth=yi(a.maxWidth):o&&(t.maxWidth="")),ns(this._pane.style,t)}_getExactOverlayY(e,r,t){let n={top:"",bottom:""},o=this._getOverlayPoint(r,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),e.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;n.bottom=`${a-(o.y+this._overlayRect.height)}px`}else n.top=yi(o.y);return n}_getExactOverlayX(e,r,t){let n={left:"",right:""},o=this._getOverlayPoint(r,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;n.right=`${s-(o.x+this._overlayRect.width)}px`}else n.left=yi(o.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),r=this._pane.getBoundingClientRect(),t=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:s1(e,t),isOriginOutsideView:I0(e,t),isOverlayClipped:s1(r,t),isOverlayOutsideView:I0(r,t)}}_subtractOverflows(e,...r){return r.reduce((t,n)=>t-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,r=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+r-this._viewportMargin,width:e-2*this._viewportMargin,height:r-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,r){return r==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&mc(e).forEach(r=>{r!==""&&this._appliedPanelClasses.indexOf(r)===-1&&(this._appliedPanelClasses.push(r),this._pane.classList.add(r))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof G)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let r=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+r,height:t,width:r}}};function ns(i,e){for(let r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);return i}function l1(i){if(typeof i!="number"&&i!=null){let[e,r]=i.split(F4);return!r||r==="px"?parseFloat(e):null}return i||null}function d1(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function N4(i,e){return i===e?!0:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var u1="cdk-global-overlay-wrapper",k0=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let r=e.getConfig();this._overlayRef=e,this._width&&!r.width&&e.updateSize({width:this._width}),this._height&&!r.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(u1),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:a,maxHeight:s}=t,c=(n==="100%"||n==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,v=this._xOffset,C=this._overlayRef.getConfig().direction==="rtl",x="",E="",R="";c?R="flex-start":f==="center"?(R="center",C?E=v:x=v):C?f==="left"||f==="end"?(R="flex-end",x=v):(f==="right"||f==="start")&&(R="flex-start",E=v):f==="left"||f==="start"?(R="flex-start",x=v):(f==="right"||f==="end")&&(R="flex-end",E=v),e.position=this._cssPosition,e.marginLeft=c?"0":x,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":E,r.justifyContent=R,r.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,r=this._overlayRef.hostElement,t=r.style;r.classList.remove(u1),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},L4=(()=>{let e=class e{constructor(t,n,o,a){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=a}global(){return new k0}flexibleConnectedTo(t){return new cd(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(n){return new(n||e)(M(pn),M(se),M(je),M(bc))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),V4=0,Ct=(()=>{let e=class e{constructor(t,n,o,a,s,c,u,f,v,C,x,E){this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=o,this._positionBuilder=a,this._keyboardDispatcher=s,this._injector=c,this._ngZone=u,this._document=f,this._directionality=v,this._location=C,this._outsideClickDispatcher=x,this._animationsModuleType=E}create(t){let n=this._createHostElement(),o=this._createPaneElement(n),a=this._createPortalOutlet(o),s=new Sn(t);return s.direction=s.direction||this._directionality.value,new Dr(a,n,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Pi))}position(){return this._positionBuilder}_createPaneElement(t){let n=this._document.createElement("div");return n.id=`cdk-overlay-${V4++}`,n.classList.add("cdk-overlay-pane"),t.appendChild(n),n}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Xn)),new vc(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(n){return new(n||e)(M(O4),M(bc),M(vn),M(L4),M(R4),M(Pe),M(Z),M(se),M(kt),M(qo),M(P4),M(Tt,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),j4=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],h1=new O("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}}),ld=(()=>{let e=class e{constructor(t){this.elementRef=t}};e.\u0275fac=function(n){return new(n||e)(h(G))},e.\u0275dir=N({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let i=e;return i})(),A0=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}constructor(t,n,o,a,s){this._overlay=t,this._dir=s,this._backdropSubscription=Ce.EMPTY,this._attachSubscription=Ce.EMPTY,this._detachSubscription=Ce.EMPTY,this._positionSubscription=Ce.EMPTY,this._disposeOnNavigation=!1,this._ngZone=k(Z),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new T,this.positionChange=new T,this.attach=new T,this.detach=new T,this.overlayKeydown=new T,this.overlayOutsideClick=new T,this._templatePortal=new ki(n,o),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=j4);let t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Rt(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),a=mn(n);(!o||o!==a&&!o.contains(a))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Sn({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(t){let n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof ld?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof ld?this.origin.elementRef.nativeElement:this.origin instanceof G?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Wg(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(lt),h(wt),h(h1),h(kt,8))},e.\u0275dir=N({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Y],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Y],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Y],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Y],push:[2,"cdkConnectedOverlayPush","push",Y],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Y]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ue,Qe]});let i=e;return i})();function B4(i){return()=>i.scrollStrategies.reposition()}var z4={provide:h1,deps:[Ct],useFactory:B4},on=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Ct,z4],imports:[sa,Ln,ad,ad]});let i=e;return i})();function U4(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let e=0;e{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),H4=(()=>{let e=class e{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map,this._ngZone=k(Z)}ngOnDestroy(){this._observedElements.forEach((t,n)=>this._cleanupObserver(n))}observe(t){let n=xn(t);return new Re(o=>{let s=this._observeElement(n).pipe(de(c=>c.filter(u=>!U4(u))),qe(c=>!!c.length)).subscribe(c=>{this._ngZone.run(()=>{o.next(c)})});return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(t){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(t))this._observedElements.get(t).count++;else{let n=new W,o=this._mutationObserverFactory.create(a=>n.next(a));o&&o.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:o,stream:n,count:1})}return this._observedElements.get(t).stream})}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){let{observer:n,stream:o}=this._observedElements.get(t);n&&n.disconnect(),o.complete(),this._observedElements.delete(t)}}};e.\u0275fac=function(n){return new(n||e)(M(p1))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),f1=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=xo(t),this._subscribe()}constructor(t,n){this._contentObserver=t,this._elementRef=n,this.event=new T,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let t=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?t.pipe(ar(this.debounce)):t).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(H4),h(G))},e.\u0275dir=N({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Y],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ue]});let i=e;return i})(),zh=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[p1]});let i=e;return i})();var g1=new Set,rs,$4=(()=>{let e=class e{constructor(t,n){this._platform=t,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):G4}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&W4(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(n){return new(n||e)(M(je),M(pl,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function W4(i,e){if(!g1.has(i))try{rs||(rs=document.createElement("style"),e&&rs.setAttribute("nonce",e),rs.setAttribute("type","text/css"),document.head.appendChild(rs)),rs.sheet&&(rs.sheet.insertRule(`@media ${i} {body{ }}`,0),g1.add(i))}catch(r){console.error(r)}}function G4(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Uh=(()=>{let e=class e{constructor(t,n){this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new W}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return _1(mc(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=_1(mc(t)).map(s=>this._registerQuery(s).observable),a=An(o);return a=Po(a.pipe(It(1)),a.pipe(Fa(1),ar(0))),a.pipe(de(s=>{let c={matches:!1,breakpoints:{}};return s.forEach(({matches:u,query:f})=>{c.matches=c.matches||u,c.breakpoints[f]=u}),c}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),a={observable:new Re(s=>{let c=u=>this._zone.run(()=>s.next(u));return n.addListener(c),()=>{n.removeListener(c)}}).pipe(Ot(n),de(({matches:s})=>({query:t,matches:s})),fe(this._destroySubject)),mql:n};return this._queries.set(t,a),a}};e.\u0275fac=function(n){return new(n||e)(M($4),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function _1(i){return i.map(e=>e.split(",")).reduce((e,r)=>e.concat(r)).map(e=>e.trim())}var v1={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var E1=" ";function Dc(i,e,r){let t=Gh(i,e);r=r.trim(),!t.some(n=>n.trim()===r)&&(t.push(r),i.setAttribute(e,t.join(E1)))}function ma(i,e,r){let t=Gh(i,e);r=r.trim();let n=t.filter(o=>o!==r);n.length?i.setAttribute(e,n.join(E1)):i.removeAttribute(e)}function Gh(i,e){return i.getAttribute(e)?.match(/\S+/g)??[]}var I1="cdk-describedby-message",Hh="cdk-describedby-host",P0=0,Qh=(()=>{let e=class e{constructor(t,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${P0++}`,this._document=t,this._id=k(Qs)+"-"+P0++}describe(t,n,o){if(!this._canBeDescribed(t,n))return;let a=O0(n,o);typeof n!="string"?(b1(n,this._id),this._messageRegistry.set(a,{messageElement:n,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(n,o),this._isElementDescribedByMessage(t,a)||this._addMessageReference(t,a)}removeDescription(t,n,o){if(!n||!this._isElementNode(t))return;let a=O0(n,o);if(this._isElementDescribedByMessage(t,a)&&this._removeMessageReference(t,a),typeof n=="string"){let s=this._messageRegistry.get(a);s&&s.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${Hh}="${this._id}"]`);for(let n=0;no.indexOf(I1)!=0);t.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(t,n){let o=this._messageRegistry.get(n);Dc(t,"aria-describedby",o.messageElement.id),t.setAttribute(Hh,this._id),o.referenceCount++}_removeMessageReference(t,n){let o=this._messageRegistry.get(n);o.referenceCount--,ma(t,"aria-describedby",o.messageElement.id),t.removeAttribute(Hh)}_isElementDescribedByMessage(t,n){let o=Gh(t,"aria-describedby"),a=this._messageRegistry.get(n),s=a&&a.messageElement.id;return!!s&&o.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),a=t.getAttribute("aria-label");return o?!a||a.trim()!==o:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(n){return new(n||e)(M(se),M(je))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function O0(i,e){return typeof i=="string"?`${e||""}/${i}`:i}function b1(i,e){i.id||(i.id=`${I1}-${e}-${P0++}`)}var qh=class{constructor(e,r){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new W,this._typeaheadSubscription=Ce.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new W,this.change=new W,e instanceof qn?this._itemChangesSubscription=e.changes.subscribe(t=>this._itemsChanged(t.toArray())):Wm(e)&&(this._effectRef=sb(()=>this._itemsChanged(e()),{injector:r}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zt(r=>this._pressedLetters.push(r)),ar(e),qe(()=>this._pressedLetters.length>0),de(()=>this._pressedLetters.join(""))).subscribe(r=>{let t=this._getItemsArray();for(let n=1;n!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(r){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&r<=90||r>=48&&r<=57)&&this._letterKeyStream.next(String.fromCharCode(r)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let r=this._getItemsArray(),t=typeof e=="number"?e:r.indexOf(e),n=r[t];this._activeItem=n??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let r=this._getItemsArray();for(let t=1;t<=r.length;t++){let n=(this._activeItemIndex+e*t+r.length)%r.length,o=r[n];if(!this._skipPredicateFn(o)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,r){let t=this._getItemsArray();if(t[e]){for(;this._skipPredicateFn(t[e]);)if(e+=r,!t[e])return;this.setActiveItem(e)}}_getItemsArray(){return Wm(this._items)?this._items():this._items instanceof qn?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let r=e.indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}},wc=class extends qh{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},la=class extends qh{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var ud=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return ez(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let n=J4(cz(t));if(n&&(y1(n)===-1||!this.isVisible(n)))return!1;let o=t.nodeName.toLowerCase(),a=y1(t);return t.hasAttribute("contenteditable")?a!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!az(t)?!1:o==="audio"?t.hasAttribute("controls")?a!==-1:!1:o==="video"?a===-1?!1:a!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return sz(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(n){return new(n||e)(M(je))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function J4(i){try{return i.frameElement}catch{return null}}function ez(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function tz(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function iz(i){return oz(i)&&i.type=="hidden"}function nz(i){return rz(i)&&i.hasAttribute("href")}function oz(i){return i.nodeName.toLowerCase()=="input"}function rz(i){return i.nodeName.toLowerCase()=="a"}function M1(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let e=i.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function y1(i){if(!M1(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function az(i){let e=i.nodeName.toLowerCase(),r=e==="input"&&i.type;return r==="text"||r==="password"||e==="select"||e==="textarea"}function sz(i){return iz(i)?!1:tz(i)||nz(i)||i.hasAttribute("contenteditable")||M1(i)}function cz(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var F0=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,r,t,n,o=!1,a){this._element=e,this._checker=r,this._ngZone=t,this._document=n,this._injector=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,r=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),r&&(r.removeEventListener("focus",this.endAnchorListener),r.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(r=>{this._executeOnStable(()=>r(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let r=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?r.length?r[0]:this._getFirstTabbableElement(this._element):r.length?r[r.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let r=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(r){if(!this._checker.isFocusable(r)){let t=this._getFirstTabbableElement(r);return t?.focus(e),!!t}return r.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let r=this._getRegionBoundary("start");return r&&r.focus(e),!!r}focusLastTabbableElement(e){let r=this._getRegionBoundary("end");return r&&r.focus(e),!!r}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let r=e.children;for(let t=0;t=0;t--){let n=r[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(r[t]):null;if(n)return n}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,r){e?r.setAttribute("tabindex","0"):r.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?this._injector?ri(e,{injector:this._injector}):e():this._ngZone.onStable.pipe(It(1)).subscribe(e)}},md=(()=>{let e=class e{constructor(t,n,o){this._checker=t,this._ngZone=n,this._injector=k(Pe),this._document=o}create(t,n=!1){return new F0(t,this._checker,this._ngZone,this._document,n,this._injector)}};e.\u0275fac=function(n){return new(n||e)(M(ud),M(Z),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),T1=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(t){this.focusTrap&&(this.focusTrap.enabled=t)}constructor(t,n,o){this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,k(je).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(t){let n=t.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=aa(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(md),h(se))},e.\u0275dir=N({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Y],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Y]},exportAs:["cdkTrapFocus"],standalone:!0,features:[ue,Qe]});let i=e;return i})();function hd(i){return i.buttons===0||i.detail===0}function pd(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var lz=new O("cdk-input-modality-detector-options"),dz={ignoreKeys:[18,17,224,91,16]},k1=650,yc=ji({passive:!0,capture:!0}),uz=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,n,o,a){this._platform=t,this._mostRecentTarget=null,this._modality=new $t(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(c=>c===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=mn(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(pd(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=mn(s)},this._options=B(B({},dz),a),this.modalityDetected=this._modality.pipe(Fa(1)),this.modalityChanged=this.modalityDetected.pipe(Br()),t.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,yc),o.addEventListener("mousedown",this._onMousedown,yc),o.addEventListener("touchstart",this._onTouchstart,yc)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,yc),document.removeEventListener("mousedown",this._onMousedown,yc),document.removeEventListener("touchstart",this._onTouchstart,yc))}};e.\u0275fac=function(n){return new(n||e)(M(je),M(Z),M(se),M(lz,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),mz=new O("liveAnnouncerElement",{providedIn:"root",factory:hz});function hz(){return null}var pz=new O("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),fz=0,Kh=(()=>{let e=class e{constructor(t,n,o,a){this._ngZone=n,this._defaultOptions=a,this._document=o,this._liveElement=t||this._createLiveElement()}announce(t,...n){let o=this._defaultOptions,a,s;return n.length===1&&typeof n[0]=="number"?s=n[0]:[a,s]=n,this.clear(),clearTimeout(this._previousTimeout),a||(a=o&&o.politeness?o.politeness:"polite"),s==null&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),o=this._document.createElement("div");for(let a=0;a .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(t,n,o,a,s){this._ngZone=t,this._platform=n,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new W,this._rootNodeFocusAndBlurListener=c=>{let u=mn(c);for(let f=u;f;f=f.parentElement)c.type==="focus"?this._onFocus(c,f):this._onBlur(c,f)},this._document=a,this._detectionMode=s?.detectionMode||Wh.IMMEDIATE}monitor(t,n=!1){let o=xn(t);if(!this._platform.isBrowser||o.nodeType!==1)return oe();let a=o1(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return n&&(s.checkChildren=!0),s.subject;let c={checkChildren:n,subject:new W,rootNode:a};return this._elementInfo.set(o,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(t){let n=xn(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(t,n,o){let a=xn(t),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([c,u])=>this._originChanged(c,n,u)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(o))}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===Wh.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(t,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===Wh.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?k1:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(t,n){let o=this._elementInfo.get(n),a=mn(t);!o||!o.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),o)}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,$h),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,$h)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(fe(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$h),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$h),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,a)=>{(a===t||o.checkChildren&&a.contains(t))&&n.push([a,o])}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let a=t.labels;if(a){for(let s=0;s{let e=class e{constructor(t,n){this._elementRef=t,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new T}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(wi))},e.\u0275dir=N({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let i=e;return i})(),as=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(as||{}),w1="cdk-high-contrast-black-on-white",C1="cdk-high-contrast-white-on-black",R0="cdk-high-contrast-active",N0=(()=>{let e=class e{constructor(t,n){this._platform=t,this._document=n,this._breakpointSubscription=k(Uh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return as.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(t):null,a=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return as.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return as.BLACK_ON_WHITE}return as.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(R0,w1,C1),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===as.BLACK_ON_WHITE?t.add(R0,w1):n===as.WHITE_ON_BLACK&&t.add(R0,C1)}}};e.\u0275fac=function(n){return new(n||e)(M(je),M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Sc=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(n){return new(n||e)(M(N0))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[zh]});let i=e;return i})();function _z(i,e){}var ss=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var V0=(()=>{let e=class e extends ca{constructor(t,n,o,a,s,c,u,f){super(),this._elementRef=t,this._focusTrapFactory=n,this._config=a,this._interactivityChecker=s,this._ngZone=c,this._overlayRef=u,this._focusMonitor=f,this._platform=k(je),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=k(me),this._injector=k(Pe),this._isDestroyed=!1,this.attachDomPortal=v=>{this._portalOutlet.hasAttached();let C=this._portalOutlet.attachDomPortal(v);return this._contentAttached(),C},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let n=this._ariaLabelledByQueue.indexOf(t);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),n}attachTemplatePortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,n){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{t.removeEventListener("blur",o),t.removeEventListener("mousedown",o),t.removeAttribute("tabindex")};t.addEventListener("blur",o),t.addEventListener("mousedown",o)})),t.focus(n)}_focusByCssSelector(t,n){let o=this._elementRef.nativeElement.querySelector(t);o&&this._forceFocus(o,n)}_trapFocus(){this._isDestroyed||ri(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,n=null;if(typeof t=="string"?n=this._document.querySelector(t):typeof t=="boolean"?n=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(n=t),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=aa(),a=this._elementRef.nativeElement;(!o||o===this._document.body||o===a||a.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let t=this._elementRef.nativeElement,n=aa();return t===n||t.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=aa()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(n){return new(n||e)(h(G),h(md),h(se,8),h(ss),h(ud),h(Z),h(Dr),h(wi))},e.\u0275cmp=S({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&le(tn,7),n&2){let a;Q(a=K())&&(o._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&ie("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[ve,re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&D(0,_z,0,0,"ng-template",0)},dependencies:[tn],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let i=e;return i})(),fd=class{constructor(e,r){this.overlayRef=e,this.config=r,this.closed=new W,this.disableClose=r.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=r.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!Rt(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{r.closeOnOverlayDetachments!==!1&&this.close()})}close(e,r){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=r?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(e),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",r=""){return this.overlayRef.updateSize({width:e,height:r}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},vz=new O("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.block()}}),bz=new O("DialogData"),yz=new O("DefaultDialogConfig");var wz=0,j0=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,n,o,a,s,c){this._overlay=t,this._injector=n,this._defaultOptions=o,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new W,this._afterOpenedAtThisLevel=new W,this._ariaHiddenElements=new Map,this.afterAllClosed=Wn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ot(void 0))),this._scrollStrategy=c}open(t,n){let o=this._defaultOptions||new ss;n=B(B({},o),n),n.id=n.id||`cdk-dialog-${wz++}`,n.id&&this.getDialogById(n.id);let a=this._getOverlayConfig(n),s=this._overlay.create(a),c=new fd(s,n),u=this._attachContainer(s,c,n);return c.containerInstance=u,this._attachDialogContent(t,c,u,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.closed.subscribe(()=>this._removeOpenDialog(c,!0)),this.afterOpened.next(c),c}closeAll(){L0(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){L0(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),L0(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let n=new Sn({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(n.backdropClass=t.backdropClass),n}_attachContainer(t,n,o){let a=o.injector||o.viewContainerRef?.injector,s=[{provide:ss,useValue:o},{provide:fd,useValue:n},{provide:Dr,useValue:t}],c;o.container?typeof o.container=="function"?c=o.container:(c=o.container.type,s.push(...o.container.providers(o))):c=V0;let u=new Dn(c,o.viewContainerRef,Pe.create({parent:a||this._injector,providers:s}),o.componentFactoryResolver);return t.attach(u).instance}_attachDialogContent(t,n,o,a){if(t instanceof lt){let s=this._createInjector(a,n,o,void 0),c={$implicit:a.data,dialogRef:n};a.templateContext&&(c=B(B({},c),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),o.attachTemplatePortal(new ki(t,null,c,s))}else{let s=this._createInjector(a,n,o,this._injector),c=o.attachComponentPortal(new Dn(t,a.viewContainerRef,s,a.componentFactoryResolver));n.componentRef=c,n.componentInstance=c.instance}}_createInjector(t,n,o,a){let s=t.injector||t.viewContainerRef?.injector,c=[{provide:bz,useValue:t.data},{provide:fd,useValue:n}];return t.providers&&(typeof t.providers=="function"?c.push(...t.providers(n,t,o)):c.push(...t.providers)),t.direction&&(!s||!s.get(kt,null,{optional:!0}))&&c.push({provide:kt,useValue:{value:t.direction,change:oe()}}),Pe.create({parent:s||a,providers:c})}_removeOpenDialog(t,n){let o=this.openDialogs.indexOf(t);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let t=this._overlayContainer.getContainerElement();if(t.parentElement){let n=t.parentElement.children;for(let o=n.length-1;o>-1;o--){let a=n[o];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(n){return new(n||e)(M(Ct),M(Pe),M(yz,8),M(e,12),M(bc),M(vz))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function L0(i,e){let r=i.length;for(;r--;)e(i[r])}var A1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[j0],imports:[on,Ln,Sc,Ln]});let i=e;return i})();var Cz=["text"],xz=[[["mat-icon"]],"*"],Dz=["mat-icon","*"];function Sz(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",1),i&2){let r=_();p("disabled",r.disabled)("state",r.selected?"checked":"unchecked")}}function Ez(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function Iz(i,e){if(i&1&&(l(0,"span",4),g(1),d()),i&2){let r=_();m(),P("(",r.group.label,")")}}var Mz=["mat-internal-form-field",""],Tz=["*"];var B1=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let i=e;return i})(),z1=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let i=e;return i})();function kz(){return!0}var Az=new O("mat-sanity-checks",{providedIn:"root",factory:kz}),pe=(()=>{let e=class e{constructor(t,n,o){this._sanityChecks=n,this._document=o,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return nd()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(n){return new(n||e)(M(N0),M(Az,8),M(se))},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[sa,sa]});let i=e;return i})();var Sr=class{constructor(e,r,t,n,o){this._defaultMatcher=e,this.ngControl=r,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,r=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,o=t?.isErrorState(n,r)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var Jh=new O("MAT_DATE_LOCALE",{providedIn:"root",factory:Oz});function Oz(){return k(Dl)}var Ai=class{constructor(){this._localeChanges=new W,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,r){return this.getYear(e)-this.getYear(r)||this.getMonth(e)-this.getMonth(r)||this.getDate(e)-this.getDate(r)}sameDate(e,r){if(e&&r){let t=this.isValid(e),n=this.isValid(r);return t&&n?!this.compareDate(e,r):t==n}return e==r}clampDate(e,r,t){return r&&this.compareDate(e,r)<0?r:t&&this.compareDate(e,t)>0?t:e}},ha=new O("mat-date-formats"),Rz=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function B0(i,e){let r=Array(i);for(let t=0;t{let e=class e extends Ai{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=k(Jh,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let n=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return B0(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return B0(31,n=>this._format(t,new Date(2017,0,n+1)))}getDayOfWeekNames(t){let n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return B0(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(t){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,n,o){let a=this._createDateWithOverflow(t,n,o);return a.getMonth()!=n,a}today(){return new Date}parse(t,n){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,n){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,mt(B({},n),{timeZone:"utc"}));return this._format(o,t)}addCalendarYears(t,n){return this.addCalendarMonths(t,n*12)}addCalendarMonths(t,n){let o=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+n,this.getDate(t));return this.getMonth(o)!=((this.getMonth(t)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(t,n){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+n)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(Rz.test(t)){let n=new Date(t);if(this.isValid(n))return n}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,n,o){let a=new Date;return a.setFullYear(t,n,o),a.setHours(0,0,0,0),a}_2digit(t){return("00"+t).slice(-2)}_format(t,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t.format(o)}};e.\u0275fac=function(n){return new(n||e)(M(Jh,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Fz={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var U1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Nz()]});let i=e;return i})();function Nz(i=Fz){return[{provide:Ai,useClass:Pz},{provide:ha,useValue:i}]}var Er=(()=>{let e=class e{isErrorState(t,n){return!!(t&&t.invalid&&(t.touched||n&&n.submitted))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var io=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(io||{}),H0=class{constructor(e,r,t,n=!1){this._renderer=e,this.element=r,this.config=t,this._animationForciblyDisabledThroughCss=n,this.state=io.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},O1=ji({passive:!0,capture:!0}),$0=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let r=mn(e);r&&this._events.get(e.type)?.forEach((t,n)=>{(n===r||n.contains(r))&&t.forEach(o=>o.handleEvent(e))})}}addHandler(e,r,t,n){let o=this._events.get(r);if(o){let a=o.get(t);a?a.add(n):o.set(t,new Set([n]))}else this._events.set(r,new Map([[t,new Set([n])]])),e.runOutsideAngular(()=>{document.addEventListener(r,this._delegateEventHandler,O1)})}removeHandler(e,r,t){let n=this._events.get(e);if(!n)return;let o=n.get(r);o&&(o.delete(t),o.size===0&&n.delete(r),n.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,O1)))}},R1={enterDuration:225,exitDuration:150},Lz=800,P1=ji({passive:!0,capture:!0}),F1=["mousedown","touchstart"],N1=["mouseup","mouseleave","touchend","touchcancel"],gd=class gd{constructor(e,r,t,n){this._target=e,this._ngZone=r,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=xn(t))}fadeInRipple(e,r,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=B(B({},R1),t.animation);t.centered&&(e=n.left+n.width/2,r=n.top+n.height/2);let a=t.radius||Vz(e,r,n),s=e-n.left,c=r-n.top,u=o.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${s-a}px`,f.style.top=`${c-a}px`,f.style.height=`${a*2}px`,f.style.width=`${a*2}px`,t.color!=null&&(f.style.backgroundColor=t.color),f.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(f);let v=window.getComputedStyle(f),C=v.transitionProperty,x=v.transitionDuration,E=C==="none"||x==="0s"||x==="0s, 0s"||n.width===0&&n.height===0,R=new H0(this,f,t,E);f.style.transform="scale3d(1, 1, 1)",R.state=io.FADING_IN,t.persistent||(this._mostRecentTransientRipple=R);let j=null;return!E&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let F=()=>this._finishRippleTransition(R),_e=()=>this._destroyRipple(R);f.addEventListener("transitionend",F),f.addEventListener("transitioncancel",_e),j={onTransitionEnd:F,onTransitionCancel:_e}}),this._activeRipples.set(R,j),(E||!u)&&this._finishRippleTransition(R),R}fadeOutRipple(e){if(e.state===io.FADING_OUT||e.state===io.HIDDEN)return;let r=e.element,t=B(B({},R1),e.config.animation);r.style.transitionDuration=`${t.exitDuration}ms`,r.style.opacity="0",e.state=io.FADING_OUT,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let r=xn(e);!this._platform.isBrowser||!r||r===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=r,F1.forEach(t=>{gd._eventManager.addHandler(this._ngZone,t,r,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{N1.forEach(r=>{this._triggerElement.addEventListener(r,this,P1)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===io.FADING_IN?this._startFadeOutTransition(e):e.state===io.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let r=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=io.VISIBLE,!t&&(!r||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let r=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=io.HIDDEN,r!==null&&(e.element.removeEventListener("transitionend",r.onTransitionEnd),e.element.removeEventListener("transitioncancel",r.onTransitionCancel)),e.element.remove()}_onMousedown(e){let r=hd(e),t=this._lastTouchStartEvent&&Date.now(){let r=e.state===io.VISIBLE||e.config.terminateOnPointerUp&&e.state===io.FADING_IN;!e.config.persistent&&r&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(F1.forEach(r=>gd._eventManager.removeHandler(r,e,this)),this._pointerUpEventsRegistered&&(N1.forEach(r=>e.removeEventListener(r,this,P1)),this._pointerUpEventsRegistered=!1))}};gd._eventManager=new $0;var W0=gd;function Vz(i,e,r){let t=Math.max(Math.abs(i-r.left),Math.abs(i-r.right)),n=Math.max(Math.abs(e-r.top),Math.abs(e-r.bottom));return Math.sqrt(t*t+n*n)}var Ec=new O("mat-ripple-global-options"),Mn=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,n,o,a,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new W0(this,n,t,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:B(B(B({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,n=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,B(B({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,B(B({},this.rippleConfig),t))}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z),h(je),h(Ec,8),h(Tt,8))},e.\u0275dir=N({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let i=e;return i})(),Ir=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})(),G0=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(n){return new(n||e)(h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&ne("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[re],decls:0,vars:0,template:function(n,o){},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-minimal-pseudo-checkbox-selected-checkmark-color)}.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-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);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-full-pseudo-checkbox-selected-checkmark-color)}.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-full-pseudo-checkbox-disabled-selected-icon-color)}.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-full-pseudo-checkbox-disabled-selected-checkmark-color)}.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}'],encapsulation:2,changeDetection:0});let i=e;return i})(),jz=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe]});let i=e;return i})(),vd=new O("MAT_OPTION_PARENT_COMPONENT");var bd=new O("MatOptgroup");var Bz=0,_d=class{constructor(e,r=!1){this.source=e,this.isUserInput=r}},it=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,n,o,a){this._element=t,this._changeDetectorRef=n,this._parent=o,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${Bz++}`,this.onSelectionChange=new T,this._stateChanges=new W}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,n){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!Rt(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new _d(this,t))}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(vd,8),h(bd,8))},e.\u0275cmp=S({type:e,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&le(Cz,7),n&2){let a;Q(a=K())&&(o._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&b("click",function(){return o._selectViaInteraction()})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Di("id",o.id),ie("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),ne("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[ue,re],ngContentSelectors:Dz,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(Ue(xz),D(0,Sz,1,2,"mat-pseudo-checkbox",1),ae(1),l(2,"span",2,0),ae(4,1),d(),D(5,Ez,1,1,"mat-pseudo-checkbox",3)(6,Iz,2,1,"span",4),I(7,"div",5)),n&2&&(xe(o.multiple?0:-1),m(5),xe(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),xe(o.group&&o.group._inert?6:-1),m(),p("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[G0,Mn],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();function ep(i,e,r){if(r.length){let t=e.toArray(),n=r.toArray(),o=0;for(let a=0;ar+t?Math.max(0,i-t+e):r}var Ic=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Ir,pe,jz]});let i=e;return i})(),L1={capture:!0},V1=["focus","mousedown","mouseenter","touchstart"],z0="mat-ripple-loader-uninitialized",U0="mat-ripple-loader-class-name",j1="mat-ripple-loader-centered",Xh="mat-ripple-loader-disabled",ip=(()=>{let e=class e{constructor(){this._document=k(se,{optional:!0}),this._animationMode=k(Tt,{optional:!0}),this._globalRippleOptions=k(Ec,{optional:!0}),this._platform=k(je),this._ngZone=k(Z),this._hosts=new Map,this._onInteraction=t=>{let n=mn(t);if(n instanceof HTMLElement){let o=n.closest(`[${z0}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let t of V1)this._document?.addEventListener(t,this._onInteraction,L1)})}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);for(let n of V1)this._document?.removeEventListener(n,this._onInteraction,L1)}configureRipple(t,n){t.setAttribute(z0,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(U0))&&t.setAttribute(U0,n.className||""),n.centered&&t.setAttribute(j1,""),n.disabled&&t.setAttribute(Xh,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,n){let o=this._hosts.get(t);if(o){o.disabled=n;return}n?t.setAttribute(Xh,""):t.removeAttribute(Xh)}_createRipple(t){if(!this._document)return;let n=this._hosts.get(t);if(n)return n;t.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",t.getAttribute(U0)),t.append(o);let a=new Mn(new G(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=t,a.centered=t.hasAttribute(j1),a.disabled=t.hasAttribute(Xh),this.attachRipple(t,a),a}attachRipple(t,n){t.removeAttribute(z0),this._hosts.set(t,n)}destroyRipple(t){let n=this._hosts.get(t);n&&(n.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),np=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[re],attrs:Mz,ngContentSelectors:Tz,decls:1,vars:0,template:function(n,o){n&1&&(Ue(),ae(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let i=e;return i})();var nt=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(nt||{}),Zo="*";function li(i,e){return{type:nt.Trigger,name:i,definitions:e,options:{}}}function Et(i,e=null){return{type:nt.Animate,styles:e,timings:i}}function H1(i,e=null){return{type:nt.Group,steps:i,options:e}}function $1(i,e=null){return{type:nt.Sequence,steps:i,options:e}}function Me(i){return{type:nt.Style,styles:i,offset:null}}function Pt(i,e,r){return{type:nt.State,name:i,styles:e,options:r}}function fa(i){return{type:nt.Keyframes,steps:i}}function xt(i,e,r=null){return{type:nt.Transition,expr:i,animation:e,options:r}}function op(i=null){return{type:nt.AnimateChild,options:i}}function rp(i,e,r=null){return{type:nt.Query,selector:i,animation:e,options:r}}var pa=class{constructor(e=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},yd=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let r=0,t=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++r==o&&this._onFinish()}),a.onDestroy(()=>{++t==o&&this._onDestroy()}),a.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let r=e*this.totalTime;this.players.forEach(t=>{let n=t.totalTime?Math.min(1,r/t.totalTime):1;t.setPosition(n)})}getPosition(){let e=this.players.reduce((r,t)=>r===null||t.totalTime>r.totalTime?t:r,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let r=e=="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},ap="!";function zz(i,e){}var wd=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},q0="mdc-dialog--open",W1="mdc-dialog--opening",G1="mdc-dialog--closing",Uz=150,Hz=75,$z=(()=>{let e=class e extends V0{constructor(t,n,o,a,s,c,u,f,v){super(t,n,o,a,s,c,u,v),this._animationMode=f,this._animationStateChanged=new T,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Y1(this._config.enterAnimationDuration)??Uz:0,this._exitAnimationDuration=this._animationsEnabled?Y1(this._config.exitAnimationDuration)??Hz:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(q1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(W1,q0)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(q0),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(q0),this._animationsEnabled?(this._hostElement.style.setProperty(q1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(G1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(W1,G1)}_waitForAnimationToComplete(t,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let n=super.attachComponentPortal(t);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}};e.\u0275fac=function(n){return new(n||e)(h(G),h(md),h(se,8),h(wd),h(ud),h(Z),h(Dr),h(Tt,8),h(wi))},e.\u0275cmp=S({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(Di("id",o._config.id),ie("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),ne("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[ve,re],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),D(2,zz,0,0,"ng-template",2),d()())},dependencies:[tn],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let i=e;return i})(),q1="--mat-dialog-transition-duration";function Y1(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?xo(i.substring(0,i.length-2)):i.endsWith("s")?xo(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var sp=function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i}(sp||{}),Le=class{constructor(e,r,t){this._ref=e,this._containerInstance=t,this._afterOpened=new W,this._beforeClosed=new W,this._state=sp.OPEN,this.disableClose=r.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(qe(n=>n.state==="opened"),It(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(qe(n=>n.state==="closed"),It(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),yt(this.backdropClick(),this.keydownEvents().pipe(qe(n=>n.keyCode===27&&!this.disableClose&&!Rt(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),Q1(this,n.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(qe(r=>r.state==="closing"),It(1)).subscribe(r=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),r.totalTime+100)}),this._state=sp.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let r=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?r.left(e.left):r.right(e.right):r.centerHorizontally(),e&&(e.top||e.bottom)?e.top?r.top(e.top):r.bottom(e.bottom):r.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",r=""){return this._ref.updateSize(e,r),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=sp.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function Q1(i,e,r){return i._closeInteractionType=e,i.close(r)}var Ke=new O("MatMdcDialogData"),Wz=new O("mat-mdc-dialog-default-options"),Gz=new O("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.block()}});var qz=0,Cd=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,n,o,a,s,c,u,f){this._overlay=t,this._defaultOptions=a,this._scrollStrategy=s,this._parentDialog=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new W,this._afterOpenedAtThisLevel=new W,this.dialogConfigClass=wd,this.afterAllClosed=Wn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ot(void 0))),this._dialog=n.get(j0),this._dialogRefConstructor=Le,this._dialogContainerType=$z,this._dialogDataToken=Ke}open(t,n){let o;n=B(B({},this._defaultOptions||new wd),n),n.id=n.id||`mat-mdc-dialog-${qz++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,mt(B({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:ss,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(s,c,u)=>(o=new this._dialogRefConstructor(s,n,u),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:u},{provide:this._dialogDataToken,useValue:c.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=a.componentRef,o.componentInstance=a.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let n=t.length;for(;n--;)t[n].close()}};e.\u0275fac=function(n){return new(n||e)(M(Ct),M(Pe),M(qo,8),M(Wz,8),M(Gz),M(e,12),M(bc),M(Tt,8))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Yz=0,Yt=(()=>{let e=class e{constructor(t,n,o){this.dialogRef=t,this._elementRef=n,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Z1(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){let n=t._matDialogClose||t._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(t){Q1(this.dialogRef,t.screenX===0&&t.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(n){return new(n||e)(h(Le,8),h(G),h(Cd))},e.\u0275dir=N({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&b("click",function(s){return o._onButtonClick(s)}),n&2&&ie("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Qe]});let i=e;return i})(),K1=(()=>{let e=class e{constructor(t,n,o){this._dialogRef=t,this._elementRef=n,this._dialog=o}ngOnInit(){this._dialogRef||(this._dialogRef=Z1(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(n){return new(n||e)(h(Le,8),h(G),h(Cd))},e.\u0275dir=N({type:e,standalone:!0});let i=e;return i})(),Xe=(()=>{let e=class e extends K1{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${Yz++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&Di("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[ve]});let i=e;return i})(),Je=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[KS([rd])]});let i=e;return i})(),et=(()=>{let e=class e extends K1{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,o){n&2&&ne("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},standalone:!0,features:[ve]});let i=e;return i})();function Z1(i,e){let r=i.nativeElement.parentElement;for(;r&&!r.classList.contains("mat-mdc-dialog-container");)r=r.parentElement;return r?e.find(t=>t.id===r.id):null}var X1=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Cd],imports:[A1,on,Ln,pe,pe]});let i=e;return i})();var J1,eM=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],tM=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")];var iM=i=>{let e=[];return i.forEach(r=>{e.push(r.substring(0,3))}),e},ga=(i,e,r)=>(typeof e>"u"&&(e=new Date),cs(i,e,r));var cs=(i,e,r,t)=>{t=t||{},e=e||new Date;let n=r||Zz;n.formats=n.formats||{};let o=e.getTime();return(t.utc||typeof t.timezone=="number")&&(e=Qz(e)),typeof t.timezone=="number"&&(e=new Date(e.getTime()+t.timezone*6e4)),i.replace(/%([-_0]?.)/g,(a,s)=>{let c,u,f,v,C,x,E,R;if(f=null,C=null,s.length===2){if(f=s[0],f==="-")C="";else if(f==="_")C=" ";else if(f==="0")C="0";else return a;s=s[1]}switch(s){case"A":return n.days[e.getDay()];case"a":return n.shortDays[e.getDay()];case"B":return n.months[e.getMonth()];case"b":return n.shortMonths[e.getMonth()];case"C":return fn(Math.floor(e.getFullYear()/100),C);case"D":return cs(n.formats.D||"%m/%d/%y",e,n);case"d":return fn(e.getDate(),C);case"e":return e.getDate();case"F":return cs(n.formats.F||"%Y-%m-%d",e,n);case"H":return fn(e.getHours(),C);case"h":return n.shortMonths[e.getMonth()];case"I":return fn(nM(e),C);case"j":return E=new Date(e.getFullYear(),0,1),c=Math.ceil((e.getTime()-E.getTime())/(1e3*60*60*24)),fn(c,3);case"k":return fn(e.getHours(),C===void 0?" ":C);case"L":return fn(Math.floor(o%1e3),3);case"l":return fn(nM(e),C===void 0?" ":C);case"M":return fn(e.getMinutes(),C);case"m":return fn(e.getMonth()+1,C);case"n":return` +`;case"o":return String(e.getDate())+Kz(e.getDate());case"P":return"";case"p":return"";case"R":return cs(n.formats.R||"%H:%M",e,n);case"r":return cs(n.formats.r||"%I:%M:%S %p",e,n);case"S":return fn(e.getSeconds(),C);case"s":return Math.floor(o/1e3);case"T":return cs(n.formats.T||"%H:%M:%S",e,n);case"t":return" ";case"U":return fn(oM(e,"sunday"),C);case"u":return u=e.getDay(),u===0?7:u;case"v":return cs(n.formats.v||"%e-%b-%Y",e,n);case"W":return fn(oM(e,"monday"),C);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return R=String(e.getFullYear()),R.slice(R.length-2);case"Z":return t.utc?"GMT":(x=e.toString().match(/\((\w+)\)/),x&&x[1]||"");case"z":return t.utc?"+0000":(v=typeof t.timezone=="number"?t.timezone:-e.getTimezoneOffset(),(v<0?"-":"+")+fn(Math.abs(v/60))+fn(v%60));default:return s}})},Qz=i=>{let e=(i.getTimezoneOffset()||0)*6e4;return new Date(i.getTime()+e)},fn=(i,e,r)=>{typeof e=="number"&&(r=e,e="0"),e=e??"0",r=r??2;let t=String(i);if(e)for(;t.length{let e;return e=i.getHours(),e===0?e=12:e>12&&(e-=12),e},Kz=i=>{let e=i%10,r=i%100;if(r>=11&&r<=13||e===0||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},oM=(i,e)=>{e=e||"sunday";let r=i.getDay();e==="monday"&&(r===0?r=6:r--);let t=new Date(i.getFullYear(),0,1),n=Math.floor((i.getTime()-t.getTime())/864e5);return Math.floor((n+7-r)/7)},Y0=i=>i.replace(/./g,e=>{switch(e){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+e;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":return"";case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return e}}),Bi=(i,e,r=null)=>{let t;if(e==="None"||e===null||e===void 0)e=7226578800,t=django.gettext("Never");else{let n=django.get_format(i);r&&(n+=r),t=ga(Y0(n),new Date(e*1e3))}return t},rM=i=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[i]||"OTHER",aM=i=>i===""||i===null||i===void 0,cp=i=>i==="yes"||i===!0||i==="true"||i===1,Zz={days:eM,shortDays:iM(eM),months:tM,shortMonths:iM(tM),AM:"AM",PM:"PM",am:"am",pm:"pm"},Xo=(i,e)=>{let r;if(i instanceof Promise)r=i;else if(i instanceof Jt)r=i;else{if(e)return Su(i.pipe(jg(e)));r=Su(i)}return r},Jt=class{constructor(){this[J1]="Future",this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}then(e,r){return this.promise.then(e,r)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}};J1=Symbol.toStringTag;var sM=["mat-button",""],cM=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],lM=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Xz='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',Q0=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var dM=["mat-icon-button",""],uM=["*"],Jz='.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',e5=new O("MAT_BUTTON_CONFIG");var t5=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],K0=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,n,o,a){this._elementRef=t,this._platform=n,this._ngZone=o,this._animationMode=a,this._focusMonitor=k(wi),this._rippleLoader=k(ip),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=k(e5,{optional:!0}),c=t.nativeElement,u=c.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(c,{className:"mat-mdc-button-ripple"});for(let{attribute:f,mdcClasses:v}of t5)c.hasAttribute(f)&&u.add(...v)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(n){Za()},e.\u0275dir=N({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y],ariaDisabled:[2,"aria-disabled","ariaDisabled",Y],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Y]},features:[ue]});let i=e;return i})();var mM=(()=>{let e=class e extends K0{constructor(t,n,o,a){super(t,n,o,a),this._haltDisabledEvents=s=>{this.disabled&&(s.preventDefault(),s.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}};e.\u0275fac=function(n){Za()},e.\u0275dir=N({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Zt(t)]},features:[ue,ve]});let i=e;return i})(),ke=(()=>{let e=class e extends K0{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Z),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ve,re],attrs:sM,ngContentSelectors:lM,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(Ue(cM),I(0,"span",0),ae(1),l(2,"span",1),ae(3,1),d(),ae(4,2),I(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),_a=(()=>{let e=class e extends mM{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Z),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[ve,re],attrs:sM,ngContentSelectors:lM,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(Ue(cM),I(0,"span",0),ae(1),l(2,"span",1),ae(3,1),d(),ae(4,2),I(5,"span",2)(6,"span",3)),n&2&&ne("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[Xz,Q0],encapsulation:2,changeDetection:0});let i=e;return i})();var Wi=(()=>{let e=class e extends K0{constructor(t,n,o,a){super(t,n,o,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Z),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ve,re],attrs:dM,ngContentSelectors:uM,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(Ue(),I(0,"span",0),ae(1),I(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',Q0],encapsulation:2,changeDetection:0});let i=e;return i})(),lp=(()=>{let e=class e extends mM{constructor(t,n,o,a){super(t,n,o,a)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Z),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ie("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[ve,re],attrs:dM,ngContentSelectors:uM,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(Ue(),I(0,"span",0),ae(1),I(2,"span",1)(3,"span",2))},styles:[Jz,Q0],encapsulation:2,changeDetection:0});let i=e;return i})(),Jo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,Ir,pe]});let i=e;return i})();var ce=(()=>{let e=class e{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}};e.\u0275fac=function(n){return new(n||e)(h(G))},e.\u0275dir=N({type:e,selectors:[["uds-translate"]]});let i=e;return i})();var dp=(()=>{let e=class e{constructor(t){this.sanitizer=t}transform(t,n){return t=t.replace(/<\s*script\s*/gi,""),t=t.replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,""),t=t.replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}};e.\u0275fac=function(n){return new(n||e)(h(Xa,16))},e.\u0275pipe=Qa({name:"safeHtml",type:e,pure:!0});let i=e;return i})();function i5(i,e){if(i&1){let r=A();l(0,"button",4),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!1))}),l(1,"uds-translate"),g(2,"Close"),d(),g(3),d()}if(i&2){let r=_();m(3),He(r.extra)}}function n5(i,e){if(i&1){let r=A();l(0,"button",5),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!0))}),l(1,"uds-translate"),g(2,"Yes"),d()()}if(i&2){let r=_();p("color",r.yesColor)}}function o5(i,e){if(i&1){let r=A();l(0,"button",5),b("click",function(){y(r);let n=_();return w(n.resolveAndClose(!1))}),l(1,"uds-translate"),g(2,"No"),d()()}if(i&2){let r=_();p("color",r.noColor)}}var xd=function(i){return i[i.alert=0]="alert",i[i.question=1]="question",i}(xd||{}),Z0=(()=>{let e=class e{constructor(t,n){this.dialogRef=t,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new Jt}resolveAndClose(t){this.acceptance.resolve(t),this.close()}close(){this.dialogRef.close()}closed(){this.subscription!==null&&this.subscription.unsubscribe()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){return q(this,null,function*(){let t=this.data.autoclose||0;t>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(t),this.subscription=Bg(1e3).subscribe(n=>{let o=t-(n+1)*1e3;this.setExtra(o),o<=0&&this.close()}))})}ngOnInit(){this.data.warnOnYes===!0&&(this.yesColor="warn",this.noColor="primary"),this.data.type===xd.alert&&this.initAlert()}};e.\u0275fac=function(n){return new(n||e)(h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"click","color"]],template:function(n,o){n&1&&(I(0,"h4",0),yo(1,"safeHtml"),I(2,"mat-dialog-content",1),yo(3,"safeHtml"),l(4,"mat-dialog-actions"),D(5,i5,4,1,"button",2)(6,n5,3,1,"button",3)(7,o5,3,1,"button",3),d()),n&2&&(p("innerHtml",yr(1,5,o.data.title),Gt),m(2),p("innerHTML",yr(3,7,o.data.body),Gt),m(3),p("ngIf",o.data.type===0),m(),p("ngIf",o.data.type===1),m(),p("ngIf",o.data.type===1))},dependencies:[he,ke,Yt,Xe,et,Je,ce,dp],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var Gi=function(i){return i.TEXT="text",i.TEXT_AUTOCOMPLETE="text-autocomplete",i.TEXTBOX="textbox",i.NUMERIC="numeric",i.PASSWORD="password",i.HIDDEN="hidden",i.CHOICE="choice",i.MULTI_CHOICE="multichoice",i.EDITLIST="editlist",i.CHECKBOX="checkbox",i.IMAGECHOICE="imgchoice",i.DATE="date",i.DATETIME="datetime",i.TAGLIST="taglist",i.INFO="internal-info",i}(Gi||{}),Dd=class{static locateChoice(e,r){let t=r.gui.choices;if(t===void 0)return{id:"",img:"",text:""};let n=t.find(o=>o.id===e);if(n===void 0)try{n=t[0]}catch{n={id:"",img:"",text:""}}return n}};var yM=(()=>{let e=class e{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(n){return new(n||e)(h(fr),h(G))},e.\u0275dir=N({type:e});let i=e;return i})(),wM=(()=>{let e=class e extends yM{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,features:[ve]});let i=e;return i})(),qi=new O("");var r5={provide:qi,useExisting:Wt(()=>ct),multi:!0};function a5(){let i=Go()?Go().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var s5=new O(""),ct=(()=>{let e=class e extends yM{constructor(t,n,o){super(t,n),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!a5())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(n){return new(n||e)(h(fr),h(G),h(s5,8))},e.\u0275dir=N({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&b("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[be([r5]),ve]});let i=e;return i})();function va(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function CM(i){return i!=null&&typeof i.length=="number"}var no=new O(""),Cp=new O(""),c5=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,er=class{static min(e){return l5(e)}static max(e){return d5(e)}static required(e){return xM(e)}static requiredTrue(e){return u5(e)}static email(e){return m5(e)}static minLength(e){return h5(e)}static maxLength(e){return DM(e)}static pattern(e){return p5(e)}static nullValidator(e){return mp(e)}static compose(e){return kM(e)}static composeAsync(e){return AM(e)}};function l5(i){return e=>{if(va(e.value)||va(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(va(e.value)||va(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>i?{max:{max:i,actual:e.value}}:null}}function xM(i){return va(i.value)?{required:!0}:null}function u5(i){return i.value===!0?null:{required:!0}}function m5(i){return va(i.value)||c5.test(i.value)?null:{email:!0}}function h5(i){return e=>va(e.value)||!CM(e.value)?null:e.value.lengthCM(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function p5(i){if(!i)return mp;let e,r;return typeof i=="string"?(r="",i.charAt(0)!=="^"&&(r+="^"),r+=i,i.charAt(i.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=i.toString(),e=i),t=>{if(va(t.value))return null;let n=t.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function mp(i){return null}function SM(i){return i!=null}function EM(i){return Jr(i)?Qt(i):i}function IM(i){let e={};return i.forEach(r=>{e=r!=null?B(B({},e),r):e}),Object.keys(e).length===0?null:e}function MM(i,e){return e.map(r=>r(i))}function f5(i){return!i.validate}function TM(i){return i.map(e=>f5(e)?e:r=>e.validate(r))}function kM(i){if(!i)return null;let e=i.filter(SM);return e.length==0?null:function(r){return IM(MM(r,e))}}function ty(i){return i!=null?kM(TM(i)):null}function AM(i){if(!i)return null;let e=i.filter(SM);return e.length==0?null:function(r){let t=MM(r,e).map(EM);return Zc(t).pipe(de(IM))}}function iy(i){return i!=null?AM(TM(i)):null}function pM(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function OM(i){return i._rawValidators}function RM(i){return i._rawAsyncValidators}function X0(i){return i?Array.isArray(i)?i:[i]:[]}function hp(i,e){return Array.isArray(i)?i.includes(e):i===e}function fM(i,e){let r=X0(e);return X0(i).forEach(n=>{hp(r,n)||r.push(n)}),r}function gM(i,e){return X0(e).filter(r=>!hp(i,r))}var pp=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ty(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=iy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},ba=class extends pp{get formDirective(){return null}get path(){return null}},Tn=class extends pp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},fp=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},g5={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},pce=mt(B({},g5),{"[class.ng-submitted]":"isSubmitted"}),we=(()=>{let e=class e extends fp{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(h(Tn,2))},e.\u0275dir=N({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&ne("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ve]});let i=e;return i})(),xp=(()=>{let e=class e extends fp{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(h(ba,10))},e.\u0275dir=N({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&ne("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ve]});let i=e;return i})();var Sd="VALID",up="INVALID",Mc="PENDING",Ed="DISABLED",ya=class{},gp=class extends ya{constructor(e,r){super(),this.value=e,this.source=r}},Md=class extends ya{constructor(e,r){super(),this.pristine=e,this.source=r}},Td=class extends ya{constructor(e,r){super(),this.touched=e,this.source=r}},Tc=class extends ya{constructor(e,r){super(),this.status=e,this.source=r}},J0=class extends ya{constructor(e){super(),this.source=e}},ey=class extends ya{constructor(e){super(),this.source=e}};function PM(i){return(Dp(i)?i.validators:i)||null}function _5(i){return Array.isArray(i)?ty(i):i||null}function FM(i,e){return(Dp(e)?e.asyncValidators:i)||null}function v5(i){return Array.isArray(i)?iy(i):i||null}function Dp(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function b5(i,e,r){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new te(1e3,"");if(!t[r])throw new te(1001,"")}function y5(i,e,r){i._forEachChild((t,n)=>{if(r[n]===void 0)throw new te(1002,"")})}var _p=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new W,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Sd}get invalid(){return this.status===up}get pending(){return this.status==Mc}get disabled(){return this.status===Ed}get enabled(){return this.status!==Ed}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(fM(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(fM(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(gM(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(gM(e,this._rawAsyncValidators))}hasValidator(e){return hp(this._rawValidators,e)}hasAsyncValidator(e){return hp(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(mt(B({},e),{sourceControl:t})),r&&e.emitEvent!==!1&&this._events.next(new Td(!0,t))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=e.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:t})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t),r&&e.emitEvent!==!1&&this._events.next(new Td(!1,t))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(mt(B({},e),{sourceControl:t})),r&&e.emitEvent!==!1&&this._events.next(new Md(!1,t))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=e.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&e.emitEvent!==!1&&this._events.next(new Md(!0,t))}markAsPending(e={}){this.status=Mc;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Tc(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(mt(B({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Ed,this.errors=null,this._forEachChild(n=>{n.disable(mt(B({},e),{onlySelf:!0}))}),this._updateValue();let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new gp(this.value,t)),this._events.next(new Tc(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(mt(B({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Sd,this._forEachChild(t=>{t.enable(mt(B({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(mt(B({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Sd||this.status===Mc)&&this._runAsyncValidator(t,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new gp(this.value,r)),this._events.next(new Tc(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(mt(B({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ed:Sd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Mc,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let t=EM(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((t,n)=>t&&t._find(n),this)}getError(e,r){let t=r?this.get(r):this;return t&&t.errors?t.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new Tc(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,t)}_initObservables(){this.valueChanges=new T,this.statusChanges=new T}_calculateStatus(){return this._allControlsDisabled()?Ed:this.errors?up:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mc)?Mc:this._anyControlsHaveStatus(up)?up:Sd}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&this._events.next(new Md(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Td(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Dp(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=_5(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=v5(this._rawAsyncValidators)}},vp=class extends _p{constructor(e,r,t){super(PM(r),FM(t,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,t={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){y5(this,!0,e),Object.keys(e).forEach(t=>{b5(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(t=>{let n=this.controls[t];n&&n.patchValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((t,n)=>{t.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,t)=>(e[t]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,t)=>t._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let t=this.controls[r];t&&e(t,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,t]of Object.entries(this.controls))if(this.contains(r)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,t,n)=>((t.enabled||this.disabled)&&(r[n]=t.value),r))}_reduceChildren(e,r){let t=e;return this._forEachChild((n,o)=>{t=r(t,n,o)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var kc=new O("CallSetDisabledState",{providedIn:"root",factory:()=>Sp}),Sp="always";function w5(i,e){return[...e.path,i]}function kd(i,e,r=Sp){ny(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),x5(i,e),S5(i,e),D5(i,e),C5(i,e)}function bp(i,e,r=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),wp(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function yp(i,e){i.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function C5(i,e){if(e.valueAccessor.setDisabledState){let r=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(r),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(r)})}}function ny(i,e){let r=OM(i);e.validator!==null?i.setValidators(pM(r,e.validator)):typeof r=="function"&&i.setValidators([r]);let t=RM(i);e.asyncValidator!==null?i.setAsyncValidators(pM(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();yp(e._rawValidators,n),yp(e._rawAsyncValidators,n)}function wp(i,e){let r=!1;if(i!==null){if(e.validator!==null){let n=OM(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==e.validator);o.length!==n.length&&(r=!0,i.setValidators(o))}}if(e.asyncValidator!==null){let n=RM(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==e.asyncValidator);o.length!==n.length&&(r=!0,i.setAsyncValidators(o))}}}let t=()=>{};return yp(e._rawValidators,t),yp(e._rawAsyncValidators,t),r}function x5(i,e){e.valueAccessor.registerOnChange(r=>{i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&NM(i,e)})}function D5(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&NM(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function NM(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function S5(i,e){let r=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};i.registerOnChange(r),e._registerOnDestroy(()=>{i._unregisterOnChange(r)})}function LM(i,e){i==null,ny(i,e)}function E5(i,e){return wp(i,e)}function VM(i,e){if(!i.hasOwnProperty("model"))return!1;let r=i.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function I5(i){return Object.getPrototypeOf(i.constructor)===wM}function jM(i,e){i._syncPendingControls(),e.forEach(r=>{let t=r.control;t.updateOn==="submit"&&t._pendingChange&&(r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function BM(i,e){if(!e)return null;Array.isArray(e);let r,t,n;return e.forEach(o=>{o.constructor===ct?r=o:I5(o)?t=o:n=o}),n||t||r||null}function M5(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}var T5={provide:ba,useExisting:Wt(()=>Io)},Id=Promise.resolve(),Io=(()=>{let e=class e extends ba{constructor(t,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new T,this.form=new vp({},ty(t),iy(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Id.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),kd(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Id.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Id.then(()=>{let n=this._findContainer(t.path),o=new vp({});LM(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Id.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){Id.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,jM(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(n){return new(n||e)(h(no,10),h(Cp,10),h(kc,8))},e.\u0275dir=N({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&b("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[be([T5]),ve]});let i=e;return i})();function _M(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function vM(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Ep=class extends _p{constructor(e=null,r,t){super(PM(r),FM(t,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Dp(r)&&(r.nonNullable||r.initialValueIsDefault)&&(vM(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){_M(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){_M(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){vM(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var k5=i=>i instanceof Ep;var A5={provide:Tn,useExisting:Wt(()=>De)},bM=Promise.resolve(),De=(()=>{let e=class e extends Tn{constructor(t,n,o,a,s,c){super(),this._changeDetectorRef=s,this.callSetDisabledState=c,this.control=new Ep,this._registered=!1,this.name="",this.update=new T,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=BM(this,a)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),VM(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){kd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){bM.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Y(n);bM.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?w5(t,this._parent):[t]}};e.\u0275fac=function(n){return new(n||e)(h(ba,9),h(no,10),h(Cp,10),h(qi,10),h(me,8),h(kc,8))},e.\u0275dir=N({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[be([A5]),ve,Qe]});let i=e;return i})(),Ip=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),O5={provide:qi,useExisting:Wt(()=>Vn),multi:!0},Vn=(()=>{let e=class e extends wM{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&b("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[be([O5]),ve]});let i=e;return i})();var zM=new O(""),R5={provide:Tn,useExisting:Wt(()=>oy)},oy=(()=>{let e=class e extends Tn{set isDisabled(t){}constructor(t,n,o,a,s){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=s,this.update=new T,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=BM(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&bp(n,this,!1),kd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}VM(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(h(no,10),h(Cp,10),h(qi,10),h(zM,8),h(kc,8))},e.\u0275dir=N({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[be([R5]),ve,Qe]});let i=e;return i})(),P5={provide:ba,useExisting:Wt(()=>ls)},ls=(()=>{let e=class e extends ba{constructor(t,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new T,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return kd(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){bp(t.control||null,t,!1),M5(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this.submitted=!0,jM(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new J0(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1,this.form._events.next(new ey(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(bp(n||null,t),k5(o)&&(kd(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);LM(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&E5(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ny(this.form,this),this._oldForm&&wp(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(h(no,10),h(Cp,10),h(kc,8))},e.\u0275dir=N({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&b("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[be([P5]),ve,Qe]});let i=e;return i})();function F5(i){return typeof i=="number"?i:parseInt(i,10)}var UM=(()=>{let e=class e{constructor(){this._validator=mp}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):mp,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,features:[Qe]});let i=e;return i})();var N5={provide:no,useExisting:Wt(()=>Oi),multi:!0};var Oi=(()=>{let e=class e extends UM{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Y,this.createValidator=t=>xM}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&ie("required",o._enabled?"":null)},inputs:{required:"required"},features:[be([N5]),ve]});let i=e;return i})();var L5={provide:no,useExisting:Wt(()=>ds),multi:!0},ds=(()=>{let e=class e extends UM{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>F5(t),this.createValidator=t=>DM(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ie("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[be([L5]),ve]});let i=e;return i})();var HM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var $M=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:kc,useValue:t.callSetDisabledState??Sp}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[HM]});let i=e;return i})(),Mp=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:zM,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:kc,useValue:t.callSetDisabledState??Sp}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[HM]});let i=e;return i})();var ry=class{constructor(e){this._box=e,this._destroyed=new W,this._resizeSubject=new W,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(r=>this._resizeSubject.next(r)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Re(r=>{let t=this._resizeSubject.subscribe(r);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),t.unsubscribe(),this._elementObservables.delete(e)}}).pipe(qe(r=>r.some(t=>t.target===e)),Au({bufferSize:1,refCount:!0}),fe(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Tp=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=k(Z),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(t,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new ry(o)),this._observers.get(o).observe(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var ly=["*"];function V5(i,e){i&1&&ae(0)}var j5=["tabListContainer"],B5=["tabList"],z5=["tabListInner"],U5=["nextPaginator"],H5=["previousPaginator"],$5=i=>({animationDuration:i}),W5=(i,e)=>({value:i,params:e});function G5(i,e){}var q5=["tabBodyWrapper"],Y5=["tabHeader"];function Q5(i,e){}function K5(i,e){if(i&1&&D(0,Q5,0,0,"ng-template",12),i&2){let r=_().$implicit;p("cdkPortalOutlet",r.templateLabel)}}function Z5(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;He(r.textLabel)}}function X5(i,e){if(i&1){let r=A();l(0,"div",7,2),b("click",function(){let n=y(r),o=n.$implicit,a=n.$index,s=_(),c=Ie(1);return w(s._handleClick(o,c,a))})("cdkFocusChange",function(n){let o=y(r).$index,a=_();return w(a._tabFocusChanged(n,o))}),I(2,"span",8)(3,"div",9),l(4,"span",10)(5,"span",11),D(6,K5,1,1,null,12)(7,Z5,1,1),d()()()}if(i&2){let r=e.$implicit,t=e.$index,n=Ie(1),o=_();qt(r.labelClass),ne("mdc-tab--active",o.selectedIndex===t),p("id",o._getTabLabelId(t))("disabled",r.disabled)("fitInkBarToContent",o.fitInkBarToContent),ie("tabIndex",o._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(t))("aria-selected",o.selectedIndex===t)("aria-label",r.ariaLabel||null)("aria-labelledby",!r.ariaLabel&&r.ariaLabelledby?r.ariaLabelledby:null),m(3),p("matRippleTrigger",n)("matRippleDisabled",r.disabled||o.disableRipple),m(3),xe(r.templateLabel?6:7)}}function J5(i,e){i&1&&ae(0)}function eU(i,e){if(i&1){let r=A();l(0,"mat-tab-body",13),b("_onCentered",function(){y(r);let n=_();return w(n._removeTabBodyWrapperHeight())})("_onCentering",function(n){y(r);let o=_();return w(o._setTabBodyWrapperHeight(n))}),d()}if(i&2){let r=e.$implicit,t=e.$index,n=_();qt(r.bodyClass),ne("mat-mdc-tab-body-active",n.selectedIndex===t),p("id",n._getTabContentId(t))("content",r.content)("position",r.position)("origin",r.origin)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),ie("tabindex",n.contentTabIndex!=null&&n.selectedIndex===t?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(t))("aria-hidden",n.selectedIndex!==t)}}var tU=new O("MatTabContent"),iU=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[be([{provide:tU,useExisting:e}])]});let i=e;return i})(),nU=new O("MatTabLabel"),qM=new O("MAT_TAB"),ei=(()=>{let e=class e extends r1{constructor(t,n,o){super(t,n),this._closestTab=o}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(wt),h(qM,8))},e.\u0275dir=N({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[be([{provide:nU,useExisting:e}]),ve]});let i=e;return i})(),YM=new O("MAT_TAB_GROUP"),ti=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}constructor(t,n){this._viewContainerRef=t,this._closestTabGroup=n,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new W,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ki(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(YM,8))},e.\u0275cmp=S({type:e,selectors:[["mat-tab"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,ei,5),Fe(a,iU,7,lt)),n&2){let s;Q(s=K())&&(o.templateLabel=s.first),Q(s=K())&&(o._explicitContent=s.first)}},viewQuery:function(n,o){if(n&1&&le(lt,7),n&2){let a;Q(a=K())&&(o._implicitContent=a.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",Y],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[be([{provide:qM,useExisting:e}]),ue,Qe,re],ngContentSelectors:ly,decls:1,vars:0,template:function(n,o){n&1&&(Ue(),D(0,V5,1,0,"ng-template"))},encapsulation:2});let i=e;return i})(),ay="mdc-tab-indicator--active",WM="mdc-tab-indicator--no-transition",sy=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let r=this._items.find(n=>n.elementRef.nativeElement===e),t=this._currentItem;if(r!==t&&(t?.deactivateInkBar(),r)){let n=t?.elementRef.nativeElement.getBoundingClientRect?.();r.activateInkBar(n),this._currentItem=r}}},oU=(()=>{let e=class e{constructor(){this._elementRef=k(G),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let n=this._elementRef.nativeElement;if(!t||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(ay);return}let o=n.getBoundingClientRect(),a=t.width/o.width,s=t.left-o.left;n.classList.add(WM),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${a})`),n.getBoundingClientRect(),n.classList.remove(WM),n.classList.add(ay),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ay)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=t.createElement("span"),o=this._inkBarContentElement=t.createElement("span");n.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",n.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Y]},features:[ue]});let i=e;return i})();var QM=(()=>{let e=class e extends oU{constructor(t){super(),this.elementRef=t,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(n){return new(n||e)(h(G))},e.\u0275dir=N({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(ie("aria-disabled",!!o.disabled),ne("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",Y]},standalone:!0,features:[ue,ve]});let i=e;return i})(),GM=ji({passive:!0}),rU=650,aU=100,sU=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let n=isNaN(t)?0:t;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}constructor(t,n,o,a,s,c,u){this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=o,this._dir=a,this._ngZone=s,this._platform=c,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new W,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new W,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new T,this.indexFocused=new T,this._sharedResizeObserver=k(Tp),this._injector=k(Pe),s.runOutsideAngular(()=>{cn(t.nativeElement,"mouseleave").pipe(fe(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){cn(this._previousPaginator.nativeElement,"touchstart",GM).pipe(fe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),cn(this._nextPaginator.nativeElement,"touchstart",GM).pipe(fe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let t=this._dir?this._dir.change:oe("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(ar(32),fe(this._destroyed)),o=this._viewportRuler.change(150).pipe(fe(this._destroyed)),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new la(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),ri(a,{injector:this._injector}),yt(t,o,n,this._items.changes,this._itemsResized()).pipe(fe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),a()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?Ti:this._items.changes.pipe(Ot(this._items),Mt(t=>new Re(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(a=>n.next(a));return t.forEach(a=>o.observe(a.elementRef.nativeElement)),()=>{o.disconnect()}}))),Fa(1),qe(t=>t.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Rt(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let n=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?n.scrollLeft=0:n.scrollLeft=n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let n=this._tabListContainer.nativeElement.offsetWidth,o=(t=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let n=this._items?this._items.toArray()[t]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:s}=n.elementRef.nativeElement,c,u;this._getLayoutDirection()=="ltr"?(c=a,u=c+s):(u=this._tabListInner.nativeElement.offsetWidth-a,c=u-s);let f=this.scrollDistance,v=this.scrollDistance+o;cv&&(this.scrollDistance+=Math.min(u-v,c-f))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=t-n>=5;o||(this.scrollDistance=0),o!==this._showPaginationControls&&(this._showPaginationControls=o,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return t-n||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),fo(rU,aU).pipe(fe(yt(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:a}=this._scrollHeader(t);(a===0||a>=o)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(pn),h(kt,8),h(Z),h(je),h(Tt,8))},e.\u0275dir=N({type:e,inputs:{disablePagination:[2,"disablePagination","disablePagination",Y],selectedIndex:[2,"selectedIndex","selectedIndex",Zt]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ue]});let i=e;return i})(),cU=(()=>{let e=class e extends sU{constructor(t,n,o,a,s,c,u){super(t,n,o,a,s,c,u),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new sy(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(pn),h(kt,8),h(Z),h(je),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-tab-header"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,QM,4),n&2){let s;Q(s=K())&&(o._items=s)}},viewQuery:function(n,o){if(n&1&&(le(j5,7),le(B5,7),le(z5,7),le(U5,5),le(H5,5)),n&2){let a;Q(a=K())&&(o._tabListContainer=a.first),Q(a=K())&&(o._tabList=a.first),Q(a=K())&&(o._tabListInner=a.first),Q(a=K())&&(o._nextPaginator=a.first),Q(a=K())&&(o._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&ne("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{disableRipple:[2,"disableRipple","disableRipple",Y]},standalone:!0,features:[ue,ve,re],ngContentSelectors:ly,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"button",5,0),b("click",function(){return y(a),w(o._handlePaginatorClick("before"))})("mousedown",function(c){return y(a),w(o._handlePaginatorPress("before",c))})("touchend",function(){return y(a),w(o._stopInterval())}),I(2,"div",6),d(),l(3,"div",7,1),b("keydown",function(c){return y(a),w(o._handleKeydown(c))}),l(5,"div",8,2),b("cdkObserveContent",function(){return y(a),w(o._onContentChanges())}),l(7,"div",9,3),ae(9),d()()(),l(10,"button",10,4),b("mousedown",function(c){return y(a),w(o._handlePaginatorPress("after",c))})("click",function(){return y(a),w(o._handlePaginatorClick("after"))})("touchend",function(){return y(a),w(o._stopInterval())}),I(12,"div",6),d()}n&2&&(ne("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),p("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),m(3),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations"),m(7),ne("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),p("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[Mn,f1],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2});let i=e;return i})(),lU=new O("MAT_TABS_CONFIG"),dU={translateTab:li("translateTab",[Pt("center, void, left-origin-center, right-origin-center",Me({transform:"none"})),Pt("left",Me({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Pt("right",Me({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),xt("* => left, * => right, left => center, right => center",Et("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),xt("void => left-origin-center",[Me({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Et("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),xt("void => right-origin-center",[Me({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Et("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},uU=(()=>{let e=class e extends tn{constructor(t,n,o,a){super(t,n,a),this._host=o,this._centeringSub=Ce.EMPTY,this._leavingSub=Ce.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ot(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(h(vn),h(wt),h(Wt(()=>KM)),h(se))},e.\u0275dir=N({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[ve]});let i=e;return i})(),KM=(()=>{let e=class e{set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(t,n,o){this._elementRef=t,this._dir=n,this._dirChangeSubscription=Ce.EMPTY,this._translateTabComplete=new W,this._onCentering=new T,this._beforeCentering=new T,this._afterLeavingCenter=new T,this._onCentered=new T(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(a=>{this._computePositionAnimationState(a),o.markForCheck()})),this._translateTabComplete.pipe(Br((a,s)=>a.fromState===s.fromState&&a.toState===s.toState)).subscribe(a=>{this._isCenterPosition(a.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(a.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){let n=this._isCenterPosition(t.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(t){return t=="center"||t=="left-origin-center"||t=="right-origin-center"}_computePositionAnimationState(t=this._getLayoutDirection()){this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(t){let n=this._getLayoutDirection();return n=="ltr"&&t<=0||n=="rtl"&&t>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(n){return new(n||e)(h(G),h(kt,8),h(me))},e.\u0275cmp=S({type:e,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&le(tn,5),n&2){let a;Q(a=K())&&(o._portalHost=a.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[re],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){if(n&1){let a=A();l(0,"div",1,0),b("@translateTab.start",function(c){return y(a),w(o._onTranslateTabStarted(c))})("@translateTab.done",function(c){return y(a),w(o._translateTabComplete.next(c))}),D(2,G5,0,0,"ng-template",2),d()}n&2&&p("@translateTab",Xs(3,W5,o._position,Li(1,$5,o.animationDuration)))},dependencies:[uU,rd],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[dU.translateTab]}});let i=e;return i})(),mU=0,hU=!0,ni=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}get animationDuration(){return this._animationDuration}set animationDuration(t){let n=t+"";this._animationDuration=/^\d+$/.test(n)?t+"ms":n}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){if(!hU)throw new Error("mat-tab-group background color must be set through the Sass theming API");let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&n.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}constructor(t,n,o,a){this._elementRef=t,this._changeDetectorRef=n,this._animationMode=a,this._tabs=new qn,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ce.EMPTY,this._tabLabelSubscription=Ce.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new T,this.focusChange=new T,this.animationDone=new T,this.selectedTabChange=new T(!0),this._isServer=!k(je).isBrowser,this._groupId=mU++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=o&&o.disablePagination!=null?o.disablePagination:!1,this.dynamicHeight=o&&o.dynamicHeight!=null?o.dynamicHeight:!1,o?.contentTabIndex!=null&&(this.contentTabIndex=o.contentTabIndex),this.preserveContent=!!o?.preserveContent,this.fitInkBarToContent=o&&o.fitInkBarToContent!=null?o.fitInkBarToContent:!1,this.stretchTabs=o&&o.stretchTabs!=null?o.stretchTabs:!0}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(t));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,a)=>o.isActive=a===t),n||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-t,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let n=this._tabs.toArray(),o;for(let a=0;a{n[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Ot(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let n=this._tabHeader;n&&(n.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let n=new cy;return n.index=t,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[t]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=yt(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,n,o){n.focusIndex=o,t.disabled||(this.selectedIndex=o)}_getTabIndex(t){let n=this._lastFocusedTabIndex??this.selectedIndex;return t===n?0:-1}_tabFocusChanged(t,n){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=n)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(lU,8),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-tab-group"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,ti,5),n&2){let s;Q(s=K())&&(o._allTabs=s)}},viewQuery:function(n,o){if(n&1&&(le(q5,5),le(Y5,5)),n&2){let a;Q(a=K())&&(o._tabBodyWrapper=a.first),Q(a=K())&&(o._tabHeader=a.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(n,o){n&2&&(qt("mat-"+(o.color||"primary")),xi("--mat-tab-animation-duration",o.animationDuration),ne("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",Y],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",Y],dynamicHeight:[2,"dynamicHeight","dynamicHeight",Y],selectedIndex:[2,"selectedIndex","selectedIndex",Zt],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Zt],disablePagination:[2,"disablePagination","disablePagination",Y],disableRipple:[2,"disableRipple","disableRipple",Y],preserveContent:[2,"preserveContent","preserveContent",Y],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[be([{provide:YM,useExisting:e}]),ue,re],ngContentSelectors:ly,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"mat-tab-header",3,0),b("indexFocused",function(c){return y(a),w(o._focusChanged(c))})("selectFocusedIndex",function(c){return y(a),w(o.selectedIndex=c)}),_r(2,X5,8,17,"div",4,yl),d(),D(4,J5,1,0),l(5,"div",5,1),_r(7,eU,1,13,"mat-tab-body",6,yl),d()}n&2&&(p("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),m(2),vr(o._tabs),m(2),xe(o._isServer?4:-1),m(),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations"),m(2),vr(o._tabs))},dependencies:[cU,QM,Zh,Mn,tn,KM],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2});let i=e;return i})(),cy=class{};var ZM=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})();function pU(i,e){if(i&1){let r=A();l(0,"uds-field-text",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function fU(i,e){if(i&1){let r=A();l(0,"uds-field-autocomplete",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function gU(i,e){if(i&1){let r=A();l(0,"uds-field-textbox",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function _U(i,e){if(i&1){let r=A();l(0,"uds-field-numeric",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function vU(i,e){if(i&1){let r=A();l(0,"uds-field-password",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function bU(i,e){if(i&1){let r=A();l(0,"uds-field-hidden",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function yU(i,e){if(i&1){let r=A();l(0,"uds-field-choice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function wU(i,e){if(i&1){let r=A();l(0,"uds-field-multichoice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function CU(i,e){if(i&1){let r=A();l(0,"uds-field-editlist",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function xU(i,e){if(i&1){let r=A();l(0,"uds-field-checkbox",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function DU(i,e){if(i&1){let r=A();l(0,"uds-field-imgchoice",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function SU(i,e){if(i&1){let r=A();l(0,"uds-field-date",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}function EU(i,e){if(i&1){let r=A();l(0,"uds-field-tags",2),b("changed",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()}if(i&2){let r=_();p("field",r.field)}}var kp=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.udsGuiFieldType=Gi}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"changed","field"]],template:function(n,o){n&1&&(l(0,"div",0),D(1,pU,1,1,"uds-field-text",1)(2,fU,1,1,"uds-field-autocomplete",1)(3,gU,1,1,"uds-field-textbox",1)(4,_U,1,1,"uds-field-numeric",1)(5,vU,1,1,"uds-field-password",1)(6,bU,1,1,"uds-field-hidden",1)(7,yU,1,1,"uds-field-choice",1)(8,wU,1,1,"uds-field-multichoice",1)(9,CU,1,1,"uds-field-editlist",1)(10,xU,1,1,"uds-field-checkbox",1)(11,DU,1,1,"uds-field-imgchoice",1)(12,SU,1,1,"uds-field-date",1)(13,EU,1,1,"uds-field-tags",1),d()),n&2&&(p("ngSwitch",o.field.gui.type)("matTooltip",o.field.gui.tooltip),m(),p("ngSwitchCase",o.udsGuiFieldType.TEXT),m(),p("ngSwitchCase",o.udsGuiFieldType.TEXT_AUTOCOMPLETE),m(),p("ngSwitchCase",o.udsGuiFieldType.TEXTBOX),m(),p("ngSwitchCase",o.udsGuiFieldType.NUMERIC),m(),p("ngSwitchCase",o.udsGuiFieldType.PASSWORD),m(),p("ngSwitchCase",o.udsGuiFieldType.HIDDEN),m(),p("ngSwitchCase",o.udsGuiFieldType.CHOICE),m(),p("ngSwitchCase",o.udsGuiFieldType.MULTI_CHOICE),m(),p("ngSwitchCase",o.udsGuiFieldType.EDITLIST),m(),p("ngSwitchCase",o.udsGuiFieldType.CHECKBOX),m(),p("ngSwitchCase",o.udsGuiFieldType.IMAGECHOICE),m(),p("ngSwitchCase",o.udsGuiFieldType.DATE),m(),p("ngSwitchCase",o.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-mdc-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-mdc-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]});let i=e;return i})();function MU(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;P(" ",r," ")}}function TU(i,e){if(i&1){let r=A();l(0,"uds-field",9),b("changed",function(n){y(r);let o=_(3);return w(o.changed.emit(n))}),d()}if(i&2){let r=e.$implicit;p("field",r)}}function kU(i,e){if(i&1&&(l(0,"mat-tab",4),D(1,MU,1,1,"ng-template",5),l(2,"div",6)(3,"div",7),D(4,TU,1,1,"uds-field",8),d()()()),i&2){let r=e.$implicit,t=_(2);m(4),p("ngForOf",t.fieldsByTab[r])}}function AU(i,e){if(i&1&&(l(0,"mat-tab-group",2),D(1,kU,5,1,"mat-tab",3),d()),i&2){let r=_();p("disableRipple",!1)("@.disabled",!0),m(),p("ngForOf",r.tabs)}}function OU(i,e){if(i&1){let r=A();l(0,"div")(1,"uds-field",9),b("changed",function(n){y(r);let o=_(2);return w(o.changed.emit(n))}),d()()}if(i&2){let r=e.$implicit;m(),p("field",r)}}function RU(i,e){if(i&1&&(l(0,"div",6),D(1,OU,2,1,"div",10),d()),i&2){let r=_();m(),p("ngForOf",r.fields)}}var PU=django.gettext("Main"),XM=(()=>{let e=class e{constructor(){this.fields=[],this.changed=new T,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let t of this.fields){let n=t.gui.tab===void 0?PU:t.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[["onlyone",""],["backgroundColor","primary",3,"disableRipple",4,"ngIf","ngIfElse"],["backgroundColor","primary",3,"disableRipple"],["class","noOverflow",4,"ngFor","ngForOf"],[1,"noOverflow"],["mat-tab-label",""],[1,"form-content"],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"changed","field"],[4,"ngFor","ngForOf"]],template:function(n,o){if(n&1&&D(0,AU,2,3,"mat-tab-group",1)(1,RU,2,1,"ng-template",null,0,hi),n&2){let a=Ie(2);p("ngIf",o.tabs.length>1)("ngIfElse",a)}},dependencies:[$e,he,ei,ti,ni,kp],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.form-content[_ngcontent-%COMP%]{padding-top:1rem} .mat-mdc-tab-body-content{overflow:hidden!important} .mat-mdc-form-field-infix{min-height:3rem} .mat-mdc-tab-header{position:sticky;top:0;z-index:1000}"]});let i=e;return i})();function NU(i,e){if(i&1){let r=A();l(0,"button",10),b("click",function(){y(r);let n=_();return w(n.customButtonClicked())}),g(1),d()}if(i&2){let r=_();m(),He(r.data.customButton)}}var JM=(()=>{let e=class e{constructor(t,n){this.dialogRef=t,this.data=n,this.onEvent=new T(!0),this.saving=!1}ngOnInit(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}changed(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})}getFields(){let t={},n=[];return this.data.guiFields.forEach(o=>{let a=o.value;if(o.gui.required&&a!==0&&a!==!1&&(!a||a instanceof Array&&a.length===0)&&n.push(o.gui.label),typeof a=="number"){let s=parseInt((o.gui.minValue||987654321).toString(),10),c=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&a= "+o.gui.minValue),c!==987654321&&a>c&&n.push(o.gui.label+" <= "+o.gui.maxValue),a=a.toString()}t[o.name]=a}),{data:t,errors:n}}save(){let t=this.getFields();if(t.errors.length>0){this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", "));return}this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})}cancel(){this.onEvent.emit({data:null,type:"cancel",dialog:this.dialogRef})}customButtonClicked(){let t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton||"",errors:t.errors,dialog:this.dialogRef})}};e.\u0275fac=function(n){return new(n||e)(h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["vc",""],["mat-dialog-title","",3,"innerHtml"],["autocomplete","off"],[3,"changed","fields"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","","color","primary",3,"click","disabled"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(n,o){if(n&1){let a=A();I(0,"h4",1),yo(1,"safeHtml"),l(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),b("changed",function(c){return y(a),w(o.changed(c))}),d()()(),l(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),D(9,NU,2,1,"button",6),d(),l(10,"div",7)(11,"button",8),b("click",function(){return y(a),w(o.dialogRef.close())})("click",function(){return y(a),w(o.cancel())}),l(12,"uds-translate"),g(13,"Discard & close"),d()(),l(14,"button",9),b("click",function(){return y(a),w(o.save())}),l(15,"uds-translate"),g(16,"Save"),d()()()()()}n&2&&(p("innerHtml",yr(1,5,o.data.title),Gt),m(5),p("fields",o.data.guiFields),m(4),p("ngIf",o.data.customButton!==void 0),m(2),p("disabled",o.saving),m(3),p("disabled",o.saving))},dependencies:[Cn,he,Ip,xp,Io,ke,Xe,et,Je,ce,XM,dp],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}.modal-form[_ngcontent-%COMP%]{padding-top:1.5rem}"]});let i=e;return i})();var Ap=class{constructor(e){this.gui=e}modalForm(e,r,t=null,n){r.sort((c,u)=>c.gui.order>u.gui.order?1:-1);let o=t!=null;t=o?t:{},r.forEach(c=>{(o===!1||c.gui.readonly===void 0)&&(c.gui.readonly=!1),c.gui.type===Gi.TEXT&&c.gui.lines&&(c.gui.type=Gi.TEXTBOX);let u=t[c.name];if(u!==void 0)if(u instanceof Array){let f=new Array;u.forEach(v=>f.push(v)),c.value=f}else c.value=u});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(JM,{position:{top:"64px"},width:a,data:{title:e,guiFields:r,customButton:n,gui:this.gui},disableClose:!0}).componentInstance.onEvent}typedForm(e,r,t,n,o,a,s){return q(this,null,function*(){let c=s||{},u=c.callback||(()=>{}),f=n||[],v=t?django.gettext("Test"):void 0,C={},x={},E=F=>{if(x.hasOwnProperty(F.name)){let _e=x[F.name];F.value!==""&&F.value!==void 0&&this.executeCallback(e,F,C)}},R=c.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),j=yield e.table.rest.gui(a);if(R.dismiss(),f!==void 0)for(let F of f)j.push(F);for(let F of j){if(F.gui.type===Gi.INFO){F.name==="title"&&(r+=" "+(F.value||F.gui.default||""));continue}C[F.name]=F,F.gui.fills!==void 0&&(x[F.name]=F.gui.fills)}this.modalForm(r,j,o,v).subscribe(F=>q(this,null,function*(){switch(F.data&&(F.data.data_type=a),F.type){case v:if(F.errors&&F.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+F.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),e.table.rest.test(a,F.data).then(_e=>{_e!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+_e,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(F.data===null)for(let _e of j)E(_e);else E(F.data.field);u({on:F.data,all:C});break;case"save":if(c.save===void 0){F.dialog.componentInstance.saving=!0;try{o?yield e.table.rest.save(F.data,o.id):yield e.table.rest.create(F.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),F.dialog.close(),e.table.overview()}finally{F.dialog.componentInstance.saving=!1}}else F.dialog.close(),c.save.resolve(F.data);break;case"cancel":F.dialog.close();break}}))})}typedEditForm(e,r,t=!1,n,o=()=>{}){return q(this,null,function*(){let a=e.table.selection.selected[0],s=a.type,c=new T,u=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),f=yield e.table.rest.get(a.id);return this.typedForm(e,r,t,n,f,s,{snack:u,callback:o})})}typedNewForm(e,r,t=!1,n,o=()=>{}){return q(this,null,function*(){let a=e.param?e.param.type:void 0;return this.typedForm(e,r,t,n,null,a,{callback:o})})}deleteForm(e,r,t){return q(this,null,function*(){let n=new Array,o=new Array;for(let c of e.table.selection.selected){let u=c.name||c.friendly_name||c[t||"name"]||c.id;u&&u.changingThisBreaksApplicationSecurity&&(u=u.changingThisBreaksApplicationSecurity),n.push(u),o.push(c.id)}let a=django.gettext("Are you sure do you want to delete the following items?")+"
"+n.join(", ")+"";if(yield this.gui.questionDialog(r,a,!0)){for(let u of o)try{yield e.table.rest.delete(u)}catch(f){console.warn("Error deleting item",u,f)}let c=o.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),e.table.overview()}})}executeCallback(o,a,s){return q(this,arguments,function*(e,r,t,n={}){let c=new Array;if(!r.gui.fills)return;for(let v of r.gui.fills.parameters)c.push(v+"="+encodeURIComponent(t[v].value));let u=yield e.table.rest.callback(r.gui.fills.callback_name,c.join("&")),f=new Array;for(let v of u){let C=t[v.name];if(C!==void 0){C.gui.fills!==void 0&&f.push(C);let x=new Array;for(let E of v.choices)x.push({id:E.id,text:E.text,img:E.img});if(C.gui.choices=x,C.value instanceof Array){let E=new Array;for(let R of C.gui.choices)C.value.indexOf(R.id)>=0&&E.push(R.id);C.value=E}else(!C.value||C.value instanceof Array&&C.value.length===0)&&(C.value=v.choices.length>0?v.choices[0].id:"")}}for(let v of f)n[v.name]===void 0&&(n[v.name]=!0,this.executeCallback(e,v,t,n))})}};var LU="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",Op=class{constructor(e,r){this.dialog=e,this.snackbar=r,this.forms=new Ap(this)}alert(e,r,t=0,n){return q(this,null,function*(){let o=n||(window.innerWidth<800?"80%":"40%");return this.dialog.open(Z0,{width:o,data:{title:e,body:r,autoclose:t,type:xd.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(e,r,t=!1){return q(this,null,function*(){let n=window.innerWidth<800?"80%":"40%",o=this.dialog.open(Z0,{width:n,data:{title:e,body:r,type:xd.question,warnOnYes:t},disableClose:!0});return Xo(o.componentInstance.acceptance)})}icon(e,r="24px"){return''}};var Rp={production:!0};var pi=function(i){return i.NUMERIC="numeric",i.ALPHANUMERIC="alphanumeric",i.DATETIME="datetime",i.DATETIMESEC="datetimesec",i.DATE="date",i.TIME="time",i.ICON="iconType",i.CALLBACK="callback",i.DICTIONARY="dict",i.IMAGE="image",i}(pi||{}),ut=function(i){return i[i.ALWAYS=0]="ALWAYS",i[i.SINGLE_SELECT=1]="SINGLE_SELECT",i[i.MULTI_SELECT=2]="MULTI_SELECT",i[i.ONLY_MENU=3]="ONLY_MENU",i[i.ACCELERATOR=4]="ACCELERATOR",i}(ut||{});var dy="provider",uy="service",Ad="pool",VU="authenticator",Od="user",my="group",hy="transport",py="osmanager",Pp="calendar",fy="poolgroup",jU={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),mfa:django.gettext("MFA"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},Ei=class{constructor(e){this.router=e}static getGotoButton(e,r,t){return{id:e,html:'link'+django.gettext("Go to")+" "+jU[e]+"",type:ut.ACCELERATOR,acceleratorProperties:[r,t||""]}}gotoProvider(e){e!==void 0?this.router.navigate(["services","providers",e]):this.router.navigate(["services","providers"])}gotoService(e,r){r!==void 0?this.router.navigate(["services","providers",e,"detail",r]):this.router.navigate(["services","providers",e,"detail"])}gotoServer(e){this.router.navigate(["services","servers",e])}gotoServerDetail(e){this.router.navigate(["services","servers",e,"detail"])}gotoServicePool(e){this.router.navigate(["pools","service-pools",e])}gotoServicePoolDetail(e){this.router.navigate(["pools","service-pools",e,"detail"])}gotoMetapool(e){this.router.navigate(["pools","meta-pools",e])}gotoMetapoolDetail(e){this.router.navigate(["pools","meta-pools",e,"detail"])}gotoCalendar(e){this.router.navigate(["pools","calendars",e])}gotoCalendarDetail(e){this.router.navigate(["pools","calendars",e,"detail"])}gotoAccount(e){this.router.navigate(["pools","accounts",e])}gotoAccountDetail(e){this.router.navigate(["pools","accounts",e,"detail"])}gotoPoolGroup(e){e=e||"",this.router.navigate(["pools","pool-groups",e])}gotoAuthenticator(e){this.router.navigate(["authenticators",e])}gotoAuthenticatorDetail(e){this.router.navigate(["authenticators",e,"detail"])}gotoMFA(e){this.router.navigate(["mfas",e])}gotoUser(e,r){this.router.navigate(["authenticators",e,"detail","users",r])}gotoGroup(e,r){this.router.navigate(["authenticators",e,"detail","groups",r])}gotoTransport(e){this.router.navigate(["connectivity/transports",e])}gotoTunnel(e){this.router.navigate(["connectivity/tunnels",e])}gotoTunnelDetail(e){this.router.navigate(["connectivity/tunnels",e,"detail"])}gotoOSManager(e){this.router.navigate(["osmanagers",e])}goto(e,r,t){let n=o=>{let a=r;if(t[o].split(".").forEach(s=>a=a[s]),!a)throw new Error("not going :)");return a};try{switch(e){case dy:this.gotoProvider(n(0));break;case uy:this.gotoService(n(0),n(1));break;case Ad:this.gotoServicePool(n(0));break;case VU:this.gotoAuthenticator(n(0));break;case Od:this.gotoUser(n(0),n(1));break;case my:this.gotoGroup(n(0),n(1));break;case hy:this.gotoTransport(n(0));break;case py:this.gotoOSManager(n(0));break;case Pp:this.gotoCalendar(n(0));break;case fy:this.gotoPoolGroup(n(0));break}}catch{}}};function BU(i,e){if(i&1){let r=A();l(0,"div",1)(1,"button",2),b("click",function(){y(r);let n=_();return w(n.action())}),g(2),d()()}if(i&2){let r=_();m(2),P(" ",r.data.action," ")}}var zU=["label"];function UU(i,e){}var HU=Math.pow(2,31)-1,Rd=class{constructor(e,r){this._overlayRef=r,this._afterDismissed=new W,this._afterOpened=new W,this._onAction=new W,this._dismissedByAction=!1,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,HU))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},eT=new O("MatSnackBarData"),Ac=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},$U=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let i=e;return i})(),WU=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let i=e;return i})(),GU=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let i=e;return i})(),tT=(()=>{let e=class e{constructor(t,n){this.snackBarRef=t,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(n){return new(n||e)(h(Rd),h(eT))},e.\u0275cmp=S({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[re],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(l(0,"div",0),g(1),d(),D(2,BU,3,1,"div",1)),n&2&&(m(),P(" ",o.data.message,` +`),m(),xe(o.hasAction?2:-1))},dependencies:[ke,$U,WU,GU],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let i=e;return i})(),qU={snackBarState:li("state",[Pt("void, hidden",Me({transform:"scale(0.8)",opacity:0})),Pt("visible",Me({transform:"scale(1)",opacity:1})),xt("* => visible",Et("150ms cubic-bezier(0, 0, 0.2, 1)")),xt("* => void, * => hidden",Et("75ms cubic-bezier(0.4, 0.0, 1, 1)",Me({opacity:0})))])},YU=0,QU=(()=>{let e=class e extends ca{constructor(t,n,o,a,s){super(),this._ngZone=t,this._elementRef=n,this._changeDetectorRef=o,this._platform=a,this.snackBarConfig=s,this._document=k(se),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new W,this._onExit=new W,this._onEnter=new W,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${YU++}`,this.attachDomPortal=c=>{this._assertNotAttached();let u=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),u},s.politeness==="assertive"&&!s.announcementMessage?this._live="assertive":s.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),n}attachTemplatePortal(t){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),n}onAnimationEnd(t){let{fromState:n,toState:o}=t;if((o==="void"&&n!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let a=this._onEnter;this._ngZone.run(()=>{a.next(),a.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let t=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(s=>t.classList.add(s)):t.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,a="mdc-snackbar__label";o.classList.toggle(a,!o.querySelector(`.${a}`))}_exposeToModals(){let t=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=t.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?t.setAttribute("aria-owns",o):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(o=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(n){return new(n||e)(h(Z),h(G),h(me),h(je),h(Ac))},e.\u0275cmp=S({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(le(tn,7),le(zU,7)),n&2){let a;Q(a=K())&&(o._portalOutlet=a.first),Q(a=K())&&(o._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(n,o){n&1&&Cl("@state.done",function(s){return o.onAnimationEnd(s)}),n&2&&wl("@state",o._animationState)},standalone:!0,features:[ve,re],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(l(0,"div",1)(1,"div",2,0)(3,"div",3),D(4,UU,0,0,"ng-template",4),d(),I(5,"div"),d()()),n&2&&(m(5),ie("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[tn],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color);border-radius:var(--mdc-snackbar-container-shape);background-color:var(--mdc-snackbar-container-color)}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font);font-size:var(--mdc-snackbar-supporting-text-size);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[qU.snackBarState]}});let i=e;return i})();function KU(){return new Ac}var ZU=new O("mat-snack-bar-default-options",{providedIn:"root",factory:KU}),gy=(()=>{let e=class e{get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,n,o,a,s,c){this._overlay=t,this._live=n,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=c,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=tT,this.snackBarContainerComponent=QU,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(t,n){return this._attach(t,n)}openFromTemplate(t,n){return this._attach(t,n)}open(t,n="",o){let a=B(B({},this._defaultConfig),o);return a.data={message:t,action:n},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=Pe.create({parent:o||this._injector,providers:[{provide:Ac,useValue:n}]}),s=new Dn(this.snackBarContainerComponent,n.viewContainerRef,a),c=t.attach(s);return c.instance.snackBarConfig=n,c.instance}_attach(t,n){let o=B(B(B({},new Ac),this._defaultConfig),n),a=this._createOverlay(o),s=this._attachSnackBarContainer(a,o),c=new Rd(s,a);if(t instanceof lt){let u=new ki(t,null,{$implicit:o.data,snackBarRef:c});c.instance=s.attachTemplatePortal(u)}else{let u=this._createInjector(o,c),f=new Dn(t,void 0,u),v=s.attachComponentPortal(f);c.instance=v.instance}return this._breakpointObserver.observe(v1.HandsetPortrait).pipe(fe(a.detachments())).subscribe(u=>{a.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),o.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(c,o),this._openedSnackBarRef=c,this._openedSnackBarRef}_animateSnackBar(t,n){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),n.duration&&n.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(n.duration))}_createOverlay(t){let n=new Sn;n.direction=t.direction;let o=this._overlay.position().global(),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,c=!s&&t.horizontalPosition!=="center";return s?o.left("0"):c?o.right("0"):o.centerHorizontally(),t.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,this._overlay.create(n)}_createInjector(t,n){let o=t&&t.viewContainerRef&&t.viewContainerRef.injector;return Pe.create({parent:o||this._injector,providers:[{provide:Rd,useValue:n},{provide:eT,useValue:t.data}]})}};e.\u0275fac=function(n){return new(n||e)(M(Ct),M(Kh),M(Pe),M(Uh),M(e,12),M(ZU))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var iT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[gy],imports:[on,Ln,Jo,pe,tT,pe]});let i=e;return i})();var nT="dark-theme",oT="light-theme",z=(()=>{let e=class e{constructor(t,n,o,a,s,c){this.http=t,this.router=n,this.dialog=o,this.snackbar=a,this.sanitizer=s,this.dateAdapter=c,this.user=new Fh(udsData.profile),this.navigation=new Ei(this.router),this.gui=new Op(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get notices(){return udsData.errors}restPath(t){return this.config.urls.rest+t}staticURL(t){return Rp.production?this.config.urls.static+t:"/static/"+t}logout(){window.location.href=this.config.urls.logout}gotoUser(){window.location.href=this.config.urls.user}putOnStorage(t,n){typeof Storage!==void 0&&sessionStorage.setItem(t,n)}getFromStorage(t){return typeof Storage!==void 0?sessionStorage.getItem(t):null}safeString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}boolAsHumanString(t){return t?django.gettext("yes"):django.gettext("no")}switchTheme(t){let n=document.getElementsByTagName("html")[0];[nT,oT].forEach(o=>{n.classList.contains(o)&&n.classList.remove(o)}),n.classList.add(t?nT:oT)}};e.\u0275fac=function(n){return new(n||e)(M(kl),M(Ko),M(Cd),M(gy),M(Xa),M(Ai))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var rT=(()=>{let e=class e{constructor(t){this.api=t}canActivate(t,n){return this.api.user.isStaff?!0:(window.location.href=this.api.config.urls.user,!1)}};e.\u0275fac=function(n){return new(n||e)(M(z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Oc=3e4,Mr=function(i){return i[i.NONE=0]="NONE",i[i.READ=32]="READ",i[i.MANAGEMENT=64]="MANAGEMENT",i[i.ALL=96]="ALL",i}(Mr||{}),fi=class{constructor(e,r,t){this.api=e,t===void 0&&(t={}),t.base===void 0&&(t.base=r);let n=(o,a)=>o===void 0?a:o;this.id=r,this.paths={base:t.base,get:n(t.get,t.base),log:n(t.log,t.base),put:n(t.put,t.base),test:n(t.test,t.base+"/test"),delete:n(t.delete,t.base),types:n(t.types,t.base+"/types"),gui:n(t.gui,t.base+"/gui"),tableInfo:n(t.tableInfo,t.base+"/tableinfo")},this.headers=new wo().set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}get(e){return this.typedGet(e)}getLogs(e){return this.doGet(this.getPath(this.paths.log,e)+"/log")}overview(e){return this.typedGet("overview"+(e!==void 0?"?filter="+e:""))}summary(e){return this.typedGet("overview?summarize"+(e!==void 0?"&filter="+e:""))}put(e,r){return this.typedPut(e,r)}create(e){return this.typedPut(e)}save(e,r){return r=r!==void 0?r:e.id,this.typedPut(e,r)}test(e,r){return Xo(this.api.http.post(this.getPath(this.paths.test,e),r,{headers:this.headers}).pipe(zi(t=>this.handleError(t))),Oc)}delete(e){return Xo(this.api.http.delete(this.getPath(this.paths.delete,e),{headers:this.headers}).pipe(zi(r=>this.handleError(r))),Oc)}permision(){return this.api.user.isAdmin?Mr.ALL:Mr.NONE}getPermissions(e){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+e))}addPermission(e,r,t,n){let o=this.getPath("permissions/"+this.paths.base+"/"+e+"/"+r+"/add/"+t),a={perm:n};return Xo(this.api.http.put(o,a,{headers:this.headers}).pipe(zi(s=>this.handleError(s))),Oc)}revokePermission(e){let r=this.getPath("permissions/revoke"),t={items:e};return Xo(this.api.http.put(r,t,{headers:this.headers}).pipe(zi(n=>this.handleError(n))),Oc)}types(){return this.doGet(this.getPath(this.paths.types))}gui(e){let r=this.getPath(this.paths.gui+(e!==void 0?"/"+e:""));return this.doGet(r)}callback(e,r){let t=this.getPath("gui/callback/"+e+"?"+r);return this.doGet(t)}tableInfo(){return this.doGet(this.getPath(this.paths.tableInfo))}detail(e,r){return new _y(this,e,r)}invoke(e,r){let t=e+(r?"?"+r:"");return this.typedGet(t)}getPath(e,r){if(e===void 0)throw new Error("Path is undefined");return this.api.restPath(e+(r!==void 0?"/"+r:""))}doGet(e){return Xo(this.api.http.get(e,{headers:this.headers}).pipe(zi(r=>this.handleError(r))),Oc)}typedGet(e){return this.doGet(this.getPath(this.paths.get,e))}typedPut(e,r){return Xo(this.api.http.put(this.getPath(this.paths.put,r),e,{headers:this.headers}).pipe(zi(t=>this.handleError(t,!0))),Oc)}handleError(e,r=!1){let t="";return e.error instanceof ErrorEvent?t=e.error.message:r?t=django.gettext("Error saving: ")+e.error:t=`Error ${e.status}: ${e.error}`,this.api.gui.alert(r?django.gettext("Error saving element"):django.gettext("Error handling your request"),t),Ro(()=>new Error(t))}},_y=class extends fi{constructor(e,r,t,n){super(e.api,[e.paths.base,r,t].join("/")),this.parentModel=e,this.parentId=r,this.model=t,this.perm=n}permision(){return this.perm||Mr.ALL}},Fp=class extends fi{constructor(e){super(e,"providers"),this.api=e}allServices(){return this.get("allservices")}service(e){return this.get("service/"+e)}maintenance(e){return this.get(e+"/maintenance")}},Np=class extends fi{constructor(e){super(e,"authenticators"),this.api=e}search(e,r,t,n=12){return this.get(e+"/search?type="+encodeURIComponent(r)+"&term="+encodeURIComponent(t)+"&limit="+n)}},Lp=class extends fi{constructor(e){super(e,"osmanagers"),this.api=e}},Vp=class extends fi{constructor(e){super(e,"transports"),this.api=e}},jp=class extends fi{constructor(e){super(e,"networks"),this.api=e}},Bp=class extends fi{constructor(e){super(e,"tunnels/tunnels"),this.api=e}maintenance(e){return this.get(e+"/maintenance")}tunnels(e){return this.get(e+"/tunnels")}assign(e,r){return this.get(e+"/assign/"+r)}},zp=class extends fi{constructor(e){super(e,"servers/groups"),this.api=e}maintenance(e){return this.get(e+"/maintenance")}},Up=class extends fi{constructor(e){super(e,"servicespools"),this.api=e}setFallbackAccess(e,r){return this.get(e+"/setFallbackAccess?fallbackAccess="+r)}getFallbackAccess(e){return this.get(e+"/getFallbackAccess")}actionsList(e){return this.get(e+"/actionsList")}listAssignables(e){return this.get(e+"/listAssignables")}createFromAssignable(e,r,t){return this.get(e+"/createFromAssignable?user_id="+encodeURIComponent(r)+"&assignable_id="+encodeURIComponent(t))}},Hp=class extends fi{constructor(e){super(e,"metapools"),this.api=e}setFallbackAccess(e,r){return this.get(e+"/setFallbackAccess?fallbackAccess="+r)}getFallbackAccess(e){return this.get(e+"/getFallbackAccess")}},$p=class extends fi{constructor(e){super(e,"config"),this.api=e}},Wp=class extends fi{constructor(e){super(e,"gallery/images"),this.api=e}},Gp=class extends fi{constructor(e){super(e,"gallery/servicespoolgroups"),this.api=e}},qp=class extends fi{constructor(e){super(e,"system"),this.api=e}information(){return this.get("overview")}stats(e,r){let t="stats/"+e;return r&&(t+="/"+r),this.get(t)}flushCache(){return this.doGet(this.getPath("cache","flush"))}},Yp=class extends fi{constructor(e){super(e,"reports"),this.api=e}types(){return Xo(oe([]))}},Qp=class extends fi{constructor(e){super(e,"calendars"),this.api=e}},Kp=class extends fi{constructor(e){super(e,"accounts"),this.api=e}timemark(e){return this.get(e+"/timemark")}},Zp=class extends fi{constructor(e){super(e,"actortokens"),this.api=e}},Xp=class extends fi{constructor(e){super(e,"servers/tokens"),this.api=e}},Jp=class extends fi{constructor(e){super(e,"mfa"),this.api=e}},ef=class extends fi{constructor(e){super(e,"messaging/notifiers"),this.api=e}};var X=(()=>{let e=class e{constructor(t){this.api=t,this.providers=new Fp(t),this.serverGroups=new zp(t),this.authenticators=new Np(t),this.mfas=new Jp(t),this.osManagers=new Lp(t),this.transports=new Vp(t),this.networks=new jp(t),this.tunnels=new Bp(t),this.servicesPools=new Up(t),this.metaPools=new Hp(t),this.gallery=new Wp(t),this.servicesPoolGroups=new Gp(t),this.calendars=new Qp(t),this.accounts=new Kp(t),this.system=new qp(t),this.configuration=new $p(t),this.actorToken=new Zp(t),this.serversTokens=new Xp(t),this.reports=new Yp(t),this.notifiers=new ef(t)}};e.\u0275fac=function(n){return new(n||e)(M(z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var vy=class{constructor(){this.subject=new $n(1),this.subscriptions=new Ce}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let n=t[e].currentValue;n!=null&&r(n)}}))}has(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]){let n=t[e].currentValue;r(n)}}))}notFirst(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let n=t[e].currentValue;r(n)}}))}notFirstAndEmpty(e,r){this.subscriptions.add(this.subject.subscribe(t=>{if(t[e]&&!t[e].isFirstChange()){let n=t[e].currentValue;n!=null&&r(n)}}))}},aT=new O("NGX_ECHARTS_CONFIG"),tf=(()=>{class i{constructor(r,t,n){this.el=t,this.ngZone=n,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new T,this.optionsError=new T,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new $n(1),this.resize$=new W,this.changeFilter=new vy,this.echarts=r.echarts}ngOnChanges(r){this.changeFilter.doFilter(r)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(Gg(100,Ki,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",r=>this.onOptionsChange(r)),this.changeFilter.notFirstAndEmpty("merge",r=>this.setOption(r)),this.changeFilter.has("loading",r=>this.toggleLoading(!!r)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(r){this.chart?r?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(t=>r?t.showLoading(this.loadingType,this.loadingOpts):t.hideLoading())}setOption(r,t){if(this.chart)try{this.chart.setOption(r,t)}catch(n){console.error(n),this.optionsError.emit(n)}}refreshChart(){return q(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let r=this.el.nativeElement;if(window&&window.getComputedStyle){let t=window.getComputedStyle(r,null).getPropertyValue("height");(!t||t==="0px")&&(!r.style.height||r.style.height==="0px")&&(r.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:n})=>n(r,this.theme,this.initOpts)))}initChart(){return q(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(r){return q(this,null,function*(){r&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(r){return this.chartInit.pipe(Mt(t=>new Re(n=>(t.on(r,o=>this.ngZone.run(()=>n.next(o))),()=>{this.chart&&(this.chart.isDisposed()||t.off(r))}))))}}return i.\u0275fac=function(r){return new(r||i)(h(aT),h(G),h(Z))},i.\u0275dir=N({type:i,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[Qe]}),i})(),sT=(()=>{class i{static forRoot(r){return{ngModule:i,providers:[{provide:aT,useValue:r}]}}static forChild(){return{ngModule:i}}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ee({type:i}),i.\u0275inj=J({}),i})();function JU(i,e){if(i&1&&(l(0,"div",21)(1,"div",11),I(2,"img",4),l(3,"div",12),g(4),d()(),l(5,"div",13)(6,"a",15)(7,"uds-translate"),g(8,"View service pools"),d()()()()),i&2){let r=_(2);m(2),p("src",r.api.staticURL("admin/img/icons/logs.png"),Ee),m(2),P(" ",r.data.restrained," ")}}function e8(i,e){if(i&1){let r=A();l(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),I(5,"img",4),l(6,"div",12),g(7),d()(),l(8,"div",13)(9,"a",14)(10,"uds-translate"),g(11,"View authenticators"),d()()()(),l(12,"div",10)(13,"div",11),I(14,"img",4),l(15,"div",12),g(16),d()(),l(17,"div",13)(18,"a",15)(19,"uds-translate"),g(20,"View service pools"),d()()()(),l(21,"div",10)(22,"div",11),I(23,"img",4),l(24,"div",12),g(25),d()(),l(26,"div",13)(27,"a",15)(28,"uds-translate"),g(29,"View service pools"),d()()()(),D(30,JU,9,2,"div",16),d(),l(31,"div",17)(32,"div",18)(33,"div",19)(34,"uds-translate"),g(35,"Assigned services chart"),d()(),l(36,"div",20),b("chartInit",function(n){y(r);let o=_();return w(o.chartInit("assigned",n))}),d()(),l(37,"div",18)(38,"div",19)(39,"uds-translate"),g(40,"In use services chart"),d()(),l(41,"div",20),b("chartInit",function(n){y(r);let o=_();return w(o.chartInit("inuse",n))}),d()()()()()}if(i&2){let r=_();m(5),p("src",r.api.staticURL("admin/img/icons/authenticators.png"),Ee),m(2),P(" ",r.data.users," "),m(7),p("src",r.api.staticURL("admin/img/icons/pools.png"),Ee),m(2),P(" ",r.data.pools," "),m(7),p("src",r.api.staticURL("admin/img/icons/services.png"),Ee),m(2),P(" ",r.data.user_services," "),m(5),p("ngIf",r.data.restrained),m(6),p("options",r.assignedChartOpts),m(5),p("options",r.inuseChartOpts)}}function t8(i,e){i&1&&(l(0,"div",22)(1,"div",23)(2,"div",24)(3,"uds-translate"),g(4,"UDS Administration"),d()(),l(5,"div",25)(6,"p")(7,"uds-translate"),g(8,"You are accessing UDS Administration as staff member."),d()(),l(9,"p")(10,"uds-translate"),g(11,"This means that you have restricted access to elements."),d()(),l(12,"p")(13,"uds-translate"),g(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),I(15,"br"),l(16,"p")(17,"uds-translate"),g(18,"Thank you."),d()()()()())}var lT=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}onResize(t){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()}ngOnInit(){if(this.api.user.isAdmin){this.rest.system.information().then(t=>{this.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",t.users).replace("#GRP_NUMBER#",t.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",t.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",t.user_services)},t.restrained_services_pools>0&&(this.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",t.restrained_services_pools))});for(let t of["assigned","inuse"])this.rest.system.stats(t).then(n=>{let o={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:n.map(a=>Bi("SHORT_DATE_FORMAT",new Date(a.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:t==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:n.map(a=>a.value)}]};t==="assigned"?this.assignedChartOpts=o:this.inuseChartOpts=o})}}chartInit(t,n){t==="assigned"?this.assignedChartInstance=n:this.inuseChartInstance=n}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-summary"]],hostBindings:function(n,o){n&1&&b("resize",function(s){return o.onResize(s)},!1,Lm)},decls:11,vars:3,consts:[["noAdmin",""],[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],[1,"admin"],[1,"information"],[1,"info-panel"],[1,"info-panel-data"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/authenticators"],["mat-button","","routerLink","/pools/service-pools"],["class","info-panel info-danger",4,"ngIf"],[1,"statistics"],[1,"statistics-chart"],[1,"statistics-title"],["echarts","","theme","dark-digerati",3,"chartInit","options"],[1,"info-panel","info-danger"],[1,"staff-container"],[1,"staff","mat-elevation-z8"],[1,"staff-header"],[1,"staff-content"]],template:function(n,o){if(n&1&&(l(0,"div",1)(1,"div",2)(2,"div",3),I(3,"img",4),l(4,"uds-translate"),g(5,"Dashboard"),d()(),I(6,"div",5),d(),l(7,"div",6),D(8,e8,42,9,"div",7)(9,t8,19,0,"ng-template",null,0,hi),d()()),n&2){let a=Ie(10);m(3),p("src",o.api.staticURL("admin/img/icons/dashboard-monitor.png"),Ee),m(5),p("ngIf",o.api.user.isAdmin)("ngIfElse",a)}},dependencies:[he,gi,_a,tf,ce],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.staff-container[_ngcontent-%COMP%]{margin-top:2rem;display:flex;justify-content:center}.staff[_ngcontent-%COMP%]{border:#337ab7;border-width:1px;border-style:solid}.staff-header[_ngcontent-%COMP%]{display:flex;justify-content:center;background-color:#337ab7;color:#fff;font-weight:700;padding:.5rem 1rem}.staff-content[_ngcontent-%COMP%]{padding:.5rem 1rem}.admin[_ngcontent-%COMP%]{display:flex;flex-direction:column}.information[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.info-panel[_ngcontent-%COMP%]{border-color:#333;background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#f83600,#f9d423);color:#fff;font-weight:700;font-size:1.5em}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1rem}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1rem;width:5rem}.info-text[_ngcontent-%COMP%]{width:100%;text-align:center}.info-panel-link[_ngcontent-%COMP%]{background:linear-gradient(60deg,#4b5266,#465d9c)}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}.statistics[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.statistics-title[_ngcontent-%COMP%]{background:linear-gradient(60deg,#4b5266,#465d9c);width:100%;color:#fff;padding:1rem 0rem;text-align:center}.statistics-chart[_ngcontent-%COMP%]{border-color:#333;box-shadow:#00000024 0 1px 4px;box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%;height:400px} .dark-theme .staff{border:#337ab7} .dark-theme .staff-header{color:#fff} .dark-theme .info-panel{border-color:lightned(#303030,60%);background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:#00000024 0 1px 4px;color:#b3b3b3} .dark-theme .info-danger{background-image:linear-gradient(to right,#f83600,#f9d423);color:#fff} .dark-theme .info-panel-link{background:#4682b4} .dark-theme .info-panel-link a{color:#fff} .dark-theme .statistics-title{color:#fff} .dark-theme .statistics-chart{border-color:#333;box-shadow:#00000024 0 1px 4px;color:#333}']});let i=e;return i})();var i8=["notch"],n8=["matFormFieldNotchedOutline",""],o8=["*"],r8=["textField"],a8=["iconPrefixContainer"],s8=["textPrefixContainer"],c8=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],l8=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function d8(i,e){i&1&&I(0,"span",19)}function u8(i,e){if(i&1&&(l(0,"label",18),ae(1,1),D(2,d8,1,0,"span",19),d()),i&2){let r=_(2);p("floating",r._shouldLabelFloat())("monitorResize",r._hasOutline())("id",r._labelId),ie("for",r._control.disableAutomaticLabeling?null:r._control.id),m(2),xe(!r.hideRequiredMarker&&r._control.required?2:-1)}}function m8(i,e){if(i&1&&D(0,u8,3,5,"label",18),i&2){let r=_();xe(r._hasFloatingLabel()?0:-1)}}function h8(i,e){i&1&&I(0,"div",5)}function p8(i,e){}function f8(i,e){if(i&1&&D(0,p8,0,0,"ng-template",11),i&2){_(2);let r=Ie(1);p("ngTemplateOutlet",r)}}function g8(i,e){if(i&1&&(l(0,"div",7),D(1,f8,1,1,null,11),d()),i&2){let r=_();p("matFormFieldNotchedOutlineOpen",r._shouldLabelFloat()),m(),xe(r._forceDisplayInfixLabel()?-1:1)}}function _8(i,e){i&1&&(l(0,"div",8,2),ae(2,2),d())}function v8(i,e){i&1&&(l(0,"div",9,3),ae(2,3),d())}function b8(i,e){}function y8(i,e){if(i&1&&D(0,b8,0,0,"ng-template",11),i&2){_();let r=Ie(1);p("ngTemplateOutlet",r)}}function w8(i,e){i&1&&(l(0,"div",12),ae(1,4),d())}function C8(i,e){i&1&&(l(0,"div",13),ae(1,5),d())}function x8(i,e){i&1&&I(0,"div",14)}function D8(i,e){if(i&1&&(l(0,"div",16),ae(1,6),d()),i&2){let r=_();p("@transitionMessages",r._subscriptAnimationState)}}function S8(i,e){if(i&1&&(l(0,"mat-hint",20),g(1),d()),i&2){let r=_(2);p("id",r._hintLabelId),m(),He(r.hintLabel)}}function E8(i,e){if(i&1&&(l(0,"div",17),D(1,S8,2,2,"mat-hint",20),ae(2,7),I(3,"div",21),ae(4,8),d()),i&2){let r=_();p("@transitionMessages",r._subscriptAnimationState),m(),xe(r.hintLabel?1:-1)}}var Ae=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-label"]],standalone:!0});let i=e;return i})();var I8=new O("MatError");var M8=0,dT=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${M8++}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(Di("id",o.id),ie("align",null),ne("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=e;return i})(),T8=new O("MatPrefix");var vT=new O("MatSuffix"),oo=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[be([{provide:vT,useExisting:e}])]});let i=e;return i})(),bT=new O("FloatingLabelParent"),uT=(()=>{let e=class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=k(Tp),this._ngZone=k(Z),this._parent=k(bT),this._resizeSubscription=new Ce}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return k8(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(n){return new(n||e)(h(G))},e.\u0275dir=N({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=e;return i})();function k8(i){let e=i;if(e.offsetParent!==null)return e.scrollWidth;let r=e.cloneNode(!0);r.style.setProperty("position","absolute"),r.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(r);let t=r.scrollWidth;return r.remove(),t}var mT="mdc-line-ripple--active",nf="mdc-line-ripple--deactivating",hT=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._handleTransitionEnd=o=>{let a=this._elementRef.nativeElement.classList,s=a.contains(nf);o.propertyName==="opacity"&&s&&a.remove(mT,nf)},n.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(nf),t.add(mT)}deactivate(){this._elementRef.nativeElement.classList.add(nf)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z))},e.\u0275dir=N({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=e;return i})(),pT=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._ngZone=n,this.open=!1}ngAfterViewInit(){let t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){!this.open||!t?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z))},e.\u0275cmp=S({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&le(i8,5),n&2){let a;Q(a=K())&&(o._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[re],attrs:n8,ngContentSelectors:o8,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(n,o){n&1&&(Ue(),I(0,"div",1),l(1,"div",2,0),ae(3),d(),I(4,"div",3))},encapsulation:2,changeDetection:0});let i=e;return i})(),A8={transitionMessages:li("transitionMessages",[Pt("enter",Me({opacity:1,transform:"translateY(0%)"})),xt("void => enter",[Me({opacity:0,transform:"translateY(-5px)"}),Et("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},wa=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e});let i=e;return i})();var Mo=new O("MatFormField"),by=new O("MAT_FORM_FIELD_DEFAULT_OPTIONS"),fT=0,gT="fill",O8="auto",_T="fixed",R8="translateY(-50%)",ge=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Nn(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||O8}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){let n=this._appearance,o=t||this._defaults?.appearance||gT;this._appearance=o,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||_T}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||_T}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,n,o,a,s,c,u,f){this._elementRef=t,this._changeDetectorRef=n,this._dir=a,this._platform=s,this._defaults=c,this._animationMode=u,this._hideRequiredMarker=!1,this.color="primary",this._appearance=gT,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${fT++}`,this._hintLabelId=`mat-mdc-hint-${fT++}`,this._subscriptAnimationState="",this._destroyed=new W,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=k(Pe),c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=!!c?.hideRequiredMarker,c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${t.controlType}`),t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(fe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),yt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),bl(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(fe(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(t){let n=this._control?this._control.ngControl:null;return n&&n[t]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let n=this._hintChildren?this._hintChildren.find(a=>a.align==="start"):null,o=this._hintChildren?this._hintChildren.find(a=>a.align==="end"):null;n?t.push(n.id):this._hintLabel&&t.push(this._hintLabelId),o&&t.push(o.id)}else this._errorChildren&&t.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let t=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){t.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,a=n?.getBoundingClientRect().width??0,s=o?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",u=`${a+s}px`,v=`calc(${c} * (${u} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;t.style.transform=`var( --mat-mdc-form-field-label-transform, - ${j8} translateX(${v}) - )`}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let n=t.getRootNode();return n&&n!==t}return document.documentElement.contains(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(Z),h(kt),h(je),h(Cy,8),h(Tt,8),h(se))},e.\u0275cmp=S({type:e,selectors:[["mat-form-field"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,Ae,5),Fe(a,Ae,7),Fe(a,Ca,5),Fe(a,F8,5),Fe(a,wT,5),Fe(a,R8,5),Fe(a,hT,5)),n&2){let s;Q(s=K())&&(o._labelChildNonStatic=s.first),Q(s=K())&&(o._labelChildStatic=s.first),Q(s=K())&&(o._formFieldControl=s.first),Q(s=K())&&(o._prefixChildren=s),Q(s=K())&&(o._suffixChildren=s),Q(s=K())&&(o._errorChildren=s),Q(s=K())&&(o._hintChildren=s)}},viewQuery:function(n,o){if(n&1&&(le(u8,5),le(m8,5),le(h8,5),le(pT,5),le(_T,5),le(gT,5)),n&2){let a;Q(a=K())&&(o._textField=a.first),Q(a=K())&&(o._iconPrefixContainer=a.first),Q(a=K())&&(o._textPrefixContainer=a.first),Q(a=K())&&(o._floatingLabel=a.first),Q(a=K())&&(o._notchedOutline=a.first),Q(a=K())&&(o._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,o){n&2&&ne("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[be([{provide:Mo,useExisting:e},{provide:CT,useExisting:e}]),re],ngContentSelectors:f8,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let a=A();Ue(p8),x(0,v8,1,1,"ng-template",null,0,hi),l(2,"div",4,1),b("click",function(c){return y(a),w(o._control.onContainerClick(c))}),x(4,b8,1,0,"div",5),l(5,"div",6),x(6,C8,2,2,"div",7)(7,x8,3,0,"div",8)(8,D8,3,0,"div",9),l(9,"div",10),x(10,E8,1,1,null,11),ae(11),d(),x(12,I8,2,0,"div",12)(13,M8,2,0,"div",13),d(),x(14,T8,1,0,"div",14),d(),l(15,"div",15),x(16,k8,2,1,"div",16)(17,O8,5,2,"div",17),d()}if(n&2){let a;m(2),ne("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),m(2),xe(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),xe(o._hasOutline()?6:-1),m(),xe(o._hasIconPrefix?7:-1),m(),xe(o._hasTextPrefix?8:-1),m(2),xe(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),xe(o._hasTextSuffix?12:-1),m(),xe(o._hasIconSuffix?13:-1),m(),xe(o._hasOutline()?-1:14),m(),ne("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),m(),xe((a=o._getDisplayedMessages())==="error"?16:a==="hint"?17:-1)}},dependencies:[pT,_T,ah,gT,hT],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[L8.transitionMessages]},changeDetection:0});let i=e;return i})(),ms=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,Si,Uh,pe]});let i=e;return i})();var B8=["trigger"],z8=["panel"],U8=[[["mat-select-trigger"]],"*"],H8=["mat-select-trigger","*"];function $8(i,e){if(i&1&&(l(0,"span",4),g(1),d()),i&2){let r=_();m(),He(r.placeholder)}}function W8(i,e){i&1&&ae(0)}function G8(i,e){if(i&1&&(l(0,"span",11),g(1),d()),i&2){let r=_(2);m(),He(r.triggerValue)}}function q8(i,e){if(i&1&&(l(0,"span",5),x(1,W8,1,0)(2,G8,2,1,"span",11),d()),i&2){let r=_();m(),xe(r.customTrigger?1:2)}}function Y8(i,e){if(i&1){let r=A();l(0,"div",12,1),b("@transformPanel.done",function(n){y(r);let o=_();return w(o._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){y(r);let o=_();return w(o._handleKeydown(n))}),ae(2,1),d()}if(i&2){let r=_();mE("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",r._getPanelTheme(),""),p("ngClass",r.panelClass)("@transformPanel","showing"),ie("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var Q8={transformPanelWrap:li("transformPanelWrap",[xt("* => void",ap("@transformPanel",[rp()],{optional:!0}))]),transformPanel:li("transformPanel",[Pt("void",Me({opacity:0,transform:"scale(1, 0.8)"})),xt("void => showing",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Me({opacity:1,transform:"scale(1, 1)"}))),xt("* => void",Et("100ms linear",Me({opacity:0})))])};var xT=0,DT=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function K8(i){return()=>i.scrollStrategies.reposition()}var Z8=new O("MAT_SELECT_CONFIG"),X8={provide:DT,deps:[Ct],useFactory:K8},ST=new O("MatSelectTrigger"),xy=class{constructor(e,r){this.source=e,this.value=r}},vt=(()=>{let e=class e{_scrollOptionIntoView(t){let n=this.options.toArray()[t];if(n){let o=this.panel.nativeElement,a=tp(t,this.options,this.optionGroups),s=n._getHostElement();t===0&&a===1?o.scrollTop=0:o.scrollTop=ip(s.offsetTop,s.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(t){return new xy(this,t)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(er.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._selectionModel,this._multiple=t}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this._assignValue(t)&&this._onChange(t)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,c,u,f,v,C,D,E,R,j){this._viewportRuler=t,this._changeDetectorRef=n,this._elementRef=s,this._dir=c,this._parentFormField=v,this.ngControl=C,this._liveAnnouncer=R,this._defaultOptions=j,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(F,_e)=>F===_e,this._uid=`mat-select-${xT++}`,this._triggerAriaLabelledBy=null,this._destroy=new W,this.stateChanges=new W,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${xT++}`,this._panelDoneAnimatingStream=new W,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new W,this.optionSelectionChanges=Wn(()=>{let F=this.options;return F?F.changes.pipe(Ot(F),Mt(()=>yt(...F.map(_e=>_e.onSelectionChange)))):this._initialized.pipe(Mt(()=>this.optionSelectionChanges))}),this.openedChange=new T,this._openedStream=this.openedChange.pipe(qe(F=>F),de(()=>{})),this._closedStream=this.openedChange.pipe(qe(F=>!F),de(()=>{})),this.selectionChange=new T,this.valueChange=new T,this._trackedModal=null,this._skipPredicate=F=>this.panelOpen?!1:F.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),j?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=j.typeaheadDebounceInterval),this._errorStateTracker=new Er(a,C,f,u,this.stateChanges),this._scrollStrategyFactory=E,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(D)||0,this.id=this.id}ngOnInit(){this._selectionModel=new So(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(zr(),fe(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(fe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(fe(this._destroy)).subscribe(t=>{t.added.forEach(n=>n.select()),t.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Ot(null),fe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let t=this._getTriggerAriaLabelledby(),n=this.ngControl;if(t!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?o.setAttribute("aria-labelledby",t):o.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(t){(t.disabled||t.userAriaDescribedBy)&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let t=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;let n=`${this.id}-panel`;this._trackedModal&&ha(this._trackedModal,"aria-owns",n),Sc(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){if(!this._trackedModal)return;let t=`${this.id}-panel`;ha(this._trackedModal,"aria-owns",t),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(t){this._assignValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let t=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){let n=t.keyCode,o=n===40||n===38||n===37||n===39,a=n===13||n===32,s=this._keyManager;if(!s.isTyping()&&a&&!Rt(t)||(this.multiple||t.altKey)&&o)t.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;s.onKeydown(t);let u=this.selected;u&&c!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(t){let n=this._keyManager,o=t.keyCode,a=o===40||o===38,s=n.isTyping();if(a&&t.altKey)t.preventDefault(),this.close();else if(!s&&(o===13||o===32)&&n.activeItem&&!Rt(t))t.preventDefault(),n.activeItem._selectViaInteraction();else if(!s&&this._multiple&&o===65&&t.ctrlKey){t.preventDefault();let c=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(c?u.select():u.deselect())})}else{let c=n.activeItemIndex;n.onKeydown(t),this._multiple&&a&&t.shiftKey&&n.activeItem&&n.activeItemIndex!==c&&n.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(It(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,t)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(t){return t!==this._value||this._multiple&&Array.isArray(t)?(this.options&&this._setSelectionByValue(t),this._value=t,!0):!1}_getOverlayWidth(t){return this.panelWidth==="auto"?(t instanceof dd?t.elementRef:t||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Cc(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let t=yt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(fe(t)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),yt(...this.options.map(n=>n._stateChanges)).pipe(fe(t)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(t,n){let o=this._selectionModel.isSelected(t);t.value==null&&!this._multiple?(t.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(t.value)):(o!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),n&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let t=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,t):t.indexOf(n)-t.indexOf(o)),this.stateChanges.next()}}_propagateChanges(t){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:t,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let t=-1;for(let n=0;n0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),n=t?t+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(n){return new(n||e)(h(pn),h(me),h(Z),h(Ir),h(G),h(kt,8),h(Io,8),h(ds,8),h(Mo,8),h(Tn,10),mi("tabindex"),h(DT),h(Zh),h(Z8,8))},e.\u0275cmp=S({type:e,selectors:[["mat-select"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,ST,5),Fe(a,it,5),Fe(a,yd,5)),n&2){let s;Q(s=K())&&(o.customTrigger=s.first),Q(s=K())&&(o.options=s),Q(s=K())&&(o.optionGroups=s)}},viewQuery:function(n,o){if(n&1&&(le(B8,5),le(z8,5),le(P0,5)),n&2){let a;Q(a=K())&&(o.trigger=a.first),Q(a=K())&&(o.panel=a.first),Q(a=K())&&(o._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(ie("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),ne("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Y],disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Zt(t)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y],placeholder:"placeholder",required:[2,"required","required",Y],multiple:[2,"multiple","multiple",Y],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Y],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Zt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[be([{provide:Ca,useExisting:e},{provide:bd,useExisting:e}]),ue,Qe,re],ngContentSelectors:H8,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let a=A();Ue(U8),l(0,"div",2,0),b("click",function(){return y(a),w(o.open())}),l(3,"div",3),x(4,$8,2,1,"span",4)(5,q8,3,1,"span",5),d(),l(6,"div",6)(7,"div",7),vi(),l(8,"svg",8),I(9,"path",9),d()()()(),x(10,Y8,3,9,"ng-template",10),b("backdropClick",function(){return y(a),w(o.close())})("attach",function(){return y(a),w(o._onAttached())})("detach",function(){return y(a),w(o.close())})}if(n&2){let a=Ie(1);m(3),ie("id",o._valueId),m(),xe(o.empty?4:5),m(6),p("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[dd,P0,Cn],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Q8.transformPanel]},changeDetection:0});let i=e;return i})(),rf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-select-trigger"]],standalone:!0,features:[be([{provide:ST,useExisting:e}])]});let i=e;return i})(),af=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[X8],imports:[Si,on,Mc,pe,to,ms,Mc,pe]});let i=e;return i})();var J8=["tooltip"],MT=20;var TT=new O("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition({scrollThrottle:MT})}});function eH(i){return()=>i.scrollStrategies.reposition({scrollThrottle:MT})}var tH={provide:TT,deps:[Ct],useFactory:eH};function iH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var nH=new O("mat-tooltip-default-options",{providedIn:"root",factory:iH});var ET="tooltip-panel",IT=ji({passive:!0}),oH=8,rH=8,aH=24,sH=200,tr=(()=>{let e=class e{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=Nn(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Nn(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=xo(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=xo(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,n,o,a,s,c,u,f,v,C,D,E){this._overlay=t,this._elementRef=n,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=c,this._ariaDescriber=u,this._focusMonitor=f,this._dir=C,this._defaultOptions=D,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=cH,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new W,this._injector=k(Pe),this._scrollStrategy=v,this._document=E,D&&(this._showDelay=D.showDelay,this._hideDelay=D.hideDelay,D.position&&(this.position=D.position),D.positionAtOrigin&&(this.positionAtOrigin=D.positionAtOrigin),D.touchGestures&&(this.touchGestures=D.touchGestures)),C.change.pipe(fe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=oH}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(fe(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{t.removeEventListener(n,o,IT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(n);this._detach(),this._portal=this._portal||new Dn(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(fe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(t)}hide(t=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(t):(n._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&a._origin instanceof G)return this._overlayRef;this._detach()}let n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(fe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${ET}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(fe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(fe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(fe(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Rt(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let n=t.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();n.withPositions([this._addOffset(B(B({},o.main),a.main)),this._addOffset(B(B({},o.fallback),a.fallback))])}_addOffset(t){let n=rH,o=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-n:t.originY==="bottom"?t.offsetY=n:t.originX==="start"?t.offsetX=o?-n:n:t.originX==="end"&&(t.offsetX=o?n:-n),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"||n=="below"?o={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&t||n=="right"&&!t?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(o={originX:"end",originY:"center"});let{x:a,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"?o={overlayX:"center",overlayY:"bottom"}:n=="below"?o={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&t||n=="right"&&!t?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(o={overlayX:"start",overlayY:"center"});let{x:a,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ri(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:n}}_updateCurrentPositionClass(t){let{overlayY:n,originX:o,originY:a}=t,s;if(n==="center"?this._dir&&this._dir.value==="rtl"?s=o==="end"?"left":"right":s=o==="start"?"left":"right":s=n==="bottom"&&a==="top"?"above":"below",s!==this._currentPosition){let c=this._overlayRef;if(c){let u=`${this._cssClassPrefix}-${ET}-`;c.removePanelClass(u+this._currentPosition),c.addPanelClass(u+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let n;t.x!==void 0&&t.y!==void 0&&(n=t),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let n=t.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??a)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",n],["touchcancel",n])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,IT)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let n=this._document.elementFromPoint(t.clientX,t.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let n=this._elementRef.nativeElement,o=n.style;(t==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(t==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(G),h(vc),h(wt),h(Z),h(je),h(Kh),h(wi),h(TT),h(kt),h(nH,8),h(se))},e.\u0275dir=N({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let i=e;return i})(),cH=(()=>{let e=class e{constructor(t,n,o){this._changeDetectorRef=t,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new W,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>aH&&t.width>=sH}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let n=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(n.classList.remove(t?a:o),n.classList.add(t?o:a),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(n);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};e.\u0275fac=function(n){return new(n||e)(h(me),h(G),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&le(J8,7),n&2){let a;Q(a=K())&&(o._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,o){n&1&&b("mouseleave",function(s){return o._handleMouseLeave(s)}),n&2&&xi("zoom",o.isVisible()?1:null)},standalone:!0,features:[re],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(n,o){if(n&1){let a=A();l(0,"div",1,0),b("animationend",function(c){return y(a),w(o._handleAnimationEnd(c))}),l(2,"div",2),g(3),d()()}n&2&&(ne("mdc-tooltip--multiline",o._isMultiline),p("ngClass",o.tooltipClass),m(3),He(o.message))},dependencies:[Cn],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{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);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Pc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[tH],imports:[Ec,Si,on,pe,pe,to]});let i=e;return i})();function lH(i,e){if(i&1&&(l(0,"mat-option",16),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}function dH(i,e){if(i&1){let r=A();l(0,"mat-form-field",13)(1,"mat-select",15),b("selectionChange",function(n){y(r);let o=_(2);return w(o._changePageSize(n.value))}),vr(2,lH,2,2,"mat-option",16,wl),d()()}if(i&2){let r=_(2);p("appearance",r._formFieldAppearance)("color",r.color),m(),p("value",r.pageSize)("disabled",r.disabled)("aria-labelledby",r._pageSizeLabelId)("panelClass",r.selectConfig.panelClass||"")("disableOptionCentering",r.selectConfig.disableOptionCentering),m(),br(r._displayedPageSizeOptions)}}function uH(i,e){if(i&1&&(l(0,"div",14),g(1),d()),i&2){let r=_(2);m(),He(r.pageSize)}}function mH(i,e){if(i&1&&(l(0,"div",2)(1,"div",12),g(2),d(),x(3,dH,4,7,"mat-form-field",13)(4,uH,2,1,"div",14),d()),i&2){let r=_();m(),ie("id",r._pageSizeLabelId),m(),P(" ",r._intl.itemsPerPageLabel," "),m(),xe(r._displayedPageSizeOptions.length>1?3:-1),m(),xe(r._displayedPageSizeOptions.length<=1?4:-1)}}function hH(i,e){if(i&1){let r=A();l(0,"button",17),b("click",function(){y(r);let n=_();return w(n.firstPage())}),vi(),l(1,"svg",7),I(2,"path",18),d()()}if(i&2){let r=_();p("matTooltip",r._intl.firstPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),ie("aria-label",r._intl.firstPageLabel)}}function pH(i,e){if(i&1){let r=A();l(0,"button",19),b("click",function(){y(r);let n=_();return w(n.lastPage())}),vi(),l(1,"svg",7),I(2,"path",20),d()()}if(i&2){let r=_();p("matTooltip",r._intl.lastPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),ie("aria-label",r._intl.lastPageLabel)}}var xa=(()=>{let e=class e{constructor(){this.changes=new W,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let a=t*n,s=a{let e=class e{get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(n=>Zt(n,0)),this._updateDisplayedPageSizeOptions()}constructor(t,n,o){if(this._intl=t,this._changeDetectorRef=n,this._pageSizeLabelId=`mat-paginator-page-size-label-${bH++}`,this._isInitialized=!1,this._initializedStream=new $n(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new T,this.initialized=this._initializedStream,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){let{pageSize:a,pageSizeOptions:s,hidePageSize:c,showFirstLastButtons:u}=o;a!=null&&(this._pageSize=a),s!=null&&(this._pageSizeOptions=s),c!=null&&(this.hidePageSize=c),u!=null&&(this.showFirstLastButtons=u)}this._formFieldAppearance=o?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndext-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}};e.\u0275fac=function(n){return new(n||e)(h(xa),h(me),h(vH,8))},e.\u0275cmp=S({type:e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Zt],length:[2,"length","length",Zt],pageSize:[2,"pageSize","pageSize",Zt],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Y],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Y],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Y]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[ue,re],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),x(2,mH,5,4,"div",2),l(3,"div",3)(4,"div",4),g(5),d(),x(6,hH,3,5,"button",5),l(7,"button",6),b("click",function(){return o.previousPage()}),vi(),l(8,"svg",7),I(9,"path",8),d()(),Xr(),l(10,"button",9),b("click",function(){return o.nextPage()}),vi(),l(11,"svg",7),I(12,"path",10),d()(),x(13,pH,3,5,"button",11),d()()()),n&2&&(m(2),xe(o.hidePageSize?-1:2),m(3),P(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),xe(o.showFirstLastButtons?6:-1),m(),p("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),ie("aria-label",o._intl.previousPageLabel),m(3),p("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),ie("aria-label",o._intl.nextPageLabel),m(3),xe(o.showFirstLastButtons?13:-1))},dependencies:[ge,vt,it,Wi,tr],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking);--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),kT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[gH],imports:[Jo,af,Pc,kr]});let i=e;return i})();var yH=["mat-sort-header",""],wH=["*"];function CH(i,e){if(i&1){let r=A();l(0,"div",2),b("@arrowPosition.start",function(){y(r);let n=_();return w(n._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){y(r);let n=_();return w(n._disableViewStateAnimation=!1)}),I(1,"div",3),l(2,"div",4),I(3,"div",5)(4,"div",6)(5,"div",7),d()()}if(i&2){let r=_();p("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),m(2),p("@indicator",r._getArrowDirectionState()),m(),p("@leftPointer",r._getArrowDirectionState()),m(),p("@rightPointer",r._getArrowDirectionState())}}var OT=new O("MAT_SORT_DEFAULT_OPTIONS"),Ar=(()=>{let e=class e{get direction(){return this._direction}set direction(t){this._direction=t}constructor(t){this._defaultOptions=t,this._initializedStream=new $n(1),this.sortables=new Map,this._stateChanges=new W,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new T,this.initialized=this._initializedStream}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let n=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=xH(t.start||this.start,n),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(n){return new(n||e)(h(OT,8))},e.\u0275dir=N({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Y],disabled:[2,"matSortDisabled","disabled",Y]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ue,Qe]});let i=e;return i})();function xH(i,e){let r=["asc","desc"];return i=="desc"&&r.reverse(),e||r.push(""),r}var Da=$1.ENTERING+" "+H1.STANDARD_CURVE,Fc={indicator:li("indicator",[Pt("active-asc, asc",Me({transform:"translateY(0px)"})),Pt("active-desc, desc",Me({transform:"translateY(10px)"})),xt("active-asc <=> active-desc",Et(Da))]),leftPointer:li("leftPointer",[Pt("active-asc, asc",Me({transform:"rotate(-45deg)"})),Pt("active-desc, desc",Me({transform:"rotate(45deg)"})),xt("active-asc <=> active-desc",Et(Da))]),rightPointer:li("rightPointer",[Pt("active-asc, asc",Me({transform:"rotate(45deg)"})),Pt("active-desc, desc",Me({transform:"rotate(-45deg)"})),xt("active-asc <=> active-desc",Et(Da))]),arrowOpacity:li("arrowOpacity",[Pt("desc-to-active, asc-to-active, active",Me({opacity:1})),Pt("desc-to-hint, asc-to-hint, hint",Me({opacity:.54})),Pt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Me({opacity:0})),xt("* => asc, * => desc, * => active, * => hint, * => void",Et("0ms")),xt("* <=> *",Et(Da))]),arrowPosition:li("arrowPosition",[xt("* => desc-to-hint, * => desc-to-active",Et(Da,ga([Me({transform:"translateY(-25%)"}),Me({transform:"translateY(0)"})]))),xt("* => hint-to-desc, * => active-to-desc",Et(Da,ga([Me({transform:"translateY(0)"}),Me({transform:"translateY(25%)"})]))),xt("* => asc-to-hint, * => asc-to-active",Et(Da,ga([Me({transform:"translateY(25%)"}),Me({transform:"translateY(0)"})]))),xt("* => hint-to-asc, * => active-to-asc",Et(Da,ga([Me({transform:"translateY(0)"}),Me({transform:"translateY(-25%)"})]))),Pt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Me({transform:"translateY(0)"})),Pt("hint-to-desc, active-to-desc, desc",Me({transform:"translateY(-25%)"})),Pt("hint-to-asc, active-to-asc, asc",Me({transform:"translateY(25%)"}))]),allowChildren:li("allowChildren",[xt("* <=> *",[ap("@*",rp(),{optional:!0})])])},cf=(()=>{let e=class e{constructor(){this.changes=new W}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function DH(i){return i||new cf}var SH={provide:cf,deps:[[new Yn,new bo,cf]],useFactory:DH},lf=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}constructor(t,n,o,a,s,c,u,f){this._intl=t,this._changeDetectorRef=n,this._sort=o,this._columnDef=a,this._focusMonitor=s,this._elementRef=c,this._ariaDescriber=u,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",f?.arrowPosition&&(this.arrowPosition=f?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=!!t;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=yt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(n){return new(n||e)(h(cf),h(me),h(Ar,8),h("MAT_SORT_HEADER_COLUMN_DEF",8),h(wi),h(G),h(Kh,8),h(OT,8))},e.\u0275cmp=S({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(){return o._handleClick()})("keydown",function(s){return o._handleKeydown(s)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),n&2&&(ie("aria-sort",o._getAriaSortAttribute()),ne("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Y],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Y]},exportAs:["matSortHeader"],standalone:!0,features:[ue,re],attrs:yH,ngContentSelectors:wH,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(n,o){n&1&&(Ue(),l(0,"div",0)(1,"div",1),ae(2),d(),x(3,CH,6,6,"div",2),d()),n&2&&(ne("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),ie("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),xe(o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Fc.indicator,Fc.leftPointer,Fc.rightPointer,Fc.arrowOpacity,Fc.arrowPosition,Fc.allowChildren]},changeDetection:0});let i=e;return i})(),RT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[SH],imports:[pe]});let i=e;return i})();var IH=[[["caption"]],[["colgroup"],["col"]],"*"],MH=["caption","colgroup, col","*"];function TH(i,e){i&1&&ae(0,2)}function kH(i,e){i&1&&(l(0,"thead",0),bi(1,1),d(),l(2,"tbody",0),bi(3,2)(4,3),d(),l(5,"tfoot",0),bi(6,4),d())}function AH(i,e){i&1&&bi(0,1)(1,2)(2,3)(3,4)}var To=new O("CDK_TABLE");var ff=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let i=e;return i})(),gf=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let i=e;return i})(),LT=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let i=e;return i})(),Nc=(()=>{let e=class e{get name(){return this._name}set name(t){this._setNameInput(t)}get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){this._table=t,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(n){return new(n||e)(h(To,8))},e.\u0275dir=N({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,ff,5),Fe(a,gf,5),Fe(a,LT,5)),n&2){let s;Q(s=K())&&(o.cell=s.first),Q(s=K())&&(o.headerCell=s.first),Q(s=K())&&(o.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Y],stickyEnd:[2,"stickyEnd","stickyEnd",Y]},standalone:!0,features:[be([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ue]});let i=e;return i})(),uf=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},VT=(()=>{let e=class e extends uf{constructor(t,n){super(t,n)}};e.\u0275fac=function(n){return new(n||e)(h(Nc),h(G))},e.\u0275dir=N({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[ve]});let i=e;return i})();var jT=(()=>{let e=class e extends uf{constructor(t,n){super(t,n);let o=t._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(n){return new(n||e)(h(Nc),h(G))},e.\u0275dir=N({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[ve]});let i=e;return i})(),mf=class{constructor(){this.tasks=[],this.endTasks=[]}},hf=new O("_COALESCED_STYLE_SCHEDULER"),Sy=(()=>{let e=class e{constructor(t){this._currentSchedule=null,this._ngZone=k(Z)}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new mf,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new mf;for(let n of t.tasks)n();for(let n of t.endTasks)n()}this._currentSchedule=null})))}};e.\u0275fac=function(n){return new(n||e)(M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var Ey=(()=>{let e=class e{constructor(t,n){this.template=t,this._differs=n}ngOnChanges(t){if(!this._columnsDiffer){let n=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Fd?t.headerCell.template:this instanceof Iy?t.footerCell.template:t.cell.template}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(Wo))},e.\u0275dir=N({type:e,features:[Qe]});let i=e;return i})(),Fd=(()=>{let e=class e extends Ey{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,n,o){super(t,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(Wo),h(To,8))},e.\u0275dir=N({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Y]},standalone:!0,features:[ue,ve,Qe]});let i=e;return i})(),Iy=(()=>{let e=class e extends Ey{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,n,o){super(t,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(Wo),h(To,8))},e.\u0275dir=N({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Y]},standalone:!0,features:[ue,ve,Qe]});let i=e;return i})(),_f=(()=>{let e=class e extends Ey{constructor(t,n,o){super(t,n),this._table=o}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(Wo),h(To,8))},e.\u0275dir=N({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[ve]});let i=e;return i})(),hs=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(n){return new(n||e)(h(wt))},e.\u0275dir=N({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let i=e;return i})(),My=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&bi(0,0)},dependencies:[hs],encapsulation:2});let i=e;return i})();var Ty=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&bi(0,0)},dependencies:[hs],encapsulation:2});let i=e;return i})(),BT=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let i=e;return i})(),FT=["top","bottom","left","right"],Dy=class{constructor(e,r,t,n,o=!0,a=!0,s){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=t,this._coalescedStyleScheduler=n,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){let t=[];for(let n of e)if(n.nodeType===n.ELEMENT_NODE){t.push(n);for(let o=0;o{for(let n of t)this._removeStickyStyle(n,r)})}updateStickyColumns(e,r,t,n=!0){if(!e.length||!this._isBrowser||!(r.some(o=>o)||t.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],a=o.children.length,s=this._getCellWidths(o,n),c=this._getStickyStartColumnPositions(s,r),u=this._getStickyEndColumnPositions(s,t),f=r.lastIndexOf(!0),v=t.indexOf(!0),C=this.direction==="rtl",D=C?"right":"left",E=C?"left":"right";for(let R of e)for(let j=0;jr[j]?R:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:v===-1?[]:s.slice(v).map((R,j)=>t[j+v]?R:null).reverse()}))})}stickRows(e,r,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let n=t==="bottom"?e.slice().reverse():e,o=t==="bottom"?r.slice().reverse():r,a=[],s=[],c=[];for(let f=0,v=0;f{let t=e.querySelector("tfoot");t&&(r.some(n=>!n)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let n of r)e.style[n]="",e.classList.remove(this._borderCellCss[n]);FT.some(n=>r.indexOf(n)===-1&&e.style[n])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,t,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${t}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},t=0;for(let n of FT)e.style[n]&&(t+=r[n]);return t?`${t}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],n=e.children;for(let o=0;o0;o--)r[o]&&(t[o]=n,n+=e[o]);return t}};var pf=new O("CDK_SPL");var ky=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(To);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(G))},e.\u0275dir=N({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let i=e;return i})(),Ay=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(To);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(G))},e.\u0275dir=N({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let i=e;return i})(),Oy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(To);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(G))},e.\u0275dir=N({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let i=e;return i})(),Ry=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(To);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(G))},e.\u0275dir=N({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let i=e;return i})();var Py=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),n=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&n==="cell"?null:n}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,n,o,a,s,c,u,f,v,C,D,E){this._differs=t,this._changeDetectorRef=n,this._elementRef=o,this._dir=s,this._platform=u,this._viewRepeater=f,this._coalescedStyleScheduler=v,this._viewportRuler=C,this._stickyPositioningListener=D,this._onDestroy=new W,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new T,this.viewChange=new $t({start:0,end:Number.MAX_VALUE}),this._injector=k(Pe),a||o.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!u.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(fe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Bh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,(o,a,s)=>this._getEmbeddedViewArgs(o.item,s),o=>o.item.data,o=>{o.operation===gc.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(o=>{let a=n.get(o.currentIndex);a.context.$implicit=o.item.data}),this._updateNoDataRow(),ri(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=NT(this._headerRowOutlet,"thead");o&&(o.style.display=t.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=NT(this._footerRowOutlet,"tfoot");o&&(o.style.display=t.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let c=0;c{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let t=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let c=o&&o.has(s)?o.get(s):[];if(c.length){let u=c.shift();return u.dataIndex=n,u}else return{data:t,rowDef:s,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),df(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=df(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=df(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=df(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(s,c)=>s||!!c.getColumnsDiff(),n=this._rowDefs.reduce(t,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(t,!1);o&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(t,!1);return a&&this._forceRenderFooterRows(),n||o||a}_switchDataSource(t){this._data=[],Bh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;Bh(this.dataSource)?t=this.dataSource.connect(this):Fa(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=oe(this.dataSource)),this._renderChangeSubscription=t.pipe(fe(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,n)=>this._renderRow(this._headerRowOutlet,t,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,n)=>this._renderRow(this._footerRowOutlet,t,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,n){let o=Array.from(n.columns||[]).map(c=>{let u=this._columnDefsByName.get(c);return u}),a=o.map(c=>c.sticky),s=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(t,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let n=[];for(let o=0;o!a.when||a.when(n,t));else{let a=this._rowDefs.find(s=>s.when&&s.when(n,t))||this._defaultRowDef;a&&o.push(a)}return o.length,o}_getEmbeddedViewArgs(t,n){let o=t.rowDef,a={$implicit:t.data};return{templateRef:o.template,context:a,index:n}}_renderRow(t,n,o,a={}){let s=t.viewContainer.createEmbeddedView(n.template,a,o);return this._renderCellTemplateForItem(n,a),s}_renderCellTemplateForItem(t,n){for(let o of this._getCellTemplates(t))hs.mostRecentCellOutlet&&hs.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let n=0,o=t.length;n{let o=this._columnDefsByName.get(n);return t.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new Dy(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:oe()).pipe(fe(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let a=o.createEmbeddedView(t.templateRef),s=a.rootNodes[0];a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(t._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(n){return new(n||e)(h(Wo),h(me),h(G),mi("role"),h(kt,8),h(se),h(je),h(rd),h(hf),h(pn),h(pf,12),h(Z,8))},e.\u0275cmp=S({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,BT,5),Fe(a,Nc,5),Fe(a,_f,5),Fe(a,Fd,5),Fe(a,Iy,5)),n&2){let s;Q(s=K())&&(o._noDataRow=s.first),Q(s=K())&&(o._contentColumnDefs=s),Q(s=K())&&(o._contentRowDefs=s),Q(s=K())&&(o._contentHeaderRowDefs=s),Q(s=K())&&(o._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&ne("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Y],fixedLayout:[2,"fixedLayout","fixedLayout",Y]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[be([{provide:To,useExisting:e},{provide:rd,useClass:_c},{provide:hf,useClass:Sy},{provide:pf,useValue:null}]),ue,re],ngContentSelectors:MH,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(Ue(IH),ae(0),ae(1,1),x(2,TH,1,0)(3,kH,7,0)(4,AH,4,0)),n&2&&(m(2),xe(o._isServer?2:-1),m(),xe(o._isNativeHtmlTable?3:4))},dependencies:[Ay,ky,Ry,Oy],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let i=e;return i})();function df(i,e){return i.concat(Array.from(e))}function NT(i,e){let r=e.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let n=t.nodeType===1?t.nodeName:null;if(n===r)return t;if(n==="TABLE")break;t=t.parentNode}return null}var zT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[sd]});let i=e;return i})();var OH=[[["caption"]],[["colgroup"],["col"]],"*"],RH=["caption","colgroup, col","*"];function PH(i,e){i&1&&ae(0,2)}function FH(i,e){i&1&&(l(0,"thead",0),bi(1,1),d(),l(2,"tbody",2),bi(3,3)(4,4),d(),l(5,"tfoot",0),bi(6,5),d())}function NH(i,e){i&1&&bi(0,1)(1,3)(2,4)(3,5)}var vf=(()=>{let e=class e extends Py{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[be([{provide:Py,useExisting:e},{provide:To,useExisting:e},{provide:hf,useClass:Sy},{provide:rd,useClass:_c},{provide:pf,useValue:null}]),ve,re],ngContentSelectors:RH,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(Ue(OH),ae(0),ae(1,1),x(2,PH,1,0)(3,FH,7,0)(4,NH,4,0)),n&2&&(m(2),xe(o._isServer?2:-1),m(),xe(o._isNativeHtmlTable?3:4))},dependencies:[Ay,ky,Ry,Oy],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});let i=e;return i})(),bf=(()=>{let e=class e extends ff{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[be([{provide:ff,useExisting:e}]),ve]});let i=e;return i})(),yf=(()=>{let e=class e extends gf{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[be([{provide:gf,useExisting:e}]),ve]});let i=e;return i})();var wf=(()=>{let e=class e extends Nc{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[be([{provide:Nc,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ve]});let i=e;return i})(),Cf=(()=>{let e=class e extends VT{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[ve]});let i=e;return i})();var xf=(()=>{let e=class e extends jT{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[ve]});let i=e;return i})();var Df=(()=>{let e=class e extends Fd{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Y]},standalone:!0,features:[be([{provide:Fd,useExisting:e}]),ue,ve]});let i=e;return i})();var Sf=(()=>{let e=class e extends _f{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[be([{provide:_f,useExisting:e}]),ve]});let i=e;return i})(),Ef=(()=>{let e=class e extends My{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[be([{provide:My,useExisting:e}]),ve,re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&bi(0,0)},dependencies:[hs],encapsulation:2});let i=e;return i})();var If=(()=>{let e=class e extends Ty{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[be([{provide:Ty,useExisting:e}]),ve,re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&bi(0,0)},dependencies:[hs],encapsulation:2});let i=e;return i})();var UT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,zT,pe]});let i=e;return i})(),LH=9007199254740991,Lc=class extends jh{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new $t([]),this._filter=new $t(""),this._internalPageChanges=new W,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,t)=>{let n=r[t];if(x0(n)){let o=Number(n);return o{let n=t.active,o=t.direction;return!n||o==""?r:r.sort((a,s)=>{let c=this.sortingDataAccessor(a,n),u=this.sortingDataAccessor(s,n),f=typeof c,v=typeof u;f!==v&&(f==="number"&&(c+=""),v==="number"&&(u+=""));let C=0;return c!=null&&u!=null?c>u?C=1:c{let n=Object.keys(r).reduce((a,s)=>a+r[s]+"\u25EC","").toLowerCase(),o=t.trim().toLowerCase();return n.indexOf(o)!=-1},this._data=new $t(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?yt(this._sort.sortChange,this._sort.initialized):oe(null),r=this._paginator?yt(this._paginator.page,this._internalPageChanges,this._paginator.initialized):oe(null),t=this._data,n=An([t,this._filter]).pipe(de(([s])=>this._filterData(s))),o=An([n,e]).pipe(de(([s])=>this._orderData(s))),a=An([o,r]).pipe(de(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let t=Math.ceil(r.length/r.pageSize)-1||0,n=Math.min(r.pageIndex,t);n!==r.pageIndex&&(r.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var jH=["input"],BH=["label"],zH=["*"],UH=new O("mat-checkbox-default-options",{providedIn:"root",factory:WT});function WT(){return{color:"accent",clickAction:"check-indeterminate"}}var an=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(an||{}),HH={provide:qi,useExisting:Wt(()=>Mf),multi:!0},Fy=class{},$H=0,$T=WT(),Mf=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(t){let n=new Fy;return n.source=this,n.checked=t,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,n,o,a,s,c){this._elementRef=t,this._changeDetectorRef=n,this._ngZone=o,this._animationMode=s,this._options=c,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new T,this.indeterminateChange=new T,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=an.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||$T,this.color=this._options.color||$T.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++$H}`}ngOnChanges(t){t.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){let n=t!=this._indeterminate;this._indeterminate=t,n&&(this._indeterminate?this._transitionCheckState(an.Indeterminate):this._transitionCheckState(this.checked?an.Checked:an.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorChangeFn=t}_transitionCheckState(t){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===t||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(a)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let t=this._options?.clickAction;!this.disabled&&t!=="noop"?(this.indeterminate&&t!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?an.Checked:an.Unchecked),this._emitChangeEvent()):!this.disabled&&t==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(t){t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(t,n){if(this._animationMode==="NoopAnimations")return"";switch(t){case an.Init:if(n===an.Checked)return this._animationClasses.uncheckedToChecked;if(n==an.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case an.Unchecked:return n===an.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case an.Checked:return n===an.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case an.Indeterminate:return n===an.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(t){let n=this._inputElement;n&&(n.nativeElement.indeterminate=t)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(t){t.target&&this._labelElement.nativeElement.contains(t.target)&&t.stopPropagation()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(Z),mi("tabindex"),h(Tt,8),h(UH,8))},e.\u0275cmp=S({type:e,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(le(jH,5),le(BH,5),le(Mn,5)),n&2){let a;Q(a=K())&&(o._inputElement=a.first),Q(a=K())&&(o._labelElement=a.first),Q(a=K())&&(o.ripple=a.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(n,o){n&2&&(Di("id",o.id),ie("tabindex",null)("aria-label",null)("aria-labelledby",null),qt(o.color?"mat-"+o.color:"mat-accent"),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",Y],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Zt(t)],color:"color",checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y],indeterminate:[2,"indeterminate","indeterminate",Y]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[be([HH,{provide:no,useExisting:e,multi:!0}]),ue,Qe,re],ngContentSelectors:zH,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"div",3),b("click",function(c){return y(a),w(o._preventBubblingFromLabel(c))}),l(1,"div",4,0)(3,"div",5),b("click",function(){return y(a),w(o._onTouchTargetClick())}),d(),l(4,"input",6,1),b("blur",function(){return y(a),w(o._onBlur())})("click",function(){return y(a),w(o._onInputClick())})("change",function(c){return y(a),w(o._onInteractionEvent(c))}),d(),I(6,"div",7),l(7,"div",8),vi(),l(8,"svg",9),I(9,"path",10),d(),Xr(),I(10,"div",11),d(),I(11,"div",12),d(),l(12,"label",13,2),ae(14),d()()}if(n&2){let a=Ie(2);p("labelPosition",o.labelPosition),m(4),ne("mdc-checkbox--selected",o.checked),p("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.disabled?-1:o.tabIndex),ie("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),m(7),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),p("for",o.inputId)}},dependencies:[Mn,op],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-unselected-icon-color);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Tf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Mf,pe,pe]});let i=e;return i})();var GH=["*"],kf;function qH(){if(kf===void 0&&(kf=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(kf=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return kf}function Nd(i){return qH()?.createHTML(i)||i}function GT(i){return Error(`Unable to find icon with the name "${i}"`)}function YH(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function qT(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function YT(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var Or=class{constructor(e,r,t){this.url=e,this.svgText=r,this.options=t}},QH=(()=>{let e=class e{constructor(t,n,o,a){this._httpClient=t,this._sanitizer=n,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(t,n,o){return this.addSvgIconInNamespace("",t,n,o)}addSvgIconLiteral(t,n,o){return this.addSvgIconLiteralInNamespace("",t,n,o)}addSvgIconInNamespace(t,n,o,a){return this._addSvgIconConfig(t,n,new Or(o,null,a))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,n,o,a){let s=this._sanitizer.sanitize(Hi.HTML,o);if(!s)throw YT(o);let c=Nd(s);return this._addSvgIconConfig(t,n,new Or("",c,a))}addSvgIconSet(t,n){return this.addSvgIconSetInNamespace("",t,n)}addSvgIconSetLiteral(t,n){return this.addSvgIconSetLiteralInNamespace("",t,n)}addSvgIconSetInNamespace(t,n,o){return this._addSvgIconSetConfig(t,new Or(n,null,o))}addSvgIconSetLiteralInNamespace(t,n,o){let a=this._sanitizer.sanitize(Hi.HTML,n);if(!a)throw YT(n);let s=Nd(a);return this._addSvgIconSetConfig(t,new Or("",s,o))}registerFontClassAlias(t,n=t){return this._fontCssClassesByAlias.set(t,n),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let n=this._sanitizer.sanitize(Hi.RESOURCE_URL,t);if(!n)throw qT(t);let o=this._cachedIconsByUrl.get(n);return o?oe(Af(o)):this._loadSvgIconFromConfig(new Or(t,null)).pipe(zt(a=>this._cachedIconsByUrl.set(n,a)),de(a=>Af(a)))}getNamedSvgIcon(t,n=""){let o=QT(n,t),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(n,t),a)return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(n);return s?this._getSvgFromIconSetConfigs(t,s):Ro(GT(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?oe(Af(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(de(n=>Af(n)))}_getSvgFromIconSetConfigs(t,n){let o=this._extractIconWithNameFromAnySet(t,n);if(o)return oe(o);let a=n.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(zi(c=>{let f=`Loading icon set URL: ${this._sanitizer.sanitize(Hi.RESOURCE_URL,s.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(f)),oe(null)})));return Xc(a).pipe(de(()=>{let s=this._extractIconWithNameFromAnySet(t,n);if(!s)throw GT(t);return s}))}_extractIconWithNameFromAnySet(t,n){for(let o=n.length-1;o>=0;o--){let a=n[o];if(a.svgText&&a.svgText.toString().indexOf(t)>-1){let s=this._svgElementFromConfig(a),c=this._extractSvgIconFromSet(s,t,a.options);if(c)return c}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(zt(n=>t.svgText=n),de(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?oe(null):this._fetchIcon(t).pipe(zt(n=>t.svgText=n))}_extractSvgIconFromSet(t,n,o){let a=t.querySelector(`[id="${n}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,o);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),o);let c=this._svgElementFromString(Nd(""));return c.appendChild(s),this._setSvgAttributes(c,o)}_svgElementFromString(t){let n=this._document.createElement("DIV");n.innerHTML=t;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(t){let n=this._svgElementFromString(Nd("")),o=t.attributes;for(let a=0;aNd(f)),Fo(()=>this._inProgressUrlFetches.delete(s)),el());return this._inProgressUrlFetches.set(s,u),u}_addSvgIconConfig(t,n,o){return this._svgIconConfigs.set(QT(t,n),o),this}_addSvgIconSetConfig(t,n){let o=this._iconSetConfigs.get(t);return o?o.push(n):this._iconSetConfigs.set(t,[n]),this}_svgElementFromConfig(t){if(!t.svgElement){let n=this._svgElementFromString(t.svgText);this._setSvgAttributes(n,t.options),t.svgElement=n}return t.svgElement}_getIconConfigFromResolvers(t,n){for(let o=0;oe?e.pathname+e.search:""}}var KT=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],e6=KT.map(i=>`[${i}]`).join(", "),t6=/^url\(['"]?#(.*?)['"]?\)$/,ZT=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){let n=this._cleanupFontValue(t);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){let n=this._cleanupFontValue(t);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(t,n,o,a,s,c){this._elementRef=t,this._iconRegistry=n,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ce.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let n=t.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,n=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=t.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>t.classList.remove(o)),n.forEach(o=>t.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let n=this._elementsWithExternalReferences;n&&n.forEach((o,a)=>{o.forEach(s=>{a.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){let n=t.querySelectorAll(e6),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let c=n[a],u=c.getAttribute(s),f=u?u.match(t6):null;if(f){let v=o.get(c);v||(v=[],o.set(c,v)),v.push({name:s,value:f[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[n,o]=this._splitIconName(t);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(It(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${n}:${o}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(QH),mi("aria-hidden"),h(XH),h(un),h(ZH,8))},e.\u0275cmp=S({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(ie("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),qt(o.color?"mat-"+o.color:""),ne("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Y],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[ue,re],ngContentSelectors:GH,decls:1,vars:0,template:function(n,o){n&1&&(Ue(),ae(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let i=e;return i})(),XT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})();var n6=["determinateSpinner"];function o6(i,e){if(i&1&&(vi(),l(0,"svg",11),I(1,"circle",12),d()),i&2){let r=_();ie("viewBox",r._viewBox()),m(),xi("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeCircumference()/2,"px")("stroke-width",r._circleStrokeWidth(),"%"),ie("r",r._circleRadius())}}var r6=new O("mat-progress-spinner-default-options",{providedIn:"root",factory:a6});function a6(){return{diameter:JT}}var JT=100,s6=10,Of=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}constructor(t,n,o){this._elementRef=t,this._defaultColor="primary",this._value=0,this._diameter=JT,this._noopAnimations=n==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=t.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,t||0))}get diameter(){return this._diameter}set diameter(t){this._diameter=t||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=t||0}_circleRadius(){return(this.diameter-s6)/2}_viewBox(){let t=this._circleRadius()*2+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Tt,8),h(r6))},e.\u0275cmp=S({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&le(n6,5),n&2){let a;Q(a=K())&&(o._determinateCircle=a.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(ie("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),qt("mat-"+o.color),xi("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),ne("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Zt],diameter:[2,"diameter","diameter",Zt],strokeWidth:[2,"strokeWidth","strokeWidth",Zt]},exportAs:["matProgressSpinner"],standalone:!0,features:[ue,re],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,o){if(n&1&&(x(0,o6,2,8,"ng-template",null,0,hi),l(2,"div",2,1),vi(),l(4,"svg",3),I(5,"circle",4),d()(),Xr(),l(6,"div",5)(7,"div",6)(8,"div",7),bi(9,8),d(),l(10,"div",9),bi(11,8),d(),l(12,"div",10),bi(13,8),d()()()),n&2){let a=Ie(1);m(4),ie("viewBox",o._viewBox()),m(),xi("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ie("r",o._circleRadius()),m(4),p("ngTemplateOutlet",a),m(2),p("ngTemplateOutlet",a),m(2),p("ngTemplateOutlet",a)}},dependencies:[ah],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let i=e;return i})();var Rf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Si,pe]});let i=e;return i})();var Pf=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Nn(t)}get inset(){return this._inset}set inset(t){this._inset=Nn(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(ie("aria-orientation",o.vertical?"vertical":"horizontal"),ne("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[re],decls:0,vars:0,template:function(n,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),Ff=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})();var c6=["searchSelectInput"],l6=["innerSelectSearch"],d6=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],u6=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],m6=(i,e)=>({"mat-select-search-inner-multiple":i,"mat-select-search-inner-toggle-all":e});function h6(i,e){if(i&1){let r=A();l(0,"mat-checkbox",12),b("change",function(n){y(r);let o=_();return w(o._emitSelectAllBooleanToParent(n.checked))}),d()}if(i&2){let r=_();p("color",r.matFormField==null?null:r.matFormField.color)("checked",r.toggleAllCheckboxChecked)("indeterminate",r.toggleAllCheckboxIndeterminate)("matTooltip",r.toggleAllCheckboxTooltipMessage)("matTooltipPosition",r.toggleAllCheckboxTooltipPosition)}}function p6(i,e){i&1&&I(0,"mat-spinner",13)}function f6(i,e){i&1&&ae(0,1,["*ngIf","clearIcon; else defaultIcon"])}function g6(i,e){if(i&1&&(l(0,"mat-icon",16),g(1),d()),i&2){let r=_(2);p("svgIcon",r.closeSvgIcon),m(),P(" ",r.closeSvgIcon?null:r.closeIcon," ")}}function _6(i,e){if(i&1){let r=A();l(0,"button",14),b("click",function(){y(r);let n=_();return w(n._reset(!0))}),x(1,f6,1,0,"ng-content",15)(2,g6,2,2,"ng-template",null,2,hi),d()}if(i&2){let r=Ie(3),t=_();m(),p("ngIf",t.clearIcon)("ngIfElse",r)}}function v6(i,e){i&1&&ae(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function b6(i,e){if(i&1&&g(0),i&2){let r=_(2);He(r.noEntriesFoundLabel)}}function y6(i,e){if(i&1&&(l(0,"div",17),x(1,v6,1,0,"ng-content",15)(2,b6,1,1,"ng-template",null,3,hi),d()),i&2){let r=Ie(3),t=_();m(),p("ngIf",t.noEntriesFound)("ngIfElse",r)}}var w6=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=N({type:i,selectors:[["","ngxMatSelectSearchClear",""]]}),i})(),C6=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],x6=new O("mat-selectsearch-default-options"),D6=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=N({type:i,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),i})(),ik=(()=>{class i{constructor(r,t,n,o=null,a=null,s){this.matSelect=r,this.changeDetectorRef=t,this._viewportRuler=n,this.matOption=o,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new T,this.onTouched=c=>{},this._options$=new $t(null),this.optionsList$=this._options$.pipe(Mt(c=>c?c.changes.pipe(de(u=>u.toArray()),Ot(c.toArray())):oe(null))),this.optionsLength$=this.optionsList$.pipe(de(c=>c?c.length:0)),this._formControl=new Ip(""),this._showNoEntriesFound$=An([this._formControl.valueChanges,this.optionsLength$]).pipe(de(([c,u])=>this.noEntriesFoundLabel&&c&&u===this.getOptionsLengthOffset())),this._onDestroy=new W,this.applyDefaultOptions(s)}get value(){return this._formControl.value}set _options(r){this._options$.next(r)}get _options(){return this._options$.getValue()}applyDefaultOptions(r){if(r)for(let t of C6)r.hasOwnProperty(t)&&(this[t]=r[t])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(Br(1),fe(this._onDestroy)).subscribe(r=>{r?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(It(1),Mt(r=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(zt(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&o&&((!t||!this.matSelect.compareWith(t.value,o.value)||!a.activeItem||!n.find(c=>this.matSelect.compareWith(c.value,a.activeItem.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=o})}))})).pipe(fe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(fe(this._onDestroy)).subscribe(r=>{this.matOption&&(r?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(fe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(fe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(r){this.toggleAll.emit(r)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(r){(r.key&&r.key.length===1||r.keyCode>=65&&r.keyCode<=90||r.keyCode>=48&&r.keyCode<=57||r.keyCode===32||this.preventHomeEndKeyPropagation&&(r.keyCode===36||r.keyCode===35))&&r.stopPropagation(),this.matSelect.multiple&&r.key&&r.keyCode===13&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed===!0&&r.keyCode===27&&this.value&&(this._reset(!0),r.stopPropagation())}_handleKeyup(r){if(r.keyCode===38||r.keyCode===40){let t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex(o=>o.id===t);n!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[n]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}}writeValue(r){this._lastExternalInputValue=r,this._formControl.setValue(r),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(r){this._formControl.valueChanges.pipe(qe(t=>t!==this._lastExternalInputValue),zt(()=>this._lastExternalInputValue=void 0),fe(this._onDestroy)).subscribe(r)}registerOnTouched(r){this.onTouched=r}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let r=this.matSelect.panel.nativeElement,t=r.scrollTop;this.searchSelectInput.nativeElement.focus(),r.scrollTop=t}_reset(r){this._formControl.setValue(""),r&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(fe(this._onDestroy)).subscribe(r=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!r||!Array.isArray(r))&&(r=[]);let n=this.matSelect.options.map(o=>o.value);this.previousSelectedValues.forEach(o=>{!r.some(a=>this.matSelect.compareWith(a,o))&&!n.some(a=>this.matSelect.compareWith(a,o))&&(r.push(o),t=!0)})}this.previousSelectedValues=r,t&&this.matSelect._onChange(r)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let r=this.innerSelectSearch.nativeElement,t;for(;r=r.parentElement;)if(r.classList.contains("mat-select-panel")){t=r;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return i.\u0275fac=function(r){return new(r||i)(h(vt),h(me),h(pn),h(it,8),h(ge,8),h(x6,8))},i.\u0275cmp=S({type:i,selectors:[["ngx-mat-select-search"]],contentQueries:function(r,t,n){if(r&1&&(Fe(n,w6,5),Fe(n,D6,5)),r&2){let o;Q(o=K())&&(t.clearIcon=o.first),Q(o=K())&&(t.noEntriesFound=o.first)}},viewQuery:function(r,t){if(r&1&&(le(c6,7,G),le(l6,7,G)),r&2){let n;Q(n=K())&&(t.searchSelectInput=n.first),Q(n=K())&&(t.innerSelectSearch=n.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[be([{provide:qi,useExisting:Wt(()=>i),multi:!0}])],ngContentSelectors:u6,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(r,t){if(r&1){let n=A();Ue(d6),I(0,"input",4),l(1,"div",5,0)(3,"div",6),x(4,h6,1,5,"mat-checkbox",7),l(5,"input",8,1),b("keydown",function(a){return y(n),w(t._handleKeydown(a))})("keyup",function(a){return y(n),w(t._handleKeyup(a))})("blur",function(){return y(n),w(t.onBlur())}),d(),x(7,p6,1,0,"mat-spinner",9)(8,_6,4,2,"button",10),ae(9),d(),I(10,"mat-divider"),d(),x(11,y6,4,2,"div",11),yo(12,"async")}r&2&&(m(),p("ngClass",Js(11,m6,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),m(3),p("ngIf",t._isToggleAllCheckboxVisible()),m(),p("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),ie("aria-label",t.ariaLabel),m(2),p("ngIf",t.searching),m(),p("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),m(3),p("ngIf",wr(12,9,t._showNoEntriesFound$)))},dependencies:[Cn,he,ct,we,sy,Wi,Mf,ZT,Of,tr,Pf,HE],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),i})();var nk=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ee({type:i}),i.\u0275inj=J({imports:[Si,Tp,Jo,Tf,XT,Rf,Pc,Ff]}),i})();function E6(i,e){if(i&1){let r=A();l(0,"mat-option")(1,"ngx-mat-select-search",1),b("ngModelChange",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()()}if(i&2){let r=_();m(),p("placeholderLabel",r.placeholderLabel)("noEntriesFoundLabel",r.noEntriesFoundLabel)}}var di=(()=>{let e=class e{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new T,this.notIfLessThan=7}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},decls:1,vars:1,consts:[[4,"ngIf"],["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&x(0,E6,2,2,"mat-option",0),n&2&&p("ngIf",o.options&&o.options.length>o.notIfLessThan)},dependencies:[he,we,De,it,ik]});let i=e;return i})();function I6(i,e){i&1&&(l(0,"uds-translate"),g(1,"New user permission for"),d())}function M6(i,e){i&1&&(l(0,"uds-translate"),g(1,"New group permission for"),d())}function T6(i,e){if(i&1&&(l(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),He(r.text)}}function k6(i,e){if(i&1&&(l(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),He(r.text)}}function A6(i,e){if(i&1&&(l(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),He(r.text)}}var ok=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.done=new Jt}static launch(t,n,o){return q(this,null,function*(){let a=window.innerWidth<800?"80%":"50%";return t.gui.dialog.open(e,{width:a,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return q(this,null,function*(){let t=yield this.rest.authenticators.summary();for(let n of t)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(t){return q(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(t,this.data.type+"s").summary();for(let o of n)this.entities.push({id:o.id,text:o.name})})}save(){this.done.resolve({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()}cancel(){this.done.resolve(null),this.dialogRef.close()}filteredEntities(){let t=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&t.push(n)}),t}getFieldLabel(t){return t==="user"?django.gettext("User"):t==="group"?django.gettext("Group"):t==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["titleGroup",""],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",1),x(1,I6,2,0,"uds-translate",2),I(2,"b",3),x(3,M6,2,0,"ng-template",null,0,hi),d(),l(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-select",5),b("valueChange",function(c){return y(a),w(o.changeAuth(c))}),H("ngModelChange",function(c){return y(a),$(o.authenticator,c)||(o.authenticator=c),w(c)}),x(9,T6,2,2,"mat-option",6),d()(),l(10,"mat-form-field")(11,"mat-select",7),H("ngModelChange",function(c){return y(a),$(o.entity,c)||(o.entity=c),w(c)}),l(12,"uds-cond-select-search",8),b("changed",function(c){return y(a),w(o.filterUser=c)}),d(),x(13,k6,2,2,"mat-option",6),d()(),l(14,"mat-form-field")(15,"mat-select",7),H("ngModelChange",function(c){return y(a),$(o.permission,c)||(o.permission=c),w(c)}),x(16,A6,2,2,"mat-option",6),d()()()(),l(17,"mat-dialog-actions")(18,"button",9),b("click",function(){return y(a),w(o.cancel())}),l(19,"uds-translate"),g(20,"Cancel"),d()(),l(21,"button",10),b("click",function(){return y(a),w(o.save())}),l(22,"uds-translate"),g(23,"Ok"),d()()()}if(n&2){let a=Ie(4);m(),p("ngIf",o.data.type==="user")("ngIfElse",a),m(),p("innerHTML",o.data.item.name,Gt),m(6),p("placeholder",o.getFieldLabel("auth")),U("ngModel",o.authenticator),m(),p("ngForOf",o.authenticators),m(2),p("placeholder",o.getFieldLabel(o.data.type)),U("ngModel",o.entity),m(),p("options",o.entities),m(),p("ngForOf",o.filteredEntities()),m(2),p("placeholder",o.getFieldLabel("perm")),U("ngModel",o.permission),m(),p("ngForOf",o.permissions)}},dependencies:[$e,he,we,De,ke,Xe,et,Je,ge,vt,it,ce,di],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var O6=(i,e)=>[i,e];function R6(i,e){if(i&1){let r=A();l(0,"div",11)(1,"div",12),g(2),d(),l(3,"div",13),g(4),l(5,"a",14),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.revokePermission(n))}),l(6,"i",15),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;m(2),yr(" ",r.entity_name,"@",r.auth_name," "),m(2),P(" ",r.perm_name," \xA0")}}function P6(i,e){if(i&1){let r=A();l(0,"div",7)(1,"div",8)(2,"div",9),b("click",function(n){let o=y(r).$implicit;return _().newPermission(o),w(n.preventDefault())}),l(3,"uds-translate"),g(4,"New permission..."),d()(),x(5,R6,8,3,"div",10),d()()}if(i&2){let r=e.$implicit;m(5),p("ngForOf",r)}}var rk=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(t,n,o){let a=window.innerWidth<800?"90%":"60%",s=t.gui.dialog.open(e,{width:a,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return q(this,null,function*(){yield this.reload()})}reload(){return q(this,null,function*(){let t=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(t)})}updatePermissions(t){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of t)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(t){return q(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"")){let n=yield this.data.rest.revokePermission([t.id]);this.reload()}})}newPermission(t){return q(this,null,function*(){let n=t===this.userPermissions?"user":"group",o=yield ok.launch(this.api,n,this.data.item);o&&(yield this.data.rest.addPermission(this.data.item.id,n+"s",o.entity,o.permissision),this.reload())})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Permissions for"),d(),g(3,"\xA0"),I(4,"b",1),d(),l(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),g(8,"Users"),d(),l(9,"uds-translate",3),g(10,"Groups"),d()(),l(11,"div",4),x(12,P6,6,1,"div",5),d()(),l(13,"mat-dialog-actions")(14,"button",6)(15,"uds-translate"),g(16,"Ok"),d()()()),n&2&&(m(4),p("innerHTML",o.data.item.name,Gt),m(8),p("ngForOf",Js(2,O6,o.userPermissions,o.groupPermissions)))},dependencies:[$e,ke,Yt,Xe,et,Je,ce],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var mk=Zd(Vf()),N6="text/csv",lk=",",dk=`\r -`,uk=i=>(i.changingThisBreaksApplicationSecurity!==void 0&&(i=i.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),i=""+i,'"'+i.replace('"','""')+'"'),jf=i=>{let e="";i.columns.forEach(n=>{e+=uk(n.title)+lk}),e=e.slice(0,-1)+dk;let r=i.dataSource.data;for(let n of r){for(let o of i.columns){let a=n[o.name];switch(o.type){case pi.DATE:a=Bi("SHORT_DATE_FORMAT",a);break;case pi.DATETIME:a=Bi("SHORT_DATETIME_FORMAT",a);break;case pi.DATETIMESEC:a=Bi("SHORT_DATE_FORMAT",a," H:i:s");break;case pi.TIME:a=Bi("TIME_FORMAT",a);break;default:break}e+=uk(a)+lk}e=e.slice(0,-1)+dk}let t=new Blob([e],{type:N6});setTimeout(()=>{(0,mk.saveAs)(t,i.title+".csv")})};var Vy=class{constructor(e,r){this._document=r;let t=this._textarea=this._document.createElement("textarea"),n=t.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",t.setAttribute("aria-hidden","true"),t.value=e,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t)}copy(){let e=this._textarea,r=!1;try{if(e){let t=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),r=this._document.execCommand("copy"),t&&t.focus()}}catch{}return r}destroy(){let e=this._textarea;e&&(e.remove(),this._textarea=void 0)}},hk=(()=>{let e=class e{constructor(t){this._document=t}copy(t){let n=this.beginCopy(t),o=n.copy();return n.destroy(),o}beginCopy(t){return new Vy(t,this._document)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var pk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var V6=["mat-menu-item",""],j6=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],B6=["mat-icon, [matMenuItemIcon]","*"];function z6(i,e){i&1&&(vi(),l(0,"svg",2),I(1,"polygon",3),d())}var U6=["*"];function H6(i,e){if(i&1){let r=A();l(0,"div",0),b("keydown",function(n){y(r);let o=_();return w(o._handleKeydown(n))})("click",function(){y(r);let n=_();return w(n.closed.emit("click"))})("@transformMenu.start",function(n){y(r);let o=_();return w(o._onAnimationStart(n))})("@transformMenu.done",function(n){y(r);let o=_();return w(o._onAnimationDone(n))}),l(1,"div",1),ae(2),d()()}if(i&2){let r=_();qt(r._classList),p("id",r.panelId)("@transformMenu",r._panelAnimationState),ie("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var jy=new O("MAT_MENU_PANEL"),ps=(()=>{let e=class e{constructor(t,n,o,a,s){this._elementRef=t,this._document=n,this._focusMonitor=o,this._parentMenu=a,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new W,this._focused=new W,this._highlighted=!1,this._triggersSubmenu=!1,a?.addItem?.(this)}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let t=this._elementRef.nativeElement.cloneNode(!0),n=t.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{let e=class e{constructor(t,n,o,a,s,c,u){this._template=t,this._componentFactoryResolver=n,this._appRef=o,this._injector=a,this._viewContainerRef=s,this._document=c,this._changeDetectorRef=u,this._attached=new W}attach(t={}){this._portal||(this._portal=new ki(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new bc(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));let n=this._template.elementRef.nativeElement;n.parentNode.insertBefore(this._outlet.outletElement,n),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(vn),h(Xn),h(Pe),h(wt),h(se),h(me))},e.\u0275dir=N({type:e,selectors:[["ng-template","matMenuContent",""]],standalone:!0,features:[be([{provide:gk,useExisting:e}])]});let i=e;return i})(),Bf={transformMenu:li("transformMenu",[Pt("void",Me({opacity:0,transform:"scale(0.8)"})),xt("void => enter",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Me({opacity:1,transform:"scale(1)"}))),xt("* => void",Et("100ms 25ms linear",Me({opacity:0})))]),fadeInItems:li("fadeInItems",[Pt("showing",Me({opacity:1})),xt("void => *",[Me({opacity:0}),Et("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},$pe=Bf.fadeInItems,Wpe=Bf.transformMenu,$6=0,W6=new O("mat-menu-default-options",{providedIn:"root",factory:G6});function G6(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var Sa=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}set panelClass(t){let n=this._previousPanelClass,o=B({},this._classList);n&&n.length&&n.split(" ").forEach(a=>{o[a]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(a=>{o[a]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(t){this.panelClass=t}constructor(t,n,o,a){this._elementRef=t,this._changeDetectorRef=a,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new qn,this._classList={},this._panelAnimationState="void",this._animationDone=new W,this.closed=new T,this.close=this.closed,this.panelId=`mat-menu-panel-${$6++}`,this._injector=k(Pe),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new da(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ot(this._directDescendantItems),Mt(t=>yt(...t.map(n=>n._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=t.toArray(),a=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[a]&&!o[a].disabled?n.setActiveItem(a):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Ot(this._directDescendantItems),Mt(n=>yt(...n.map(o=>o._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){let n=t.keyCode,o=this._keyManager;switch(n){case 27:Rt(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(t);return}t.stopPropagation()}focusFirstItem(t="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ri(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(t).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){let n=Math.min(this._baseElevation+t,24),o=`${this._elevationPrefix}${n}`,a=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!a||a===this._previousElevation){let s=B({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[o]=!0,this._previousElevation=o,this._classList=s}}setPositionClasses(t=this.xPosition,n=this.yPosition){this._classList=mt(B({},this._classList),{"mat-menu-before":t==="before","mat-menu-after":t==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,t.toState==="enter"&&this._keyManager.activeItemIndex===0&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Ot(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z),h(W6),h(me))},e.\u0275cmp=S({type:e,selectors:[["mat-menu"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,gk,5),Fe(a,ps,5),Fe(a,ps,4)),n&2){let s;Q(s=K())&&(o.lazyContent=s.first),Q(s=K())&&(o._allItems=s),Q(s=K())&&(o.items=s)}},viewQuery:function(n,o){if(n&1&&le(lt,5),n&2){let a;Q(a=K())&&(o.templateRef=a.first)}},hostVars:3,hostBindings:function(n,o){n&2&&ie("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Y],hasBackdrop:[2,"hasBackdrop","hasBackdrop",t=>t==null?null:Y(t)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[be([{provide:jy,useExisting:e}]),ue,re],ngContentSelectors:U6,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(Ue(),x(0,H6,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Bf.transformMenu,Bf.fadeInItems]},changeDetection:0});let i=e;return i})(),vk=new O("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function q6(i){return()=>i.scrollStrategies.reposition()}var Y6={provide:vk,deps:[Ct],useFactory:q6},fk=ji({passive:!0});var zf=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._parentMaterialMenu,this._menuCloseSubscription=t.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(t,n,o,a,s,c,u,f,v){this._overlay=t,this._element=n,this._viewContainerRef=o,this._menuItemInstance=c,this._dir=u,this._focusMonitor=f,this._ngZone=v,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ce.EMPTY,this._hoverSubscription=Ce.EMPTY,this._menuCloseSubscription=Ce.EMPTY,this._changeDetectorRef=k(me),this._handleTouchStart=C=>{fd(C)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new T,this.onMenuOpen=this.menuOpened,this.menuClosed=new T,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=s instanceof Sa?s:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,fk)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,fk),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let t=this.menu;if(this._menuOpen||!t)return;let n=this._createOverlay(t),o=n.getConfig(),a=o.positionStrategy;this._setPosition(t,a),o.hasBackdrop=t.hasBackdrop==null?!this.triggersSubmenu():t.hasBackdrop,n.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof Sa&&(t._startAnimation(),t._directDescendantItems.changes.pipe(fe(t.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;let n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(t==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof Sa?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(qe(o=>o.toState==="void"),It(1),fe(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let n=0,o=t.parentMenu;for(;o;)n++,o=o.parentMenu;t.setElevation(n)}}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){let n=this._getOverlayConfig(t);this._subscribeToPositions(t,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new Sn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,n){t.setPositionClasses&&n.positionChanges.subscribe(o=>{let a=o.connectionPair.overlayX==="start"?"after":"before",s=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(a,s)):t.setPositionClasses(a,s)})}_setPosition(t,n){let[o,a]=t.xPosition==="before"?["end","start"]:["start","end"],[s,c]=t.yPosition==="above"?["bottom","top"]:["top","bottom"],[u,f]=[s,c],[v,C]=[o,a],D=0;if(this.triggersSubmenu()){if(C=o=t.xPosition==="before"?"start":"end",a=v=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let E=this._parentMaterialMenu.items.first;this._parentInnerPadding=E?E._getHostElement().offsetTop:0}D=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(u=s==="top"?"bottom":"top",f=c==="top"?"bottom":"top");n.withPositions([{originX:o,originY:u,overlayX:v,overlayY:s,offsetY:D},{originX:a,originY:u,overlayX:C,overlayY:s,offsetY:D},{originX:o,originY:f,overlayX:v,overlayY:c,offsetY:-D},{originX:a,originY:f,overlayX:C,overlayY:c,offsetY:-D}])}_menuClosingActions(){let t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:oe(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(qe(s=>s!==this._menuItemInstance),qe(()=>this._menuOpen)):oe();return yt(t,o,a,n)}_handleMousedown(t){pd(t)||(this._openedBy=t.button===0?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){let n=t.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(qe(t=>t===this._menuItemInstance&&!t.disabled),Br(0,Zc)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Sa&&this.menu._isAnimating?this.menu._animationDone.pipe(It(1),Br(0,Zc),fe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new ki(t.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(G),h(wt),h(vk),h(jy,8),h(ps,10),h(kt,8),h(wi),h(Z))},e.\u0275dir=N({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("mousedown",function(s){return o._handleMousedown(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let i=e;return i})(),bk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Y6],imports:[Si,Mr,pe,on,to,pe]});let i=e;return i})();var wk=ji({passive:!0}),Ck=(()=>{let e=class e{constructor(t,n){this._platform=t,this._ngZone=n,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Ti;let n=xn(t),o=this._monitoredElements.get(n);if(o)return o.subject;let a=new W,s="cdk-text-field-autofilled",c=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(s)?(n.classList.add(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(s)&&(n.classList.remove(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",c,wk),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:a,unlisten:()=>{n.removeEventListener("animationstart",c,wk)}}),a}stopMonitoring(t){let n=xn(t),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((t,n)=>this.stopMonitoring(n))}};e.\u0275fac=function(n){return new(n||e)(M(je),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var xk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var By=new O("MAT_INPUT_VALUE_ACCESSOR"),K6=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Z6=0,ft=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=Nn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(er.required)??!1}set required(t){this._required=Nn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&E0().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Nn(t)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,c,u,f,v,C){this._elementRef=t,this._platform=n,this.ngControl=o,this._autofillMonitor=f,this._formField=C,this._uid=`mat-input-${Z6++}`,this.focused=!1,this.stateChanges=new W,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(R=>E0().has(R)),this._iOSKeyupListener=R=>{let j=R.target;!j.value&&j.selectionStart===0&&j.selectionEnd===0&&(j.setSelectionRange(1,1),j.setSelectionRange(0,0))};let D=this._elementRef.nativeElement,E=D.nodeName.toLowerCase();this._inputValueAccessor=u||D,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&v.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Er(c,o,s,a,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=E==="select",this._isTextarea=E==="textarea",this._isInFormField=!!C,this._isNativeSelect&&(this.controlType=D.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){let t=this._getPlaceholder();if(t!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=t,t?n.setAttribute("placeholder",t):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){K6.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let t=this._elementRef.nativeElement,n=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Tn,10),h(Io,8),h(ds,8),h(Ir),h(By,10),h(Ck),h(Z),h(Mo,8))},e.\u0275dir=N({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,o){n&1&&b("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(Di("id",o.id)("disabled",o.disabled)("required",o.required),ie("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),ne("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[be([{provide:Ca,useExisting:e}]),Qe]});let i=e;return i})(),Dk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,ms,ms,xk,pe]});let i=e;return i})();var Sk=(()=>{let e=class e{transform(t,n){let o;return n===void 0?o=(a,s)=>a>s?1:-1:o=(a,s)=>a[n]>s[n]?1:-1,t.sort(o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Ka({name:"sort",type:e,pure:!0});let i=e;return i})();var J6=["trigger"],e$=()=>[5,10,25,100,1e3];function t$(i,e){if(i&1&&I(0,"img",39),i&2){let r=_();p("src",r.icon,Ee)}}function i$(i,e){if(i&1){let r=A();l(0,"button",47),b("click",function(){let n=y(r).$implicit,o=_(5);return w(o.newAction.emit({param:n,table:o}))}),d()}if(i&2){let r=e.$implicit,t=_(5);p("innerHTML",t.api.safeString(t.api.gui.icon(r.icon)+r.name),Gt)}}function n$(i,e){if(i&1&&(ht(0),l(1,"button",44),g(2),d(),l(3,"mat-menu",45,3),x(5,i$,1,1,"button",46),yo(6,"sort"),d(),pt()),i&2){let r=e.$implicit,t=Ie(4);m(),p("matMenuTriggerFor",t),m(),He(r.key),m(),p("overlapTrigger",!1),m(2),p("ngForOf",rb(6,4,r.value,"name"))}}function o$(i,e){if(i&1&&(ht(0),l(1,"mat-menu",40,2),x(3,n$,7,7,"ng-container",41),yo(4,"keyvalue"),d(),l(5,"a",42)(6,"i",22),g(7,"insert_drive_file"),d(),l(8,"span",43)(9,"uds-translate"),g(10,"New"),d()(),l(11,"i",22),g(12,"arrow_drop_down"),d()(),pt()),i&2){let r=Ie(2),t=_(3);m(),p("overlapTrigger",!1),m(2),p("ngForOf",wr(4,3,t.grpTypes)),m(2),p("matMenuTriggerFor",r)}}function r$(i,e){if(i&1){let r=A();l(0,"button",49),b("click",function(){let n=y(r).$implicit,o=_(4);return w(o.newAction.emit({param:n,table:o}))}),d()}if(i&2){let r=e.$implicit,t=_(4);p("innerHTML",t.api.safeString(t.api.gui.icon(r.icon)+r.name),Gt)}}function a$(i,e){if(i&1&&(ht(0),l(1,"mat-menu",40,2),x(3,r$,1,1,"button",48),yo(4,"sort"),d(),l(5,"a",42)(6,"i",22),g(7,"insert_drive_file"),d(),l(8,"span",43)(9,"uds-translate"),g(10,"New"),d()(),l(11,"i",22),g(12,"arrow_drop_down"),d()(),pt()),i&2){let r=Ie(2),t=_(3);m(),p("overlapTrigger",!1),m(2),p("ngForOf",rb(4,3,t.oTypes,"name")),m(2),p("matMenuTriggerFor",r)}}function s$(i,e){if(i&1&&(ht(0),x(1,o$,13,5,"ng-container",13)(2,a$,13,6,"ng-container",13),pt()),i&2){let r=_(2);m(),p("ngIf",r.newGrouped),m(),p("ngIf",!r.newGrouped)}}function c$(i,e){if(i&1){let r=A();ht(0),l(1,"a",50),b("click",function(){y(r);let n=_(2);return w(n.newAction.emit({param:void 0,table:n}))}),l(2,"i",22),g(3,"insert_drive_file"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"New"),d()()(),pt()}}function l$(i,e){if(i&1&&(ht(0),x(1,s$,3,2,"ng-container",13)(2,c$,7,0,"ng-container",13),pt()),i&2){let r=_();m(),p("ngIf",r.oTypes!==void 0&&r.oTypes.length!==0),m(),p("ngIf",r.oTypes!==void 0&&r.oTypes.length===0)}}function d$(i,e){if(i&1){let r=A();ht(0),l(1,"a",51),b("click",function(){y(r);let n=_();return w(n.emitIfSelection(n.editAction))}),l(2,"i",22),g(3,"edit"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"Edit"),d()()(),pt()}if(i&2){let r=_();m(),p("disabled",r.selection.selected.length!==1)}}function u$(i,e){if(i&1){let r=A();ht(0),l(1,"a",51),b("click",function(){y(r);let n=_();return w(n.permissions())}),l(2,"i",22),g(3,"perm_identity"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"Permissions"),d()()(),pt()}if(i&2){let r=_();m(),p("disabled",r.selection.selected.length!==1)}}function m$(i,e){if(i&1){let r=A();l(0,"a",53),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(2);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,Gt)}}function h$(i,e){if(i&1&&(ht(0),x(1,m$,1,2,"a",52),pt()),i&2){let r=_();m(),p("ngForOf",r.getcustomButtons())}}function p$(i,e){if(i&1){let r=A();ht(0),l(1,"a",54),b("click",function(){y(r);let n=_();return w(n.export())}),l(2,"i",22),g(3,"import_export"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"Export CSV"),d()()(),pt()}}function f$(i,e){if(i&1){let r=A();ht(0),l(1,"a",55),b("click",function(){y(r);let n=_();return w(n.emitIfSelection(n.deleteAction,!0))}),l(2,"i",22),g(3,"delete_forever"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"Delete"),d()()(),pt()}if(i&2){let r=_();m(),p("disabled",r.selection.isEmpty())}}function g$(i,e){if(i&1){let r=A();l(0,"button",56),b("click",function(){y(r);let n=_();return n.filterText="",w(n.applyFilter())}),l(1,"i",22),g(2,"clear"),d()()}}function _$(i,e){i&1&&I(0,"mat-header-cell")}function v$(i,e){i&1&&(l(0,"i",61),g(1,"check_box"),d())}function b$(i,e){i&1&&(l(0,"i",62),g(1,"check_box_outline_blank"),d())}function y$(i,e){if(i&1){let r=A();l(0,"mat-cell",59),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a.clickRow(o,n))}),x(1,v$,2,0,"i",60)(2,b$,2,0,"ng-template",null,4,hi),d()}if(i&2){let r=e.$implicit,t=Ie(3),n=_(2);m(),p("ngIf",n.selection.isSelected(r))("ngIfElse",t)}}function w$(i,e){i&1&&(ht(0,57),x(1,_$,1,0,"mat-header-cell",27)(2,y$,4,2,"mat-cell",58),pt())}function C$(i,e){i&1&&I(0,"mat-header-cell")}function x$(i,e){if(i&1){let r=A();l(0,"mat-cell")(1,"div",63),b("click",function(n){let o=y(r).$implicit,a=_();return a.detailAction.emit({param:o,table:a}),w(n.stopPropagation())}),l(2,"i",22),g(3,"subdirectory_arrow_right"),d()()()}}function D$(i,e){if(i&1&&(l(0,"mat-header-cell",67),g(1),d()),i&2){let r=_().$implicit;m(),He(r.title)}}function S$(i,e){if(i&1){let r=A();l(0,"mat-cell",68),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a.clickRow(o,n))})("contextmenu",function(n){let o=y(r).$implicit,a=_().$implicit,s=_();return w(s.onContextMenu(o,a,n))}),I(1,"div",69),d()}if(i&2){let r=e.$implicit,t=_().$implicit,n=_();m(),p("innerHtml",n.getRowColumn(r,t),Gt)}}function E$(i,e){if(i&1&&(ht(0,64),x(1,D$,2,1,"mat-header-cell",65)(2,S$,2,1,"mat-cell",66),pt()),i&2){let r=e.$implicit;Jr("matColumnDef",r.name)}}function I$(i,e){i&1&&I(0,"mat-header-row")}function M$(i,e){if(i&1&&I(0,"mat-row",70),i&2){let r=e.$implicit,t=_();p("ngClass",t.rowClass(r))}}function T$(i,e){if(i&1&&(l(0,"div",71),g(1),l(2,"uds-translate"),g(3,"Selected items"),d()()),i&2){let r=_();m(),P(" ",r.selection.selected.length," ")}}function k$(i,e){if(i&1){let r=A();l(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.copyToClipboard())}),l(1,"i",76),g(2,"content_copy"),d(),l(3,"uds-translate"),g(4,"Copy"),d()()}}function A$(i,e){if(i&1){let r=A();l(0,"button",75),b("click",function(){y(r);let n=_().item,o=_();return w(o.detailAction.emit({param:n,table:o}))}),l(1,"i",76),g(2,"subdirectory_arrow_right"),d(),l(3,"uds-translate"),g(4,"Detail"),d()()}}function O$(i,e){if(i&1){let r=A();l(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.emitIfSelection(n.editAction))}),l(1,"i",76),g(2,"edit"),d(),l(3,"uds-translate"),g(4,"Edit"),d()()}}function R$(i,e){if(i&1){let r=A();l(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.permissions())}),l(1,"i",76),g(2,"perm_identity"),d(),l(3,"uds-translate"),g(4,"Permissions"),d()()}}function P$(i,e){if(i&1){let r=A();l(0,"button",77),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(2);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,Gt)}}function F$(i,e){if(i&1){let r=A();l(0,"button",78),b("click",function(){y(r);let n=_(2);return w(n.emitIfSelection(n.deleteAction))}),l(1,"i",76),g(2,"delete_forever"),d(),l(3,"uds-translate"),g(4,"Delete"),d()()}}function N$(i,e){if(i&1){let r=A();l(0,"button",77),b("click",function(){let n=y(r).$implicit,o=_(3);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(3);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,Gt)}}function L$(i,e){if(i&1&&(ht(0),I(1,"mat-divider"),x(2,N$,1,2,"button",73),pt()),i&2){let r=_(2);m(2),p("ngForOf",r.getCustomAccelerators())}}function V$(i,e){if(i&1&&x(0,k$,5,0,"button",72)(1,A$,5,0,"button",72)(2,O$,5,0,"button",72)(3,R$,5,0,"button",72)(4,P$,1,2,"button",73)(5,F$,5,0,"button",74)(6,L$,3,1,"ng-container",13),i&2){let r=_();p("ngIf",r.allowCopy===!0),m(),p("ngIf",r.detailAction.observed),m(),p("ngIf",r.editAction.observed),m(),p("ngIf",r.hasPermissions===!0),m(),p("ngForOf",r.getCustomMenu()),m(),p("ngIf",r.deleteAction.observed),m(),p("ngIf",r.hasAccelerators)}}var Te=(()=>{let e=class e{constructor(t,n){this.api=t,this.clipboard=n,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new T,this.rowSelected=new T,this.newAction=new T,this.editAction=new T,this.deleteAction=new T,this.customButtonAction=new T,this.detailAction=new T,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new So(!0,[]),this.lastSel=null,this.dataSource=new Lc([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1}ngOnInit(){return q(this,null,function*(){this.customButtons===void 0||this.customButtons.length===0||!this.customButtonAction.observed?this.hasCustomButtons=!1:this.hasCustomButtons=this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||this.detailAction.observed||this.editAction.observed||this.hasPermissions||this.deleteAction.observed,this.hasActions=this.hasButtons||this.customButtons!==void 0&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(a,s)=>{if(!(s in a))return"";let c=a[s];return typeof c=="number"?c:typeof c=="string"?c.toLocaleLowerCase():(c===null&&(c=7226578800),c.changingThisBreaksApplicationSecurity&&(c=c.changingThisBreaksApplicationSecurity),(""+c).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=(a,s)=>{try{this.columns.forEach(c=>{if((""+a[c.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(s))throw Error()})}catch{return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new So(this.multiSelect===!0,[]);let t=this.rest.permision();t&Tr.MANAGEMENT||(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),t!==Tr.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=yield this.rest.types(),o=yield this.rest.tableInfo();yield this.initialize(o,n)})}initialize(t,n){return q(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let a of n)if(this.types.set(a.type,a),a.group!==void 0){this.grpTypes.has(a.group)||this.grpTypes.set(a.group,[]);let s=this.grpTypes.get(a.group);s!==void 0&&s.push(a)}t["row-style"]!==void 0&&t["row-style"].field!==void 0?this.rowStyleInfo=t["row-style"]:this.rowStyleInfo=null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let a of t.fields)for(let s in a)if(a.hasOwnProperty(s)){let c=a[s];o.push({name:s,title:c.title,type:c.type===void 0?pi.ALPHANUMERIC:c.type,dict:c.dict}),(c.visible===void 0||c.visible)&&this.displayedColumns.push(s)}this.columns=o,this.detailAction.observed&&this.displayedColumns.push("detail-column"),yield this.overview()})}overview(){return q(this,null,function*(){if(!this.loading){this.selection.clear(),this.dataSource.data=[],this.loading=!0;try{let t=yield this.rest.overview();if(this.onItem)for(let n of t)this.onItem(n);this.dataSource.data=t,this.loaded.emit({param:this.firstLoad,table:this}),this.firstLoad=!1}finally{this.loading=!1}}})}getcustomButtons(){return this.customButtons?this.customButtons.filter(t=>t.type!==ut.ONLY_MENU&&t.type!==ut.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(t=>t.type!==ut.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(t=>t.type===ut.ACCELERATOR):[]}getRowColumn(t,n){let o=t[n.name];switch(n.type){case pi.IMAGE:return this.api.safeString(this.api.gui.icon(o,"48px"));case pi.DATE:o=Bi("SHORT_DATE_FORMAT",o);break;case pi.DATETIME:o=Bi("SHORT_DATETIME_FORMAT",o);break;case pi.TIME:o=Bi("TIME_FORMAT",o);break;case pi.DATETIMESEC:o=Bi("SHORT_DATE_FORMAT",o," H:i:s");break;case pi.ICON:try{o=this.api.gui.icon(this.types.get(t.type).icon)+o}catch{}return this.api.safeString(o);case pi.CALLBACK:break;case pi.DICTIONARY:try{o=n.dict[o]}catch{o=""}break}return o}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)}copyToClipboard(){this.clipboard.copy(this.clipValue||"")}rowClass(t){let n=[];return this.selection.isSelected(t)&&n.push("selected"),this.rowStyleInfo!==null&&n.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),n}emitIfSelection(t,n=!1){let o=this.selection.selected.length;o>0&&(n===!0||o===1)&&t.emit({table:this,param:o})}isCustomDisabled(t){switch(t.type){case void 0:case ut.SINGLE_SELECT:return this.selection.selected.length!==1||t.disabled===!0;case ut.MULTI_SELECT:return this.selection.isEmpty()||t.disabled===!0;default:return!1}}emitCustom(t){!this.selection.selected.length&&t.type!==ut.ALWAYS||(t.type===ut.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties||[]):this.customButtonAction.emit({param:t,table:this}))}clickRow(t,n){let o=new Date().getTime();if((this.detailAction.observed||this.editAction.observed)&&Math.abs(this.lastClickInfo.x-n.x)<16&&Math.abs(this.lastClickInfo.y-n.y)<16&&o-this.lastClickInfo.time<250){this.selection.clear(),this.selection.select(t),this.detailAction.observed?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(t,n)}doSelect(t,n){if(n.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(n.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t){let o=!1,a=this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data;for(let s of a){if((s===t||s===this.lastSel)&&(o=!o,o===!1)){this.selection.select(s);break}o&&this.selection.select(s)}}}else this.lastSel!==t&&this.selection.clear(),this.lastSel=t,this.selection.toggle(t);this.rowSelected.emit({param:null,table:this})}onContextMenu(t,n,o){o.preventDefault();let a=t[n.name];a.changingThisBreaksApplicationSecurity&&(a=a.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+a,this.hasActions&&(this.selection.clear(),this.selection.select(t),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:t},this.contextMenu.openMenu())}selectElement(t,n){(this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data).forEach((a,s)=>{if(a[t]===n){let c=Math.floor(s/this.paginator.pageSize);this.selection.select(a),this.paginator.pageIndex=c,this.paginator.page.next({pageIndex:c,pageSize:this.paginator.pageSize,length:this.paginator.length})}})}export(){jf(this)}permissions(){this.selection.selected.length&&rk.launch(this.api,this.rest,this.selection.selected[0])}keyDown(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault();break}}};e.\u0275fac=function(n){return new(n||e)(h(z),h(hk))},e.\u0275cmp=S({type:e,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&(le(J6,7),le(kr,7),le(Ar,7)),n&2){let a;Q(a=K())&&(o.contextMenu=a.first),Q(a=K())&&(o.paginator=a.first),Q(a=K())&&(o.sort=a.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],["uncheck",""],[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"keyup","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"matSortChange","dataSource"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",1,"main-button",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","","class","main-button",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"main-button",3,"click","innerHTML"],["mat-raised-button","","color","primary",1,"main-button",3,"click"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"click","disabled","innerHTML"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"click","disabled"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons check checked",4,"ngIf","ngIfElse"],[1,"material-icons","check","checked"],[1,"material-icons","check"],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"click","disabled","innerHTML"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(n,o){if(n&1){let a=A();l(0,"div",5)(1,"div",6)(2,"div",7),x(3,t$,1,1,"img",8),g(4),d(),l(5,"div",9),g(6),d()(),l(7,"div",10)(8,"div",11)(9,"div",12),x(10,l$,3,2,"ng-container",13)(11,d$,7,1,"ng-container",13)(12,u$,7,1,"ng-container",13)(13,h$,2,1,"ng-container",13)(14,p$,7,0,"ng-container",13)(15,f$,7,1,"ng-container",13),d(),l(16,"div",14)(17,"div",15)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"Filter"),d()(),l(22,"input",16),b("keyup",function(){return y(a),w(o.applyFilter())}),H("ngModelChange",function(c){return y(a),$(o.filterText,c)||(o.filterText=c),w(c)}),d(),x(23,g$,3,0,"button",17),d()(),l(24,"div",18),I(25,"mat-paginator",19),d(),l(26,"div",20)(27,"a",21),b("click",function(){return y(a),w(o.overview())}),l(28,"i",22),g(29,"autorenew"),d()()()()(),l(30,"div",23),b("keydown",function(c){return y(a),w(o.keyDown(c))}),l(31,"mat-table",24),b("matSortChange",function(c){return y(a),w(o.sortChanged(c))}),x(32,w$,3,0,"ng-container",25),ht(33,26),x(34,C$,1,0,"mat-header-cell",27)(35,x$,4,0,"mat-cell",28),pt(),x(36,E$,3,1,"ng-container",29)(37,I$,1,0,"mat-header-row",30)(38,M$,1,1,"mat-row",31),d(),l(39,"div",32)(40,"div",33),I(41,"mat-progress-spinner",34),d()()(),l(42,"div",35),g(43," \xA0 "),x(44,T$,4,1,"div",36),d()(),I(45,"div",37,0),l(47,"mat-menu",null,1),x(49,V$,7,7,"ng-template",38),d()()}if(n&2){let a=Ie(48);m(3),p("ngIf",o.icon!==void 0),m(),P(" ",o.title," "),m(2),P(" ",o.subtitle," "),m(4),p("ngIf",o.newAction.observed),m(),p("ngIf",o.editAction.observed),m(),p("ngIf",o.hasPermissions===!0),m(),p("ngIf",o.hasCustomButtons),m(),p("ngIf",o.allowExport===!0),m(),p("ngIf",o.deleteAction.observed),m(7),U("ngModel",o.filterText),m(),p("ngIf",o.filterText),m(2),p("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Xs(27,e$))("showFirstLastButtons",!0),m(6),p("dataSource",o.dataSource),m(),p("ngIf",o.hasButtons),m(4),p("ngForOf",o.columns),m(),p("matHeaderRowDef",o.displayedColumns),m(),p("matRowDefColumns",o.displayedColumns),m(),p("hidden",!o.loading),m(5),p("ngIf",o.hasButtons&&o.selection.selected.length>0),m(),xi("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),p("matMenuTriggerFor",a)}},dependencies:[Cn,$e,he,ct,we,De,va,dp,Wi,Sa,ps,_k,zf,ge,Ae,oo,ft,vf,yf,Df,wf,bf,Sf,Cf,xf,Ef,If,kr,Ar,lf,Of,Pf,ce,$E,Sk],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1rem;margin-bottom:1rem}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.1rem}.buttons[_ngcontent-%COMP%] .mat-mdc-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-mdc-menu-item[_ngcontent-%COMP%]{height:2rem;line-height:2rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}.check[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1.5rem;width:1.5rem}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-mdc-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-mdc-menu-panel{min-height:3rem} .mat-mdc-menu-panel.mat-mdc-menu-panel{max-width:32rem} .mat-mdc-paginator-range-label{min-width:6em}.mat-mdc-menu-item[_ngcontent-%COMP%]{min-height:2.5rem} .dark-theme .mat-mdc-paginator-container{background-color:#303030} .dark-theme .buttons .mat-mdc-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}.mat-column-token[_ngcontent-%COMP%]{overflow-wrap:anywhere}']});let i=e;return i})();var Ek='pause'+django.gettext("Maintenance")+"",j$='pause'+django.gettext("Exit maintenance mode")+"",B$='pause'+django.gettext("Enter maintenance mode")+"",zy=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:Ek,type:ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.rest.providers.maintenance(n.id).then(()=>{t.table.overview()})})}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=Ek;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=j$:this.customButtons[0].html=B$}onDetail(t){this.api.navigation.gotoService(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-providers"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("customButtonAction",function(s){return o.onMaintenance(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("rowSelected",function(s){return o.onRowSelect(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".row-maintenance-true>mat-cell{color:#dc3131!important} .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center} .mat-column-maintenance_state{max-width:10rem;justify-content:center}"]});let i=e;return i})();var ao=class{constructor(e,r,t,n){this.title=e,this.data=r,this.columns=t,this.id=n,this.columnsDefinition=Array.from(t,o=>{let a={};return a[o.field]={visible:!0,title:o.title,type:o.type===void 0?pi.ALPHANUMERIC:o.type},a})}get(e){return Promise.resolve({})}getLogs(e){return Promise.resolve([])}overview(e){return typeof this.data=="function"?Promise.resolve(this.data()):Promise.resolve(this.data)}summary(e){return this.overview()}put(e,r){return Promise.resolve()}create(e){return Promise.resolve()}save(e,r){return Promise.resolve()}test(e,r){return Promise.resolve("")}delete(e){return Promise.resolve()}permision(){return Tr.ALL}getPermissions(e){return Promise.resolve([])}addPermission(e,r,t,n){return Promise.resolve({})}revokePermission(e){return Promise.resolve()}types(){return Promise.resolve([])}gui(e){return Promise.resolve({})}callback(e,r){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(e,r){return null}invoke(e,r){return Promise.resolve({})}};var z$=()=>[5,10,25,100,1e3];function U$(i,e){if(i&1){let r=A();l(0,"button",24),b("click",function(){y(r);let n=_();return n.filterText="",w(n.applyFilter())}),l(1,"i",8),g(2,"close"),d()()}}function H$(i,e){if(i&1&&(l(0,"mat-header-cell",28),g(1),d()),i&2){let r=_().$implicit;m(),He(r)}}function $$(i,e){if(i&1&&(l(0,"mat-cell"),I(1,"div",29),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_();m(),p("innerHtml",n.getRowColumn(r,t),Gt)}}function W$(i,e){if(i&1&&(ht(0,25),x(1,H$,2,1,"mat-header-cell",26)(2,$$,2,1,"mat-cell",27),pt()),i&2){let r=e.$implicit;p("matColumnDef",r)}}function G$(i,e){i&1&&I(0,"mat-header-row")}function q$(i,e){if(i&1&&I(0,"mat-row",30),i&2){let r=e.$implicit,t=_();p("ngClass",t.rowClass(r))}}var so=(()=>{let e=class e{constructor(t){this.api=t,this.rest={},this.itemId="",this.tableId="",this.pageSize=10,this.paginator={},this.sort={},this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new Lc([]),this.selection=new So}ngOnInit(){this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc";for(let t of this.displayedColumns){let n=t==="date"?pi.DATETIMESEC:pi.ALPHANUMERIC;this.columns.push({name:t,title:t,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()}overview(){return q(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(t,n){}getRowColumn(t,n){let o=t[n];return n==="date"?o=Bi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=cM(o)),o}rowClass(t){return["level-"+t.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)}export(){jf(this)}keyDown(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault();break}}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&(le(kr,7),le(Ar,7)),n&2){let a;Q(a=K())&&(o.paginator=a.first),Q(a=K())&&(o.sort=a.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"keyup","ngModelChange","ngModel"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"matSortChange","dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),I(3,"img",3),g(4," \xA0"),l(5,"uds-translate"),g(6,"Logs"),d()()(),l(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),b("click",function(){return o.export()}),l(11,"i",8),g(12,"import_export"),d(),l(13,"span",9)(14,"uds-translate"),g(15,"Export"),d()()()(),l(16,"div",10)(17,"div",11)(18,"uds-translate"),g(19,"Filter"),d(),g(20,"\xA0 "),l(21,"mat-form-field")(22,"input",12),b("keyup",function(){return o.applyFilter()}),H("ngModelChange",function(s){return $(o.filterText,s)||(o.filterText=s),s}),d(),x(23,U$,3,0,"button",13),d()(),l(24,"div",14),I(25,"mat-paginator",15),d(),l(26,"div",16)(27,"a",17),b("click",function(){return o.overview()}),l(28,"i",8),g(29,"autorenew"),d()()()()(),l(30,"div",18),b("keydown",function(s){return o.keyDown(s)}),l(31,"mat-table",19),b("matSortChange",function(s){return o.sortChanged(s)}),x(32,W$,3,1,"ng-container",20)(33,G$,1,0,"mat-header-row",21)(34,q$,1,1,"mat-row",22),d()(),I(35,"div",23),d()()),n&2&&(m(3),p("src",o.api.staticURL("admin/img/icons/logs.png"),Ee),m(19),U("ngModel",o.filterText),m(),p("ngIf",o.filterText),m(2),p("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Xs(11,z$))("showFirstLastButtons",!0),m(6),p("dataSource",o.dataSource),m(),p("ngForOf",o.displayedColumns),m(),p("matHeaderRowDef",o.displayedColumns),m(),p("matRowDefColumns",o.displayedColumns))},dependencies:[Cn,$e,he,ct,we,De,va,ke,dp,Wi,ge,oo,ft,vf,yf,Df,wf,bf,Sf,Cf,xf,Ef,If,kr,Ar,lf,ce],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{min-width:12rem;max-width:20rem}.mat-column-level[_ngcontent-%COMP%]{max-width:8rem;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:8rem} .level-60000>.mat-mdc-cell{color:#ff1e1e!important} .level-50000>.mat-mdc-cell{color:#ff1e1e!important} .level-40000>.mat-mdc-cell{color:#d65014!important}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}"]});let i=e;return i})();function Y$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services pools"),d())}function Q$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}var K$=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Ik=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.customButtons=[Ei.getGotoButton(Od,"id")],this.servicePools={},this.logs={},this.services=a.services,this.service=a.service}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let t=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new ao(django.gettext("Service pools"),t,K$,this.service.id+"infopsls")}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),x(7,Y$,2,0,"ng-template",1),I(8,"uds-table",2),d(),l(9,"mat-tab"),x(10,Q$,2,0,"ng-template",1),l(11,"div",3),I(12,"uds-logs-table",4),d()()()(),l(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),g(16,"Ok"),d()()()),n&2&&(m(3),P(" ",o.service.name,` -`),m(5),p("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),p("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[ke,Yt,Xe,et,Je,ei,ti,ni,ce,Te,so],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]});let i=e;return i})();function Z$(i,e){if(i&1&&(l(0,"div",3),I(1,"div",4)(2,"div",5),d()),i&2){let r=e.$implicit;m(),p("innerHTML",r.gui.label,Gt),m(),p("innerHTML",r.value,Gt)}}var co=(()=>{let e=class e{constructor(t){this.api=t,this.gui=[]}ngOnInit(){this.processFields()}processFields(){if(!this.gui||!this.value)return;let t=this.gui.filter(n=>n.gui.type!==Gi.HIDDEN);for(let n of t){let o=this.value[n.name];switch(n.gui.type){case Gi.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case Gi.PASSWORD:n.value=django.gettext("(hidden)");break;case Gi.CHOICE:{let a=Sd.locateChoice(o,n);n.value=a.text;break}case Gi.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case Gi.IMAGECHOICE:{let a=Sd.locateChoice(o,n);a.img&&(n.value=this.api.safeString(this.api.gui.icon(a.img)+" "+a.text));break}case Gi.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return t}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),x(2,Z$,3,2,"div",2),d(),I(3,"div"),d()),n&2&&(m(2),p("ngForOf",o.processFields()))},dependencies:[$e],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]});let i=e;return i})();var X$=i=>["/services","providers",i];function J$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function eW(i,e){if(i&1&&I(0,"uds-information",15),i&2){let r=_(2);p("value",r.provider)("gui",r.gui)}}function tW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services"),d())}function iW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Usage"),d())}function nW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}function oW(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),l(3,"mat-tab"),x(4,J$,2,0,"ng-template",9),l(5,"div",10),x(6,eW,1,2,"uds-information",11),d()(),l(7,"mat-tab"),x(8,tW,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNewService(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditService(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteService(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onInformation(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()(),l(11,"mat-tab"),x(12,iW,2,0,"ng-template",9),l(13,"div",10)(14,"uds-table",13),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()(),l(15,"mat-tab"),x(16,nW,2,0,"ng-template",9),l(17,"div",10),I(18,"uds-logs-table",14),d()()()()()}if(i&2){let r=_();m(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),m(4),p("ngIf",r.provider&&r.gui),m(4),p("rest",r.services)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","providers-d-services"+r.provider.id),m(4),p("rest",r.usage)("multiSelect",!0)("allowExport",!0)("pageSize",r.api.config.admin.page_size)("tableId","providers-d-usage"+r.provider.id),m(4),p("rest",r.services.parentModel)("itemId",r.provider.id)("tableId","providers-d-log"+r.provider.id)}}var Uy=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ut.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){let t=this.route.snapshot.paramMap.get("provider");t&&(this.services=this.rest.providers.detail(t,"services"),this.usage=this.rest.providers.detail(t,"usage"),this.services.parentModel.get(t).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(t){Ik.launch(this.api,this.services,t.table.selection.selected[0])}onNewService(t){let n=django.gettext("New service")+": "+(t.param.name||"");this.api.gui.forms.typedNewForm(t,n,!1)}onEditService(t){let n=django.gettext("Edit service")+": "+(t.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(t,n,!1)}onDeleteService(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("service");if(n!==void 0){this.selectedTab=1;let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-provider-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"newAction","editAction","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"],["icon","usage",3,"deleteAction","rest","multiSelect","allowExport","pageSize","tableId"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,oW,19,17,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,X$,o.services.parentId)),m(4),p("src",o.api.staticURL("admin/img/icons/services.png"),Ee),m(),P(" \xA0",o.provider==null?null:o.provider.name," "),m(),p("ngIf",o.provider!==null))},dependencies:[he,gi,ei,ti,ni,ce,Te,so,co]});let i=e;return i})();var Hy=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New server"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit server"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete server"))}onDetail(t){this.api.navigation.gotoServerDetail(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("server"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-servers"]],decls:1,vars:7,consts:[["tableId","server-groups-table","icon","servers",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","newGrouped","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();var Mk=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result=[],this.title="Import CSV",this.help="Select a CSV file to import",o&&(this.title=o.title||this.title,this.help=o.help||this.help)}static launch(t,n){return q(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",a=t.gui.dialog.open(e,{width:o,data:n,disableClose:!1});return new Promise((s,c)=>{a.afterClosed().subscribe(u=>{s({data:a.componentInstance.result})})})})}loadCSV(t){return q(this,null,function*(){let n=t.split(` -`).map(a=>a.trim());if(n.length>=1024)return console.log("Too many lines, do not loaded (max is 1024)"),[];this.contains_header&&(n=n.slice(1));let o=[];for(let a of n){let s=a.split(this.separator);s.length===1&&s[0]===""||o.push(s)}return o})}onFileChange(t){return q(this,null,function*(){let n=t.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,a=new Jt;o.onload=c=>{let u=o.result;a.resolve(u)},o.readAsText(n);let s=yield a;this.result=yield this.loadCSV(s)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-cvsimport"]],decls:57,vars:8,consts:[["fileUpload",""],["mat-dialog-title",""],[3,"innerHTML"],[1,"content"],[1,"options"],[1,"field"],[3,"valueChange","value"],[3,"value"],["value",","],["value",";"],["value","|"],["value","tab"],[1,"upload"],["type","file","accept",".csv",1,"file-input",3,"change"],["type","text","matInput","","readonly","readonly",3,"ngModelChange","click","ngModel","placeholder","matTooltip"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-raised-button","","mat-dialog-close","","color","warn",3,"click"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",1)(1,"uds-translate"),g(2,"CVS Import options for"),d(),g(3,"\xA0"),I(4,"b",2),d(),l(5,"mat-dialog-content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),g(12,"Header"),d()(),l(13,"mat-select",6),H("valueChange",function(c){return y(a),$(o.contains_header,c)||(o.contains_header=c),w(c)}),l(14,"mat-option",7)(15,"uds-translate"),g(16,"CSV contains header line"),d()(),l(17,"mat-option",7)(18,"uds-translate"),g(19,"CSV DOES NOT contains header line"),d()()()()(),l(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),g(24,"Separator"),d()(),l(25,"mat-select",6),H("valueChange",function(c){return y(a),$(o.separator,c)||(o.separator=c),w(c)}),l(26,"mat-option",8)(27,"uds-translate"),g(28,"Use comma"),d(),g(29," (,)"),d(),l(30,"mat-option",9)(31,"uds-translate"),g(32,"Use semicolon"),d(),g(33," (;)"),d(),l(34,"mat-option",10)(35,"uds-translate"),g(36,"Use pipe"),d(),g(37," (|)"),d(),l(38,"mat-option",11)(39,"uds-translate"),g(40,"Use tab"),d(),g(41," (tab)"),d()()()()()(),l(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),g(46,"File"),d()(),l(47,"input",13,0),b("change",function(c){return y(a),w(o.onFileChange(c))}),d(),l(49,"input",14),H("ngModelChange",function(c){return y(a),$(o.filename,c)||(o.filename=c),w(c)}),b("click",function(){y(a);let c=Ie(48);return w(c.click())}),d()()()(),l(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),g(53,"Ok"),d()(),l(54,"button",16),b("click",function(){return y(a),w(o.filename="")}),l(55,"uds-translate"),g(56,"Cancel"),d()()()}n&2&&(m(4),p("innerHTML",o.title,Gt),m(9),U("value",o.contains_header),m(),p("value",!0),m(3),p("value",!1),m(8),U("value",o.separator),m(24),U("ngModel",o.filename),p("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[ct,we,De,ke,tr,Yt,Xe,et,Je,ge,Ae,ft,vt,it,ce],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap;width:100%}.options[_ngcontent-%COMP%]{width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%!important}.mat-mdc-form-field[_ngcontent-%COMP%]{min-width:100%}.file-input[_ngcontent-%COMP%]{display:none}"]});let i=e;return i})();var rW=i=>["/services","servers",i];function aW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function sW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services"),d())}function cW(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,aW,2,0,"ng-template",9),l(5,"div",10),I(6,"uds-information",11),d()(),l(7,"mat-tab"),x(8,sW,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNew(n))})("editAction",function(n){y(r);let o=_();return w(o.onEdit(n))})("rowSelected",function(n){y(r);let o=_();return w(o.onRowSelect(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDelete(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.customButtonAction(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("value",r.server)("gui",r.gui),m(4),p("rest",r.servers)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","servers-d-servers"+r.server.id)}}var Tk='pause'+django.gettext("Maintenance")+"",lW='pause'+django.gettext("Exit maintenance mode")+"",dW='pause'+django.gettext("Enter maintenance mode")+"",uW='import_export'+django.gettext("Import CSV")+"",kk=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:Tk,type:ut.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("server");t&&(this.servers=this.rest.serverGroups.detail(t,"servers"),this.server=yield this.servers.parentModel.get(t),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:uW,type:ut.ALWAYS}))})}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.servers.get(n.id+"/maintenance").then(()=>{t.table.overview()})})}onImportCSV(t){return q(this,null,function*(){let n=yield Mk.launch(this.api,{title:django.gettext("Import Servers"),help:django.gettext('Format of file must be "hostname,ip,mac,...". All fields except hostname are optional. Separator can be configured.')});if(n.data.length==0)return;let o=yield this.servers.put({data:n.data},this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
-`)),t.table.overview()})}customButtonAction(t){return q(this,null,function*(){if(t.param.id=="maintenance")return yield this.onMaintenance(t);if(t.param.id=="import-csv")return yield this.onImportCSV(t)})}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New server"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit server"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove server from server group"),"hostname")}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=Tk;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=lW:this.customButtons[0].html=dW}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("server");if(n!==void 0){let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-server-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","servers",3,"newAction","editAction","rowSelected","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,cW,11,9,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,rW,o.servers.parentId)),m(4),p("src",o.api.staticURL("admin/img/icons/servers.png"),Ee),m(),P(" \xA0",o.server==null?null:o.server.name," "),m(),p("ngIf",o.server!==null))},dependencies:[he,gi,ei,ti,ni,ce,Te,co],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]});let i=e;return i})();var $y=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("authenticator")})}onDetail(t){return q(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(t.param.id)})}onNew(t){return q(this,null,function*(){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)})}onEdit(t){return q(this,null,function*(){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)})}onDelete(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))})}onLoad(t){return q(this,null,function*(){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))})}processElement(t){t.visible=this.api.boolAsHumanString(t.visible)}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","onItem","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var Wy=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("mfa")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New MFA"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit MFA"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete MFA"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("mfa"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-mfas"]],decls:2,vars:5,consts:[["icon","mfas",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var mW=["panel"],hW=["*"];function pW(i,e){if(i&1){let r=A();l(0,"div",1,0),b("@panelAnimation.done",function(n){y(r);let o=_();return w(o._animationDone.next(n))}),ae(2),d()}if(i&2){let r=e.id,t=_();qt(t._classList),ne("mat-mdc-autocomplete-visible",t.showPanel)("mat-mdc-autocomplete-hidden",!t.showPanel)("mat-primary",t._color==="primary")("mat-accent",t._color==="accent")("mat-warn",t._color==="warn"),p("id",t.id)("@panelAnimation",t.isOpen?"visible":"hidden"),ie("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(r))}}var fW=li("panelAnimation",[Pt("void, hidden",Me({opacity:0,transform:"scaleY(0.8)"})),xt(":enter, hidden => visible",[G1([Et("0.03s linear",Me({opacity:1})),Et("0.12s cubic-bezier(0, 0, 0.2, 1)",Me({transform:"scaleY(1)"}))])]),xt(":leave, visible => hidden",[Et("0.075s linear",Me({opacity:0}))])]),gW=0,Gy=class{constructor(e,r){this.source=e,this.option=r}},Ak=new O("mat-autocomplete-default-options",{providedIn:"root",factory:_W});function _W(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var Bc=(()=>{let e=class e{get isOpen(){return this._isOpen&&this.showPanel}_setColor(t){this._color=t,this._changeDetectorRef.markForCheck()}set classList(t){this._classList=t,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}constructor(t,n,o,a){this._changeDetectorRef=t,this._elementRef=n,this._defaults=o,this._activeOptionChanges=Ce.EMPTY,this._animationDone=new T,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new T,this.opened=new T,this.closed=new T,this.optionActivated=new T,this.id=`mat-autocomplete-${gW++}`,this.inertGroups=a?.SAFARI||!1,this.autoActiveFirstOption=!!o.autoActiveFirstOption,this.autoSelectActiveOption=!!o.autoSelectActiveOption,this.requireSelection=!!o.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Cc(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){let n=new Gy(this,t);this.optionSelected.emit(n)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;let n=t?t+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:t}_skipPredicate(){return!1}};e.\u0275fac=function(n){return new(n||e)(h(me),h(G),h(Ak),h(je))},e.\u0275cmp=S({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,it,5),Fe(a,yd,5)),n&2){let s;Q(s=K())&&(o.options=s),Q(s=K())&&(o.optionGroups=s)}},viewQuery:function(n,o){if(n&1&&(le(lt,7),le(mW,5)),n&2){let a;Q(a=K())&&(o.template=a.first),Q(a=K())&&(o.panel=a.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",Y],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Y],requireSelection:[2,"requireSelection","requireSelection",Y],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Y],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[be([{provide:bd,useExisting:e}]),ue,re],ngContentSelectors:hW,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(n,o){n&1&&(Ue(),x(0,pW,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[fW]},changeDetection:0});let i=e;return i})();var vW={provide:qi,useExisting:Wt(()=>fs),multi:!0};var Ok=new O("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function bW(i){return()=>i.scrollStrategies.reposition()}var yW={provide:Ok,deps:[Ct],useFactory:bW},fs=(()=>{let e=class e{constructor(t,n,o,a,s,c,u,f,v,C,D){this._element=t,this._overlay=n,this._viewContainerRef=o,this._zone=a,this._changeDetectorRef=s,this._dir=u,this._formField=f,this._document=v,this._viewportRuler=C,this._defaults=D,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ce.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new W,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new W,this._injector=k(Pe),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=Wn(()=>{let E=this.autocomplete?this.autocomplete.options:null;return E?E.changes.pipe(Ot(E),Mt(()=>yt(...E.map(R=>R.onSelectionChange)))):this._initialized.pipe(Mt(()=>this.optionSelections))}),this._handlePanelKeydown=E=>{(E.keyCode===27&&!Rt(E)||E.keyCode===38&&Rt(E,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),E.stopPropagation(),E.preventDefault())},this._trackedModal=null,this._scrollStrategy=c}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let t=this._getWindow();typeof t<"u"&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let t=this._getWindow();typeof t<"u"&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&ha(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return yt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(qe(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(qe(()=>this._overlayAttached)):oe()).pipe(de(t=>t instanceof vd?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return yt(cn(this._document,"click"),cn(this._document,"auxclick"),cn(this._document,"touchend")).pipe(qe(t=>{let n=mn(t),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,a=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(n))&&(!a||!a.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}writeValue(t){Promise.resolve(null).then(()=>this._assignOptionValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t,this._changeDetectorRef.markForCheck()}_handleKeydown(t){let n=t.keyCode,o=Rt(t);if(n===27&&!o&&t.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&n===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=n===38||n===40;n===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(t){let n=t.target,o=n.value;if(n.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let a=this.autocomplete.options?.find(s=>s.selected);if(a){let s=this._getDisplayValue(a.value);o!==s&&a.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===t.target){let a=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(a)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(t=!1){this._formField&&this._formField.floatLabel==="auto"&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let t=new Re(o=>{ri(()=>{o.next()},{injector:this._injector})}),n=this.autocomplete.options.changes.pipe(zt(()=>this._positionStrategy.reapplyLastPosition()),Br(0));return yt(t,n).pipe(Mt(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),It(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(t){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(t):t}_assignOptionValue(t){let n=this._getDisplayValue(t);t==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(t){this._formField?this._formField._control.value=t:this._element.nativeElement.value=t,this._previousValue=t}_setValueAndClose(t){let n=this.autocomplete,o=t?t.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),n._emitSelectEvent(o),this._element.nativeElement.focus()):n.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),n._animationDone?n._animationDone.pipe(It(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(t,n){this.autocomplete?.options?.forEach(o=>{o!==t&&o.selected&&o.deselect(n)})}_openPanelInternal(t=this._element.nativeElement.value){if(this._attachOverlay(t),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;Sc(this._trackedModal,"aria-owns",n)}}_attachOverlay(t){this.autocomplete;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new ki(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._valueOnAttach=t,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let t=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=t.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=t.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Sn({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],s;this.position==="above"?s=a:this.position==="below"?s=n:s=[...n,...a],t.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let t=this.autocomplete;if(t.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!t)return;let n=this.autocomplete.id;this._trackedModal&&ha(this._trackedModal,"aria-owns",n),Sc(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){if(this._trackedModal){let t=this.autocomplete.id;ha(this._trackedModal,"aria-owns",t),this._trackedModal=null}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Ct),h(wt),h(Z),h(me),h(Ok),h(kt,8),h(Mo,9),h(se,8),h(pn),h(Ak,8))},e.\u0275dir=N({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&b("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(s){return o._handleInput(s)})("keydown",function(s){return o._handleKeydown(s)})("click",function(){return o._handleClick()}),n&2&&ie("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Y]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[be([vW]),ue,Qe]});let i=e;return i})(),Rk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[yW],imports:[on,Mc,pe,Si,to,Mc,pe]});let i=e;return i})();function wW(i,e){if(i&1&&(l(0,"div")(1,"uds-translate"),g(2,"Edit user"),d(),g(3),d()),i&2){let r=_();m(3),P(" ",r.user.name," ")}}function CW(i,e){i&1&&(l(0,"uds-translate"),g(1,"New user"),d())}function xW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",19),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.name,n)||(o.user.name=n),w(n)}),d()()}if(i&2){let r=_();m(2),P(" ",r.authenticator.type_info.label_username," "),m(),U("ngModel",r.user.name),p("disabled",r.user.id)}}function DW(i,e){if(i&1&&(l(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),yr(" ",r.id," (",r.name,") ")}}function SW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",20),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.name,n)||(o.user.name=n),w(n)}),b("input",function(n){y(r);let o=_();return w(o.filterUser(n))}),d(),l(4,"mat-autocomplete",null,1),x(6,DW,2,3,"mat-option",16),d()()}if(i&2){let r=Ie(5),t=_();m(2),P(" ",t.authenticator.type_info.label_username," "),m(),U("ngModel",t.user.name),p("matAutocomplete",r),m(3),p("ngForOf",t.users)}}function EW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",22),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.password,n)||(o.user.password=n),w(n)}),d()()}if(i&2){let r=_();m(2),P(" ",r.authenticator.type_info.label_password," "),m(),U("ngModel",r.user.password)}}function IW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"MFA"),d()(),l(4,"input",23),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.mfa_data,n)||(o.user.mfa_data=n),w(n)}),d()()}if(i&2){let r=_();m(4),U("ngModel",r.user.mfa_data)}}function MW(i,e){if(i&1&&(l(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var Yy=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new T(!0),this.users=[],this.authenticator=a.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},a.user!==void 0&&(this.user.id=a.user.id,this.user.name=a.user.name)}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(t=>{this.groups=t}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(t=>{this.user=t,this.user.role=t.is_admin?"admin":t.staff_member?"staff":"user"},t=>{this.dialogRef.close()})}roleChanged(t){this.user.is_admin=t==="admin",this.user.staff_member=t==="admin"||t==="staff"}filterUser(t){let n=t.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(a=>{this.users.push(a)})})}save(){this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).then(t=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-new-user"]],decls:58,vars:12,consts:[["nousertitle",""],["auto","matAutocomplete"],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModelChange","ngModel"],["type","text","matInput","","autocomplete","new-comments",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","A"],["value","I"],[3,"ngModelChange","valueChange","ngModel"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",2),x(1,wW,4,1,"div",3)(2,CW,2,0,"ng-template",null,0,hi),d(),l(4,"mat-dialog-content")(5,"div",4),x(6,xW,4,3,"mat-form-field",5)(7,SW,7,4,"mat-form-field",5),l(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),g(11,"Real name"),d()(),l(12,"input",6),H("ngModelChange",function(c){return y(a),$(o.user.real_name,c)||(o.user.real_name=c),w(c)}),d()(),l(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),g(16,"Comments"),d()(),l(17,"input",7),H("ngModelChange",function(c){return y(a),$(o.user.comments,c)||(o.user.comments=c),w(c)}),d()(),l(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"State"),d()(),l(22,"mat-select",8),H("ngModelChange",function(c){return y(a),$(o.user.state,c)||(o.user.state=c),w(c)}),l(23,"mat-option",9)(24,"uds-translate"),g(25,"Enabled"),d()(),l(26,"mat-option",10)(27,"uds-translate"),g(28,"Disabled"),d()()()(),l(29,"mat-form-field")(30,"mat-label")(31,"uds-translate"),g(32,"Role"),d()(),l(33,"mat-select",11),H("ngModelChange",function(c){return y(a),$(o.user.role,c)||(o.user.role=c),w(c)}),b("valueChange",function(c){return y(a),w(o.roleChanged(c))}),l(34,"mat-option",12)(35,"uds-translate"),g(36,"Admin"),d()(),l(37,"mat-option",13)(38,"uds-translate"),g(39,"Staff member"),d()(),l(40,"mat-option",14)(41,"uds-translate"),g(42,"User"),d()()()(),x(43,EW,4,2,"mat-form-field",5)(44,IW,5,1,"mat-form-field",5),l(45,"mat-form-field")(46,"mat-label")(47,"uds-translate"),g(48,"Groups"),d()(),l(49,"mat-select",15),H("ngModelChange",function(c){return y(a),$(o.user.groups,c)||(o.user.groups=c),w(c)}),x(50,MW,2,2,"mat-option",16),d()()()(),l(51,"mat-dialog-actions")(52,"button",17)(53,"uds-translate"),g(54,"Cancel"),d()(),l(55,"button",18),b("click",function(){return y(a),w(o.save())}),l(56,"uds-translate"),g(57,"Ok"),d()()()}if(n&2){let a=Ie(3);m(),p("ngIf",o.user.id)("ngIfElse",a),m(5),p("ngIf",o.authenticator.type_info.search_users_supported===!1||o.user.id),m(),p("ngIf",o.authenticator.type_info.search_users_supported===!0&&!o.user.id),m(5),U("ngModel",o.user.real_name),m(5),U("ngModel",o.user.comments),m(5),U("ngModel",o.user.state),m(11),U("ngModel",o.user.role),m(10),p("ngIf",o.authenticator.type_info.needs_password),m(),p("ngIf",!o.authenticator.type_info.is_external),m(5),U("ngModel",o.user.groups),m(),p("ngForOf",o.groups)}},dependencies:[$e,he,ct,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,vt,it,Bc,fs,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function TW(i,e){if(i&1&&(l(0,"div")(1,"uds-translate"),g(2,"Edit group"),d(),g(3),d()),i&2){let r=_();m(3),P(" ",r.group.name," ")}}function kW(i,e){i&1&&(l(0,"uds-translate"),g(1,"New group"),d())}function AW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",14),H("ngModelChange",function(n){y(r);let o=_(2);return $(o.group.name,n)||(o.group.name=n),w(n)}),d()()}if(i&2){let r=_(2);m(2),P(" ",r.authenticator.type_info.label_groupname," "),m(),U("ngModel",r.group.name),p("disabled",r.group.id)}}function OW(i,e){if(i&1&&(l(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),yr(" ",r.id," (",r.name,") ")}}function RW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",15),H("ngModelChange",function(n){y(r);let o=_(2);return $(o.group.name,n)||(o.group.name=n),w(n)}),b("input",function(n){y(r);let o=_(2);return w(o.filterGroup(n))}),d(),l(4,"mat-autocomplete",null,3),x(6,OW,2,3,"mat-option",16),d()()}if(i&2){let r=Ie(5),t=_(2);m(2),P(" ",t.authenticator.type_info.label_groupname," "),m(),U("ngModel",t.group.name),p("matAutocomplete",r),m(3),p("ngForOf",t.fltrGroup)}}function PW(i,e){if(i&1&&(ht(0),x(1,AW,4,3,"mat-form-field",13)(2,RW,7,4,"mat-form-field",13),pt()),i&2){let r=_();m(),p("ngIf",r.authenticator.type_info.search_groups_supported===!1||r.group.id),m(),p("ngIf",r.authenticator.type_info.search_groups_supported===!0&&!r.group.id)}}function FW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"Meta group name"),d()(),l(4,"input",14),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.name,n)||(o.group.name=n),w(n)}),d()()}if(i&2){let r=_();m(4),U("ngModel",r.group.name),p("disabled",r.group.id)}}function NW(i,e){if(i&1&&(l(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function LW(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Service Pools"),d()(),l(5,"mat-select",18),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.pools,n)||(o.group.pools=n),w(n)}),x(6,NW,2,2,"mat-option",16),d()(),pt()}if(i&2){let r=_();m(5),U("ngModel",r.group.pools),m(),p("ngForOf",r.servicePools)}}function VW(i,e){if(i&1&&(l(0,"mat-option",17),g(1),d()),i&2){let r=_().$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function jW(i,e){if(i&1&&(ht(0),x(1,VW,2,2,"mat-option",20),pt()),i&2){let r=e.$implicit;m(),p("ngIf",r.type==="group")}}function BW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"Match mode"),d()(),l(4,"mat-select",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.meta_if_any,n)||(o.group.meta_if_any=n),w(n)}),l(5,"mat-option",17)(6,"uds-translate"),g(7,"Any group"),d()(),l(8,"mat-option",17)(9,"uds-translate"),g(10,"All groups"),d()()()(),l(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),g(14,"Selected Groups"),d()(),l(15,"mat-select",18),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.groups,n)||(o.group.groups=n),w(n)}),x(16,jW,2,1,"ng-container",19),d()()}if(i&2){let r=_();m(4),U("ngModel",r.group.meta_if_any),m(),p("value",!0),m(3),p("value",!1),m(7),U("ngModel",r.group.groups),m(),p("ngForOf",r.groups)}}var Qy=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=a.authenticator,this.group={id:void 0,type:a.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},a.group!==void 0&&(this.group.id=a.group.id,this.group.type=a.group.type,this.group.name=a.group.name)}static launch(t,n,o,a){let s=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:s,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:a},disableClose:!0}).componentInstance.onSave}ngOnInit(){let t=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&t.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?t.summary().then(n=>this.groups=n):this.rest.servicesPools.summary().then(n=>this.servicePools=n)}filterGroup(t){let n=t.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(a=>{this.fltrGroup.push(a)})})}getMatchValue(){return django.gettext("Match mode")+this.group.meta_if_any?django.gettext("Any"):django.gettext("All")}save(){this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).then(t=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-new-group"]],decls:46,vars:9,consts:[["nousertitle",""],["metafirst",""],["metasecond",""],["auto","matAutocomplete"],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],["type","text","matInput","",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","A"],["value","I"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",4),x(1,TW,4,1,"div",5)(2,kW,2,0,"ng-template",null,0,hi),d(),l(4,"mat-dialog-content")(5,"div",6),x(6,PW,3,2,"ng-container",5)(7,FW,5,2,"ng-template",null,1,hi),l(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),g(12,"Comments"),d()(),l(13,"input",7),H("ngModelChange",function(c){return y(a),$(o.group.comments,c)||(o.group.comments=c),w(c)}),d()(),l(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),g(17,"State"),d()(),l(18,"mat-select",8),H("ngModelChange",function(c){return y(a),$(o.group.state,c)||(o.group.state=c),w(c)}),l(19,"mat-option",9)(20,"uds-translate"),g(21,"Enabled"),d()(),l(22,"mat-option",10)(23,"uds-translate"),g(24,"Disabled"),d()()()(),l(25,"mat-form-field")(26,"mat-label")(27,"uds-translate"),g(28,"Skip MFA"),d()(),l(29,"mat-select",8),H("ngModelChange",function(c){return y(a),$(o.group.skip_mfa,c)||(o.group.skip_mfa=c),w(c)}),l(30,"mat-option",9)(31,"uds-translate"),g(32,"Enabled"),d()(),l(33,"mat-option",10)(34,"uds-translate"),g(35,"Disabled"),d()()()(),x(36,LW,7,2,"ng-container",5)(37,BW,17,5,"ng-template",null,2,hi),d()(),l(39,"mat-dialog-actions")(40,"button",11)(41,"uds-translate"),g(42,"Cancel"),d()(),l(43,"button",12),b("click",function(){return y(a),w(o.save())}),l(44,"uds-translate"),g(45,"Ok"),d()()()}if(n&2){let a=Ie(3),s=Ie(8),c=Ie(38);m(),p("ngIf",o.group.id)("ngIfElse",a),m(5),p("ngIf",o.group.type==="group")("ngIfElse",s),m(7),U("ngModel",o.group.comments),m(5),U("ngModel",o.group.state),m(11),U("ngModel",o.group.skip_mfa),m(7),p("ngIf",o.group.type==="group")("ngIfElse",c)}},dependencies:[$e,he,ct,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,vt,it,Bc,fs,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]});let i=e;return i})();function zW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function UW(i,e){if(i&1&&(l(0,"mat-tab"),x(1,zW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.group)("pageSize",6)}}function HW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services Pools"),d())}function $W(i,e){if(i&1&&(l(0,"mat-tab"),x(1,HW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.servicesPools)("pageSize",6)}}function WW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Assigned Services"),d())}function GW(i,e){if(i&1&&(l(0,"mat-tab"),x(1,WW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.userServices)("pageSize",6)}}var qW=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],YW=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],QW=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],Pk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=a.users,this.user=a.user}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).then(t=>{let n=()=>this.rest.authenticators.detail(this.users.parentId,"groups").overview().then(s=>s.filter(c=>t.groups.includes(c.id))),o=()=>this.users.invoke(this.user.id+"/servicesPools"),a=()=>this.users.invoke(this.user.id+"/userServices").then(s=>s.map(c=>(c.in_use=this.api.boolAsHumanString(c.in_use),c)));this.group=new ao(django.gettext("Groups"),n,qW,this.user.id+"infogrp"),this.servicesPools=new ao(django.gettext("Services Pools"),o,YW,this.user.id+"infopool"),this.userServices=new ao(django.gettext("Assigned services"),a,QW,this.user.id+"userservpool")})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"mat-tab-group"),x(6,UW,3,2,"mat-tab",1)(7,$W,3,2,"mat-tab",1)(8,GW,3,2,"mat-tab",1),d()(),l(9,"mat-dialog-actions")(10,"button",2)(11,"uds-translate"),g(12,"Ok"),d()()()),n&2&&(m(3),P(" ",o.user.name,` -`),m(3),p("ngIf",o.group),m(),p("ngIf",o.servicesPools),m(),p("ngIf",o.userServices))},dependencies:[he,ke,Yt,Xe,et,Je,ei,ti,ni,ce,Te],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();function KW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services Pools"),d())}function ZW(i,e){if(i&1&&(l(0,"mat-tab"),x(1,KW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.servicesPools)("pageSize",6)}}function XW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Users"),d())}function JW(i,e){if(i&1&&(l(0,"mat-tab"),x(1,XW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.users)("pageSize",6)}}function eG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function tG(i,e){if(i&1&&(l(0,"mat-tab"),x(1,eG,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.groups)("pageSize",6)}}var iG=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],nG=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:pi.DATETIME}],oG=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],Fk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.users={},this.groups={},this.servicesPools={}}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let t=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>t.invoke(this.data.group.id+"/servicesPools"),o=()=>t.invoke(this.data.group.id+"/users").then(a=>a.map(s=>(s.state=s.state==="A"?django.gettext("Enabled"):s.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),s)));if(this.servicesPools=new ao(django.gettext("Service pools"),n,iG,this.data.group.id+"infopls"),this.users=new ao(django.gettext("Users"),o,nG,this.data.group.id+"infousr"),this.data.group.type==="meta"){let a=()=>t.overview().then(s=>s.filter(c=>this.data.group.groups.includes(c.id)));this.groups=new ao(django.gettext("Groups"),a,oG,this.data.group.id+"infogrps")}}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d()(),l(3,"mat-dialog-content")(4,"mat-tab-group"),x(5,ZW,3,2,"mat-tab",1)(6,JW,3,2,"mat-tab",1)(7,tG,3,2,"mat-tab",1),d()(),l(8,"mat-dialog-actions")(9,"button",2)(10,"uds-translate"),g(11,"Ok"),d()()()),n&2&&(m(5),p("ngIf",o.servicesPools),m(),p("ngIf",o.users),m(),p("ngIf",o.groups))},dependencies:[he,ke,Yt,Xe,et,Je,ei,ti,ni,ce,Te],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var rG=i=>["/authenticators",i];function aG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function sG(i,e){if(i&1&&I(0,"uds-information",16),i&2){let r=_(2);p("value",r.authenticator)("gui",r.gui)}}function cG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Users"),d())}function lG(i,e){if(i&1){let r=A();l(0,"uds-table",17),b("loaded",function(n){y(r);let o=_(2);return w(o.onLoad(n))})("newAction",function(n){y(r);let o=_(2);return w(o.onNewUser(n))})("editAction",function(n){y(r);let o=_(2);return w(o.onEditUser(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteUser(n))})("customButtonAction",function(n){y(r);let o=_(2);return w(o.onUserCustom(n))}),d()}if(i&2){let r=_(2);p("rest",r.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+r.authenticator.id)("customButtons",r.usersCustomButtons)("pageSize",r.api.config.admin.page_size)}}function dG(i,e){if(i&1){let r=A();l(0,"uds-table",18),b("loaded",function(n){y(r);let o=_(2);return w(o.onLoad(n))})("editAction",function(n){y(r);let o=_(2);return w(o.onEditUser(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteUser(n))})("customButtonAction",function(n){y(r);let o=_(2);return w(o.onUserCustom(n))}),d()}if(i&2){let r=_(2);p("rest",r.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+r.authenticator.id)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)}}function uG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function mG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}function hG(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),l(3,"mat-tab"),x(4,aG,2,0,"ng-template",9),l(5,"div",10),x(6,sG,1,2,"uds-information",11),d()(),l(7,"mat-tab"),x(8,cG,2,0,"ng-template",9),l(9,"div",10),x(10,lG,1,6,"uds-table",12)(11,dG,1,6,"uds-table",13),d()(),l(12,"mat-tab"),x(13,uG,2,0,"ng-template",9),l(14,"div",10)(15,"uds-table",14),b("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))})("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onGroupInformation(n))}),d()()(),l(16,"mat-tab"),x(17,mG,2,0,"ng-template",9),l(18,"div",10),I(19,"uds-logs-table",15),d()()()()()}if(i&2){let r=_();m(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),m(4),p("ngIf",r.authenticator&&r.gui),m(4),p("ngIf",r.authenticator.type_info.create_users_supported),m(),p("ngIf",!r.authenticator.type_info.create_users_supported),m(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("tableId","authenticators-d-groups"+r.authenticator.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.rest.authenticators)("itemId",r.authenticator.id)("tableId","authenticators-d-log"+r.authenticator.id)}}var Uf=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ut.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ut.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:ut.ONLY_MENU}],this.authenticator=null,this.gui=[],this.users={},this.groups={},this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}ngOnInit(){let t=this.route.snapshot.paramMap.get("authenticator");t&&(this.users=this.rest.authenticators.detail(t,"users"),this.groups=this.rest.authenticators.detail(t,"groups"),this.rest.authenticators.get(t).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),a=n||o;t.table.selectElement("id",a)}}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(t){Yy.launch(this.api,this.authenticator).subscribe(n=>t.table.overview())}onEditUser(t){Yy.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteUser(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))}onNewGroup(t){Qy.launch(this.api,this.authenticator,t.param.type).subscribe(n=>t.table.overview())}onEditGroup(t){Qy.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteGroup(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))}onUserCustom(t){t.param.id==="info"?Pk.launch(this.api,this.users,t.table.selection.selected[0]):t.param.id==="clean-related"&&this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0).then(n=>()=>q(this,null,function*(){n&&(yield this.users.invoke(t.table.selection.selected[0].id+"/cleanRelated"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),t.table.overview())}))}onGroupInformation(t){Fk.launch(this.api,this.groups,t.table.selection.selected[0])}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","users",3,"loaded","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,hG,20,14,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,rG,o.authenticator?o.authenticator.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/services.png"),Ee),m(),P(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),p("ngIf",o.authenticator))},dependencies:[he,gi,ei,ti,ni,ce,Te,so,co]});let i=e;return i})();var Ky=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("osmanager")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var Zy=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("transport")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))}processElement(t){try{t.allowed_oss=t.allowed_oss.map(n=>n.id).join(", ")}catch{t.allowed_oss=""}}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Te],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]});let i=e;return i})();var Xy=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("network")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var Jy=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New tunnel"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit tunnel"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete tunnel"))}onDetail(t){this.api.navigation.gotoTunnelDetail(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("tunnel"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-tunnels"]],decls:1,vars:6,consts:[["tableId","tunnels-table","icon","providers",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();function pG(i,e){if(i&1&&(l(0,"mat-option",7),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var Nk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=a.availableTunnelServers,this.tunnelId=a.tunnelId}static launch(t,n,o){return q(this,null,function*(){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return q(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let t=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&t.push(n);return t}save(){return q(this,null,function*(){if(this.serverId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid server"));return}this.dialogRef.close(),this.done.resolve(!0),yield this.rest.tunnels.assign(this.tunnelId,this.serverId)})}cancel(){return q(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-new-tunnel"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Assign new server to tunnel group"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Tunnel"),d()(),l(9,"mat-select",2),H("ngModelChange",function(s){return $(o.serverId,s)||(o.serverId=s),s}),l(10,"uds-cond-select-search",3),b("changed",function(s){return o.tunnelFilter=s}),d(),x(11,pG,2,2,"mat-option",4),d()()()(),l(12,"mat-dialog-actions")(13,"button",5),b("click",function(){return o.cancel()}),l(14,"uds-translate"),g(15,"Cancel"),d()(),l(16,"button",6),b("click",function(){return o.save()}),l(17,"uds-translate"),g(18,"Ok"),d()()()),n&2&&(m(9),U("ngModel",o.serverId),m(),p("options",o.availTunnelServers),m(),p("ngForOf",o.filteredTunnels()))},dependencies:[$e,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var fG=i=>["/connectivity","tunnels",i];function gG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function _G(i,e){i&1&&(l(0,"uds-translate"),g(1,"Tunnel servers"),d())}function vG(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,gG,2,0,"ng-template",9),l(5,"div",10),I(6,"uds-information",11),d()(),l(7,"mat-tab"),x(8,_G,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNew(n))})("rowSelected",function(n){y(r);let o=_();return w(o.onRowSelect(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDelete(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onMaintenance(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("value",r.tunnel)("gui",r.gui),m(4),p("rest",r.servers)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","tunnels-d-servers"+r.tunnel.id)}}var Lk='pause'+django.gettext("Maintenance")+"",bG='pause'+django.gettext("Exit maintenance mode")+"",yG='pause'+django.gettext("Enter maintenance mode")+"",Vk=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:Lk,type:ut.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("tunnel");t&&(this.servers=this.rest.tunnels.detail(t,"servers"),this.tunnel=yield this.servers.parentModel.get(t),this.gui=yield this.servers.parentModel.gui(),console.log(this.gui),console.log(this.tunnel))})}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.servers.get(n.id+"/maintenance").then(()=>{t.table.overview()})})}onNew(t){return q(this,null,function*(){let n=yield this.rest.tunnels.tunnels(this.tunnel.id);n.length==0?this.api.gui.alert(django.gettext("Error"),django.gettext("This tunnel already has all the tunnel servers available")):(yield Nk.launch(this.api,this.tunnel.id,n))===!0&&t.table.overview()})}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member from tunnel"))}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=Lk;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=bG:this.customButtons[0].html=yG}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("tunnel");if(n!==void 0){let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-tunnels-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"newAction","rowSelected","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,vG,11,9,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,fG,o.servers.parentId)),m(4),p("src",o.api.staticURL("admin/img/icons/tunnels.png"),Ee),m(),P(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),p("ngIf",o.tunnel!==null))},dependencies:[he,gi,ei,ti,ni,ce,Te,co],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]});let i=e;return i})();var ew=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[Ei.getGotoButton(hy,"provider_id"),Ei.getGotoButton(py,"provider_id","service_id"),Ei.getGotoButton(_y,"osmanager_id"),Ei.getGotoButton(vy,"pool_group_id")],this.editing=!1}ngOnInit(){return q(this,null,function*(){})}onChange(t){return q(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(t.on===null||t.on.field.name==="service_id"){if(t.all.service_id.value===""){t.all.osmanager_id.gui.choices=[];for(let a of n)t.all[a].gui.readonly=!0;t.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(t.all.service_id.value);if(t.all.allow_users_reset.gui.readonly=!o.info.can_reset,t.all.osmanager_id.gui.choices=[],this.editing||(t.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let a=yield this.rest.osManagers.overview(),s=[];for(let c of a)for(let u of c.servicesTypes)o.info.services_type_provided==u&&s.push({id:c.id,text:c.name});s.length>0?t.all.osmanager_id.value=t.all.osmanager_id.value||s[0].id:t.all.osmanager_id.value="",t.all.osmanager_id.gui.choices=s}else t.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],t.all.osmanager_id.value="";for(let a of n)t.all[a].gui.readonly=!o.info.uses_cache;t.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,t.all.publish_on_save&&(t.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(t){return q(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Gi.CHECKBOX,order:150,default:"true"}}],this.onChange.bind(this))})}onEdit(t){return q(this,null,function*(){return this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))})}onDelete(t){return q(this,null,function*(){return this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))})}processElement(t){t.visible=this.api.boolAsHumanString(t.visible),t.show_transports=this.api.boolAsHumanString(t.show_transports),t.restrained?(t.name='warning '+this.api.gui.icon(t.info.icon)+t.name,t.state="T"):(t.name=this.api.gui.icon(t.info.icon)+t.name,t.meta_member.length>0&&(t.state="V")),t.name=this.api.safeString(t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)}onDetail(t){this.api.navigation.gotoServicePoolDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]});let i=e;return i})();function wG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function CG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var Hf=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=a.userService,this.userServices=a.userServices}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.auths=yield this.rest.authenticators.summary(),this.authChanged()})}changeAuth(t){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let t=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&t.push(n)}),t}save(){if(this.userId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"));return}this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return q(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").summary():this.users=[]})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Change owner of assigned service"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Authenticator"),d()(),l(9,"mat-select",2),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),x(10,wG,2,2,"mat-option",3),d()(),l(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),g(14,"User"),d()(),l(15,"mat-select",4),H("ngModelChange",function(s){return $(o.userId,s)||(o.userId=s),s}),l(16,"uds-cond-select-search",5),b("changed",function(s){return o.userFilter=s}),d(),x(17,CG,2,2,"mat-option",3),d()()()(),l(18,"mat-dialog-actions")(19,"button",6),b("click",function(){return o.cancel()}),l(20,"uds-translate"),g(21,"Cancel"),d()(),l(22,"button",7),b("click",function(){return o.save()}),l(23,"uds-translate"),g(24,"Ok"),d()()()),n&2&&(m(9),U("ngModel",o.authId),m(),p("ngForOf",o.auths),m(5),U("ngModel",o.userId),m(),p("options",o.users),m(),p("ngForOf",o.filteredUsers()))},dependencies:[$e,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function xG(i,e){i&1&&(l(0,"uds-translate"),g(1,"New access rule for"),d())}function DG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Edit access rule for"),d())}function SG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Default fallback access for"),d())}function EG(i,e){if(i&1&&(l(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function IG(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Priority"),d()(),l(5,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.accessRule.priority,n)||(o.accessRule.priority=n),w(n)}),d()(),l(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Calendar"),d()(),l(10,"mat-select",3),H("ngModelChange",function(n){y(r);let o=_();return $(o.accessRule.calendarId,n)||(o.accessRule.calendarId=n),w(n)}),l(11,"uds-cond-select-search",9),b("changed",function(n){y(r);let o=_();return w(o.calendarsFilter=n)}),d(),x(12,EG,2,2,"mat-option",10),d()(),pt()}if(i&2){let r=_();m(5),U("ngModel",r.accessRule.priority),m(5),U("ngModel",r.accessRule.calendarId),m(),p("options",r.calendars),m(),p("ngForOf",r.filtered(r.calendars,r.calendarsFilter))}}var zc=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.calendars=[],this.calendarsFilter="",this.pool=a.pool,this.model=a.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},a.accessRule&&(this.accessRule.id=a.accessRule.id)}static launch(t,n,o,a){let s=window.innerWidth<800?"80%":"60%";return t.gui.dialog.open(e,{width:s,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:a},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.summary().then(t=>{this.calendars=t}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(t=>{this.accessRule=t}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(t=>this.accessRule.access=t)}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}save(){let t=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(t):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(t)}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModelChange","ngModel"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0),x(1,xG,2,0,"uds-translate",1)(2,DG,2,0,"uds-translate",1)(3,SG,2,0,"uds-translate",1),g(4),d(),l(5,"mat-dialog-content")(6,"div",2),x(7,IG,13,4,"ng-container",1),l(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),g(11,"Action"),d()(),l(12,"mat-select",3),H("ngModelChange",function(s){return $(o.accessRule.access,s)||(o.accessRule.access=s),s}),l(13,"mat-option",4),g(14," ALLOW "),d(),l(15,"mat-option",5),g(16," DENY "),d()()()()(),l(17,"mat-dialog-actions")(18,"button",6)(19,"uds-translate"),g(20,"Cancel"),d()(),l(21,"button",7),b("click",function(){return o.save()}),l(22,"uds-translate"),g(23,"Ok"),d()()()),n&2&&(m(),p("ngIf",o.accessRule.id===void 0),m(),p("ngIf",o.accessRule.id!==void 0&&o.accessRule.id!==-1),m(),p("ngIf",o.accessRule.id===-1),m(),P(" ",o.pool.name,` -`),m(3),p("ngIf",o.accessRule.id!==-1),m(5),U("ngModel",o.accessRule.access))},dependencies:[$e,he,ct,Vn,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function MG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function TG(i,e){if(i&1&&(ht(0),g(1),pt()),i&2){let r=_().$implicit;m(),P(" (",r.comments,")")}}function kG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),x(2,TG,2,1,"ng-container",9),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name,""),m(),p("ngIf",r.comments)}}var $f=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=a.pool,this.model=a.model}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.auths=yield this.rest.authenticators.summary()})}changeAuth(t){return q(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(t=>(t.name+t.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(t=>t.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return q(this,null,function*(){if(this.groupId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"));return}yield this.model.create({id:this.groupId}),this.dialogRef.close(),this.done.resolve(!0)})}cancel(){return q(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return q(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").summary():this.groups=[]})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-add-group"]],decls:27,vars:7,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"New group for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Authenticator"),d()(),l(10,"mat-select",2),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),l(11,"uds-cond-select-search",3),b("changed",function(s){return o.authFilter=s}),d(),x(12,MG,2,2,"mat-option",4),d()(),l(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),g(16,"Group"),d()(),l(17,"mat-select",5),H("ngModelChange",function(s){return $(o.groupId,s)||(o.groupId=s),s}),l(18,"uds-cond-select-search",3),b("changed",function(s){return o.groupFilter=s}),d(),x(19,kG,3,3,"mat-option",4),d()()()(),l(20,"mat-dialog-actions")(21,"button",6),b("click",function(){return o.cancel()}),l(22,"uds-translate"),g(23,"Cancel"),d()(),l(24,"button",7),b("click",function(){return o.save()}),l(25,"uds-translate"),g(26,"Ok"),d()()()),n&2&&(m(3),P(" ",o.pool.name,""),m(7),U("ngModel",o.authId),m(),p("options",o.auths),m(),p("ngForOf",o.filteredAuths()),m(5),U("ngModel",o.groupId),m(),p("options",o.groups),m(),p("ngForOf",o.filteredGroups()))},dependencies:[$e,he,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function AG(i,e){if(i&1&&(ht(0),g(1),pt()),i&2){let r=_().$implicit;m(),P(" (",r.comments,")")}}function OG(i,e){if(i&1&&(l(0,"mat-option",7),g(1),x(2,AG,2,1,"ng-container",8),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name,""),m(),p("ngIf",r.comments)}}var jk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.transports=(yield this.rest.transports.summary()).filter(t=>this.servicePool.info.allowed_protocols.includes(t.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(t=>t.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return q(this,null,function*(){if(this.transportId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"));return}yield this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}),this.done.resolve(!0),this.dialogRef.close()})}cancel(){return q(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"New transport for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Transport"),d()(),l(10,"mat-select",2),H("ngModelChange",function(s){return $(o.transportId,s)||(o.transportId=s),s}),l(11,"uds-cond-select-search",3),b("changed",function(s){return o.transportsFilter=s}),d(),x(12,OG,3,3,"mat-option",4),d()()()(),l(13,"mat-dialog-actions")(14,"button",5),b("click",function(){return o.cancel()}),l(15,"uds-translate"),g(16,"Cancel"),d()(),l(17,"button",6),b("click",function(){return o.save()}),l(18,"uds-translate"),g(19,"Ok"),d()()()),n&2&&(m(3),P(" ",o.servicePool.name,""),m(7),U("ngModel",o.transportId),m(),p("options",o.transports),m(),p("ngForOf",o.filteredTransports()))},dependencies:[$e,he,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var Bk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.reason="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){}save(){this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"New publication for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Comments"),d()(),l(10,"input",2),H("ngModelChange",function(s){return $(o.reason,s)||(o.reason=s),s}),d()()()(),l(11,"mat-dialog-actions")(12,"button",3),b("click",function(){return o.cancel()}),l(13,"uds-translate"),g(14,"Cancel"),d()(),l(15,"button",4),b("click",function(){return o.save()}),l(16,"uds-translate"),g(17,"Ok"),d()()()),n&2&&(m(3),P(" ",o.servicePool.name,` -`),m(7),U("ngModel",o.reason))},dependencies:[ct,we,De,ke,Xe,et,Je,ge,Ae,ft,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var zk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.changeLogPubs={},this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"80%":"60%",a=t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})}ngOnInit(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["changeLog",""],["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(n,o){n&1&&(l(0,"h4",1)(1,"uds-translate"),g(2,"Changelog of"),d(),g(3),d(),l(4,"mat-dialog-content"),I(5,"uds-table",2,0),d(),l(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),g(10,"Ok"),d()()()),n&2&&(m(3),P(" ",o.servicePool.name,` -`),m(2),p("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[ke,Yt,Xe,et,Je,ce,Te],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var RG=["switch"],PG=["*"];function FG(i,e){i&1&&(l(0,"div",10),vi(),l(1,"svg",12),I(2,"path",13),d(),l(3,"svg",14),I(4,"path",15),d()())}var NG=new O("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),LG={provide:qi,useExisting:Wt(()=>nr),multi:!0},Wf=class{constructor(e,r){this.source=e,this.checked=r}},VG=0,nr=(()=>{let e=class e{_createChangeEvent(t){return new Wf(this,t)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(t){this._checked=t,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,n,o,a,s,c){this._elementRef=t,this._focusMonitor=n,this._changeDetectorRef=o,this.defaults=s,this._onChange=u=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new T,this.toggleChange=new T,this.tabIndex=parseInt(a)||0,this.color=s.color||"accent",this._noopAnimations=c==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++VG}`,this.hideIcon=s.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t==="keyboard"||t==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(t){t.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorOnChange=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Wf(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(n){return new(n||e)(h(G),h(wi),h(me),mi("tabindex"),h(NG),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&le(RG,5),n&2){let a;Q(a=K())&&(o._switchElement=a.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(Di("id",o.id),ie("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",Y],color:"color",disabled:[2,"disabled","disabled",Y],disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Zt(t)],checked:[2,"checked","checked",Y],hideIcon:[2,"hideIcon","hideIcon",Y]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[be([LG,{provide:no,useExisting:e,multi:!0}]),ue,Qe,re],ngContentSelectors:PG,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"div",1)(1,"button",2,0),b("click",function(){return y(a),w(o._handleClick())}),I(3,"div",3),l(4,"div",4)(5,"div",5)(6,"div",6),I(7,"div",7),d(),l(8,"div",8),I(9,"div",9),d(),x(10,FG,5,0,"div",10),d()()(),l(11,"label",11),b("click",function(c){return y(a),w(c.stopPropagation())}),ae(12),d()()}if(n&2){let a=Ie(2);p("labelPosition",o.labelPosition),m(),ne("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled),p("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled),ie("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked),m(8),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),xe(o.hideIcon?-1:10),m(),p("for",o.buttonId),ie("id",o._labelId)}},dependencies:[Mn,op],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color);font-family:var(--mat-switch-label-text-font);line-height:var(--mat-switch-label-text-line-height);font-size:var(--mat-switch-label-text-size);letter-spacing:var(--mat-switch-label-text-tracking);font-weight:var(--mat-switch-label-text-weight)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Uk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[nr,pe,pe]});let i=e;return i})();var jG=()=>["transport","group","bool"];function BG(i,e){i&1&&(ht(0),l(1,"uds-translate"),g(2,"Edit action for"),d(),pt())}function zG(i,e){i&1&&(l(0,"uds-translate"),g(1,"New action for"),d())}function UG(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function HG(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.description," ")}}function $G(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function WG(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Transport"),d()(),l(5,"mat-select",4),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),l(6,"uds-cond-select-search",5),b("changed",function(n){y(r);let o=_();return w(o.transportsFilter=n)}),d(),x(7,$G,2,2,"mat-option",6),d()(),pt()}if(i&2){let r=_();m(5),U("ngModel",r.paramValue),m(),p("options",r.transports),m(),p("ngForOf",r.filtered(r.transports,r.transportsFilter))}}function GG(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function qG(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit,t=_(2);p("value",t.authenticator+"@"+r.id),m(),P(" ",r.name," ")}}function YG(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Authenticator"),d()(),l(5,"mat-select",9),H("ngModelChange",function(n){y(r);let o=_();return $(o.authenticator,n)||(o.authenticator=n),w(n)}),b("valueChange",function(n){y(r);let o=_();return w(o.authenticatorChangedTo(n))}),x(6,GG,2,2,"mat-option",6),d()(),l(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),g(10,"Group"),d()(),l(11,"mat-select",4),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),l(12,"uds-cond-select-search",5),b("changed",function(n){y(r);let o=_();return w(o.groupsFilter=n)}),d(),x(13,qG,2,2,"mat-option",6),d()(),pt()}if(i&2){let r=_();m(5),U("ngModel",r.authenticator),m(),p("ngForOf",r.authenticators),m(5),U("ngModel",r.paramValue),m(),p("options",r.groups),m(),p("ngForOf",r.filtered(r.groups,r.groupsFilter))}}function QG(i,e){if(i&1){let r=A();ht(0),l(1,"div",14)(2,"span",15),g(3),d(),g(4,"\xA0 "),l(5,"mat-slide-toggle",4),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),d()(),pt()}if(i&2){let r=_();m(3),He(r.parameter.description),m(2),U("ngModel",r.paramValue)}}function KG(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",16),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),d()(),pt()}if(i&2){let r=_();m(3),P(" ",r.parameter.description," "),m(),p("type",r.parameter.type),U("ngModel",r.paramValue)}}var tw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=a.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},a.scheduledAction!==void 0&&(this.scheduledAction.id=a.scheduledAction.id)}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.summary().then(t=>this.authenticators=t),this.rest.transports.summary().then(t=>this.transports=t),this.rest.calendars.summary().then(t=>this.calendars=t),this.rest.servicesPools.actionsList(this.servicePool.id).then(t=>{this.actionList=t,this.actionList.forEach(n=>{this.paramsDict[n.id]=n.params[0]}),this.scheduledAction.id!==void 0&&this.rest.servicesPools.detail(this.servicePool.id,"actions").get(this.scheduledAction.id).then(n=>{this.scheduledAction=n,this.actionChangedTo(this.scheduledAction.action)})})}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}actionChangedTo(t){if(this.parameter=this.paramsDict[t],this.parameter!==void 0&&(this.paramValue=this.scheduledAction.params[this.parameter.name],this.paramValue===void 0&&(this.parameter.default!==!1?this.paramValue=this.parameter.default||"":this.paramValue=!1),this.parameter.type==="group")){let n=this.paramValue.split("@");n.length!==2&&(n=["",""]),this.authenticator=n[0],this.authenticatorChangedTo(this.authenticator)}}authenticatorChangedTo(t){return q(this,null,function*(){t&&(this.groups=yield this.rest.authenticators.detail(t,"groups").summary())})}save(){return q(this,null,function*(){this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),yield this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction),this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-scheduled-action"]],decls:40,vars:15,consts:[["editTitle",""],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"mat-form-field-infix"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",1),x(1,BG,3,0,"ng-container",2)(2,zG,2,0,"ng-template",null,0,hi),g(4),d(),l(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),g(10,"Calendar"),d()(),l(11,"mat-select",4),H("ngModelChange",function(c){return y(a),$(o.scheduledAction.calendar_id,c)||(o.scheduledAction.calendar_id=c),w(c)}),l(12,"uds-cond-select-search",5),b("changed",function(c){return y(a),w(o.calendarsFilter=c)}),d(),x(13,UG,2,2,"mat-option",6),d()(),l(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),g(17,"Events offset (minutes)"),d()(),l(18,"input",7),H("ngModelChange",function(c){return y(a),$(o.scheduledAction.events_offset,c)||(o.scheduledAction.events_offset=c),w(c)}),d()(),l(19,"div",8)(20,"mat-slide-toggle",4),H("ngModelChange",function(c){return y(a),$(o.scheduledAction.at_start,c)||(o.scheduledAction.at_start=c),w(c)}),l(21,"uds-translate"),g(22,"At the beginning of the interval?"),d()()(),l(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),g(26,"Action"),d()(),l(27,"mat-select",9),H("ngModelChange",function(c){return y(a),$(o.scheduledAction.action,c)||(o.scheduledAction.action=c),w(c)}),b("valueChange",function(c){return y(a),w(o.actionChangedTo(c))}),x(28,HG,2,2,"mat-option",6),d()(),x(29,WG,8,3,"ng-container",10)(30,YG,14,5,"ng-container",10)(31,QG,6,2,"ng-container",10)(32,KG,5,3,"ng-container",10),d()(),l(33,"mat-dialog-actions")(34,"button",11)(35,"uds-translate"),g(36,"Cancel"),d()(),l(37,"button",12),b("click",function(){return y(a),w(o.save())}),l(38,"uds-translate"),g(39,"Ok"),d()()()}if(n&2){let a=Ie(3);m(),p("ngIf",o.scheduledAction.id!==void 0)("ngIfElse",a),m(3),P(" ",o.servicePool.name,` -`),m(7),U("ngModel",o.scheduledAction.calendar_id),m(),p("options",o.calendars),m(),p("ngForOf",o.filtered(o.calendars,o.calendarsFilter)),m(5),U("ngModel",o.scheduledAction.events_offset),m(2),U("ngModel",o.scheduledAction.at_start),m(7),U("ngModel",o.scheduledAction.action),m(),p("ngForOf",o.actionList),m(),p("ngIf",(o.parameter==null?null:o.parameter.type)==="transport"),m(),p("ngIf",(o.parameter==null?null:o.parameter.type)==="group"),m(),p("ngIf",(o.parameter==null?null:o.parameter.type)==="bool"),m(),p("ngIf",(o.parameter==null?null:o.parameter.type)&&!Xs(14,jG).includes(o.parameter.type))}},dependencies:[$e,he,ct,Vn,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,vt,it,nr,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var Ld=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.userService=a.userService,this.model=a.model}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o},disableClose:!1})}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Logs of"),d(),g(3),d(),l(4,"mat-dialog-content"),I(5,"uds-logs-table",1),d(),l(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),g(9,"Ok"),d()()()),n&2&&(m(3),P(" ",o.userService.name,` -`),m(2),p("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[ke,Yt,Xe,et,Je,ce,so],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();function ZG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}function XG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function JG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var Hk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.authId="",this.userId="";let t=yield this.rest.authenticators.summary(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=t,this.assignablesServices=n})}changeAuth(t){return q(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let t=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&t.push(n)}),t}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let t=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&t.push(n)}),t}save(){return q(this,null,function*(){if(this.userId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"));return}this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).then(t=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return q(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").summary())})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","selectionChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Assign service to user manually"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Service"),d()(),l(9,"mat-select",2),H("ngModelChange",function(s){return $(o.serviceId,s)||(o.serviceId=s),s}),l(10,"uds-cond-select-search",3),b("changed",function(s){return o.assignablesServicesFilter=s}),d(),x(11,ZG,2,2,"mat-option",4),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Authenticator"),d()(),l(16,"mat-select",5),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),x(17,XG,2,2,"mat-option",4),d()(),l(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"User"),d()(),l(22,"mat-select",2),H("ngModelChange",function(s){return $(o.userId,s)||(o.userId=s),s}),l(23,"uds-cond-select-search",3),b("changed",function(s){return o.userFilter=s}),d(),x(24,JG,2,2,"mat-option",4),d()()()(),l(25,"mat-dialog-actions")(26,"button",6),b("click",function(){return o.cancel()}),l(27,"uds-translate"),g(28,"Cancel"),d()(),l(29,"button",7),b("click",function(){return o.save()}),l(30,"uds-translate"),g(31,"Ok"),d()()()),n&2&&(m(9),U("ngModel",o.serviceId),m(),p("options",o.assignablesServices),m(),p("ngForOf",o.filteredAssignables()),m(5),U("ngModel",o.authId),m(),p("ngForOf",o.auths),m(5),U("ngModel",o.userId),m(),p("options",o.users),m(),p("ngForOf",o.filteredUsers()))},dependencies:[$e,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var Wk=Zd(Vf());var $k=(()=>{let e=class e{constructor(t){this.rest=t,this.poolUuid="",this.options={},this.chart=null}onResize(t){this.chart&&this.chart.resize()}ngOnInit(){return q(this,null,function*(){let t=yield this.rest.system.stats("complete",this.poolUuid);this.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:t.assigned.map(n=>Bi("SHORT_DATETIME_FORMAT",new Date(n.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.assigned.map(n=>n.value)},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.cached.map(n=>n.value)},{name:django.gettext("In use"),type:"line",smooth:!0,data:t.inuse.map(n=>n.value)}]}})}chartInit(t){this.chart=t}};e.\u0275fac=function(n){return new(n||e)(h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-charts"]],hostBindings:function(n,o){n&1&&b("resize",function(s){return o.onResize(s)},!1,Vm)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"chartInit","options"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),b("chartInit",function(s){return o.chartInit(s)}),d()()),n&2&&(m(),p("options",o.options))},dependencies:[nf]});let i=e;return i})();var t7=i=>["/pools","service-pools",i];function i7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function n7(i,e){if(i&1&&I(0,"uds-information",20),i&2){let r=_(2);p("value",r.servicePool)("gui",r.gui)}}function o7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Assigned services"),d())}function r7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Cache"),d())}function a7(i,e){if(i&1){let r=A();l(0,"mat-tab"),x(1,r7,2,0,"ng-template",9),l(2,"div",10)(3,"uds-table",21),b("customButtonAction",function(n){y(r);let o=_(2);return w(o.onCustomCached(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteCache(n))}),d()()()}if(i&2){let r=_(2);m(3),p("rest",r.cache)("multiSelect",!0)("allowExport",!0)("onItem",r.processsCacheElement)("tableId","servicePools-d-cache"+r.servicePool.id)("customButtons",r.customButtonsCachedServices)("pageSize",r.api.config.admin.page_size)}}function s7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function c7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Transports"),d())}function l7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Publications"),d())}function d7(i,e){if(i&1){let r=A();l(0,"mat-tab"),x(1,l7,2,0,"ng-template",9),l(2,"div",10)(3,"uds-table",22),b("customButtonAction",function(n){y(r);let o=_(2);return w(o.onCustomPublication(n))})("newAction",function(n){y(r);let o=_(2);return w(o.onNewPublication(n))})("rowSelected",function(n){y(r);let o=_(2);return w(o.onPublicationRowSelect(n))}),d()()()}if(i&2){let r=_(2);m(3),p("rest",r.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+r.servicePool.id)("customButtons",r.customButtonsPublication)("pageSize",r.api.config.admin.page_size)}}function u7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Scheduled actions"),d())}function m7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Access calendars"),d())}function h7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Charts"),d())}function p7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}function f7(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),l(3,"mat-tab"),x(4,i7,2,0,"ng-template",9),l(5,"div",10),x(6,n7,1,2,"uds-information",11),d()(),l(7,"mat-tab"),x(8,o7,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomAssigned(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAssigned(n))}),d()()(),x(11,a7,4,7,"mat-tab",13),l(12,"mat-tab"),x(13,s7,2,0,"ng-template",9),l(14,"div",10)(15,"uds-table",14),b("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))}),d()()(),l(16,"mat-tab"),x(17,c7,2,0,"ng-template",9),l(18,"div",10)(19,"uds-table",15),b("newAction",function(n){y(r);let o=_();return w(o.onNewTransport(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteTransport(n))}),d()()(),x(20,d7,4,6,"mat-tab",13),l(21,"mat-tab"),x(22,u7,2,0,"ng-template",9),l(23,"div",10)(24,"uds-table",16),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomScheduleAction(n))})("newAction",function(n){y(r);let o=_();return w(o.onNewScheduledAction(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditScheduledAction(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteScheduledAction(n))}),d()()(),l(25,"mat-tab"),x(26,m7,2,0,"ng-template",9),l(27,"div",10)(28,"uds-table",17),b("newAction",function(n){y(r);let o=_();return w(o.onNewAccessCalendar(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditAccessCalendar(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAccessCalendar(n))})("loaded",function(n){y(r);let o=_();return w(o.onAccessCalendarLoad(n))}),d()()(),l(29,"mat-tab"),x(30,h7,2,0,"ng-template",9),l(31,"div",10),I(32,"uds-service-pools-charts",18),d()(),l(33,"mat-tab"),x(34,p7,2,0,"ng-template",9),l(35,"div",10),I(36,"uds-logs-table",19),d()()()()()}if(i&2){let r=_();m(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),m(4),p("ngIf",r.servicePool&&r.gui),m(4),p("rest",r.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",r.processsAssignedElement)("tableId","servicePools-d-services"+r.servicePool.id)("customButtons",r.customButtonsAssignedServices)("pageSize",r.api.config.admin.page_size),m(),p("ngIf",r.cache),m(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),m(),p("ngIf",r.publications),m(4),p("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),m(4),p("poolUuid",r.servicePool.id),m(4),p("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)("pageSize",r.api.config.admin.page_size)}}var qf='event'+django.gettext("Logs")+"",g7='computer'+django.gettext("VNC")+"",_7='schedule'+django.gettext("Launch now")+"",iw='perm_identity'+django.gettext("Change owner")+"",v7='perm_identity'+django.gettext("Assign service")+"",b7='cancel'+django.gettext("Cancel")+"",y7='event'+django.gettext("Changelog")+"",Yf=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtonsScheduledAction=[{id:"launch-action",html:_7,type:ut.SINGLE_SELECT},Ei.getGotoButton(Fp,"calendarId")],this.customButtonAccessCalendars=[Ei.getGotoButton(Fp,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:iw,type:ut.SINGLE_SELECT},{id:"log",html:qf,type:ut.SINGLE_SELECT},Ei.getGotoButton(Rd,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:qf,type:ut.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:b7,type:ut.SINGLE_SELECT},{id:"changelog",html:y7,type:ut.ALWAYS}],this.customButtonsGroups=[Ei.getGotoButton(fy,"auth_id","id")],this.customButtonsTransports=[Ei.getGotoButton(gy,"id")],this.servicePool=null,this.gui=[],this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(t){return t.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>t.table.selection.deselect(n)),t.table.selection.isEmpty()}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("pool");if(!t)return;this.assignedServices=this.rest.servicesPools.detail(t,"services"),this.groups=this.rest.servicesPools.detail(t,"groups"),this.transports=this.rest.servicesPools.detail(t,"transports"),this.scheduledActions=this.rest.servicesPools.detail(t,"actions"),this.accessCalendars=this.rest.servicesPools.detail(t,"access");let n=yield this.rest.servicesPools.get(t),o=(yield this.rest.servicesPools.gui()).filter(a=>{let s=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(n.info.uses_cache===!1&&s.includes(a.name)||n.info.uses_cache_l2===!1&&a.name==="cache_l2_srvs"||n.info.needs_manager===!1&&a.name==="osmanager_id")});this.servicePool=n,this.gui=o,n.info.uses_cache?this.cache=this.rest.servicesPools.detail(t,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(t,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:g7,type:ut.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:v7,type:ut.ALWAYS})})}vnc(t){let n=`[connection] + ${R8} translateX(${v}) + )`}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let n=t.getRootNode();return n&&n!==t}return document.documentElement.contains(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(Z),h(kt),h(je),h(by,8),h(Tt,8),h(se))},e.\u0275cmp=S({type:e,selectors:[["mat-form-field"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,Ae,5),Fe(a,Ae,7),Fe(a,wa,5),Fe(a,T8,5),Fe(a,vT,5),Fe(a,I8,5),Fe(a,dT,5)),n&2){let s;Q(s=K())&&(o._labelChildNonStatic=s.first),Q(s=K())&&(o._labelChildStatic=s.first),Q(s=K())&&(o._formFieldControl=s.first),Q(s=K())&&(o._prefixChildren=s),Q(s=K())&&(o._suffixChildren=s),Q(s=K())&&(o._errorChildren=s),Q(s=K())&&(o._hintChildren=s)}},viewQuery:function(n,o){if(n&1&&(le(r8,5),le(a8,5),le(s8,5),le(uT,5),le(pT,5),le(hT,5)),n&2){let a;Q(a=K())&&(o._textField=a.first),Q(a=K())&&(o._iconPrefixContainer=a.first),Q(a=K())&&(o._textPrefixContainer=a.first),Q(a=K())&&(o._floatingLabel=a.first),Q(a=K())&&(o._notchedOutline=a.first),Q(a=K())&&(o._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,o){n&2&&ne("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[be([{provide:Mo,useExisting:e},{provide:bT,useExisting:e}]),re],ngContentSelectors:l8,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let a=A();Ue(c8),D(0,m8,1,1,"ng-template",null,0,hi),l(2,"div",4,1),b("click",function(c){return y(a),w(o._control.onContainerClick(c))}),D(4,h8,1,0,"div",5),l(5,"div",6),D(6,g8,2,2,"div",7)(7,_8,3,0,"div",8)(8,v8,3,0,"div",9),l(9,"div",10),D(10,y8,1,1,null,11),ae(11),d(),D(12,w8,2,0,"div",12)(13,C8,2,0,"div",13),d(),D(14,x8,1,0,"div",14),d(),l(15,"div",15),D(16,D8,2,1,"div",16)(17,E8,5,2,"div",17),d()}if(n&2){let a;m(2),ne("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),m(2),xe(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),xe(o._hasOutline()?6:-1),m(),xe(o._hasIconPrefix?7:-1),m(),xe(o._hasTextPrefix?8:-1),m(2),xe(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),xe(o._hasTextSuffix?12:-1),m(),xe(o._hasIconSuffix?13:-1),m(),xe(o._hasOutline()?-1:14),m(),ne("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),m(),xe((a=o._getDisplayedMessages())==="error"?16:a==="hint"?17:-1)}},dependencies:[uT,pT,rh,hT,dT],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[A8.transitionMessages]},changeDetection:0});let i=e;return i})(),us=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,Si,zh,pe]});let i=e;return i})();var P8=["trigger"],F8=["panel"],N8=[[["mat-select-trigger"]],"*"],L8=["mat-select-trigger","*"];function V8(i,e){if(i&1&&(l(0,"span",4),g(1),d()),i&2){let r=_();m(),He(r.placeholder)}}function j8(i,e){i&1&&ae(0)}function B8(i,e){if(i&1&&(l(0,"span",11),g(1),d()),i&2){let r=_(2);m(),He(r.triggerValue)}}function z8(i,e){if(i&1&&(l(0,"span",5),D(1,j8,1,0)(2,B8,2,1,"span",11),d()),i&2){let r=_();m(),xe(r.customTrigger?1:2)}}function U8(i,e){if(i&1){let r=A();l(0,"div",12,1),b("@transformPanel.done",function(n){y(r);let o=_();return w(o._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){y(r);let o=_();return w(o._handleKeydown(n))}),ae(2,1),d()}if(i&2){let r=_();lE("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",r._getPanelTheme(),""),p("ngClass",r.panelClass)("@transformPanel","showing"),ie("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}var H8={transformPanelWrap:li("transformPanelWrap",[xt("* => void",rp("@transformPanel",[op()],{optional:!0}))]),transformPanel:li("transformPanel",[Pt("void",Me({opacity:0,transform:"scale(1, 0.8)"})),xt("void => showing",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Me({opacity:1,transform:"scale(1, 1)"}))),xt("* => void",Et("100ms linear",Me({opacity:0})))])};var yT=0,wT=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function $8(i){return()=>i.scrollStrategies.reposition()}var W8=new O("MAT_SELECT_CONFIG"),G8={provide:wT,deps:[Ct],useFactory:$8},CT=new O("MatSelectTrigger"),yy=class{constructor(e,r){this.source=e,this.value=r}},vt=(()=>{let e=class e{_scrollOptionIntoView(t){let n=this.options.toArray()[t];if(n){let o=this.panel.nativeElement,a=ep(t,this.options,this.optionGroups),s=n._getHostElement();t===0&&a===1?o.scrollTop=0:o.scrollTop=tp(s.offsetTop,s.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(t){return new yy(this,t)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(er.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._selectionModel,this._multiple=t}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this._assignValue(t)&&this._onChange(t)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,c,u,f,v,C,x,E,R,j){this._viewportRuler=t,this._changeDetectorRef=n,this._elementRef=s,this._dir=c,this._parentFormField=v,this.ngControl=C,this._liveAnnouncer=R,this._defaultOptions=j,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(F,_e)=>F===_e,this._uid=`mat-select-${yT++}`,this._triggerAriaLabelledBy=null,this._destroy=new W,this.stateChanges=new W,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${yT++}`,this._panelDoneAnimatingStream=new W,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new W,this.optionSelectionChanges=Wn(()=>{let F=this.options;return F?F.changes.pipe(Ot(F),Mt(()=>yt(...F.map(_e=>_e.onSelectionChange)))):this._initialized.pipe(Mt(()=>this.optionSelectionChanges))}),this.openedChange=new T,this._openedStream=this.openedChange.pipe(qe(F=>F),de(()=>{})),this._closedStream=this.openedChange.pipe(qe(F=>!F),de(()=>{})),this.selectionChange=new T,this.valueChange=new T,this._trackedModal=null,this._skipPredicate=F=>this.panelOpen?!1:F.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),j?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=j.typeaheadDebounceInterval),this._errorStateTracker=new Sr(a,C,f,u,this.stateChanges),this._scrollStrategyFactory=E,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(x)||0,this.id=this.id}ngOnInit(){this._selectionModel=new So(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Br(),fe(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(fe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(fe(this._destroy)).subscribe(t=>{t.added.forEach(n=>n.select()),t.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Ot(null),fe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let t=this._getTriggerAriaLabelledby(),n=this.ngControl;if(t!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?o.setAttribute("aria-labelledby",t):o.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(t){(t.disabled||t.userAriaDescribedBy)&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let t=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;let n=`${this.id}-panel`;this._trackedModal&&ma(this._trackedModal,"aria-owns",n),Dc(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){if(!this._trackedModal)return;let t=`${this.id}-panel`;ma(this._trackedModal,"aria-owns",t),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(t){this._assignValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let t=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){let n=t.keyCode,o=n===40||n===38||n===37||n===39,a=n===13||n===32,s=this._keyManager;if(!s.isTyping()&&a&&!Rt(t)||(this.multiple||t.altKey)&&o)t.preventDefault(),this.open();else if(!this.multiple){let c=this.selected;s.onKeydown(t);let u=this.selected;u&&c!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(t){let n=this._keyManager,o=t.keyCode,a=o===40||o===38,s=n.isTyping();if(a&&t.altKey)t.preventDefault(),this.close();else if(!s&&(o===13||o===32)&&n.activeItem&&!Rt(t))t.preventDefault(),n.activeItem._selectViaInteraction();else if(!s&&this._multiple&&o===65&&t.ctrlKey){t.preventDefault();let c=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(c?u.select():u.deselect())})}else{let c=n.activeItemIndex;n.onKeydown(t),this._multiple&&a&&t.shiftKey&&n.activeItem&&n.activeItemIndex!==c&&n.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(It(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,t)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(t){return t!==this._value||this._multiple&&Array.isArray(t)?(this.options&&this._setSelectionByValue(t),this._value=t,!0):!1}_getOverlayWidth(t){return this.panelWidth==="auto"?(t instanceof ld?t.elementRef:t||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new wc(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let t=yt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(fe(t)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),yt(...this.options.map(n=>n._stateChanges)).pipe(fe(t)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(t,n){let o=this._selectionModel.isSelected(t);t.value==null&&!this._multiple?(t.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(t.value)):(o!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),n&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let t=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,t):t.indexOf(n)-t.indexOf(o)),this.stateChanges.next()}}_propagateChanges(t){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:t,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let t=-1;for(let n=0;n0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),n=t?t+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(n){return new(n||e)(h(pn),h(me),h(Z),h(Er),h(G),h(kt,8),h(Io,8),h(ls,8),h(Mo,8),h(Tn,10),mi("tabindex"),h(wT),h(Kh),h(W8,8))},e.\u0275cmp=S({type:e,selectors:[["mat-select"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,CT,5),Fe(a,it,5),Fe(a,bd,5)),n&2){let s;Q(s=K())&&(o.customTrigger=s.first),Q(s=K())&&(o.options=s),Q(s=K())&&(o.optionGroups=s)}},viewQuery:function(n,o){if(n&1&&(le(P8,5),le(F8,5),le(A0,5)),n&2){let a;Q(a=K())&&(o.trigger=a.first),Q(a=K())&&(o.panel=a.first),Q(a=K())&&(o._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(ie("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),ne("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Y],disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Zt(t)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y],placeholder:"placeholder",required:[2,"required","required",Y],multiple:[2,"multiple","multiple",Y],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Y],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Zt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[be([{provide:wa,useExisting:e},{provide:vd,useExisting:e}]),ue,Qe,re],ngContentSelectors:L8,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let a=A();Ue(N8),l(0,"div",2,0),b("click",function(){return y(a),w(o.open())}),l(3,"div",3),D(4,V8,2,1,"span",4)(5,z8,3,1,"span",5),d(),l(6,"div",6)(7,"div",7),vi(),l(8,"svg",8),I(9,"path",9),d()()()(),D(10,U8,3,9,"ng-template",10),b("backdropClick",function(){return y(a),w(o.close())})("attach",function(){return y(a),w(o._onAttached())})("detach",function(){return y(a),w(o.close())})}if(n&2){let a=Ie(1);m(3),ie("id",o._valueId),m(),xe(o.empty?4:5),m(6),p("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[ld,A0,Cn],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[H8.transformPanel]},changeDetection:0});let i=e;return i})(),of=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-select-trigger"]],standalone:!0,features:[be([{provide:CT,useExisting:e}])]});let i=e;return i})(),rf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[G8],imports:[Si,on,Ic,pe,to,us,Ic,pe]});let i=e;return i})();var q8=["tooltip"],ST=20;var ET=new O("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition({scrollThrottle:ST})}});function Y8(i){return()=>i.scrollStrategies.reposition({scrollThrottle:ST})}var Q8={provide:ET,deps:[Ct],useFactory:Y8};function K8(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var Z8=new O("mat-tooltip-default-options",{providedIn:"root",factory:K8});var xT="tooltip-panel",DT=ji({passive:!0}),X8=8,J8=8,eH=24,tH=200,tr=(()=>{let e=class e{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=Nn(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Nn(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=xo(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=xo(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,n,o,a,s,c,u,f,v,C,x,E){this._overlay=t,this._elementRef=n,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=c,this._ariaDescriber=u,this._focusMonitor=f,this._dir=C,this._defaultOptions=x,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=iH,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new W,this._injector=k(Pe),this._scrollStrategy=v,this._document=E,x&&(this._showDelay=x.showDelay,this._hideDelay=x.hideDelay,x.position&&(this.position=x.position),x.positionAtOrigin&&(this.positionAtOrigin=x.positionAtOrigin),x.touchGestures&&(this.touchGestures=x.touchGestures)),C.change.pipe(fe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=X8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(fe(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{t.removeEventListener(n,o,DT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(n);this._detach(),this._portal=this._portal||new Dn(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(fe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(t)}hide(t=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(t):(n._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&a._origin instanceof G)return this._overlayRef;this._detach()}let n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(fe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${xT}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(fe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(fe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(fe(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Rt(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let n=t.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();n.withPositions([this._addOffset(B(B({},o.main),a.main)),this._addOffset(B(B({},o.fallback),a.fallback))])}_addOffset(t){let n=J8,o=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-n:t.originY==="bottom"?t.offsetY=n:t.originX==="start"?t.offsetX=o?-n:n:t.originX==="end"&&(t.offsetX=o?n:-n),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"||n=="below"?o={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&t||n=="right"&&!t?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(o={originX:"end",originY:"center"});let{x:a,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"?o={overlayX:"center",overlayY:"bottom"}:n=="below"?o={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&t||n=="right"&&!t?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(o={overlayX:"start",overlayY:"center"});let{x:a,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ri(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:n}}_updateCurrentPositionClass(t){let{overlayY:n,originX:o,originY:a}=t,s;if(n==="center"?this._dir&&this._dir.value==="rtl"?s=o==="end"?"left":"right":s=o==="start"?"left":"right":s=n==="bottom"&&a==="top"?"above":"below",s!==this._currentPosition){let c=this._overlayRef;if(c){let u=`${this._cssClassPrefix}-${xT}-`;c.removePanelClass(u+this._currentPosition),c.addPanelClass(u+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let n;t.x!==void 0&&t.y!==void 0&&(n=t),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let n=t.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??a)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",n],["touchcancel",n])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,DT)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let n=this._document.elementFromPoint(t.clientX,t.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let n=this._elementRef.nativeElement,o=n.style;(t==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(t==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(G),h(_c),h(wt),h(Z),h(je),h(Qh),h(wi),h(ET),h(kt),h(Z8,8),h(se))},e.\u0275dir=N({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let i=e;return i})(),iH=(()=>{let e=class e{constructor(t,n,o){this._changeDetectorRef=t,this._elementRef=n,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new W,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>eH&&t.width>=tH}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let n=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(n.classList.remove(t?a:o),n.classList.add(t?o:a),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(n);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};e.\u0275fac=function(n){return new(n||e)(h(me),h(G),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&le(q8,7),n&2){let a;Q(a=K())&&(o._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,o){n&1&&b("mouseleave",function(s){return o._handleMouseLeave(s)}),n&2&&xi("zoom",o.isVisible()?1:null)},standalone:!0,features:[re],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(n,o){if(n&1){let a=A();l(0,"div",1,0),b("animationend",function(c){return y(a),w(o._handleAnimationEnd(c))}),l(2,"div",2),g(3),d()()}n&2&&(ne("mdc-tooltip--multiline",o._isMultiline),p("ngClass",o.tooltipClass),m(3),He(o.message))},dependencies:[Cn],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{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);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Rc=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Q8],imports:[Sc,Si,on,pe,pe,to]});let i=e;return i})();function nH(i,e){if(i&1&&(l(0,"mat-option",16),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}function oH(i,e){if(i&1){let r=A();l(0,"mat-form-field",13)(1,"mat-select",15),b("selectionChange",function(n){y(r);let o=_(2);return w(o._changePageSize(n.value))}),_r(2,nH,2,2,"mat-option",16,yl),d()()}if(i&2){let r=_(2);p("appearance",r._formFieldAppearance)("color",r.color),m(),p("value",r.pageSize)("disabled",r.disabled)("aria-labelledby",r._pageSizeLabelId)("panelClass",r.selectConfig.panelClass||"")("disableOptionCentering",r.selectConfig.disableOptionCentering),m(),vr(r._displayedPageSizeOptions)}}function rH(i,e){if(i&1&&(l(0,"div",14),g(1),d()),i&2){let r=_(2);m(),He(r.pageSize)}}function aH(i,e){if(i&1&&(l(0,"div",2)(1,"div",12),g(2),d(),D(3,oH,4,7,"mat-form-field",13)(4,rH,2,1,"div",14),d()),i&2){let r=_();m(),ie("id",r._pageSizeLabelId),m(),P(" ",r._intl.itemsPerPageLabel," "),m(),xe(r._displayedPageSizeOptions.length>1?3:-1),m(),xe(r._displayedPageSizeOptions.length<=1?4:-1)}}function sH(i,e){if(i&1){let r=A();l(0,"button",17),b("click",function(){y(r);let n=_();return w(n.firstPage())}),vi(),l(1,"svg",7),I(2,"path",18),d()()}if(i&2){let r=_();p("matTooltip",r._intl.firstPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),ie("aria-label",r._intl.firstPageLabel)}}function cH(i,e){if(i&1){let r=A();l(0,"button",19),b("click",function(){y(r);let n=_();return w(n.lastPage())}),vi(),l(1,"svg",7),I(2,"path",20),d()()}if(i&2){let r=_();p("matTooltip",r._intl.lastPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),ie("aria-label",r._intl.lastPageLabel)}}var Ca=(()=>{let e=class e{constructor(){this.changes=new W,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let a=t*n,s=a{let e=class e{get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(n=>Zt(n,0)),this._updateDisplayedPageSizeOptions()}constructor(t,n,o){if(this._intl=t,this._changeDetectorRef=n,this._pageSizeLabelId=`mat-paginator-page-size-label-${hH++}`,this._isInitialized=!1,this._initializedStream=new $n(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new T,this.initialized=this._initializedStream,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){let{pageSize:a,pageSizeOptions:s,hidePageSize:c,showFirstLastButtons:u}=o;a!=null&&(this._pageSize=a),s!=null&&(this._pageSizeOptions=s),c!=null&&(this.hidePageSize=c),u!=null&&(this.showFirstLastButtons=u)}this._formFieldAppearance=o?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndext-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}};e.\u0275fac=function(n){return new(n||e)(h(Ca),h(me),h(mH,8))},e.\u0275cmp=S({type:e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Zt],length:[2,"length","length",Zt],pageSize:[2,"pageSize","pageSize",Zt],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Y],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Y],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Y]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[ue,re],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),D(2,aH,5,4,"div",2),l(3,"div",3)(4,"div",4),g(5),d(),D(6,sH,3,5,"button",5),l(7,"button",6),b("click",function(){return o.previousPage()}),vi(),l(8,"svg",7),I(9,"path",8),d()(),Zr(),l(10,"button",9),b("click",function(){return o.nextPage()}),vi(),l(11,"svg",7),I(12,"path",10),d()(),D(13,cH,3,5,"button",11),d()()()),n&2&&(m(2),xe(o.hidePageSize?-1:2),m(3),P(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),m(),xe(o.showFirstLastButtons?6:-1),m(),p("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),ie("aria-label",o._intl.previousPageLabel),m(3),p("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),ie("aria-label",o._intl.nextPageLabel),m(3),xe(o.showFirstLastButtons?13:-1))},dependencies:[ge,vt,it,Wi,tr],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking);--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),IT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[dH],imports:[Jo,rf,Rc,Tr]});let i=e;return i})();var pH=["mat-sort-header",""],fH=["*"];function gH(i,e){if(i&1){let r=A();l(0,"div",2),b("@arrowPosition.start",function(){y(r);let n=_();return w(n._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){y(r);let n=_();return w(n._disableViewStateAnimation=!1)}),I(1,"div",3),l(2,"div",4),I(3,"div",5)(4,"div",6)(5,"div",7),d()()}if(i&2){let r=_();p("@arrowOpacity",r._getArrowViewState())("@arrowPosition",r._getArrowViewState())("@allowChildren",r._getArrowDirectionState()),m(2),p("@indicator",r._getArrowDirectionState()),m(),p("@leftPointer",r._getArrowDirectionState()),m(),p("@rightPointer",r._getArrowDirectionState())}}var TT=new O("MAT_SORT_DEFAULT_OPTIONS"),kr=(()=>{let e=class e{get direction(){return this._direction}set direction(t){this._direction=t}constructor(t){this._defaultOptions=t,this._initializedStream=new $n(1),this.sortables=new Map,this._stateChanges=new W,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new T,this.initialized=this._initializedStream}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let n=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=_H(t.start||this.start,n),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(n){return new(n||e)(h(TT,8))},e.\u0275dir=N({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Y],disabled:[2,"matSortDisabled","disabled",Y]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[ue,Qe]});let i=e;return i})();function _H(i,e){let r=["asc","desc"];return i=="desc"&&r.reverse(),e||r.push(""),r}var xa=z1.ENTERING+" "+B1.STANDARD_CURVE,Pc={indicator:li("indicator",[Pt("active-asc, asc",Me({transform:"translateY(0px)"})),Pt("active-desc, desc",Me({transform:"translateY(10px)"})),xt("active-asc <=> active-desc",Et(xa))]),leftPointer:li("leftPointer",[Pt("active-asc, asc",Me({transform:"rotate(-45deg)"})),Pt("active-desc, desc",Me({transform:"rotate(45deg)"})),xt("active-asc <=> active-desc",Et(xa))]),rightPointer:li("rightPointer",[Pt("active-asc, asc",Me({transform:"rotate(45deg)"})),Pt("active-desc, desc",Me({transform:"rotate(-45deg)"})),xt("active-asc <=> active-desc",Et(xa))]),arrowOpacity:li("arrowOpacity",[Pt("desc-to-active, asc-to-active, active",Me({opacity:1})),Pt("desc-to-hint, asc-to-hint, hint",Me({opacity:.54})),Pt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Me({opacity:0})),xt("* => asc, * => desc, * => active, * => hint, * => void",Et("0ms")),xt("* <=> *",Et(xa))]),arrowPosition:li("arrowPosition",[xt("* => desc-to-hint, * => desc-to-active",Et(xa,fa([Me({transform:"translateY(-25%)"}),Me({transform:"translateY(0)"})]))),xt("* => hint-to-desc, * => active-to-desc",Et(xa,fa([Me({transform:"translateY(0)"}),Me({transform:"translateY(25%)"})]))),xt("* => asc-to-hint, * => asc-to-active",Et(xa,fa([Me({transform:"translateY(25%)"}),Me({transform:"translateY(0)"})]))),xt("* => hint-to-asc, * => active-to-asc",Et(xa,fa([Me({transform:"translateY(0)"}),Me({transform:"translateY(-25%)"})]))),Pt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Me({transform:"translateY(0)"})),Pt("hint-to-desc, active-to-desc, desc",Me({transform:"translateY(-25%)"})),Pt("hint-to-asc, active-to-asc, asc",Me({transform:"translateY(25%)"}))]),allowChildren:li("allowChildren",[xt("* <=> *",[rp("@*",op(),{optional:!0})])])},sf=(()=>{let e=class e{constructor(){this.changes=new W}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function vH(i){return i||new sf}var bH={provide:sf,deps:[[new Yn,new bo,sf]],useFactory:vH},cf=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}constructor(t,n,o,a,s,c,u,f){this._intl=t,this._changeDetectorRef=n,this._sort=o,this._columnDef=a,this._focusMonitor=s,this._elementRef=c,this._ariaDescriber=u,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",f?.arrowPosition&&(this.arrowPosition=f?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=!!t;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=yt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(n){return new(n||e)(h(sf),h(me),h(kr,8),h("MAT_SORT_HEADER_COLUMN_DEF",8),h(wi),h(G),h(Qh,8),h(TT,8))},e.\u0275cmp=S({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(){return o._handleClick()})("keydown",function(s){return o._handleKeydown(s)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),n&2&&(ie("aria-sort",o._getAriaSortAttribute()),ne("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Y],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Y]},exportAs:["matSortHeader"],standalone:!0,features:[ue,re],attrs:pH,ngContentSelectors:fH,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(n,o){n&1&&(Ue(),l(0,"div",0)(1,"div",1),ae(2),d(),D(3,gH,6,6,"div",2),d()),n&2&&(ne("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),ie("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),xe(o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Pc.indicator,Pc.leftPointer,Pc.rightPointer,Pc.arrowOpacity,Pc.arrowPosition,Pc.allowChildren]},changeDetection:0});let i=e;return i})(),kT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[bH],imports:[pe]});let i=e;return i})();var wH=[[["caption"]],[["colgroup"],["col"]],"*"],CH=["caption","colgroup, col","*"];function xH(i,e){i&1&&ae(0,2)}function DH(i,e){i&1&&(l(0,"thead",0),bi(1,1),d(),l(2,"tbody",0),bi(3,2)(4,3),d(),l(5,"tfoot",0),bi(6,4),d())}function SH(i,e){i&1&&bi(0,1)(1,2)(2,3)(3,4)}var To=new O("CDK_TABLE");var pf=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let i=e;return i})(),ff=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let i=e;return i})(),PT=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let i=e;return i})(),Fc=(()=>{let e=class e{get name(){return this._name}set name(t){this._setNameInput(t)}get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){this._table=t,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(n){return new(n||e)(h(To,8))},e.\u0275dir=N({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,pf,5),Fe(a,ff,5),Fe(a,PT,5)),n&2){let s;Q(s=K())&&(o.cell=s.first),Q(s=K())&&(o.headerCell=s.first),Q(s=K())&&(o.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",Y],stickyEnd:[2,"stickyEnd","stickyEnd",Y]},standalone:!0,features:[be([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ue]});let i=e;return i})(),df=class{constructor(e,r){r.nativeElement.classList.add(...e._columnCssClassName)}},FT=(()=>{let e=class e extends df{constructor(t,n){super(t,n)}};e.\u0275fac=function(n){return new(n||e)(h(Fc),h(G))},e.\u0275dir=N({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[ve]});let i=e;return i})();var NT=(()=>{let e=class e extends df{constructor(t,n){super(t,n);let o=t._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(n){return new(n||e)(h(Fc),h(G))},e.\u0275dir=N({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[ve]});let i=e;return i})(),uf=class{constructor(){this.tasks=[],this.endTasks=[]}},mf=new O("_COALESCED_STYLE_SCHEDULER"),Cy=(()=>{let e=class e{constructor(t){this._currentSchedule=null,this._ngZone=k(Z)}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new uf,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new uf;for(let n of t.tasks)n();for(let n of t.endTasks)n()}this._currentSchedule=null})))}};e.\u0275fac=function(n){return new(n||e)(M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var xy=(()=>{let e=class e{constructor(t,n){this.template=t,this._differs=n}ngOnChanges(t){if(!this._columnsDiffer){let n=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Pd?t.headerCell.template:this instanceof Dy?t.footerCell.template:t.cell.template}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(Wo))},e.\u0275dir=N({type:e,features:[Qe]});let i=e;return i})(),Pd=(()=>{let e=class e extends xy{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,n,o){super(t,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(Wo),h(To,8))},e.\u0275dir=N({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",Y]},standalone:!0,features:[ue,ve,Qe]});let i=e;return i})(),Dy=(()=>{let e=class e extends xy{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,n,o){super(t,n),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(Wo),h(To,8))},e.\u0275dir=N({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",Y]},standalone:!0,features:[ue,ve,Qe]});let i=e;return i})(),gf=(()=>{let e=class e extends xy{constructor(t,n,o){super(t,n),this._table=o}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(Wo),h(To,8))},e.\u0275dir=N({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[ve]});let i=e;return i})(),ms=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(n){return new(n||e)(h(wt))},e.\u0275dir=N({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let i=e;return i})(),Sy=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&bi(0,0)},dependencies:[ms],encapsulation:2});let i=e;return i})();var Ey=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&bi(0,0)},dependencies:[ms],encapsulation:2});let i=e;return i})(),LT=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(n){return new(n||e)(h(lt))},e.\u0275dir=N({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let i=e;return i})(),OT=["top","bottom","left","right"],wy=class{constructor(e,r,t,n,o=!0,a=!0,s){this._isNativeHtmlTable=e,this._stickCellCss=r,this.direction=t,this._coalescedStyleScheduler=n,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${r}-border-elem-top`,bottom:`${r}-border-elem-bottom`,left:`${r}-border-elem-left`,right:`${r}-border-elem-right`}}clearStickyPositioning(e,r){let t=[];for(let n of e)if(n.nodeType===n.ELEMENT_NODE){t.push(n);for(let o=0;o{for(let n of t)this._removeStickyStyle(n,r)})}updateStickyColumns(e,r,t,n=!0){if(!e.length||!this._isBrowser||!(r.some(o=>o)||t.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],a=o.children.length,s=this._getCellWidths(o,n),c=this._getStickyStartColumnPositions(s,r),u=this._getStickyEndColumnPositions(s,t),f=r.lastIndexOf(!0),v=t.indexOf(!0),C=this.direction==="rtl",x=C?"right":"left",E=C?"left":"right";for(let R of e)for(let j=0;jr[j]?R:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:v===-1?[]:s.slice(v).map((R,j)=>t[j+v]?R:null).reverse()}))})}stickRows(e,r,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let n=t==="bottom"?e.slice().reverse():e,o=t==="bottom"?r.slice().reverse():r,a=[],s=[],c=[];for(let f=0,v=0;f{let t=e.querySelector("tfoot");t&&(r.some(n=>!n)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,r){for(let n of r)e.style[n]="",e.classList.remove(this._borderCellCss[n]);OT.some(n=>r.indexOf(n)===-1&&e.style[n])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,r,t,n){e.classList.add(this._stickCellCss),n&&e.classList.add(this._borderCellCss[r]),e.style[r]=`${t}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let r={top:100,bottom:10,left:1,right:1},t=0;for(let n of OT)e.style[n]&&(t+=r[n]);return t?`${t}`:""}_getCellWidths(e,r=!0){if(!r&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],n=e.children;for(let o=0;o0;o--)r[o]&&(t[o]=n,n+=e[o]);return t}};var hf=new O("CDK_SPL");var Iy=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(To);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(G))},e.\u0275dir=N({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let i=e;return i})(),My=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(To);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(G))},e.\u0275dir=N({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let i=e;return i})(),Ty=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(To);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(G))},e.\u0275dir=N({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let i=e;return i})(),ky=(()=>{let e=class e{constructor(t,n){this.viewContainer=t,this.elementRef=n;let o=k(To);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(n){return new(n||e)(h(wt),h(G))},e.\u0275dir=N({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let i=e;return i})();var Ay=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),n=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&n==="cell"?null:n}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,n,o,a,s,c,u,f,v,C,x,E){this._differs=t,this._changeDetectorRef=n,this._elementRef=o,this._dir=s,this._platform=u,this._viewRepeater=f,this._coalescedStyleScheduler=v,this._viewportRuler=C,this._stickyPositioningListener=x,this._onDestroy=new W,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new T,this.viewChange=new $t({start:0,end:Number.MAX_VALUE}),this._injector=k(Pe),a||o.nativeElement.setAttribute("role","table"),this._document=c,this._isServer=!u.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(fe(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),jh(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,n,(o,a,s)=>this._getEmbeddedViewArgs(o.item,s),o=>o.item.data,o=>{o.operation===fc.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(o=>{let a=n.get(o.currentIndex);a.context.$implicit=o.item.data}),this._updateNoDataRow(),ri(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=RT(this._headerRowOutlet,"thead");o&&(o.style.display=t.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=RT(this._footerRowOutlet,"tfoot");o&&(o.style.display=t.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let c=0;c{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let t=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let c=o&&o.has(s)?o.get(s):[];if(c.length){let u=c.shift();return u.dataIndex=n,u}else return{data:t,rowDef:s,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),lf(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=lf(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=lf(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=lf(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(s,c)=>s||!!c.getColumnsDiff(),n=this._rowDefs.reduce(t,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(t,!1);o&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(t,!1);return a&&this._forceRenderFooterRows(),n||o||a}_switchDataSource(t){this._data=[],jh(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;jh(this.dataSource)?t=this.dataSource.connect(this):Pa(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=oe(this.dataSource)),this._renderChangeSubscription=t.pipe(fe(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,n)=>this._renderRow(this._headerRowOutlet,t,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,n)=>this._renderRow(this._footerRowOutlet,t,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,n){let o=Array.from(n.columns||[]).map(c=>{let u=this._columnDefsByName.get(c);return u}),a=o.map(c=>c.sticky),s=o.map(c=>c.stickyEnd);this._stickyStyler.updateStickyColumns(t,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let n=[];for(let o=0;o!a.when||a.when(n,t));else{let a=this._rowDefs.find(s=>s.when&&s.when(n,t))||this._defaultRowDef;a&&o.push(a)}return o.length,o}_getEmbeddedViewArgs(t,n){let o=t.rowDef,a={$implicit:t.data};return{templateRef:o.template,context:a,index:n}}_renderRow(t,n,o,a={}){let s=t.viewContainer.createEmbeddedView(n.template,a,o);return this._renderCellTemplateForItem(n,a),s}_renderCellTemplateForItem(t,n){for(let o of this._getCellTemplates(t))ms.mostRecentCellOutlet&&ms.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let n=0,o=t.length;n{let o=this._columnDefsByName.get(n);return t.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new wy(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:oe()).pipe(fe(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let a=o.createEmbeddedView(t.templateRef),s=a.rootNodes[0];a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(t._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(n){return new(n||e)(h(Wo),h(me),h(G),mi("role"),h(kt,8),h(se),h(je),h(od),h(mf),h(pn),h(hf,12),h(Z,8))},e.\u0275cmp=S({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,LT,5),Fe(a,Fc,5),Fe(a,gf,5),Fe(a,Pd,5),Fe(a,Dy,5)),n&2){let s;Q(s=K())&&(o._noDataRow=s.first),Q(s=K())&&(o._contentColumnDefs=s),Q(s=K())&&(o._contentRowDefs=s),Q(s=K())&&(o._contentHeaderRowDefs=s),Q(s=K())&&(o._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&ne("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",Y],fixedLayout:[2,"fixedLayout","fixedLayout",Y]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[be([{provide:To,useExisting:e},{provide:od,useClass:gc},{provide:mf,useClass:Cy},{provide:hf,useValue:null}]),ue,re],ngContentSelectors:CH,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(Ue(wH),ae(0),ae(1,1),D(2,xH,1,0)(3,DH,7,0)(4,SH,4,0)),n&2&&(m(2),xe(o._isServer?2:-1),m(),xe(o._isNativeHtmlTable?3:4))},dependencies:[My,Iy,ky,Ty],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let i=e;return i})();function lf(i,e){return i.concat(Array.from(e))}function RT(i,e){let r=e.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let n=t.nodeType===1?t.nodeName:null;if(n===r)return t;if(n==="TABLE")break;t=t.parentNode}return null}var VT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[ad]});let i=e;return i})();var EH=[[["caption"]],[["colgroup"],["col"]],"*"],IH=["caption","colgroup, col","*"];function MH(i,e){i&1&&ae(0,2)}function TH(i,e){i&1&&(l(0,"thead",0),bi(1,1),d(),l(2,"tbody",2),bi(3,3)(4,4),d(),l(5,"tfoot",0),bi(6,5),d())}function kH(i,e){i&1&&bi(0,1)(1,3)(2,4)(3,5)}var _f=(()=>{let e=class e extends Ay{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&ne("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[be([{provide:Ay,useExisting:e},{provide:To,useExisting:e},{provide:mf,useClass:Cy},{provide:od,useClass:gc},{provide:hf,useValue:null}]),ve,re],ngContentSelectors:IH,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(Ue(EH),ae(0),ae(1,1),D(2,MH,1,0)(3,TH,7,0)(4,kH,4,0)),n&2&&(m(2),xe(o._isServer?2:-1),m(),xe(o._isNativeHtmlTable?3:4))},dependencies:[My,Iy,ky,Ty],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2});let i=e;return i})(),vf=(()=>{let e=class e extends pf{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[be([{provide:pf,useExisting:e}]),ve]});let i=e;return i})(),bf=(()=>{let e=class e extends ff{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[be([{provide:ff,useExisting:e}]),ve]});let i=e;return i})();var yf=(()=>{let e=class e extends Fc{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[be([{provide:Fc,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),ve]});let i=e;return i})(),wf=(()=>{let e=class e extends FT{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[ve]});let i=e;return i})();var Cf=(()=>{let e=class e extends NT{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[ve]});let i=e;return i})();var xf=(()=>{let e=class e extends Pd{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",Y]},standalone:!0,features:[be([{provide:Pd,useExisting:e}]),ue,ve]});let i=e;return i})();var Df=(()=>{let e=class e extends gf{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[be([{provide:gf,useExisting:e}]),ve]});let i=e;return i})(),Sf=(()=>{let e=class e extends Sy{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[be([{provide:Sy,useExisting:e}]),ve,re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&bi(0,0)},dependencies:[ms],encapsulation:2});let i=e;return i})();var Ef=(()=>{let e=class e extends Ey{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[be([{provide:Ey,useExisting:e}]),ve,re],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&bi(0,0)},dependencies:[ms],encapsulation:2});let i=e;return i})();var jT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,VT,pe]});let i=e;return i})(),AH=9007199254740991,Nc=class extends Vh{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new $t([]),this._filter=new $t(""),this._internalPageChanges=new W,this._renderChangesSubscription=null,this.sortingDataAccessor=(r,t)=>{let n=r[t];if(y0(n)){let o=Number(n);return o{let n=t.active,o=t.direction;return!n||o==""?r:r.sort((a,s)=>{let c=this.sortingDataAccessor(a,n),u=this.sortingDataAccessor(s,n),f=typeof c,v=typeof u;f!==v&&(f==="number"&&(c+=""),v==="number"&&(u+=""));let C=0;return c!=null&&u!=null?c>u?C=1:c{let n=Object.keys(r).reduce((a,s)=>a+r[s]+"\u25EC","").toLowerCase(),o=t.trim().toLowerCase();return n.indexOf(o)!=-1},this._data=new $t(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?yt(this._sort.sortChange,this._sort.initialized):oe(null),r=this._paginator?yt(this._paginator.page,this._internalPageChanges,this._paginator.initialized):oe(null),t=this._data,n=An([t,this._filter]).pipe(de(([s])=>this._filterData(s))),o=An([n,e]).pipe(de(([s])=>this._orderData(s))),a=An([o,r]).pipe(de(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(r=>this.filterPredicate(r,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let r=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(r,r+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let r=this.paginator;if(r&&(r.length=e,r.pageIndex>0)){let t=Math.ceil(r.length/r.pageSize)-1||0,n=Math.min(r.pageIndex,t);n!==r.pageIndex&&(r.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var RH=["input"],PH=["label"],FH=["*"],NH=new O("mat-checkbox-default-options",{providedIn:"root",factory:UT});function UT(){return{color:"accent",clickAction:"check-indeterminate"}}var an=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(an||{}),LH={provide:qi,useExisting:Wt(()=>If),multi:!0},Oy=class{},VH=0,zT=UT(),If=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(t){let n=new Oy;return n.source=this,n.checked=t,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,n,o,a,s,c){this._elementRef=t,this._changeDetectorRef=n,this._ngZone=o,this._animationMode=s,this._options=c,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new T,this.indeterminateChange=new T,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=an.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||zT,this.color=this._options.color||zT.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++VH}`}ngOnChanges(t){t.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){let n=t!=this._indeterminate;this._indeterminate=t,n&&(this._indeterminate?this._transitionCheckState(an.Indeterminate):this._transitionCheckState(this.checked?an.Checked:an.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorChangeFn=t}_transitionCheckState(t){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===t||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(a)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let t=this._options?.clickAction;!this.disabled&&t!=="noop"?(this.indeterminate&&t!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?an.Checked:an.Unchecked),this._emitChangeEvent()):!this.disabled&&t==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(t){t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(t,n){if(this._animationMode==="NoopAnimations")return"";switch(t){case an.Init:if(n===an.Checked)return this._animationClasses.uncheckedToChecked;if(n==an.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case an.Unchecked:return n===an.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case an.Checked:return n===an.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case an.Indeterminate:return n===an.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(t){let n=this._inputElement;n&&(n.nativeElement.indeterminate=t)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(t){t.target&&this._labelElement.nativeElement.contains(t.target)&&t.stopPropagation()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(Z),mi("tabindex"),h(Tt,8),h(NH,8))},e.\u0275cmp=S({type:e,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(le(RH,5),le(PH,5),le(Mn,5)),n&2){let a;Q(a=K())&&(o._inputElement=a.first),Q(a=K())&&(o._labelElement=a.first),Q(a=K())&&(o.ripple=a.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(n,o){n&2&&(Di("id",o.id),ie("tabindex",null)("aria-label",null)("aria-labelledby",null),qt(o.color?"mat-"+o.color:"mat-accent"),ne("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",Y],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Zt(t)],color:"color",checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y],indeterminate:[2,"indeterminate","indeterminate",Y]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[be([LH,{provide:no,useExisting:e,multi:!0}]),ue,Qe,re],ngContentSelectors:FH,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"div",3),b("click",function(c){return y(a),w(o._preventBubblingFromLabel(c))}),l(1,"div",4,0)(3,"div",5),b("click",function(){return y(a),w(o._onTouchTargetClick())}),d(),l(4,"input",6,1),b("blur",function(){return y(a),w(o._onBlur())})("click",function(){return y(a),w(o._onInputClick())})("change",function(c){return y(a),w(o._onInteractionEvent(c))}),d(),I(6,"div",7),l(7,"div",8),vi(),l(8,"svg",9),I(9,"path",10),d(),Zr(),I(10,"div",11),d(),I(11,"div",12),d(),l(12,"label",13,2),ae(14),d()()}if(n&2){let a=Ie(2);p("labelPosition",o.labelPosition),m(4),ne("mdc-checkbox--selected",o.checked),p("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.disabled?-1:o.tabIndex),ie("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),m(7),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),p("for",o.inputId)}},dependencies:[Mn,np],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-unselected-icon-color);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox--disabled .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color)}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color);font-family:var(--mat-checkbox-label-text-font);line-height:var(--mat-checkbox-label-text-line-height);font-size:var(--mat-checkbox-label-text-size);letter-spacing:var(--mat-checkbox-label-text-tracking);font-weight:var(--mat-checkbox-label-text-weight)}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Mf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[If,pe,pe]});let i=e;return i})();var BH=["*"],Tf;function zH(){if(Tf===void 0&&(Tf=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(Tf=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Tf}function Fd(i){return zH()?.createHTML(i)||i}function HT(i){return Error(`Unable to find icon with the name "${i}"`)}function UH(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function $T(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function WT(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var Ar=class{constructor(e,r,t){this.url=e,this.svgText=r,this.options=t}},HH=(()=>{let e=class e{constructor(t,n,o,a){this._httpClient=t,this._sanitizer=n,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(t,n,o){return this.addSvgIconInNamespace("",t,n,o)}addSvgIconLiteral(t,n,o){return this.addSvgIconLiteralInNamespace("",t,n,o)}addSvgIconInNamespace(t,n,o,a){return this._addSvgIconConfig(t,n,new Ar(o,null,a))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,n,o,a){let s=this._sanitizer.sanitize(Hi.HTML,o);if(!s)throw WT(o);let c=Fd(s);return this._addSvgIconConfig(t,n,new Ar("",c,a))}addSvgIconSet(t,n){return this.addSvgIconSetInNamespace("",t,n)}addSvgIconSetLiteral(t,n){return this.addSvgIconSetLiteralInNamespace("",t,n)}addSvgIconSetInNamespace(t,n,o){return this._addSvgIconSetConfig(t,new Ar(n,null,o))}addSvgIconSetLiteralInNamespace(t,n,o){let a=this._sanitizer.sanitize(Hi.HTML,n);if(!a)throw WT(n);let s=Fd(a);return this._addSvgIconSetConfig(t,new Ar("",s,o))}registerFontClassAlias(t,n=t){return this._fontCssClassesByAlias.set(t,n),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let n=this._sanitizer.sanitize(Hi.RESOURCE_URL,t);if(!n)throw $T(t);let o=this._cachedIconsByUrl.get(n);return o?oe(kf(o)):this._loadSvgIconFromConfig(new Ar(t,null)).pipe(zt(a=>this._cachedIconsByUrl.set(n,a)),de(a=>kf(a)))}getNamedSvgIcon(t,n=""){let o=GT(n,t),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(n,t),a)return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(n);return s?this._getSvgFromIconSetConfigs(t,s):Ro(HT(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?oe(kf(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(de(n=>kf(n)))}_getSvgFromIconSetConfigs(t,n){let o=this._extractIconWithNameFromAnySet(t,n);if(o)return oe(o);let a=n.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(zi(c=>{let f=`Loading icon set URL: ${this._sanitizer.sanitize(Hi.RESOURCE_URL,s.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(f)),oe(null)})));return Zc(a).pipe(de(()=>{let s=this._extractIconWithNameFromAnySet(t,n);if(!s)throw HT(t);return s}))}_extractIconWithNameFromAnySet(t,n){for(let o=n.length-1;o>=0;o--){let a=n[o];if(a.svgText&&a.svgText.toString().indexOf(t)>-1){let s=this._svgElementFromConfig(a),c=this._extractSvgIconFromSet(s,t,a.options);if(c)return c}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(zt(n=>t.svgText=n),de(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?oe(null):this._fetchIcon(t).pipe(zt(n=>t.svgText=n))}_extractSvgIconFromSet(t,n,o){let a=t.querySelector(`[id="${n}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,o);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),o);let c=this._svgElementFromString(Fd(""));return c.appendChild(s),this._setSvgAttributes(c,o)}_svgElementFromString(t){let n=this._document.createElement("DIV");n.innerHTML=t;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(t){let n=this._svgElementFromString(Fd("")),o=t.attributes;for(let a=0;aFd(f)),Fo(()=>this._inProgressUrlFetches.delete(s)),Jc());return this._inProgressUrlFetches.set(s,u),u}_addSvgIconConfig(t,n,o){return this._svgIconConfigs.set(GT(t,n),o),this}_addSvgIconSetConfig(t,n){let o=this._iconSetConfigs.get(t);return o?o.push(n):this._iconSetConfigs.set(t,[n]),this}_svgElementFromConfig(t){if(!t.svgElement){let n=this._svgElementFromString(t.svgText);this._setSvgAttributes(n,t.options),t.svgElement=n}return t.svgElement}_getIconConfigFromResolvers(t,n){for(let o=0;oe?e.pathname+e.search:""}}var qT=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],YH=qT.map(i=>`[${i}]`).join(", "),QH=/^url\(['"]?#(.*?)['"]?\)$/,YT=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){let n=this._cleanupFontValue(t);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){let n=this._cleanupFontValue(t);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(t,n,o,a,s,c){this._elementRef=t,this._iconRegistry=n,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ce.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),o||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let n=t.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,n=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=t.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>t.classList.remove(o)),n.forEach(o=>t.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let n=this._elementsWithExternalReferences;n&&n.forEach((o,a)=>{o.forEach(s=>{a.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){let n=t.querySelectorAll(YH),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let c=n[a],u=c.getAttribute(s),f=u?u.match(QH):null;if(f){let v=o.get(c);v||(v=[],o.set(c,v)),v.push({name:s,value:f[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[n,o]=this._splitIconName(t);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(It(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${n}:${o}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(HH),mi("aria-hidden"),h(GH),h(un),h(WH,8))},e.\u0275cmp=S({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(ie("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),qt(o.color?"mat-"+o.color:""),ne("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Y],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[ue,re],ngContentSelectors:BH,decls:1,vars:0,template:function(n,o){n&1&&(Ue(),ae(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let i=e;return i})(),QT=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})();var ZH=["determinateSpinner"];function XH(i,e){if(i&1&&(vi(),l(0,"svg",11),I(1,"circle",12),d()),i&2){let r=_();ie("viewBox",r._viewBox()),m(),xi("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeCircumference()/2,"px")("stroke-width",r._circleStrokeWidth(),"%"),ie("r",r._circleRadius())}}var JH=new O("mat-progress-spinner-default-options",{providedIn:"root",factory:e6});function e6(){return{diameter:KT}}var KT=100,t6=10,Af=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}constructor(t,n,o){this._elementRef=t,this._defaultColor="primary",this._value=0,this._diameter=KT,this._noopAnimations=n==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=t.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,t||0))}get diameter(){return this._diameter}set diameter(t){this._diameter=t||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=t||0}_circleRadius(){return(this.diameter-t6)/2}_viewBox(){let t=this._circleRadius()*2+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Tt,8),h(JH))},e.\u0275cmp=S({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&le(ZH,5),n&2){let a;Q(a=K())&&(o._determinateCircle=a.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(ie("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),qt("mat-"+o.color),xi("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),ne("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Zt],diameter:[2,"diameter","diameter",Zt],strokeWidth:[2,"strokeWidth","strokeWidth",Zt]},exportAs:["matProgressSpinner"],standalone:!0,features:[ue,re],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,o){if(n&1&&(D(0,XH,2,8,"ng-template",null,0,hi),l(2,"div",2,1),vi(),l(4,"svg",3),I(5,"circle",4),d()(),Zr(),l(6,"div",5)(7,"div",6)(8,"div",7),bi(9,8),d(),l(10,"div",9),bi(11,8),d(),l(12,"div",10),bi(13,8),d()()()),n&2){let a=Ie(1);m(4),ie("viewBox",o._viewBox()),m(),xi("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ie("r",o._circleRadius()),m(4),p("ngTemplateOutlet",a),m(2),p("ngTemplateOutlet",a),m(2),p("ngTemplateOutlet",a)}},dependencies:[rh],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let i=e;return i})();var Of=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[Si,pe]});let i=e;return i})();var Rf=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Nn(t)}get inset(){return this._inset}set inset(t){this._inset=Nn(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(ie("aria-orientation",o.vertical?"vertical":"horizontal"),ne("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[re],decls:0,vars:0,template:function(n,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),Pf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})();var i6=["searchSelectInput"],n6=["innerSelectSearch"],o6=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],r6=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],a6=(i,e)=>({"mat-select-search-inner-multiple":i,"mat-select-search-inner-toggle-all":e});function s6(i,e){if(i&1){let r=A();l(0,"mat-checkbox",12),b("change",function(n){y(r);let o=_();return w(o._emitSelectAllBooleanToParent(n.checked))}),d()}if(i&2){let r=_();p("color",r.matFormField==null?null:r.matFormField.color)("checked",r.toggleAllCheckboxChecked)("indeterminate",r.toggleAllCheckboxIndeterminate)("matTooltip",r.toggleAllCheckboxTooltipMessage)("matTooltipPosition",r.toggleAllCheckboxTooltipPosition)}}function c6(i,e){i&1&&I(0,"mat-spinner",13)}function l6(i,e){i&1&&ae(0,1,["*ngIf","clearIcon; else defaultIcon"])}function d6(i,e){if(i&1&&(l(0,"mat-icon",16),g(1),d()),i&2){let r=_(2);p("svgIcon",r.closeSvgIcon),m(),P(" ",r.closeSvgIcon?null:r.closeIcon," ")}}function u6(i,e){if(i&1){let r=A();l(0,"button",14),b("click",function(){y(r);let n=_();return w(n._reset(!0))}),D(1,l6,1,0,"ng-content",15)(2,d6,2,2,"ng-template",null,2,hi),d()}if(i&2){let r=Ie(3),t=_();m(),p("ngIf",t.clearIcon)("ngIfElse",r)}}function m6(i,e){i&1&&ae(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function h6(i,e){if(i&1&&g(0),i&2){let r=_(2);He(r.noEntriesFoundLabel)}}function p6(i,e){if(i&1&&(l(0,"div",17),D(1,m6,1,0,"ng-content",15)(2,h6,1,1,"ng-template",null,3,hi),d()),i&2){let r=Ie(3),t=_();m(),p("ngIf",t.noEntriesFound)("ngIfElse",r)}}var f6=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=N({type:i,selectors:[["","ngxMatSelectSearchClear",""]]}),i})(),g6=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],_6=new O("mat-selectsearch-default-options"),v6=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=N({type:i,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),i})(),JT=(()=>{class i{constructor(r,t,n,o=null,a=null,s){this.matSelect=r,this.changeDetectorRef=t,this._viewportRuler=n,this.matOption=o,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new T,this.onTouched=c=>{},this._options$=new $t(null),this.optionsList$=this._options$.pipe(Mt(c=>c?c.changes.pipe(de(u=>u.toArray()),Ot(c.toArray())):oe(null))),this.optionsLength$=this.optionsList$.pipe(de(c=>c?c.length:0)),this._formControl=new Ep(""),this._showNoEntriesFound$=An([this._formControl.valueChanges,this.optionsLength$]).pipe(de(([c,u])=>this.noEntriesFoundLabel&&c&&u===this.getOptionsLengthOffset())),this._onDestroy=new W,this.applyDefaultOptions(s)}get value(){return this._formControl.value}set _options(r){this._options$.next(r)}get _options(){return this._options$.getValue()}applyDefaultOptions(r){if(r)for(let t of g6)r.hasOwnProperty(t)&&(this[t]=r[t])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(jr(1),fe(this._onDestroy)).subscribe(r=>{r?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(It(1),Mt(r=>{this._options=this.matSelect.options;let t=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(zt(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&o&&((!t||!this.matSelect.compareWith(t.value,o.value)||!a.activeItem||!n.find(c=>this.matSelect.compareWith(c.value,a.activeItem.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),t=o})}))})).pipe(fe(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(fe(this._onDestroy)).subscribe(r=>{this.matOption&&(r?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(fe(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(fe(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(r){this.toggleAll.emit(r)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(r){(r.key&&r.key.length===1||r.keyCode>=65&&r.keyCode<=90||r.keyCode>=48&&r.keyCode<=57||r.keyCode===32||this.preventHomeEndKeyPropagation&&(r.keyCode===36||r.keyCode===35))&&r.stopPropagation(),this.matSelect.multiple&&r.key&&r.keyCode===13&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed===!0&&r.keyCode===27&&this.value&&(this._reset(!0),r.stopPropagation())}_handleKeyup(r){if(r.keyCode===38||r.keyCode===40){let t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex(o=>o.id===t);n!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[n]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}}writeValue(r){this._lastExternalInputValue=r,this._formControl.setValue(r),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(r){this._formControl.valueChanges.pipe(qe(t=>t!==this._lastExternalInputValue),zt(()=>this._lastExternalInputValue=void 0),fe(this._onDestroy)).subscribe(r)}registerOnTouched(r){this.onTouched=r}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let r=this.matSelect.panel.nativeElement,t=r.scrollTop;this.searchSelectInput.nativeElement.focus(),r.scrollTop=t}_reset(r){this._formControl.setValue(""),r&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(fe(this._onDestroy)).subscribe(r=>{let t=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!r||!Array.isArray(r))&&(r=[]);let n=this.matSelect.options.map(o=>o.value);this.previousSelectedValues.forEach(o=>{!r.some(a=>this.matSelect.compareWith(a,o))&&!n.some(a=>this.matSelect.compareWith(a,o))&&(r.push(o),t=!0)})}this.previousSelectedValues=r,t&&this.matSelect._onChange(r)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let r=this.innerSelectSearch.nativeElement,t;for(;r=r.parentElement;)if(r.classList.contains("mat-select-panel")){t=r;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return i.\u0275fac=function(r){return new(r||i)(h(vt),h(me),h(pn),h(it,8),h(ge,8),h(_6,8))},i.\u0275cmp=S({type:i,selectors:[["ngx-mat-select-search"]],contentQueries:function(r,t,n){if(r&1&&(Fe(n,f6,5),Fe(n,v6,5)),r&2){let o;Q(o=K())&&(t.clearIcon=o.first),Q(o=K())&&(t.noEntriesFound=o.first)}},viewQuery:function(r,t){if(r&1&&(le(i6,7,G),le(n6,7,G)),r&2){let n;Q(n=K())&&(t.searchSelectInput=n.first),Q(n=K())&&(t.innerSelectSearch=n.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[be([{provide:qi,useExisting:Wt(()=>i),multi:!0}])],ngContentSelectors:r6,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(r,t){if(r&1){let n=A();Ue(o6),I(0,"input",4),l(1,"div",5,0)(3,"div",6),D(4,s6,1,5,"mat-checkbox",7),l(5,"input",8,1),b("keydown",function(a){return y(n),w(t._handleKeydown(a))})("keyup",function(a){return y(n),w(t._handleKeyup(a))})("blur",function(){return y(n),w(t.onBlur())}),d(),D(7,c6,1,0,"mat-spinner",9)(8,u6,4,2,"button",10),ae(9),d(),I(10,"mat-divider"),d(),D(11,p6,4,2,"div",11),yo(12,"async")}r&2&&(m(),p("ngClass",Xs(11,a6,t.matSelect.multiple,t._isToggleAllCheckboxVisible())),m(3),p("ngIf",t._isToggleAllCheckboxVisible()),m(),p("type",t.type)("formControl",t._formControl)("placeholder",t.placeholderLabel),ie("aria-label",t.ariaLabel),m(2),p("ngIf",t.searching),m(),p("ngIf",!t.hideClearSearchButton&&t.value&&!t.searching),m(3),p("ngIf",yr(12,9,t._showNoEntriesFound$)))},dependencies:[Cn,he,ct,we,oy,Wi,If,YT,Af,tr,Rf,BE],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),i})();var ek=(()=>{class i{}return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=ee({type:i}),i.\u0275inj=J({imports:[Si,Mp,Jo,Mf,QT,Of,Rc,Pf]}),i})();function y6(i,e){if(i&1){let r=A();l(0,"mat-option")(1,"ngx-mat-select-search",1),b("ngModelChange",function(n){y(r);let o=_();return w(o.changed.emit(n))}),d()()}if(i&2){let r=_();m(),p("placeholderLabel",r.placeholderLabel)("noEntriesFoundLabel",r.noEntriesFoundLabel)}}var di=(()=>{let e=class e{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new T,this.notIfLessThan=7}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-cond-select-search"]],inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",options:"options",notIfLessThan:"notIfLessThan"},outputs:{changed:"changed"},decls:1,vars:1,consts:[[4,"ngIf"],["ngModel","",3,"ngModelChange","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&D(0,y6,2,2,"mat-option",0),n&2&&p("ngIf",o.options&&o.options.length>o.notIfLessThan)},dependencies:[he,we,De,it,JT]});let i=e;return i})();function w6(i,e){i&1&&(l(0,"uds-translate"),g(1,"New user permission for"),d())}function C6(i,e){i&1&&(l(0,"uds-translate"),g(1,"New group permission for"),d())}function x6(i,e){if(i&1&&(l(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),He(r.text)}}function D6(i,e){if(i&1&&(l(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),He(r.text)}}function S6(i,e){if(i&1&&(l(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),He(r.text)}}var tk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.done=new Jt}static launch(t,n,o){return q(this,null,function*(){let a=window.innerWidth<800?"80%":"50%";return t.gui.dialog.open(e,{width:a,data:{type:n,item:o},disableClose:!0}).componentInstance.done})}ngOnInit(){return q(this,null,function*(){let t=yield this.rest.authenticators.summary();for(let n of t)this.authenticators.push({id:n.id,text:n.name})})}changeAuth(t){return q(this,null,function*(){this.entities.length=0,this.entity="";let n=yield this.rest.authenticators.detail(t,this.data.type+"s").summary();for(let o of n)this.entities.push({id:o.id,text:o.name})})}save(){this.done.resolve({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()}cancel(){this.done.resolve(null),this.dialogRef.close()}filteredEntities(){let t=new Array;return this.entities.forEach(n=>{(!this.filterUser||n.text.toLocaleLowerCase().includes(this.filterUser.toLocaleLowerCase()))&&t.push(n)}),t}getFieldLabel(t){return t==="user"?django.gettext("User"):t==="group"?django.gettext("Group"):t==="auth"?django.gettext("Authenticator"):django.gettext("Permission")}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["titleGroup",""],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],[1,"container"],[3,"valueChange","ngModelChange","placeholder","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","placeholder","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",1),D(1,w6,2,0,"uds-translate",2),I(2,"b",3),D(3,C6,2,0,"ng-template",null,0,hi),d(),l(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-select",5),b("valueChange",function(c){return y(a),w(o.changeAuth(c))}),H("ngModelChange",function(c){return y(a),$(o.authenticator,c)||(o.authenticator=c),w(c)}),D(9,x6,2,2,"mat-option",6),d()(),l(10,"mat-form-field")(11,"mat-select",7),H("ngModelChange",function(c){return y(a),$(o.entity,c)||(o.entity=c),w(c)}),l(12,"uds-cond-select-search",8),b("changed",function(c){return y(a),w(o.filterUser=c)}),d(),D(13,D6,2,2,"mat-option",6),d()(),l(14,"mat-form-field")(15,"mat-select",7),H("ngModelChange",function(c){return y(a),$(o.permission,c)||(o.permission=c),w(c)}),D(16,S6,2,2,"mat-option",6),d()()()(),l(17,"mat-dialog-actions")(18,"button",9),b("click",function(){return y(a),w(o.cancel())}),l(19,"uds-translate"),g(20,"Cancel"),d()(),l(21,"button",10),b("click",function(){return y(a),w(o.save())}),l(22,"uds-translate"),g(23,"Ok"),d()()()}if(n&2){let a=Ie(4);m(),p("ngIf",o.data.type==="user")("ngIfElse",a),m(),p("innerHTML",o.data.item.name,Gt),m(6),p("placeholder",o.getFieldLabel("auth")),U("ngModel",o.authenticator),m(),p("ngForOf",o.authenticators),m(2),p("placeholder",o.getFieldLabel(o.data.type)),U("ngModel",o.entity),m(),p("options",o.entities),m(),p("ngForOf",o.filteredEntities()),m(2),p("placeholder",o.getFieldLabel("perm")),U("ngModel",o.permission),m(),p("ngForOf",o.permissions)}},dependencies:[$e,he,we,De,ke,Xe,et,Je,ge,vt,it,ce,di],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var E6=(i,e)=>[i,e];function I6(i,e){if(i&1){let r=A();l(0,"div",11)(1,"div",12),g(2),d(),l(3,"div",13),g(4),l(5,"a",14),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.revokePermission(n))}),l(6,"i",15),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;m(2),br(" ",r.entity_name,"@",r.auth_name," "),m(2),P(" ",r.perm_name," \xA0")}}function M6(i,e){if(i&1){let r=A();l(0,"div",7)(1,"div",8)(2,"div",9),b("click",function(n){let o=y(r).$implicit;return _().newPermission(o),w(n.preventDefault())}),l(3,"uds-translate"),g(4,"New permission..."),d()(),D(5,I6,8,3,"div",10),d()()}if(i&2){let r=e.$implicit;m(5),p("ngForOf",r)}}var ik=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.dialogRef=n,this.data=o,this.userPermissions=[],this.groupPermissions=[]}static launch(t,n,o){let a=window.innerWidth<800?"90%":"60%",s=t.gui.dialog.open(e,{width:a,data:{rest:n,item:o},disableClose:!1})}ngOnInit(){return q(this,null,function*(){yield this.reload()})}reload(){return q(this,null,function*(){let t=yield this.data.rest.getPermissions(this.data.item.id);this.updatePermissions(t)})}updatePermissions(t){this.userPermissions.length=0,this.groupPermissions.length=0;for(let n of t)n.type==="user"?this.userPermissions.push(n):this.groupPermissions.push(n)}revokePermission(t){return q(this,null,function*(){if(yield this.api.gui.questionDialog(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"")){let n=yield this.data.rest.revokePermission([t.id]);this.reload()}})}newPermission(t){return q(this,null,function*(){let n=t===this.userPermissions?"user":"group",o=yield tk.launch(this.api,n,this.data.item);o&&(yield this.data.rest.addPermission(this.data.item.id,n+"s",o.entity,o.permissision),this.reload())})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Permissions for"),d(),g(3,"\xA0"),I(4,"b",1),d(),l(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),g(8,"Users"),d(),l(9,"uds-translate",3),g(10,"Groups"),d()(),l(11,"div",4),D(12,M6,6,1,"div",5),d()(),l(13,"mat-dialog-actions")(14,"button",6)(15,"uds-translate"),g(16,"Ok"),d()()()),n&2&&(m(4),p("innerHTML",o.data.item.name,Gt),m(8),p("ngForOf",Xs(2,E6,o.userPermissions,o.groupPermissions)))},dependencies:[$e,ke,Yt,Xe,et,Je,ce],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var ak=Kd(Ff()),T6="text/csv",nk=",",ok=`\r +`,rk=i=>(i.changingThisBreaksApplicationSecurity!==void 0&&(i=i.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),i=""+i,'"'+i.replace('"','""')+'"'),Nf=i=>{let e="";i.columns.forEach(n=>{e+=rk(n.title)+nk}),e=e.slice(0,-1)+ok;let r=i.dataSource.data;for(let n of r){for(let o of i.columns){let a=n[o.name];switch(o.type){case pi.DATE:a=Bi("SHORT_DATE_FORMAT",a);break;case pi.DATETIME:a=Bi("SHORT_DATETIME_FORMAT",a);break;case pi.DATETIMESEC:a=Bi("SHORT_DATE_FORMAT",a," H:i:s");break;case pi.TIME:a=Bi("TIME_FORMAT",a);break;default:break}e+=rk(a)+nk}e=e.slice(0,-1)+ok}let t=new Blob([e],{type:T6});setTimeout(()=>{(0,ak.saveAs)(t,i.title+".csv",{autoBom:!1})})};var Fy=class{constructor(e,r){this._document=r;let t=this._textarea=this._document.createElement("textarea"),n=t.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",t.setAttribute("aria-hidden","true"),t.value=e,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t)}copy(){let e=this._textarea,r=!1;try{if(e){let t=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),r=this._document.execCommand("copy"),t&&t.focus()}}catch{}return r}destroy(){let e=this._textarea;e&&(e.remove(),this._textarea=void 0)}},sk=(()=>{let e=class e{constructor(t){this._document=t}copy(t){let n=this.beginCopy(t),o=n.copy();return n.destroy(),o}beginCopy(t){return new Fy(t,this._document)}};e.\u0275fac=function(n){return new(n||e)(M(se))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var ck=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var A6=["mat-menu-item",""],O6=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],R6=["mat-icon, [matMenuItemIcon]","*"];function P6(i,e){i&1&&(vi(),l(0,"svg",2),I(1,"polygon",3),d())}var F6=["*"];function N6(i,e){if(i&1){let r=A();l(0,"div",0),b("keydown",function(n){y(r);let o=_();return w(o._handleKeydown(n))})("click",function(){y(r);let n=_();return w(n.closed.emit("click"))})("@transformMenu.start",function(n){y(r);let o=_();return w(o._onAnimationStart(n))})("@transformMenu.done",function(n){y(r);let o=_();return w(o._onAnimationDone(n))}),l(1,"div",1),ae(2),d()()}if(i&2){let r=_();qt(r._classList),p("id",r.panelId)("@transformMenu",r._panelAnimationState),ie("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}var Ny=new O("MAT_MENU_PANEL"),hs=(()=>{let e=class e{constructor(t,n,o,a,s){this._elementRef=t,this._document=n,this._focusMonitor=o,this._parentMenu=a,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new W,this._focused=new W,this._highlighted=!1,this._triggersSubmenu=!1,a?.addItem?.(this)}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let t=this._elementRef.nativeElement.cloneNode(!0),n=t.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{let e=class e{constructor(t,n,o,a,s,c,u){this._template=t,this._componentFactoryResolver=n,this._appRef=o,this._injector=a,this._viewContainerRef=s,this._document=c,this._changeDetectorRef=u,this._attached=new W}attach(t={}){this._portal||(this._portal=new ki(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new vc(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));let n=this._template.elementRef.nativeElement;n.parentNode.insertBefore(this._outlet.outletElement,n),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}};e.\u0275fac=function(n){return new(n||e)(h(lt),h(vn),h(Xn),h(Pe),h(wt),h(se),h(me))},e.\u0275dir=N({type:e,selectors:[["ng-template","matMenuContent",""]],standalone:!0,features:[be([{provide:dk,useExisting:e}])]});let i=e;return i})(),Lf={transformMenu:li("transformMenu",[Pt("void",Me({opacity:0,transform:"scale(0.8)"})),xt("void => enter",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Me({opacity:1,transform:"scale(1)"}))),xt("* => void",Et("100ms 25ms linear",Me({opacity:0})))]),fadeInItems:li("fadeInItems",[Pt("showing",Me({opacity:1})),xt("void => *",[Me({opacity:0}),Et("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Lpe=Lf.fadeInItems,Vpe=Lf.transformMenu,L6=0,V6=new O("mat-menu-default-options",{providedIn:"root",factory:j6});function j6(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var Da=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}set panelClass(t){let n=this._previousPanelClass,o=B({},this._classList);n&&n.length&&n.split(" ").forEach(a=>{o[a]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(a=>{o[a]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(t){this.panelClass=t}constructor(t,n,o,a){this._elementRef=t,this._changeDetectorRef=a,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new qn,this._classList={},this._panelAnimationState="void",this._animationDone=new W,this.closed=new T,this.close=this.closed,this.panelId=`mat-menu-panel-${L6++}`,this._injector=k(Pe),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new la(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ot(this._directDescendantItems),Mt(t=>yt(...t.map(n=>n._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=t.toArray(),a=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[a]&&!o[a].disabled?n.setActiveItem(a):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Ot(this._directDescendantItems),Mt(n=>yt(...n.map(o=>o._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){let n=t.keyCode,o=this._keyManager;switch(n){case 27:Rt(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(t);return}t.stopPropagation()}focusFirstItem(t="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ri(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(t).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){let n=Math.min(this._baseElevation+t,24),o=`${this._elevationPrefix}${n}`,a=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!a||a===this._previousElevation){let s=B({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[o]=!0,this._previousElevation=o,this._classList=s}}setPositionClasses(t=this.xPosition,n=this.yPosition){this._classList=mt(B({},this._classList),{"mat-menu-before":t==="before","mat-menu-after":t==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,t.toState==="enter"&&this._keyManager.activeItemIndex===0&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Ot(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z),h(V6),h(me))},e.\u0275cmp=S({type:e,selectors:[["mat-menu"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,dk,5),Fe(a,hs,5),Fe(a,hs,4)),n&2){let s;Q(s=K())&&(o.lazyContent=s.first),Q(s=K())&&(o._allItems=s),Q(s=K())&&(o.items=s)}},viewQuery:function(n,o){if(n&1&&le(lt,5),n&2){let a;Q(a=K())&&(o.templateRef=a.first)}},hostVars:3,hostBindings:function(n,o){n&2&&ie("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Y],hasBackdrop:[2,"hasBackdrop","hasBackdrop",t=>t==null?null:Y(t)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[be([{provide:Ny,useExisting:e}]),ue,re],ngContentSelectors:F6,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(Ue(),D(0,N6,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Lf.transformMenu,Lf.fadeInItems]},changeDetection:0});let i=e;return i})(),mk=new O("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function B6(i){return()=>i.scrollStrategies.reposition()}var z6={provide:mk,deps:[Ct],useFactory:B6},lk=ji({passive:!0});var Vf=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._parentMaterialMenu,this._menuCloseSubscription=t.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(t,n,o,a,s,c,u,f,v){this._overlay=t,this._element=n,this._viewContainerRef=o,this._menuItemInstance=c,this._dir=u,this._focusMonitor=f,this._ngZone=v,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ce.EMPTY,this._hoverSubscription=Ce.EMPTY,this._menuCloseSubscription=Ce.EMPTY,this._changeDetectorRef=k(me),this._handleTouchStart=C=>{pd(C)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new T,this.onMenuOpen=this.menuOpened,this.menuClosed=new T,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=s instanceof Da?s:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,lk)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,lk),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let t=this.menu;if(this._menuOpen||!t)return;let n=this._createOverlay(t),o=n.getConfig(),a=o.positionStrategy;this._setPosition(t,a),o.hasBackdrop=t.hasBackdrop==null?!this.triggersSubmenu():t.hasBackdrop,n.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof Da&&(t._startAnimation(),t._directDescendantItems.changes.pipe(fe(t.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,n){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;let n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(t==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof Da?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(qe(o=>o.toState==="void"),It(1),fe(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let n=0,o=t.parentMenu;for(;o;)n++,o=o.parentMenu;t.setElevation(n)}}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){let n=this._getOverlayConfig(t);this._subscribeToPositions(t,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new Sn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,n){t.setPositionClasses&&n.positionChanges.subscribe(o=>{let a=o.connectionPair.overlayX==="start"?"after":"before",s=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(a,s)):t.setPositionClasses(a,s)})}_setPosition(t,n){let[o,a]=t.xPosition==="before"?["end","start"]:["start","end"],[s,c]=t.yPosition==="above"?["bottom","top"]:["top","bottom"],[u,f]=[s,c],[v,C]=[o,a],x=0;if(this.triggersSubmenu()){if(C=o=t.xPosition==="before"?"start":"end",a=v=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let E=this._parentMaterialMenu.items.first;this._parentInnerPadding=E?E._getHostElement().offsetTop:0}x=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(u=s==="top"?"bottom":"top",f=c==="top"?"bottom":"top");n.withPositions([{originX:o,originY:u,overlayX:v,overlayY:s,offsetY:x},{originX:a,originY:u,overlayX:C,overlayY:s,offsetY:x},{originX:o,originY:f,overlayX:v,overlayY:c,offsetY:-x},{originX:a,originY:f,overlayX:C,overlayY:c,offsetY:-x}])}_menuClosingActions(){let t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:oe(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(qe(s=>s!==this._menuItemInstance),qe(()=>this._menuOpen)):oe();return yt(t,o,a,n)}_handleMousedown(t){hd(t)||(this._openedBy=t.button===0?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){let n=t.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(qe(t=>t===this._menuItemInstance&&!t.disabled),jr(0,Kc)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Da&&this.menu._isAnimating?this.menu._animationDone.pipe(It(1),jr(0,Kc),fe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new ki(t.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(G),h(wt),h(mk),h(Ny,8),h(hs,10),h(kt,8),h(wi),h(Z))},e.\u0275dir=N({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("mousedown",function(s){return o._handleMousedown(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let i=e;return i})(),hk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[z6],imports:[Si,Ir,pe,on,to,pe]});let i=e;return i})();var fk=ji({passive:!0}),gk=(()=>{let e=class e{constructor(t,n){this._platform=t,this._ngZone=n,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Ti;let n=xn(t),o=this._monitoredElements.get(n);if(o)return o.subject;let a=new W,s="cdk-text-field-autofilled",c=u=>{u.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(s)?(n.classList.add(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(s)&&(n.classList.remove(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",c,fk),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:a,unlisten:()=>{n.removeEventListener("animationstart",c,fk)}}),a}stopMonitoring(t){let n=xn(t),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((t,n)=>this.stopMonitoring(n))}};e.\u0275fac=function(n){return new(n||e)(M(je),M(Z))},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var _k=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var Ly=new O("MAT_INPUT_VALUE_ACCESSOR"),H6=["button","checkbox","file","hidden","image","radio","range","reset","submit"],$6=0,ft=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=Nn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(er.required)??!1}set required(t){this._required=Nn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&x0().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Nn(t)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,c,u,f,v,C){this._elementRef=t,this._platform=n,this.ngControl=o,this._autofillMonitor=f,this._formField=C,this._uid=`mat-input-${$6++}`,this.focused=!1,this.stateChanges=new W,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(R=>x0().has(R)),this._iOSKeyupListener=R=>{let j=R.target;!j.value&&j.selectionStart===0&&j.selectionEnd===0&&(j.setSelectionRange(1,1),j.setSelectionRange(0,0))};let x=this._elementRef.nativeElement,E=x.nodeName.toLowerCase();this._inputValueAccessor=u||x,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&v.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Sr(c,o,s,a,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=E==="select",this._isTextarea=E==="textarea",this._isInFormField=!!C,this._isNativeSelect&&(this.controlType=x.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){let t=this._getPlaceholder();if(t!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=t,t?n.setAttribute("placeholder",t):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){H6.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let t=this._elementRef.nativeElement,n=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&n&&n.label)}else return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(Tn,10),h(Io,8),h(ls,8),h(Er),h(Ly,10),h(gk),h(Z),h(Mo,8))},e.\u0275dir=N({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,o){n&1&&b("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(Di("id",o.id)("disabled",o.disabled)("required",o.required),ie("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),ne("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[be([{provide:wa,useExisting:e}]),Qe]});let i=e;return i})(),vk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,us,us,_k,pe]});let i=e;return i})();var bk=(()=>{let e=class e{transform(t,n){let o;return n===void 0?o=(a,s)=>a>s?1:-1:o=(a,s)=>a[n]>s[n]?1:-1,t.sort(o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Qa({name:"sort",type:e,pure:!0});let i=e;return i})();var G6=["trigger"],q6=()=>[5,10,25,100,1e3];function Y6(i,e){if(i&1&&I(0,"img",39),i&2){let r=_();p("src",r.icon,Ee)}}function Q6(i,e){if(i&1){let r=A();l(0,"button",47),b("click",function(){let n=y(r).$implicit,o=_(5);return w(o.newAction.emit({param:n,table:o}))}),d()}if(i&2){let r=e.$implicit,t=_(5);p("innerHTML",t.api.safeString(t.api.gui.icon(r.icon)+r.name),Gt)}}function K6(i,e){if(i&1&&(ht(0),l(1,"button",44),g(2),d(),l(3,"mat-menu",45,3),D(5,Q6,1,1,"button",46),yo(6,"sort"),d(),pt()),i&2){let r=e.$implicit,t=Ie(4);m(),p("matMenuTriggerFor",t),m(),He(r.key),m(),p("overlapTrigger",!1),m(2),p("ngForOf",ib(6,4,r.value,"name"))}}function Z6(i,e){if(i&1&&(ht(0),l(1,"mat-menu",40,2),D(3,K6,7,7,"ng-container",41),yo(4,"keyvalue"),d(),l(5,"a",42)(6,"i",22),g(7,"insert_drive_file"),d(),l(8,"span",43)(9,"uds-translate"),g(10,"New"),d()(),l(11,"i",22),g(12,"arrow_drop_down"),d()(),pt()),i&2){let r=Ie(2),t=_(3);m(),p("overlapTrigger",!1),m(2),p("ngForOf",yr(4,3,t.grpTypes)),m(2),p("matMenuTriggerFor",r)}}function X6(i,e){if(i&1){let r=A();l(0,"button",49),b("click",function(){let n=y(r).$implicit,o=_(4);return w(o.newAction.emit({param:n,table:o}))}),d()}if(i&2){let r=e.$implicit,t=_(4);p("innerHTML",t.api.safeString(t.api.gui.icon(r.icon)+r.name),Gt)}}function J6(i,e){if(i&1&&(ht(0),l(1,"mat-menu",40,2),D(3,X6,1,1,"button",48),yo(4,"sort"),d(),l(5,"a",42)(6,"i",22),g(7,"insert_drive_file"),d(),l(8,"span",43)(9,"uds-translate"),g(10,"New"),d()(),l(11,"i",22),g(12,"arrow_drop_down"),d()(),pt()),i&2){let r=Ie(2),t=_(3);m(),p("overlapTrigger",!1),m(2),p("ngForOf",ib(4,3,t.oTypes,"name")),m(2),p("matMenuTriggerFor",r)}}function e$(i,e){if(i&1&&(ht(0),D(1,Z6,13,5,"ng-container",13)(2,J6,13,6,"ng-container",13),pt()),i&2){let r=_(2);m(),p("ngIf",r.newGrouped),m(),p("ngIf",!r.newGrouped)}}function t$(i,e){if(i&1){let r=A();ht(0),l(1,"a",50),b("click",function(){y(r);let n=_(2);return w(n.newAction.emit({param:void 0,table:n}))}),l(2,"i",22),g(3,"insert_drive_file"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"New"),d()()(),pt()}}function i$(i,e){if(i&1&&(ht(0),D(1,e$,3,2,"ng-container",13)(2,t$,7,0,"ng-container",13),pt()),i&2){let r=_();m(),p("ngIf",r.oTypes!==void 0&&r.oTypes.length!==0),m(),p("ngIf",r.oTypes!==void 0&&r.oTypes.length===0)}}function n$(i,e){if(i&1){let r=A();ht(0),l(1,"a",51),b("click",function(){y(r);let n=_();return w(n.emitIfSelection(n.editAction))}),l(2,"i",22),g(3,"edit"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"Edit"),d()()(),pt()}if(i&2){let r=_();m(),p("disabled",r.selection.selected.length!==1)}}function o$(i,e){if(i&1){let r=A();ht(0),l(1,"a",51),b("click",function(){y(r);let n=_();return w(n.permissions())}),l(2,"i",22),g(3,"perm_identity"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"Permissions"),d()()(),pt()}if(i&2){let r=_();m(),p("disabled",r.selection.selected.length!==1)}}function r$(i,e){if(i&1){let r=A();l(0,"a",53),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(2);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,Gt)}}function a$(i,e){if(i&1&&(ht(0),D(1,r$,1,2,"a",52),pt()),i&2){let r=_();m(),p("ngForOf",r.getcustomButtons())}}function s$(i,e){if(i&1){let r=A();ht(0),l(1,"a",54),b("click",function(){y(r);let n=_();return w(n.export())}),l(2,"i",22),g(3,"import_export"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"Export CSV"),d()()(),pt()}}function c$(i,e){if(i&1){let r=A();ht(0),l(1,"a",55),b("click",function(){y(r);let n=_();return w(n.emitIfSelection(n.deleteAction,!0))}),l(2,"i",22),g(3,"delete_forever"),d(),l(4,"span",43)(5,"uds-translate"),g(6,"Delete"),d()()(),pt()}if(i&2){let r=_();m(),p("disabled",r.selection.isEmpty())}}function l$(i,e){if(i&1){let r=A();l(0,"button",56),b("click",function(){y(r);let n=_();return n.filterText="",w(n.applyFilter())}),l(1,"i",22),g(2,"clear"),d()()}}function d$(i,e){i&1&&I(0,"mat-header-cell")}function u$(i,e){i&1&&(l(0,"i",61),g(1,"check_box"),d())}function m$(i,e){i&1&&(l(0,"i",62),g(1,"check_box_outline_blank"),d())}function h$(i,e){if(i&1){let r=A();l(0,"mat-cell",59),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a.clickRow(o,n))}),D(1,u$,2,0,"i",60)(2,m$,2,0,"ng-template",null,4,hi),d()}if(i&2){let r=e.$implicit,t=Ie(3),n=_(2);m(),p("ngIf",n.selection.isSelected(r))("ngIfElse",t)}}function p$(i,e){i&1&&(ht(0,57),D(1,d$,1,0,"mat-header-cell",27)(2,h$,4,2,"mat-cell",58),pt())}function f$(i,e){i&1&&I(0,"mat-header-cell")}function g$(i,e){if(i&1){let r=A();l(0,"mat-cell")(1,"div",63),b("click",function(n){let o=y(r).$implicit,a=_();return a.detailAction.emit({param:o,table:a}),w(n.stopPropagation())}),l(2,"i",22),g(3,"subdirectory_arrow_right"),d()()()}}function _$(i,e){if(i&1&&(l(0,"mat-header-cell",67),g(1),d()),i&2){let r=_().$implicit;m(),He(r.title)}}function v$(i,e){if(i&1){let r=A();l(0,"mat-cell",68),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a.clickRow(o,n))})("contextmenu",function(n){let o=y(r).$implicit,a=_().$implicit,s=_();return w(s.onContextMenu(o,a,n))}),I(1,"div",69),d()}if(i&2){let r=e.$implicit,t=_().$implicit,n=_();m(),p("innerHtml",n.getRowColumn(r,t),Gt)}}function b$(i,e){if(i&1&&(ht(0,64),D(1,_$,2,1,"mat-header-cell",65)(2,v$,2,1,"mat-cell",66),pt()),i&2){let r=e.$implicit;Xr("matColumnDef",r.name)}}function y$(i,e){i&1&&I(0,"mat-header-row")}function w$(i,e){if(i&1&&I(0,"mat-row",70),i&2){let r=e.$implicit,t=_();p("ngClass",t.rowClass(r))}}function C$(i,e){if(i&1&&(l(0,"div",71),g(1),l(2,"uds-translate"),g(3,"Selected items"),d()()),i&2){let r=_();m(),P(" ",r.selection.selected.length," ")}}function x$(i,e){if(i&1){let r=A();l(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.copyToClipboard())}),l(1,"i",76),g(2,"content_copy"),d(),l(3,"uds-translate"),g(4,"Copy"),d()()}}function D$(i,e){if(i&1){let r=A();l(0,"button",75),b("click",function(){y(r);let n=_().item,o=_();return w(o.detailAction.emit({param:n,table:o}))}),l(1,"i",76),g(2,"subdirectory_arrow_right"),d(),l(3,"uds-translate"),g(4,"Detail"),d()()}}function S$(i,e){if(i&1){let r=A();l(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.emitIfSelection(n.editAction))}),l(1,"i",76),g(2,"edit"),d(),l(3,"uds-translate"),g(4,"Edit"),d()()}}function E$(i,e){if(i&1){let r=A();l(0,"button",75),b("click",function(){y(r);let n=_(2);return w(n.permissions())}),l(1,"i",76),g(2,"perm_identity"),d(),l(3,"uds-translate"),g(4,"Permissions"),d()()}}function I$(i,e){if(i&1){let r=A();l(0,"button",77),b("click",function(){let n=y(r).$implicit,o=_(2);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(2);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,Gt)}}function M$(i,e){if(i&1){let r=A();l(0,"button",78),b("click",function(){y(r);let n=_(2);return w(n.emitIfSelection(n.deleteAction))}),l(1,"i",76),g(2,"delete_forever"),d(),l(3,"uds-translate"),g(4,"Delete"),d()()}}function T$(i,e){if(i&1){let r=A();l(0,"button",77),b("click",function(){let n=y(r).$implicit,o=_(3);return w(o.emitCustom(n))}),d()}if(i&2){let r=e.$implicit,t=_(3);p("disabled",t.isCustomDisabled(r))("innerHTML",r.html,Gt)}}function k$(i,e){if(i&1&&(ht(0),I(1,"mat-divider"),D(2,T$,1,2,"button",73),pt()),i&2){let r=_(2);m(2),p("ngForOf",r.getCustomAccelerators())}}function A$(i,e){if(i&1&&D(0,x$,5,0,"button",72)(1,D$,5,0,"button",72)(2,S$,5,0,"button",72)(3,E$,5,0,"button",72)(4,I$,1,2,"button",73)(5,M$,5,0,"button",74)(6,k$,3,1,"ng-container",13),i&2){let r=_();p("ngIf",r.allowCopy===!0),m(),p("ngIf",r.detailAction.observed),m(),p("ngIf",r.editAction.observed),m(),p("ngIf",r.hasPermissions===!0),m(),p("ngForOf",r.getCustomMenu()),m(),p("ngIf",r.deleteAction.observed),m(),p("ngIf",r.hasAccelerators)}}var Te=(()=>{let e=class e{constructor(t,n){this.api=t,this.clipboard=n,this.contextMenu={},this.paginator={},this.sort={},this.rest={},this.tableId="",this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new T,this.rowSelected=new T,this.newAction=new T,this.editAction=new T,this.deleteAction=new T,this.customButtonAction=new T,this.detailAction=new T,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new So(!0,[]),this.lastSel=null,this.dataSource=new Nc([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.hasCustomButtons=!1,this.hasButtons=!1,this.hasActions=!1,this.hasAccelerators=!1}ngOnInit(){return q(this,null,function*(){this.customButtons===void 0||this.customButtons.length===0||!this.customButtonAction.observed?this.hasCustomButtons=!1:this.hasCustomButtons=this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||this.detailAction.observed||this.editAction.observed||this.hasPermissions||this.deleteAction.observed,this.hasActions=this.hasButtons||this.customButtons!==void 0&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(a,s)=>{if(!(s in a))return"";let c=a[s];return typeof c=="number"?c:typeof c=="string"?c.toLocaleLowerCase():(c===null&&(c=7226578800),c.changingThisBreaksApplicationSecurity&&(c=c.changingThisBreaksApplicationSecurity),(""+c).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=(a,s)=>{try{this.columns.forEach(c=>{if((""+a[c.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(s))throw Error()})}catch{return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new So(this.multiSelect===!0,[]);let t=this.rest.permision();t&Mr.MANAGEMENT||(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),t!==Mr.ALL&&(this.hasPermissions=!1),this.icon!==void 0&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png"));let n=yield this.rest.types(),o=yield this.rest.tableInfo();yield this.initialize(o,n)})}initialize(t,n){return q(this,null,function*(){this.oTypes=n,this.types=new Map,this.grpTypes=new Map;for(let a of n)if(this.types.set(a.type,a),a.group!==void 0){this.grpTypes.has(a.group)||this.grpTypes.set(a.group,[]);let s=this.grpTypes.get(a.group);s!==void 0&&s.push(a)}t["row-style"]!==void 0&&t["row-style"].field!==void 0?this.rowStyleInfo=t["row-style"]:this.rowStyleInfo=null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");let o=[];for(let a of t.fields)for(let s in a)if(a.hasOwnProperty(s)){let c=a[s];o.push({name:s,title:c.title,type:c.type===void 0?pi.ALPHANUMERIC:c.type,dict:c.dict}),(c.visible===void 0||c.visible)&&this.displayedColumns.push(s)}this.columns=o,this.detailAction.observed&&this.displayedColumns.push("detail-column"),yield this.overview()})}overview(){return q(this,null,function*(){if(!this.loading){this.selection.clear(),this.dataSource.data=[],this.loading=!0;try{let t=yield this.rest.overview();if(this.onItem)for(let n of t)this.onItem(n);this.dataSource.data=t,this.loaded.emit({param:this.firstLoad,table:this}),this.firstLoad=!1}finally{this.loading=!1}}})}getcustomButtons(){return this.customButtons?this.customButtons.filter(t=>t.type!==ut.ONLY_MENU&&t.type!==ut.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(t=>t.type!==ut.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(t=>t.type===ut.ACCELERATOR):[]}getRowColumn(t,n){let o=t[n.name];switch(n.type){case pi.IMAGE:return this.api.safeString(this.api.gui.icon(o,"48px"));case pi.DATE:o=Bi("SHORT_DATE_FORMAT",o);break;case pi.DATETIME:o=Bi("SHORT_DATETIME_FORMAT",o);break;case pi.TIME:o=Bi("TIME_FORMAT",o);break;case pi.DATETIMESEC:o=Bi("SHORT_DATE_FORMAT",o," H:i:s");break;case pi.ICON:try{o=this.api.gui.icon(this.types.get(t.type).icon)+o}catch{}return this.api.safeString(o);case pi.CALLBACK:break;case pi.DICTIONARY:try{o=n.dict[o]}catch{o=""}break}return o}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)}copyToClipboard(){this.clipboard.copy(this.clipValue||"")}rowClass(t){let n=[];return this.selection.isSelected(t)&&n.push("selected"),this.rowStyleInfo!==null&&n.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),n}emitIfSelection(t,n=!1){let o=this.selection.selected.length;o>0&&(n===!0||o===1)&&t.emit({table:this,param:o})}isCustomDisabled(t){switch(t.type){case void 0:case ut.SINGLE_SELECT:return this.selection.selected.length!==1||t.disabled===!0;case ut.MULTI_SELECT:return this.selection.isEmpty()||t.disabled===!0;default:return!1}}emitCustom(t){!this.selection.selected.length&&t.type!==ut.ALWAYS||(t.type===ut.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties||[]):this.customButtonAction.emit({param:t,table:this}))}clickRow(t,n){let o=new Date().getTime();if((this.detailAction.observed||this.editAction.observed)&&Math.abs(this.lastClickInfo.x-n.x)<16&&Math.abs(this.lastClickInfo.y-n.y)<16&&o-this.lastClickInfo.time<250){this.selection.clear(),this.selection.select(t),this.detailAction.observed?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1);return}this.lastClickInfo={time:o,x:n.x,y:n.y},this.doSelect(t,n)}doSelect(t,n){if(n.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(n.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t){let o=!1,a=this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data;for(let s of a){if((s===t||s===this.lastSel)&&(o=!o,o===!1)){this.selection.select(s);break}o&&this.selection.select(s)}}}else this.lastSel!==t&&this.selection.clear(),this.lastSel=t,this.selection.toggle(t);this.rowSelected.emit({param:null,table:this})}onContextMenu(t,n,o){o.preventDefault();let a=t[n.name];a.changingThisBreaksApplicationSecurity&&(a=a.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+a,this.hasActions&&(this.selection.clear(),this.selection.select(t),this.contextMenuPosition.x=o.clientX+"px",this.contextMenuPosition.y=o.clientY+"px",this.contextMenu.menuData={item:t},this.contextMenu.openMenu())}selectElement(t,n){(this.dataSource.sort?this.dataSource.sortData(this.dataSource.data,this.dataSource.sort):this.dataSource.data).forEach((a,s)=>{if(a[t]===n){let c=Math.floor(s/this.paginator.pageSize);this.selection.select(a),this.paginator.pageIndex=c,this.paginator.page.next({pageIndex:c,pageSize:this.paginator.pageSize,length:this.paginator.length})}})}export(){Nf(this)}permissions(){this.selection.selected.length&&ik.launch(this.api,this.rest,this.selection.selected[0])}keyDown(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault();break}}};e.\u0275fac=function(n){return new(n||e)(h(z),h(sk))},e.\u0275cmp=S({type:e,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&(le(G6,7),le(Tr,7),le(kr,7)),n&2){let a;Q(a=K())&&(o.contextMenu=a.first),Q(a=K())&&(o.paginator=a.first),Q(a=K())&&(o.sort=a.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[["trigger","matMenuTrigger"],["contextMenu","matMenu"],["newMenu","matMenu"],["sub_menu","matMenu"],["uncheck",""],[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"keyup","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"matSortChange","dataSource"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",1,"main-button",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click","innerHTML"],["mat-menu-item","","class","main-button",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"main-button",3,"click","innerHTML"],["mat-raised-button","","color","primary",1,"main-button",3,"click"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"click","disabled","innerHTML"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"click","disabled"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons check checked",4,"ngIf","ngIfElse"],[1,"material-icons","check","checked"],[1,"material-icons","check"],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"click","disabled","innerHTML"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(n,o){if(n&1){let a=A();l(0,"div",5)(1,"div",6)(2,"div",7),D(3,Y6,1,1,"img",8),g(4),d(),l(5,"div",9),g(6),d()(),l(7,"div",10)(8,"div",11)(9,"div",12),D(10,i$,3,2,"ng-container",13)(11,n$,7,1,"ng-container",13)(12,o$,7,1,"ng-container",13)(13,a$,2,1,"ng-container",13)(14,s$,7,0,"ng-container",13)(15,c$,7,1,"ng-container",13),d(),l(16,"div",14)(17,"div",15)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"Filter"),d()(),l(22,"input",16),b("keyup",function(){return y(a),w(o.applyFilter())}),H("ngModelChange",function(c){return y(a),$(o.filterText,c)||(o.filterText=c),w(c)}),d(),D(23,l$,3,0,"button",17),d()(),l(24,"div",18),I(25,"mat-paginator",19),d(),l(26,"div",20)(27,"a",21),b("click",function(){return y(a),w(o.overview())}),l(28,"i",22),g(29,"autorenew"),d()()()()(),l(30,"div",23),b("keydown",function(c){return y(a),w(o.keyDown(c))}),l(31,"mat-table",24),b("matSortChange",function(c){return y(a),w(o.sortChanged(c))}),D(32,p$,3,0,"ng-container",25),ht(33,26),D(34,f$,1,0,"mat-header-cell",27)(35,g$,4,0,"mat-cell",28),pt(),D(36,b$,3,1,"ng-container",29)(37,y$,1,0,"mat-header-row",30)(38,w$,1,1,"mat-row",31),d(),l(39,"div",32)(40,"div",33),I(41,"mat-progress-spinner",34),d()()(),l(42,"div",35),g(43," \xA0 "),D(44,C$,4,1,"div",36),d()(),I(45,"div",37,0),l(47,"mat-menu",null,1),D(49,A$,7,7,"ng-template",38),d()()}if(n&2){let a=Ie(48);m(3),p("ngIf",o.icon!==void 0),m(),P(" ",o.title," "),m(2),P(" ",o.subtitle," "),m(4),p("ngIf",o.newAction.observed),m(),p("ngIf",o.editAction.observed),m(),p("ngIf",o.hasPermissions===!0),m(),p("ngIf",o.hasCustomButtons),m(),p("ngIf",o.allowExport===!0),m(),p("ngIf",o.deleteAction.observed),m(7),U("ngModel",o.filterText),m(),p("ngIf",o.filterText),m(2),p("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Zs(27,q6))("showFirstLastButtons",!0),m(6),p("dataSource",o.dataSource),m(),p("ngIf",o.hasButtons),m(4),p("ngForOf",o.columns),m(),p("matHeaderRowDef",o.displayedColumns),m(),p("matRowDefColumns",o.displayedColumns),m(),p("hidden",!o.loading),m(5),p("ngIf",o.hasButtons&&o.selection.selected.length>0),m(),xi("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),p("matMenuTriggerFor",a)}},dependencies:[Cn,$e,he,ct,we,De,_a,lp,Wi,Da,hs,uk,Vf,ge,Ae,oo,ft,_f,bf,xf,yf,vf,Df,wf,Cf,Sf,Ef,Tr,kr,cf,Af,Rf,ce,zE,bk],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1rem;margin-bottom:1rem}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.1rem}.buttons[_ngcontent-%COMP%] .mat-mdc-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-mdc-menu-item[_ngcontent-%COMP%]{height:2rem;line-height:2rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}.check[_ngcontent-%COMP%]{margin-left:.5rem;font-size:1.5rem;width:1.5rem}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-mdc-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-mdc-menu-panel{min-height:3rem} .mat-mdc-menu-panel.mat-mdc-menu-panel{max-width:32rem} .mat-mdc-paginator-range-label{min-width:6em}.mat-mdc-menu-item[_ngcontent-%COMP%]{min-height:2.5rem} .dark-theme .mat-mdc-paginator-container{background-color:#303030} .dark-theme .buttons .mat-mdc-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}.mat-column-token[_ngcontent-%COMP%]{overflow-wrap:anywhere}']});let i=e;return i})();var yk='pause'+django.gettext("Maintenance")+"",O$='pause'+django.gettext("Exit maintenance mode")+"",R$='pause'+django.gettext("Enter maintenance mode")+"",Vy=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:yk,type:ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.rest.providers.maintenance(n.id).then(()=>{t.table.overview()})})}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=yk;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=O$:this.customButtons[0].html=R$}onDetail(t){this.api.navigation.gotoService(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-providers"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("customButtonAction",function(s){return o.onMaintenance(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("rowSelected",function(s){return o.onRowSelect(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".row-maintenance-true>mat-cell{color:#dc3131!important} .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center} .mat-column-maintenance_state{max-width:10rem;justify-content:center}"]});let i=e;return i})();var ao=class{constructor(e,r,t,n){this.title=e,this.data=r,this.columns=t,this.id=n,this.columnsDefinition=Array.from(t,o=>{let a={};return a[o.field]={visible:!0,title:o.title,type:o.type===void 0?pi.ALPHANUMERIC:o.type},a})}get(e){return Promise.resolve({})}getLogs(e){return Promise.resolve([])}overview(e){return typeof this.data=="function"?Promise.resolve(this.data()):Promise.resolve(this.data)}summary(e){return this.overview()}put(e,r){return Promise.resolve()}create(e){return Promise.resolve()}save(e,r){return Promise.resolve()}test(e,r){return Promise.resolve("")}delete(e){return Promise.resolve()}permision(){return Mr.ALL}getPermissions(e){return Promise.resolve([])}addPermission(e,r,t,n){return Promise.resolve({})}revokePermission(e){return Promise.resolve()}types(){return Promise.resolve([])}gui(e){return Promise.resolve({})}callback(e,r){return Promise.resolve([])}tableInfo(){return Promise.resolve({fields:this.columnsDefinition,title:this.title})}detail(e,r){return null}invoke(e,r){return Promise.resolve({})}};var P$=()=>[5,10,25,100,1e3];function F$(i,e){if(i&1){let r=A();l(0,"button",24),b("click",function(){y(r);let n=_();return n.filterText="",w(n.applyFilter())}),l(1,"i",8),g(2,"close"),d()()}}function N$(i,e){if(i&1&&(l(0,"mat-header-cell",28),g(1),d()),i&2){let r=_().$implicit;m(),He(r)}}function L$(i,e){if(i&1&&(l(0,"mat-cell"),I(1,"div",29),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_();m(),p("innerHtml",n.getRowColumn(r,t),Gt)}}function V$(i,e){if(i&1&&(ht(0,25),D(1,N$,2,1,"mat-header-cell",26)(2,L$,2,1,"mat-cell",27),pt()),i&2){let r=e.$implicit;p("matColumnDef",r)}}function j$(i,e){i&1&&I(0,"mat-header-row")}function B$(i,e){if(i&1&&I(0,"mat-row",30),i&2){let r=e.$implicit,t=_();p("ngClass",t.rowClass(r))}}var so=(()=>{let e=class e{constructor(t){this.api=t,this.rest={},this.itemId="",this.tableId="",this.pageSize=10,this.paginator={},this.sort={},this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new Nc([]),this.selection=new So}ngOnInit(){this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc";for(let t of this.displayedColumns){let n=t==="date"?pi.DATETIMESEC:pi.ALPHANUMERIC;this.columns.push({name:t,title:t,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()}overview(){return q(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(t,n){}getRowColumn(t,n){let o=t[n];return n==="date"?o=Bi("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=rM(o)),o}rowClass(t){return["level-"+t.level]}applyFilter(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}sortChanged(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)}export(){Nf(this)}keyDown(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault();break}}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&(le(Tr,7),le(kr,7)),n&2){let a;Q(a=K())&&(o.paginator=a.first),Q(a=K())&&(o.sort=a.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"keyup","ngModelChange","ngModel"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"matSortChange","dataSource"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),I(3,"img",3),g(4," \xA0"),l(5,"uds-translate"),g(6,"Logs"),d()()(),l(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),b("click",function(){return o.export()}),l(11,"i",8),g(12,"import_export"),d(),l(13,"span",9)(14,"uds-translate"),g(15,"Export"),d()()()(),l(16,"div",10)(17,"div",11)(18,"uds-translate"),g(19,"Filter"),d(),g(20,"\xA0 "),l(21,"mat-form-field")(22,"input",12),b("keyup",function(){return o.applyFilter()}),H("ngModelChange",function(s){return $(o.filterText,s)||(o.filterText=s),s}),d(),D(23,F$,3,0,"button",13),d()(),l(24,"div",14),I(25,"mat-paginator",15),d(),l(26,"div",16)(27,"a",17),b("click",function(){return o.overview()}),l(28,"i",8),g(29,"autorenew"),d()()()()(),l(30,"div",18),b("keydown",function(s){return o.keyDown(s)}),l(31,"mat-table",19),b("matSortChange",function(s){return o.sortChanged(s)}),D(32,V$,3,1,"ng-container",20)(33,j$,1,0,"mat-header-row",21)(34,B$,1,1,"mat-row",22),d()(),I(35,"div",23),d()()),n&2&&(m(3),p("src",o.api.staticURL("admin/img/icons/logs.png"),Ee),m(19),U("ngModel",o.filterText),m(),p("ngIf",o.filterText),m(2),p("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",Zs(11,P$))("showFirstLastButtons",!0),m(6),p("dataSource",o.dataSource),m(),p("ngForOf",o.displayedColumns),m(),p("matHeaderRowDef",o.displayedColumns),m(),p("matRowDefColumns",o.displayedColumns))},dependencies:[Cn,$e,he,ct,we,De,_a,ke,lp,Wi,ge,oo,ft,_f,bf,xf,yf,vf,Df,wf,Cf,Sf,Ef,Tr,kr,cf,ce],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{min-width:12rem;max-width:20rem}.mat-column-level[_ngcontent-%COMP%]{max-width:8rem;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:8rem} .level-60000>.mat-mdc-cell{color:#ff1e1e!important} .level-50000>.mat-mdc-cell{color:#ff1e1e!important} .level-40000>.mat-mdc-cell{color:#d65014!important}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}"]});let i=e;return i})();function z$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services pools"),d())}function U$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}var H$=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],wk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.customButtons=[Ei.getGotoButton(Ad,"id")],this.servicePools={},this.logs={},this.services=a.services,this.service=a.service}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:o,services:n},disableClose:!1})}ngOnInit(){let t=()=>this.services.invoke(this.service.id+"/servicepools");this.servicePools=new ao(django.gettext("Service pools"),t,H$,this.service.id+"infopsls")}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),D(7,z$,2,0,"ng-template",1),I(8,"uds-table",2),d(),l(9,"mat-tab"),D(10,U$,2,0,"ng-template",1),l(11,"div",3),I(12,"uds-logs-table",4),d()()()(),l(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),g(16,"Ok"),d()()()),n&2&&(m(3),P(" ",o.service.name,` +`),m(5),p("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),m(4),p("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[ke,Yt,Xe,et,Je,ei,ti,ni,ce,Te,so],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]});let i=e;return i})();function $$(i,e){if(i&1&&(l(0,"div",3),I(1,"div",4)(2,"div",5),d()),i&2){let r=e.$implicit;m(),p("innerHTML",r.gui.label,Gt),m(),p("innerHTML",r.value,Gt)}}var co=(()=>{let e=class e{constructor(t){this.api=t,this.gui=[]}ngOnInit(){this.processFields()}processFields(){if(!this.gui||!this.value)return;let t=this.gui.filter(n=>n.gui.type!==Gi.HIDDEN);for(let n of t){let o=this.value[n.name];switch(n.gui.type){case Gi.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case Gi.PASSWORD:n.value=django.gettext("(hidden)");break;case Gi.CHOICE:{let a=Dd.locateChoice(o,n);n.value=a.text;break}case Gi.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case Gi.IMAGECHOICE:{let a=Dd.locateChoice(o,n);a.img&&(n.value=this.api.safeString(this.api.gui.icon(a.img)+" "+a.text));break}case Gi.INFO:continue;default:n.value=o}(n.value===""||n.value===void 0||n.value===null)&&(n.value="(empty)")}return t}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),D(2,$$,3,2,"div",2),d(),I(3,"div"),d()),n&2&&(m(2),p("ngForOf",o.processFields()))},dependencies:[$e],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]});let i=e;return i})();var W$=i=>["/services","providers",i];function G$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function q$(i,e){if(i&1&&I(0,"uds-information",15),i&2){let r=_(2);p("value",r.provider)("gui",r.gui)}}function Y$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services"),d())}function Q$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Usage"),d())}function K$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}function Z$(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),l(3,"mat-tab"),D(4,G$,2,0,"ng-template",9),l(5,"div",10),D(6,q$,1,2,"uds-information",11),d()(),l(7,"mat-tab"),D(8,Y$,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNewService(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditService(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteService(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onInformation(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()(),l(11,"mat-tab"),D(12,Q$,2,0,"ng-template",9),l(13,"div",10)(14,"uds-table",13),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()(),l(15,"mat-tab"),D(16,K$,2,0,"ng-template",9),l(17,"div",10),I(18,"uds-logs-table",14),d()()()()()}if(i&2){let r=_();m(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),m(4),p("ngIf",r.provider&&r.gui),m(4),p("rest",r.services)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","providers-d-services"+r.provider.id),m(4),p("rest",r.usage)("multiSelect",!0)("allowExport",!0)("pageSize",r.api.config.admin.page_size)("tableId","providers-d-usage"+r.provider.id),m(4),p("rest",r.services.parentModel)("itemId",r.provider.id)("tableId","providers-d-log"+r.provider.id)}}var jy=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ut.ONLY_MENU}],this.provider=null,this.gui=[],this.services={},this.usage={},this.selectedTab=1}ngOnInit(){let t=this.route.snapshot.paramMap.get("provider");t&&(this.services=this.rest.providers.detail(t,"services"),this.usage=this.rest.providers.detail(t,"usage"),this.services.parentModel.get(t).then(n=>{this.provider=n,this.services.parentModel.gui(n.type).then(o=>{this.gui=o})}))}onInformation(t){wk.launch(this.api,this.services,t.table.selection.selected[0])}onNewService(t){let n=django.gettext("New service")+": "+(t.param.name||"");this.api.gui.forms.typedNewForm(t,n,!1)}onEditService(t){let n=django.gettext("Edit service")+": "+(t.table.selection.selected[0].name||"");this.api.gui.forms.typedEditForm(t,n,!1)}onDeleteService(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("service");if(n!==void 0){this.selectedTab=1;let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-provider-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"newAction","editAction","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"],["icon","usage",3,"deleteAction","rest","multiSelect","allowExport","pageSize","tableId"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,Z$,19,17,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,W$,o.services.parentId)),m(4),p("src",o.api.staticURL("admin/img/icons/services.png"),Ee),m(),P(" \xA0",o.provider==null?null:o.provider.name," "),m(),p("ngIf",o.provider!==null))},dependencies:[he,gi,ei,ti,ni,ce,Te,so,co]});let i=e;return i})();var By=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New server"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit server"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete server"))}onDetail(t){this.api.navigation.gotoServerDetail(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("server"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-servers"]],decls:1,vars:7,consts:[["tableId","server-groups-table","icon","servers",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","newGrouped","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();var Ck=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.dialogRef=n,this.data=o,this.filename="",this.contains_header=!0,this.separator=",",this.result=[],this.title="Import CSV",this.help="Select a CSV file to import",o&&(this.title=o.title||this.title,this.help=o.help||this.help)}static launch(t,n){return q(this,null,function*(){let o=window.innerWidth<800?"60%":"40%",a=t.gui.dialog.open(e,{width:o,data:n,disableClose:!1});return new Promise((s,c)=>{a.afterClosed().subscribe(u=>{s({data:a.componentInstance.result})})})})}loadCSV(t){return q(this,null,function*(){let n=t.split(` +`).map(a=>a.trim());if(n.length>=1024)return console.log("Too many lines, do not loaded (max is 1024)"),[];this.contains_header&&(n=n.slice(1));let o=[];for(let a of n){let s=a.split(this.separator);s.length===1&&s[0]===""||o.push(s)}return o})}onFileChange(t){return q(this,null,function*(){let n=t.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,a=new Jt;o.onload=c=>{let u=o.result;a.resolve(u)},o.readAsText(n);let s=yield a;this.result=yield this.loadCSV(s)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-cvsimport"]],decls:57,vars:8,consts:[["fileUpload",""],["mat-dialog-title",""],[3,"innerHTML"],[1,"content"],[1,"options"],[1,"field"],[3,"valueChange","value"],[3,"value"],["value",","],["value",";"],["value","|"],["value","tab"],[1,"upload"],["type","file","accept",".csv",1,"file-input",3,"change"],["type","text","matInput","","readonly","readonly",3,"ngModelChange","click","ngModel","placeholder","matTooltip"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-raised-button","","mat-dialog-close","","color","warn",3,"click"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",1)(1,"uds-translate"),g(2,"CVS Import options for"),d(),g(3,"\xA0"),I(4,"b",2),d(),l(5,"mat-dialog-content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),g(12,"Header"),d()(),l(13,"mat-select",6),H("valueChange",function(c){return y(a),$(o.contains_header,c)||(o.contains_header=c),w(c)}),l(14,"mat-option",7)(15,"uds-translate"),g(16,"CSV contains header line"),d()(),l(17,"mat-option",7)(18,"uds-translate"),g(19,"CSV DOES NOT contains header line"),d()()()()(),l(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),g(24,"Separator"),d()(),l(25,"mat-select",6),H("valueChange",function(c){return y(a),$(o.separator,c)||(o.separator=c),w(c)}),l(26,"mat-option",8)(27,"uds-translate"),g(28,"Use comma"),d(),g(29," (,)"),d(),l(30,"mat-option",9)(31,"uds-translate"),g(32,"Use semicolon"),d(),g(33," (;)"),d(),l(34,"mat-option",10)(35,"uds-translate"),g(36,"Use pipe"),d(),g(37," (|)"),d(),l(38,"mat-option",11)(39,"uds-translate"),g(40,"Use tab"),d(),g(41," (tab)"),d()()()()()(),l(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),g(46,"File"),d()(),l(47,"input",13,0),b("change",function(c){return y(a),w(o.onFileChange(c))}),d(),l(49,"input",14),H("ngModelChange",function(c){return y(a),$(o.filename,c)||(o.filename=c),w(c)}),b("click",function(){y(a);let c=Ie(48);return w(c.click())}),d()()()(),l(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),g(53,"Ok"),d()(),l(54,"button",16),b("click",function(){return y(a),w(o.filename="")}),l(55,"uds-translate"),g(56,"Cancel"),d()()()}n&2&&(m(4),p("innerHTML",o.title,Gt),m(9),U("value",o.contains_header),m(),p("value",!0),m(3),p("value",!1),m(8),U("value",o.separator),m(24),U("ngModel",o.filename),p("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[ct,we,De,ke,tr,Yt,Xe,et,Je,ge,Ae,ft,vt,it,ce],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap;width:100%}.options[_ngcontent-%COMP%]{width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%!important}.mat-mdc-form-field[_ngcontent-%COMP%]{min-width:100%}.file-input[_ngcontent-%COMP%]{display:none}"]});let i=e;return i})();var X$=i=>["/services","servers",i];function J$(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function eW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services"),d())}function tW(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),D(4,J$,2,0,"ng-template",9),l(5,"div",10),I(6,"uds-information",11),d()(),l(7,"mat-tab"),D(8,eW,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNew(n))})("editAction",function(n){y(r);let o=_();return w(o.onEdit(n))})("rowSelected",function(n){y(r);let o=_();return w(o.onRowSelect(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDelete(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.customButtonAction(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("value",r.server)("gui",r.gui),m(4),p("rest",r.servers)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","servers-d-servers"+r.server.id)}}var xk='pause'+django.gettext("Maintenance")+"",iW='pause'+django.gettext("Exit maintenance mode")+"",nW='pause'+django.gettext("Enter maintenance mode")+"",oW='import_export'+django.gettext("Import CSV")+"",Dk=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:xk,type:ut.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("server");t&&(this.servers=this.rest.serverGroups.detail(t,"servers"),this.server=yield this.servers.parentModel.get(t),this.gui=yield this.servers.parentModel.gui(this.server.type),this.server.type.startsWith("UNMANAGED")&&this.cButtons.push({id:"import-csv",html:oW,type:ut.ALWAYS}))})}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.servers.get(n.id+"/maintenance").then(()=>{t.table.overview()})})}onImportCSV(t){return q(this,null,function*(){let n=yield Ck.launch(this.api,{title:django.gettext("Import Servers"),help:django.gettext('Format of file must be "hostname,ip,mac,...". All fields except hostname are optional. Separator can be configured.')});if(n.data.length==0)return;let o=yield this.servers.put({data:n.data},this.server.id+"/importcsv");o&&o.length>0&&this.api.gui.alert("Errors found importing data: ",o.slice(0,16).join(`
+`)),t.table.overview()})}customButtonAction(t){return q(this,null,function*(){if(t.param.id=="maintenance")return yield this.onMaintenance(t);if(t.param.id=="import-csv")return yield this.onImportCSV(t)})}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New server"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit server"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove server from server group"),"hostname")}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=xk;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=iW:this.customButtons[0].html=nW}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("server");if(n!==void 0){let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-server-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","servers",3,"newAction","editAction","rowSelected","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,tW,11,9,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,X$,o.servers.parentId)),m(4),p("src",o.api.staticURL("admin/img/icons/servers.png"),Ee),m(),P(" \xA0",o.server==null?null:o.server.name," "),m(),p("ngIf",o.server!==null))},dependencies:[he,gi,ei,ti,ni,ce,Te,co],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]});let i=e;return i})();var zy=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("authenticator")})}onDetail(t){return q(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(t.param.id)})}onNew(t){return q(this,null,function*(){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)})}onEdit(t){return q(this,null,function*(){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)})}onDelete(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))})}onLoad(t){return q(this,null,function*(){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))})}processElement(t){t.visible=this.api.boolAsHumanString(t.visible)}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","onItem","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var Uy=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("mfa")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New MFA"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit MFA"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete MFA"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("mfa"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-mfas"]],decls:2,vars:5,consts:[["icon","mfas",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var rW=["panel"],aW=["*"];function sW(i,e){if(i&1){let r=A();l(0,"div",1,0),b("@panelAnimation.done",function(n){y(r);let o=_();return w(o._animationDone.next(n))}),ae(2),d()}if(i&2){let r=e.id,t=_();qt(t._classList),ne("mat-mdc-autocomplete-visible",t.showPanel)("mat-mdc-autocomplete-hidden",!t.showPanel)("mat-primary",t._color==="primary")("mat-accent",t._color==="accent")("mat-warn",t._color==="warn"),p("id",t.id)("@panelAnimation",t.isOpen?"visible":"hidden"),ie("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(r))}}var cW=li("panelAnimation",[Pt("void, hidden",Me({opacity:0,transform:"scaleY(0.8)"})),xt(":enter, hidden => visible",[H1([Et("0.03s linear",Me({opacity:1})),Et("0.12s cubic-bezier(0, 0, 0.2, 1)",Me({transform:"scaleY(1)"}))])]),xt(":leave, visible => hidden",[Et("0.075s linear",Me({opacity:0}))])]),lW=0,Hy=class{constructor(e,r){this.source=e,this.option=r}},Sk=new O("mat-autocomplete-default-options",{providedIn:"root",factory:dW});function dW(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var jc=(()=>{let e=class e{get isOpen(){return this._isOpen&&this.showPanel}_setColor(t){this._color=t,this._changeDetectorRef.markForCheck()}set classList(t){this._classList=t,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}constructor(t,n,o,a){this._changeDetectorRef=t,this._elementRef=n,this._defaults=o,this._activeOptionChanges=Ce.EMPTY,this._animationDone=new T,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new T,this.opened=new T,this.closed=new T,this.optionActivated=new T,this.id=`mat-autocomplete-${lW++}`,this.inertGroups=a?.SAFARI||!1,this.autoActiveFirstOption=!!o.autoActiveFirstOption,this.autoSelectActiveOption=!!o.autoSelectActiveOption,this.requireSelection=!!o.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new wc(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){let n=new Hy(this,t);this.optionSelected.emit(n)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;let n=t?t+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:t}_skipPredicate(){return!1}};e.\u0275fac=function(n){return new(n||e)(h(me),h(G),h(Sk),h(je))},e.\u0275cmp=S({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,it,5),Fe(a,bd,5)),n&2){let s;Q(s=K())&&(o.options=s),Q(s=K())&&(o.optionGroups=s)}},viewQuery:function(n,o){if(n&1&&(le(lt,7),le(rW,5)),n&2){let a;Q(a=K())&&(o.template=a.first),Q(a=K())&&(o.panel=a.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",Y],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Y],requireSelection:[2,"requireSelection","requireSelection",Y],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Y],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[be([{provide:vd,useExisting:e}]),ue,re],ngContentSelectors:aW,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(n,o){n&1&&(Ue(),D(0,sW,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[cW]},changeDetection:0});let i=e;return i})();var uW={provide:qi,useExisting:Wt(()=>ps),multi:!0};var Ek=new O("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function mW(i){return()=>i.scrollStrategies.reposition()}var hW={provide:Ek,deps:[Ct],useFactory:mW},ps=(()=>{let e=class e{constructor(t,n,o,a,s,c,u,f,v,C,x){this._element=t,this._overlay=n,this._viewContainerRef=o,this._zone=a,this._changeDetectorRef=s,this._dir=u,this._formField=f,this._document=v,this._viewportRuler=C,this._defaults=x,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ce.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new W,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new W,this._injector=k(Pe),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=Wn(()=>{let E=this.autocomplete?this.autocomplete.options:null;return E?E.changes.pipe(Ot(E),Mt(()=>yt(...E.map(R=>R.onSelectionChange)))):this._initialized.pipe(Mt(()=>this.optionSelections))}),this._handlePanelKeydown=E=>{(E.keyCode===27&&!Rt(E)||E.keyCode===38&&Rt(E,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),E.stopPropagation(),E.preventDefault())},this._trackedModal=null,this._scrollStrategy=c}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let t=this._getWindow();typeof t<"u"&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let t=this._getWindow();typeof t<"u"&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&ma(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return yt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(qe(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(qe(()=>this._overlayAttached)):oe()).pipe(de(t=>t instanceof _d?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return yt(cn(this._document,"click"),cn(this._document,"auxclick"),cn(this._document,"touchend")).pipe(qe(t=>{let n=mn(t),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,a=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(n))&&(!a||!a.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}writeValue(t){Promise.resolve(null).then(()=>this._assignOptionValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t,this._changeDetectorRef.markForCheck()}_handleKeydown(t){let n=t.keyCode,o=Rt(t);if(n===27&&!o&&t.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&n===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=n===38||n===40;n===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(t){let n=t.target,o=n.value;if(n.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let a=this.autocomplete.options?.find(s=>s.selected);if(a){let s=this._getDisplayValue(a.value);o!==s&&a.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===t.target){let a=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(a)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(t=!1){this._formField&&this._formField.floatLabel==="auto"&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let t=new Re(o=>{ri(()=>{o.next()},{injector:this._injector})}),n=this.autocomplete.options.changes.pipe(zt(()=>this._positionStrategy.reapplyLastPosition()),jr(0));return yt(t,n).pipe(Mt(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),It(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(t){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(t):t}_assignOptionValue(t){let n=this._getDisplayValue(t);t==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(t){this._formField?this._formField._control.value=t:this._element.nativeElement.value=t,this._previousValue=t}_setValueAndClose(t){let n=this.autocomplete,o=t?t.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),n._emitSelectEvent(o),this._element.nativeElement.focus()):n.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),n._animationDone?n._animationDone.pipe(It(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(t,n){this.autocomplete?.options?.forEach(o=>{o!==t&&o.selected&&o.deselect(n)})}_openPanelInternal(t=this._element.nativeElement.value){if(this._attachOverlay(t),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;Dc(this._trackedModal,"aria-owns",n)}}_attachOverlay(t){this.autocomplete;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new ki(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._valueOnAttach=t,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let t=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=t.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=t.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Sn({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],s;this.position==="above"?s=a:this.position==="below"?s=n:s=[...n,...a],t.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let t=this.autocomplete;if(t.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!t)return;let n=this.autocomplete.id;this._trackedModal&&ma(this._trackedModal,"aria-owns",n),Dc(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){if(this._trackedModal){let t=this.autocomplete.id;ma(this._trackedModal,"aria-owns",t),this._trackedModal=null}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Ct),h(wt),h(Z),h(me),h(Ek),h(kt,8),h(Mo,9),h(se,8),h(pn),h(Sk,8))},e.\u0275dir=N({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&b("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(s){return o._handleInput(s)})("keydown",function(s){return o._handleKeydown(s)})("click",function(){return o._handleClick()}),n&2&&ie("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Y]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[be([uW]),ue,Qe]});let i=e;return i})(),Ik=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[hW],imports:[on,Ic,pe,Si,to,Ic,pe]});let i=e;return i})();function pW(i,e){if(i&1&&(l(0,"div")(1,"uds-translate"),g(2,"Edit user"),d(),g(3),d()),i&2){let r=_();m(3),P(" ",r.user.name," ")}}function fW(i,e){i&1&&(l(0,"uds-translate"),g(1,"New user"),d())}function gW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",19),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.name,n)||(o.user.name=n),w(n)}),d()()}if(i&2){let r=_();m(2),P(" ",r.authenticator.type_info.label_username," "),m(),U("ngModel",r.user.name),p("disabled",r.user.id)}}function _W(i,e){if(i&1&&(l(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),br(" ",r.id," (",r.name,") ")}}function vW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",20),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.name,n)||(o.user.name=n),w(n)}),b("input",function(n){y(r);let o=_();return w(o.filterUser(n))}),d(),l(4,"mat-autocomplete",null,1),D(6,_W,2,3,"mat-option",16),d()()}if(i&2){let r=Ie(5),t=_();m(2),P(" ",t.authenticator.type_info.label_username," "),m(),U("ngModel",t.user.name),p("matAutocomplete",r),m(3),p("ngForOf",t.users)}}function bW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",22),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.password,n)||(o.user.password=n),w(n)}),d()()}if(i&2){let r=_();m(2),P(" ",r.authenticator.type_info.label_password," "),m(),U("ngModel",r.user.password)}}function yW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"MFA"),d()(),l(4,"input",23),H("ngModelChange",function(n){y(r);let o=_();return $(o.user.mfa_data,n)||(o.user.mfa_data=n),w(n)}),d()()}if(i&2){let r=_();m(4),U("ngModel",r.user.mfa_data)}}function wW(i,e){if(i&1&&(l(0,"mat-option",21),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var Wy=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new T(!0),this.users=[],this.authenticator=a.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",mfa:"",groups:[]},a.user!==void 0&&(this.user.id=a.user.id,this.user.name=a.user.name)}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.detail(this.authenticator.id,"groups").overview().then(t=>{this.groups=t}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).then(t=>{this.user=t,this.user.role=t.is_admin?"admin":t.staff_member?"staff":"user"},t=>{this.dialogRef.close()})}roleChanged(t){this.user.is_admin=t==="admin",this.user.staff_member=t==="admin"||t==="staff"}filterUser(t){let n=t.target.value;this.rest.authenticators.search(this.authenticator.id,"user",n,100).then(o=>{this.users.length=0,o.forEach(a=>{this.users.push(a)})})}save(){this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).then(t=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-new-user"]],decls:58,vars:12,consts:[["nousertitle",""],["auto","matAutocomplete"],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModelChange","ngModel"],["type","text","matInput","","autocomplete","new-comments",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","A"],["value","I"],[3,"ngModelChange","valueChange","ngModel"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModelChange","ngModel"],["type","text","matInput","",3,"ngModelChange","ngModel"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",2),D(1,pW,4,1,"div",3)(2,fW,2,0,"ng-template",null,0,hi),d(),l(4,"mat-dialog-content")(5,"div",4),D(6,gW,4,3,"mat-form-field",5)(7,vW,7,4,"mat-form-field",5),l(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),g(11,"Real name"),d()(),l(12,"input",6),H("ngModelChange",function(c){return y(a),$(o.user.real_name,c)||(o.user.real_name=c),w(c)}),d()(),l(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),g(16,"Comments"),d()(),l(17,"input",7),H("ngModelChange",function(c){return y(a),$(o.user.comments,c)||(o.user.comments=c),w(c)}),d()(),l(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"State"),d()(),l(22,"mat-select",8),H("ngModelChange",function(c){return y(a),$(o.user.state,c)||(o.user.state=c),w(c)}),l(23,"mat-option",9)(24,"uds-translate"),g(25,"Enabled"),d()(),l(26,"mat-option",10)(27,"uds-translate"),g(28,"Disabled"),d()()()(),l(29,"mat-form-field")(30,"mat-label")(31,"uds-translate"),g(32,"Role"),d()(),l(33,"mat-select",11),H("ngModelChange",function(c){return y(a),$(o.user.role,c)||(o.user.role=c),w(c)}),b("valueChange",function(c){return y(a),w(o.roleChanged(c))}),l(34,"mat-option",12)(35,"uds-translate"),g(36,"Admin"),d()(),l(37,"mat-option",13)(38,"uds-translate"),g(39,"Staff member"),d()(),l(40,"mat-option",14)(41,"uds-translate"),g(42,"User"),d()()()(),D(43,bW,4,2,"mat-form-field",5)(44,yW,5,1,"mat-form-field",5),l(45,"mat-form-field")(46,"mat-label")(47,"uds-translate"),g(48,"Groups"),d()(),l(49,"mat-select",15),H("ngModelChange",function(c){return y(a),$(o.user.groups,c)||(o.user.groups=c),w(c)}),D(50,wW,2,2,"mat-option",16),d()()()(),l(51,"mat-dialog-actions")(52,"button",17)(53,"uds-translate"),g(54,"Cancel"),d()(),l(55,"button",18),b("click",function(){return y(a),w(o.save())}),l(56,"uds-translate"),g(57,"Ok"),d()()()}if(n&2){let a=Ie(3);m(),p("ngIf",o.user.id)("ngIfElse",a),m(5),p("ngIf",o.authenticator.type_info.search_users_supported===!1||o.user.id),m(),p("ngIf",o.authenticator.type_info.search_users_supported===!0&&!o.user.id),m(5),U("ngModel",o.user.real_name),m(5),U("ngModel",o.user.comments),m(5),U("ngModel",o.user.state),m(11),U("ngModel",o.user.role),m(10),p("ngIf",o.authenticator.type_info.needs_password),m(),p("ngIf",!o.authenticator.type_info.is_external),m(5),U("ngModel",o.user.groups),m(),p("ngForOf",o.groups)}},dependencies:[$e,he,ct,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,vt,it,jc,ps,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function CW(i,e){if(i&1&&(l(0,"div")(1,"uds-translate"),g(2,"Edit group"),d(),g(3),d()),i&2){let r=_();m(3),P(" ",r.group.name," ")}}function xW(i,e){i&1&&(l(0,"uds-translate"),g(1,"New group"),d())}function DW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",14),H("ngModelChange",function(n){y(r);let o=_(2);return $(o.group.name,n)||(o.group.name=n),w(n)}),d()()}if(i&2){let r=_(2);m(2),P(" ",r.authenticator.type_info.label_groupname," "),m(),U("ngModel",r.group.name),p("disabled",r.group.id)}}function SW(i,e){if(i&1&&(l(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),br(" ",r.id," (",r.name,") ")}}function EW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",15),H("ngModelChange",function(n){y(r);let o=_(2);return $(o.group.name,n)||(o.group.name=n),w(n)}),b("input",function(n){y(r);let o=_(2);return w(o.filterGroup(n))}),d(),l(4,"mat-autocomplete",null,3),D(6,SW,2,3,"mat-option",16),d()()}if(i&2){let r=Ie(5),t=_(2);m(2),P(" ",t.authenticator.type_info.label_groupname," "),m(),U("ngModel",t.group.name),p("matAutocomplete",r),m(3),p("ngForOf",t.fltrGroup)}}function IW(i,e){if(i&1&&(ht(0),D(1,DW,4,3,"mat-form-field",13)(2,EW,7,4,"mat-form-field",13),pt()),i&2){let r=_();m(),p("ngIf",r.authenticator.type_info.search_groups_supported===!1||r.group.id),m(),p("ngIf",r.authenticator.type_info.search_groups_supported===!0&&!r.group.id)}}function MW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"Meta group name"),d()(),l(4,"input",14),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.name,n)||(o.group.name=n),w(n)}),d()()}if(i&2){let r=_();m(4),U("ngModel",r.group.name),p("disabled",r.group.id)}}function TW(i,e){if(i&1&&(l(0,"mat-option",17),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function kW(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Service Pools"),d()(),l(5,"mat-select",18),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.pools,n)||(o.group.pools=n),w(n)}),D(6,TW,2,2,"mat-option",16),d()(),pt()}if(i&2){let r=_();m(5),U("ngModel",r.group.pools),m(),p("ngForOf",r.servicePools)}}function AW(i,e){if(i&1&&(l(0,"mat-option",17),g(1),d()),i&2){let r=_().$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function OW(i,e){if(i&1&&(ht(0),D(1,AW,2,2,"mat-option",20),pt()),i&2){let r=e.$implicit;m(),p("ngIf",r.type==="group")}}function RW(i,e){if(i&1){let r=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),g(3,"Match mode"),d()(),l(4,"mat-select",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.meta_if_any,n)||(o.group.meta_if_any=n),w(n)}),l(5,"mat-option",17)(6,"uds-translate"),g(7,"Any group"),d()(),l(8,"mat-option",17)(9,"uds-translate"),g(10,"All groups"),d()()()(),l(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),g(14,"Selected Groups"),d()(),l(15,"mat-select",18),H("ngModelChange",function(n){y(r);let o=_();return $(o.group.groups,n)||(o.group.groups=n),w(n)}),D(16,OW,2,1,"ng-container",19),d()()}if(i&2){let r=_();m(4),U("ngModel",r.group.meta_if_any),m(),p("value",!0),m(3),p("value",!1),m(7),U("ngModel",r.group.groups),m(),p("ngForOf",r.groups)}}var Gy=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.servicePools=[],this.groups=[],this.fltrGroup=[],this.authenticator=a.authenticator,this.group={id:void 0,type:a.groupType,name:"",comments:"",meta_if_any:!1,skip_mfa:"I",state:"A",groups:[],pools:[]},a.group!==void 0&&(this.group.id=a.group.id,this.group.type=a.group.type,this.group.name=a.group.name)}static launch(t,n,o,a){let s=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:s,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:o,group:a},disableClose:!0}).componentInstance.onSave}ngOnInit(){let t=this.rest.authenticators.detail(this.authenticator.id,"groups");this.group.id!==void 0&&t.get(this.group.id).then(n=>{this.group=n},n=>{this.dialogRef.close()}),this.group.type==="meta"?t.summary().then(n=>this.groups=n):this.rest.servicesPools.summary().then(n=>this.servicePools=n)}filterGroup(t){let n=t.target.value;this.rest.authenticators.search(this.authenticator.id,"group",n,100).then(o=>{this.fltrGroup.length=0,o.forEach(a=>{this.fltrGroup.push(a)})})}getMatchValue(){return django.gettext("Match mode")+this.group.meta_if_any?django.gettext("Any"):django.gettext("All")}save(){this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).then(t=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-new-group"]],decls:46,vars:9,consts:[["nousertitle",""],["metafirst",""],["metasecond",""],["auto","matAutocomplete"],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],["type","text","matInput","",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","A"],["value","I"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModelChange","ngModel","disabled"],["type","text","aria-label","Number","matInput","",3,"ngModelChange","input","ngModel","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",4),D(1,CW,4,1,"div",5)(2,xW,2,0,"ng-template",null,0,hi),d(),l(4,"mat-dialog-content")(5,"div",6),D(6,IW,3,2,"ng-container",5)(7,MW,5,2,"ng-template",null,1,hi),l(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),g(12,"Comments"),d()(),l(13,"input",7),H("ngModelChange",function(c){return y(a),$(o.group.comments,c)||(o.group.comments=c),w(c)}),d()(),l(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),g(17,"State"),d()(),l(18,"mat-select",8),H("ngModelChange",function(c){return y(a),$(o.group.state,c)||(o.group.state=c),w(c)}),l(19,"mat-option",9)(20,"uds-translate"),g(21,"Enabled"),d()(),l(22,"mat-option",10)(23,"uds-translate"),g(24,"Disabled"),d()()()(),l(25,"mat-form-field")(26,"mat-label")(27,"uds-translate"),g(28,"Skip MFA"),d()(),l(29,"mat-select",8),H("ngModelChange",function(c){return y(a),$(o.group.skip_mfa,c)||(o.group.skip_mfa=c),w(c)}),l(30,"mat-option",9)(31,"uds-translate"),g(32,"Enabled"),d()(),l(33,"mat-option",10)(34,"uds-translate"),g(35,"Disabled"),d()()()(),D(36,kW,7,2,"ng-container",5)(37,RW,17,5,"ng-template",null,2,hi),d()(),l(39,"mat-dialog-actions")(40,"button",11)(41,"uds-translate"),g(42,"Cancel"),d()(),l(43,"button",12),b("click",function(){return y(a),w(o.save())}),l(44,"uds-translate"),g(45,"Ok"),d()()()}if(n&2){let a=Ie(3),s=Ie(8),c=Ie(38);m(),p("ngIf",o.group.id)("ngIfElse",a),m(5),p("ngIf",o.group.type==="group")("ngIfElse",s),m(7),U("ngModel",o.group.comments),m(5),U("ngModel",o.group.state),m(11),U("ngModel",o.group.skip_mfa),m(7),p("ngIf",o.group.type==="group")("ngIfElse",c)}},dependencies:[$e,he,ct,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,vt,it,jc,ps,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]});let i=e;return i})();function PW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function FW(i,e){if(i&1&&(l(0,"mat-tab"),D(1,PW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.group)("pageSize",6)}}function NW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services Pools"),d())}function LW(i,e){if(i&1&&(l(0,"mat-tab"),D(1,NW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.servicesPools)("pageSize",6)}}function VW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Assigned Services"),d())}function jW(i,e){if(i&1&&(l(0,"mat-tab"),D(1,VW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.userServices)("pageSize",6)}}var BW=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],zW=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],UW=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],Mk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.group={},this.servicesPools={},this.userServices={},this.users=a.users,this.user=a.user}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:o},disableClose:!1})}ngOnInit(){this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).then(t=>{let n=()=>this.rest.authenticators.detail(this.users.parentId,"groups").overview().then(s=>s.filter(c=>t.groups.includes(c.id))),o=()=>this.users.invoke(this.user.id+"/servicesPools"),a=()=>this.users.invoke(this.user.id+"/userServices").then(s=>s.map(c=>(c.in_use=this.api.boolAsHumanString(c.in_use),c)));this.group=new ao(django.gettext("Groups"),n,BW,this.user.id+"infogrp"),this.servicesPools=new ao(django.gettext("Services Pools"),o,zW,this.user.id+"infopool"),this.userServices=new ao(django.gettext("Assigned services"),a,UW,this.user.id+"userservpool")})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"mat-tab-group"),D(6,FW,3,2,"mat-tab",1)(7,LW,3,2,"mat-tab",1)(8,jW,3,2,"mat-tab",1),d()(),l(9,"mat-dialog-actions")(10,"button",2)(11,"uds-translate"),g(12,"Ok"),d()()()),n&2&&(m(3),P(" ",o.user.name,` +`),m(3),p("ngIf",o.group),m(),p("ngIf",o.servicesPools),m(),p("ngIf",o.userServices))},dependencies:[he,ke,Yt,Xe,et,Je,ei,ti,ni,ce,Te],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();function HW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Services Pools"),d())}function $W(i,e){if(i&1&&(l(0,"mat-tab"),D(1,HW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.servicesPools)("pageSize",6)}}function WW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Users"),d())}function GW(i,e){if(i&1&&(l(0,"mat-tab"),D(1,WW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.users)("pageSize",6)}}function qW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function YW(i,e){if(i&1&&(l(0,"mat-tab"),D(1,qW,2,0,"ng-template",3),I(2,"uds-table",4),d()),i&2){let r=_();m(2),p("rest",r.groups)("pageSize",6)}}var QW=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],KW=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:pi.DATETIME}],ZW=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],Tk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.users={},this.groups={},this.servicesPools={}}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:o,groups:n},disableClose:!1})}ngOnInit(){let t=this.rest.authenticators.detail(this.data.groups.parentId,"groups"),n=()=>t.invoke(this.data.group.id+"/servicesPools"),o=()=>t.invoke(this.data.group.id+"/users").then(a=>a.map(s=>(s.state=s.state==="A"?django.gettext("Enabled"):s.state==="I"?django.gettext("Disabled"):django.gettext("Blocked"),s)));if(this.servicesPools=new ao(django.gettext("Service pools"),n,QW,this.data.group.id+"infopls"),this.users=new ao(django.gettext("Users"),o,KW,this.data.group.id+"infousr"),this.data.group.type==="meta"){let a=()=>t.overview().then(s=>s.filter(c=>this.data.group.groups.includes(c.id)));this.groups=new ao(django.gettext("Groups"),a,ZW,this.data.group.id+"infogrps")}}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Information for"),d()(),l(3,"mat-dialog-content")(4,"mat-tab-group"),D(5,$W,3,2,"mat-tab",1)(6,GW,3,2,"mat-tab",1)(7,YW,3,2,"mat-tab",1),d()(),l(8,"mat-dialog-actions")(9,"button",2)(10,"uds-translate"),g(11,"Ok"),d()()()),n&2&&(m(5),p("ngIf",o.servicesPools),m(),p("ngIf",o.users),m(),p("ngIf",o.groups))},dependencies:[he,ke,Yt,Xe,et,Je,ei,ti,ni,ce,Te],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var XW=i=>["/authenticators",i];function JW(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function eG(i,e){if(i&1&&I(0,"uds-information",16),i&2){let r=_(2);p("value",r.authenticator)("gui",r.gui)}}function tG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Users"),d())}function iG(i,e){if(i&1){let r=A();l(0,"uds-table",17),b("loaded",function(n){y(r);let o=_(2);return w(o.onLoad(n))})("newAction",function(n){y(r);let o=_(2);return w(o.onNewUser(n))})("editAction",function(n){y(r);let o=_(2);return w(o.onEditUser(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteUser(n))})("customButtonAction",function(n){y(r);let o=_(2);return w(o.onUserCustom(n))}),d()}if(i&2){let r=_(2);p("rest",r.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+r.authenticator.id)("customButtons",r.usersCustomButtons)("pageSize",r.api.config.admin.page_size)}}function nG(i,e){if(i&1){let r=A();l(0,"uds-table",18),b("loaded",function(n){y(r);let o=_(2);return w(o.onLoad(n))})("editAction",function(n){y(r);let o=_(2);return w(o.onEditUser(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteUser(n))})("customButtonAction",function(n){y(r);let o=_(2);return w(o.onUserCustom(n))}),d()}if(i&2){let r=_(2);p("rest",r.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+r.authenticator.id)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)}}function oG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function rG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}function aG(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),l(3,"mat-tab"),D(4,JW,2,0,"ng-template",9),l(5,"div",10),D(6,eG,1,2,"uds-information",11),d()(),l(7,"mat-tab"),D(8,tG,2,0,"ng-template",9),l(9,"div",10),D(10,iG,1,6,"uds-table",12)(11,nG,1,6,"uds-table",13),d()(),l(12,"mat-tab"),D(13,oG,2,0,"ng-template",9),l(14,"div",10)(15,"uds-table",14),b("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))})("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onGroupInformation(n))}),d()()(),l(16,"mat-tab"),D(17,rG,2,0,"ng-template",9),l(18,"div",10),I(19,"uds-logs-table",15),d()()()()()}if(i&2){let r=_();m(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),m(4),p("ngIf",r.authenticator&&r.gui),m(4),p("ngIf",r.authenticator.type_info.create_users_supported),m(),p("ngIf",!r.authenticator.type_info.create_users_supported),m(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("tableId","authenticators-d-groups"+r.authenticator.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.rest.authenticators)("itemId",r.authenticator.id)("tableId","authenticators-d-log"+r.authenticator.id)}}var jf=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ut.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ut.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:ut.ONLY_MENU}],this.authenticator=null,this.gui=[],this.users={},this.groups={},this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}ngOnInit(){let t=this.route.snapshot.paramMap.get("authenticator");t&&(this.users=this.rest.authenticators.detail(t,"users"),this.groups=this.rest.authenticators.detail(t,"groups"),this.rest.authenticators.get(t).then(n=>{this.authenticator=n,this.rest.authenticators.gui(n.type).then(o=>{this.gui=o})}))}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("user"),o=this.route.snapshot.paramMap.get("group"),a=n||o;t.table.selectElement("id",a)}}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onNewUser(t){Wy.launch(this.api,this.authenticator).subscribe(n=>t.table.overview())}onEditUser(t){Wy.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteUser(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))}onNewGroup(t){Gy.launch(this.api,this.authenticator,t.param.type).subscribe(n=>t.table.overview())}onEditGroup(t){Gy.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteGroup(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))}onUserCustom(t){t.param.id==="info"?Mk.launch(this.api,this.users,t.table.selection.selected[0]):t.param.id==="clean-related"&&this.api.gui.questionDialog(django.gettext("Clean data"),django.gettext("Clean related data (mfa, ...)?"),!0).then(n=>()=>q(this,null,function*(){n&&(yield this.users.invoke(t.table.selection.selected[0].id+"/cleanRelated"),this.api.gui.snackbar.open(django.gettext("Related data cleaned"),django.gettext("dismiss"),{duration:2e3}),t.table.overview())}))}onGroupInformation(t){Tk.launch(this.api,this.groups,t.table.selection.selected[0])}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"loaded","newAction","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","users",3,"loaded","editAction","deleteAction","customButtonAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,aG,20,14,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,XW,o.authenticator?o.authenticator.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/services.png"),Ee),m(),P(" \xA0",o.authenticator==null?null:o.authenticator.name," "),m(),p("ngIf",o.authenticator))},dependencies:[he,gi,ei,ti,ni,ce,Te,so,co]});let i=e;return i})();var qy=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("osmanager")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var Yy=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("transport")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))}processElement(t){try{t.allowed_oss=t.allowed_oss.map(n=>n.id).join(", ")}catch{t.allowed_oss=""}}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Te],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]});let i=e;return i})();var Qy=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){let t=this.route.snapshot.paramMap.get("network")}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var Ky=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New tunnel"),!0)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit tunnel"),!0)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete tunnel"))}onDetail(t){this.api.navigation.gotoTunnelDetail(t.param.id)}processElement(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("tunnel"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-tunnels"]],decls:1,vars:6,consts:[["tableId","tunnels-table","icon","providers",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","onItem","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();function sG(i,e){if(i&1&&(l(0,"mat-option",7),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var kk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=a.availableTunnelServers,this.tunnelId=a.tunnelId}static launch(t,n,o){return q(this,null,function*(){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{tunnelId:n,availableTunnelServers:o},disableClose:!1}).componentInstance.done})}ngOnInit(){return q(this,null,function*(){})}filteredTunnels(){if(!this.tunnelFilter)return this.availTunnelServers;let t=new Array;for(let n of this.availTunnelServers)n.name.toLocaleLowerCase().includes(this.tunnelFilter.toLocaleLowerCase())&&t.push(n);return t}save(){return q(this,null,function*(){if(this.serverId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid server"));return}this.dialogRef.close(),this.done.resolve(!0),yield this.rest.tunnels.assign(this.tunnelId,this.serverId)})}cancel(){return q(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-new-tunnel"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Assign new server to tunnel group"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Tunnel"),d()(),l(9,"mat-select",2),H("ngModelChange",function(s){return $(o.serverId,s)||(o.serverId=s),s}),l(10,"uds-cond-select-search",3),b("changed",function(s){return o.tunnelFilter=s}),d(),D(11,sG,2,2,"mat-option",4),d()()()(),l(12,"mat-dialog-actions")(13,"button",5),b("click",function(){return o.cancel()}),l(14,"uds-translate"),g(15,"Cancel"),d()(),l(16,"button",6),b("click",function(){return o.save()}),l(17,"uds-translate"),g(18,"Ok"),d()()()),n&2&&(m(9),U("ngModel",o.serverId),m(),p("options",o.availTunnelServers),m(),p("ngForOf",o.filteredTunnels()))},dependencies:[$e,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var cG=i=>["/connectivity","tunnels",i];function lG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function dG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Tunnel servers"),d())}function uG(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),D(4,lG,2,0,"ng-template",9),l(5,"div",10),I(6,"uds-information",11),d()(),l(7,"mat-tab"),D(8,dG,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNew(n))})("rowSelected",function(n){y(r);let o=_();return w(o.onRowSelect(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDelete(n))})("customButtonAction",function(n){y(r);let o=_();return w(o.onMaintenance(n))})("loaded",function(n){y(r);let o=_();return w(o.onLoad(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("value",r.tunnel)("gui",r.gui),m(4),p("rest",r.servers)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtons)("pageSize",r.api.config.admin.page_size)("tableId","tunnels-d-servers"+r.tunnel.id)}}var Ak='pause'+django.gettext("Maintenance")+"",mG='pause'+django.gettext("Exit maintenance mode")+"",hG='pause'+django.gettext("Enter maintenance mode")+"",Ok=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:Ak,type:ut.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("tunnel");t&&(this.servers=this.rest.tunnels.detail(t,"servers"),this.tunnel=yield this.servers.parentModel.get(t),this.gui=yield this.servers.parentModel.gui(),console.log(this.gui),console.log(this.tunnel))})}onMaintenance(t){let n=t.table.selection.selected[0],o=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.questionDialog(django.gettext("Maintenance mode for")+" "+n.name,o).then(a=>{a&&this.servers.get(n.id+"/maintenance").then(()=>{t.table.overview()})})}onNew(t){return q(this,null,function*(){let n=yield this.rest.tunnels.tunnels(this.tunnel.id);n.length==0?this.api.gui.alert(django.gettext("Error"),django.gettext("This tunnel already has all the tunnel servers available")):(yield kk.launch(this.api,this.tunnel.id,n))===!0&&t.table.overview()})}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member from tunnel"))}onRowSelect(t){let n=t.table;if(n.selection.selected.length>1||n.selection.selected.length===0){this.customButtons[0].html=Ak;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=mG:this.customButtons[0].html=hG}onLoad(t){if(t.param===!0){let n=this.route.snapshot.paramMap.get("tunnel");if(n!==void 0){let o=t.table;o.dataSource.data.forEach(a=>{a.id===n&&o.selection.select(a)})}}}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-tunnels-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary","selectedIndex","1"],["mat-tab-label",""],[1,"content"],[3,"value","gui"],["icon","tunnels",3,"newAction","rowSelected","deleteAction","customButtonAction","loaded","rest","multiSelect","allowExport","customButtons","pageSize","tableId"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,uG,11,9,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,cG,o.servers.parentId)),m(4),p("src",o.api.staticURL("admin/img/icons/tunnels.png"),Ee),m(),P(" \xA0",o.tunnel==null?null:o.tunnel.name," "),m(),p("ngIf",o.tunnel!==null))},dependencies:[he,gi,ei,ti,ni,ce,Te,co],styles:[".row-maintenance-true>mat-cell{color:orange!important}"]});let i=e;return i})();var Zy=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[Ei.getGotoButton(dy,"provider_id"),Ei.getGotoButton(uy,"provider_id","service_id"),Ei.getGotoButton(py,"osmanager_id"),Ei.getGotoButton(fy,"pool_group_id")],this.editing=!1}ngOnInit(){return q(this,null,function*(){})}onChange(t){return q(this,null,function*(){let n=["initial_srvs","cache_l1_srvs","max_srvs"];if(t.on===null||t.on.field.name==="service_id"){if(t.all.service_id.value===""){t.all.osmanager_id.gui.choices=[];for(let a of n)t.all[a].gui.readonly=!0;t.all.cache_l2_srvs.gui.readonly=!0;return}let o=yield this.rest.providers.service(t.all.service_id.value);if(t.all.allow_users_reset.gui.readonly=!o.info.can_reset,t.all.osmanager_id.gui.choices=[],this.editing||(t.all.osmanager_id.gui.readonly=!o.info.needs_osmanager),o.info.needs_osmanager===!0){let a=yield this.rest.osManagers.overview(),s=[];for(let c of a)for(let u of c.servicesTypes)o.info.services_type_provided==u&&s.push({id:c.id,text:c.name});s.length>0?t.all.osmanager_id.value=t.all.osmanager_id.value||s[0].id:t.all.osmanager_id.value="",t.all.osmanager_id.gui.choices=s}else t.all.osmanager_id.gui.choices=[{id:"",text:django.gettext("(This service does not requires an OS Manager)")}],t.all.osmanager_id.value="";for(let a of n)t.all[a].gui.readonly=!o.info.uses_cache;t.all.cache_l2_srvs.gui.readonly=o.info.uses_cache===!1||o.info.uses_cache_l2===!1,t.all.publish_on_save&&(t.all.publish_on_save.gui.readonly=!o.info.needs_publication)}})}onNew(t){return q(this,null,function*(){this.editing=!1,yield this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Gi.CHECKBOX,order:150,default:"true"}}],this.onChange.bind(this))})}onEdit(t){return q(this,null,function*(){return this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1,void 0,this.onChange.bind(this))})}onDelete(t){return q(this,null,function*(){return this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))})}processElement(t){t.visible=this.api.boolAsHumanString(t.visible),t.show_transports=this.api.boolAsHumanString(t.show_transports),t.restrained?(t.name='warning '+this.api.gui.icon(t.info.icon)+t.name,t.state="T"):(t.name=this.api.gui.icon(t.info.icon)+t.name,t.meta_member.length>0&&(t.state="V")),t.name=this.api.safeString(t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)}onDetail(t){this.api.navigation.gotoServicePoolDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:12rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-mdc-cell{color:#d65014!important} .mat-column-user_services_count{max-width:10rem;justify-content:center} .mat-column-user_services_in_preparation{max-width:10rem;justify-content:center}"]});let i=e;return i})();function pG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function fG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var Bf=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.auths=[],this.users=[],this.userFilter="",this.authId="",this.userId="",this.userService=a.userService,this.userServices=a.userServices}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:o},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.auths=yield this.rest.authenticators.summary(),this.authChanged()})}changeAuth(t){this.userId="",this.authChanged()}filteredUsers(){if(!this.userFilter)return this.users;let t=new Array;return this.users.forEach(n=>{(this.userFilter===""||n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase()))&&t.push(n)}),t}save(){if(this.userId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"));return}this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return q(this,null,function*(){this.authId?this.users=yield this.rest.authenticators.detail(this.authId,"users").summary():this.users=[]})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"],[3,"changed","options"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Change owner of assigned service"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Authenticator"),d()(),l(9,"mat-select",2),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),D(10,pG,2,2,"mat-option",3),d()(),l(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),g(14,"User"),d()(),l(15,"mat-select",4),H("ngModelChange",function(s){return $(o.userId,s)||(o.userId=s),s}),l(16,"uds-cond-select-search",5),b("changed",function(s){return o.userFilter=s}),d(),D(17,fG,2,2,"mat-option",3),d()()()(),l(18,"mat-dialog-actions")(19,"button",6),b("click",function(){return o.cancel()}),l(20,"uds-translate"),g(21,"Cancel"),d()(),l(22,"button",7),b("click",function(){return o.save()}),l(23,"uds-translate"),g(24,"Ok"),d()()()),n&2&&(m(9),U("ngModel",o.authId),m(),p("ngForOf",o.auths),m(5),U("ngModel",o.userId),m(),p("options",o.users),m(),p("ngForOf",o.filteredUsers()))},dependencies:[$e,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function gG(i,e){i&1&&(l(0,"uds-translate"),g(1,"New access rule for"),d())}function _G(i,e){i&1&&(l(0,"uds-translate"),g(1,"Edit access rule for"),d())}function vG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Default fallback access for"),d())}function bG(i,e){if(i&1&&(l(0,"mat-option",11),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function yG(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Priority"),d()(),l(5,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.accessRule.priority,n)||(o.accessRule.priority=n),w(n)}),d()(),l(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Calendar"),d()(),l(10,"mat-select",3),H("ngModelChange",function(n){y(r);let o=_();return $(o.accessRule.calendarId,n)||(o.accessRule.calendarId=n),w(n)}),l(11,"uds-cond-select-search",9),b("changed",function(n){y(r);let o=_();return w(o.calendarsFilter=n)}),d(),D(12,bG,2,2,"mat-option",10),d()(),pt()}if(i&2){let r=_();m(5),U("ngModel",r.accessRule.priority),m(5),U("ngModel",r.accessRule.calendarId),m(),p("options",r.calendars),m(),p("ngForOf",r.filtered(r.calendars,r.calendarsFilter))}}var Bc=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.calendars=[],this.calendarsFilter="",this.pool=a.pool,this.model=a.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},a.accessRule&&(this.accessRule.id=a.accessRule.id)}static launch(t,n,o,a){let s=window.innerWidth<800?"80%":"60%";return t.gui.dialog.open(e,{width:s,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o,accessRule:a},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.calendars.summary().then(t=>{this.calendars=t}),this.accessRule.id!==void 0&&this.accessRule.id!==-1?this.model.get(this.accessRule.id).then(t=>{this.accessRule=t}):this.accessRule.id===-1&&this.model.parentModel.getFallbackAccess(this.pool.id).then(t=>this.accessRule.access=t)}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}save(){let t=()=>{this.dialogRef.close(),this.onSave.emit(!0)};this.accessRule.id!==-1?this.model.save(this.accessRule).then(t):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).then(t)}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModelChange","ngModel"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0),D(1,gG,2,0,"uds-translate",1)(2,_G,2,0,"uds-translate",1)(3,vG,2,0,"uds-translate",1),g(4),d(),l(5,"mat-dialog-content")(6,"div",2),D(7,yG,13,4,"ng-container",1),l(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),g(11,"Action"),d()(),l(12,"mat-select",3),H("ngModelChange",function(s){return $(o.accessRule.access,s)||(o.accessRule.access=s),s}),l(13,"mat-option",4),g(14," ALLOW "),d(),l(15,"mat-option",5),g(16," DENY "),d()()()()(),l(17,"mat-dialog-actions")(18,"button",6)(19,"uds-translate"),g(20,"Cancel"),d()(),l(21,"button",7),b("click",function(){return o.save()}),l(22,"uds-translate"),g(23,"Ok"),d()()()),n&2&&(m(),p("ngIf",o.accessRule.id===void 0),m(),p("ngIf",o.accessRule.id!==void 0&&o.accessRule.id!==-1),m(),p("ngIf",o.accessRule.id===-1),m(),P(" ",o.pool.name,` +`),m(3),p("ngIf",o.accessRule.id!==-1),m(5),U("ngModel",o.accessRule.access))},dependencies:[$e,he,ct,Vn,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function wG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function CG(i,e){if(i&1&&(ht(0),g(1),pt()),i&2){let r=_().$implicit;m(),P(" (",r.comments,")")}}function xG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),D(2,CG,2,1,"ng-container",9),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name,""),m(),p("ngIf",r.comments)}}var zf=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.model={},this.auths=[],this.authFilter="",this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=a.pool,this.model=a.model}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:o},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.auths=yield this.rest.authenticators.summary()})}changeAuth(t){return q(this,null,function*(){this.groupId="",this.authChanged()})}filteredGroups(){return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(t=>(t.name+t.comments).toLocaleLowerCase().includes(this.groupFilter.toLocaleLowerCase()))}filteredAuths(){return!this.authFilter||this.authFilter.length<3?this.auths:this.auths.filter(t=>t.name.toLocaleLowerCase().includes(this.authFilter.toLocaleLowerCase()))}save(){return q(this,null,function*(){if(this.groupId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"));return}yield this.model.create({id:this.groupId}),this.dialogRef.close(),this.done.resolve(!0)})}cancel(){return q(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return q(this,null,function*(){this.authId?this.groups=yield this.rest.authenticators.detail(this.authId,"groups").summary():this.groups=[]})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-add-group"]],decls:27,vars:7,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","selectionChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"New group for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Authenticator"),d()(),l(10,"mat-select",2),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),l(11,"uds-cond-select-search",3),b("changed",function(s){return o.authFilter=s}),d(),D(12,wG,2,2,"mat-option",4),d()(),l(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),g(16,"Group"),d()(),l(17,"mat-select",5),H("ngModelChange",function(s){return $(o.groupId,s)||(o.groupId=s),s}),l(18,"uds-cond-select-search",3),b("changed",function(s){return o.groupFilter=s}),d(),D(19,xG,3,3,"mat-option",4),d()()()(),l(20,"mat-dialog-actions")(21,"button",6),b("click",function(){return o.cancel()}),l(22,"uds-translate"),g(23,"Cancel"),d()(),l(24,"button",7),b("click",function(){return o.save()}),l(25,"uds-translate"),g(26,"Ok"),d()()()),n&2&&(m(3),P(" ",o.pool.name,""),m(7),U("ngModel",o.authId),m(),p("options",o.auths),m(),p("ngForOf",o.filteredAuths()),m(5),U("ngModel",o.groupId),m(),p("options",o.groups),m(),p("ngForOf",o.filteredGroups()))},dependencies:[$e,he,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();function DG(i,e){if(i&1&&(ht(0),g(1),pt()),i&2){let r=_().$implicit;m(),P(" (",r.comments,")")}}function SG(i,e){if(i&1&&(l(0,"mat-option",7),g(1),D(2,DG,2,1,"ng-container",8),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name,""),m(),p("ngIf",r.comments)}}var Rk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.transports=(yield this.rest.transports.summary()).filter(t=>this.servicePool.info.allowed_protocols.includes(t.protocol))})}filteredTransports(){return this.transportsFilter?this.transports.filter(t=>t.name.toLocaleLowerCase().includes(this.transportsFilter.toLocaleLowerCase())):this.transports}save(){return q(this,null,function*(){if(this.transportId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"));return}yield this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}),this.done.resolve(!0),this.dialogRef.close()})}cancel(){return q(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngIf"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"New transport for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Transport"),d()(),l(10,"mat-select",2),H("ngModelChange",function(s){return $(o.transportId,s)||(o.transportId=s),s}),l(11,"uds-cond-select-search",3),b("changed",function(s){return o.transportsFilter=s}),d(),D(12,SG,3,3,"mat-option",4),d()()()(),l(13,"mat-dialog-actions")(14,"button",5),b("click",function(){return o.cancel()}),l(15,"uds-translate"),g(16,"Cancel"),d()(),l(17,"button",6),b("click",function(){return o.save()}),l(18,"uds-translate"),g(19,"Ok"),d()()()),n&2&&(m(3),P(" ",o.servicePool.name,""),m(7),U("ngModel",o.transportId),m(),p("options",o.transports),m(),p("ngForOf",o.filteredTransports()))},dependencies:[$e,he,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var Pk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.reason="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){}save(){this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).then(()=>{this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"New publication for"),d(),g(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),g(9,"Comments"),d()(),l(10,"input",2),H("ngModelChange",function(s){return $(o.reason,s)||(o.reason=s),s}),d()()()(),l(11,"mat-dialog-actions")(12,"button",3),b("click",function(){return o.cancel()}),l(13,"uds-translate"),g(14,"Cancel"),d()(),l(15,"button",4),b("click",function(){return o.save()}),l(16,"uds-translate"),g(17,"Ok"),d()()()),n&2&&(m(3),P(" ",o.servicePool.name,` +`),m(7),U("ngModel",o.reason))},dependencies:[ct,we,De,ke,Xe,et,Je,ge,Ae,ft,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var Fk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.changeLogPubs={},this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"80%":"60%",a=t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})}ngOnInit(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["changeLog",""],["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(n,o){n&1&&(l(0,"h4",1)(1,"uds-translate"),g(2,"Changelog of"),d(),g(3),d(),l(4,"mat-dialog-content"),I(5,"uds-table",2,0),d(),l(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),g(10,"Ok"),d()()()),n&2&&(m(3),P(" ",o.servicePool.name,` +`),m(2),p("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[ke,Yt,Xe,et,Je,ce,Te],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var EG=["switch"],IG=["*"];function MG(i,e){i&1&&(l(0,"div",10),vi(),l(1,"svg",12),I(2,"path",13),d(),l(3,"svg",14),I(4,"path",15),d()())}var TG=new O("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),kG={provide:qi,useExisting:Wt(()=>ir),multi:!0},Uf=class{constructor(e,r){this.source=e,this.checked=r}},AG=0,ir=(()=>{let e=class e{_createChangeEvent(t){return new Uf(this,t)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(t){this._checked=t,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,n,o,a,s,c){this._elementRef=t,this._focusMonitor=n,this._changeDetectorRef=o,this.defaults=s,this._onChange=u=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new T,this.toggleChange=new T,this.tabIndex=parseInt(a)||0,this.color=s.color||"accent",this._noopAnimations=c==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++AG}`,this.hideIcon=s.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t==="keyboard"||t==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(t){t.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorOnChange=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Uf(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(n){return new(n||e)(h(G),h(wi),h(me),mi("tabindex"),h(TG),h(Tt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&le(EG,5),n&2){let a;Q(a=K())&&(o._switchElement=a.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(Di("id",o.id),ie("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),qt(o.color?"mat-"+o.color:""),ne("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",Y],color:"color",disabled:[2,"disabled","disabled",Y],disableRipple:[2,"disableRipple","disableRipple",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Zt(t)],checked:[2,"checked","checked",Y],hideIcon:[2,"hideIcon","hideIcon",Y]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[be([kG,{provide:no,useExisting:e,multi:!0}]),ue,Qe,re],ngContentSelectors:IG,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"div",1)(1,"button",2,0),b("click",function(){return y(a),w(o._handleClick())}),I(3,"div",3),l(4,"div",4)(5,"div",5)(6,"div",6),I(7,"div",7),d(),l(8,"div",8),I(9,"div",9),d(),D(10,MG,5,0,"div",10),d()()(),l(11,"label",11),b("click",function(c){return y(a),w(c.stopPropagation())}),ae(12),d()()}if(n&2){let a=Ie(2);p("labelPosition",o.labelPosition),m(),ne("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled),p("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled),ie("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked),m(8),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),xe(o.hideIcon?-1:10),m(),p("for",o.buttonId),ie("id",o._labelId)}},dependencies:[Mn,np],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color);font-family:var(--mat-switch-label-text-font);line-height:var(--mat-switch-label-text-line-height);font-size:var(--mat-switch-label-text-size);letter-spacing:var(--mat-switch-label-text-tracking);font-weight:var(--mat-switch-label-text-weight)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Nk=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[ir,pe,pe]});let i=e;return i})();var OG=()=>["transport","group","bool"];function RG(i,e){i&1&&(ht(0),l(1,"uds-translate"),g(2,"Edit action for"),d(),pt())}function PG(i,e){i&1&&(l(0,"uds-translate"),g(1,"New action for"),d())}function FG(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function NG(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.description," ")}}function LG(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function VG(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Transport"),d()(),l(5,"mat-select",4),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),l(6,"uds-cond-select-search",5),b("changed",function(n){y(r);let o=_();return w(o.transportsFilter=n)}),d(),D(7,LG,2,2,"mat-option",6),d()(),pt()}if(i&2){let r=_();m(5),U("ngModel",r.paramValue),m(),p("options",r.transports),m(),p("ngForOf",r.filtered(r.transports,r.transportsFilter))}}function jG(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function BG(i,e){if(i&1&&(l(0,"mat-option",13),g(1),d()),i&2){let r=e.$implicit,t=_(2);p("value",t.authenticator+"@"+r.id),m(),P(" ",r.name," ")}}function zG(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),g(4,"Authenticator"),d()(),l(5,"mat-select",9),H("ngModelChange",function(n){y(r);let o=_();return $(o.authenticator,n)||(o.authenticator=n),w(n)}),b("valueChange",function(n){y(r);let o=_();return w(o.authenticatorChangedTo(n))}),D(6,jG,2,2,"mat-option",6),d()(),l(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),g(10,"Group"),d()(),l(11,"mat-select",4),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),l(12,"uds-cond-select-search",5),b("changed",function(n){y(r);let o=_();return w(o.groupsFilter=n)}),d(),D(13,BG,2,2,"mat-option",6),d()(),pt()}if(i&2){let r=_();m(5),U("ngModel",r.authenticator),m(),p("ngForOf",r.authenticators),m(5),U("ngModel",r.paramValue),m(),p("options",r.groups),m(),p("ngForOf",r.filtered(r.groups,r.groupsFilter))}}function UG(i,e){if(i&1){let r=A();ht(0),l(1,"div",14)(2,"span",15),g(3),d(),g(4,"\xA0 "),l(5,"mat-slide-toggle",4),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),d()(),pt()}if(i&2){let r=_();m(3),He(r.parameter.description),m(2),U("ngModel",r.paramValue)}}function HG(i,e){if(i&1){let r=A();ht(0),l(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",16),H("ngModelChange",function(n){y(r);let o=_();return $(o.paramValue,n)||(o.paramValue=n),w(n)}),d()(),pt()}if(i&2){let r=_();m(3),P(" ",r.parameter.description," "),m(),p("type",r.parameter.type),U("ngModel",r.paramValue)}}var Xy=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=a.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendar_id:"",at_start:!0,events_offset:0,params:{}},a.scheduledAction!==void 0&&(this.scheduledAction.id=a.scheduledAction.id)}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:o},disableClose:!1}).componentInstance.onSave}ngOnInit(){this.rest.authenticators.summary().then(t=>this.authenticators=t),this.rest.transports.summary().then(t=>this.transports=t),this.rest.calendars.summary().then(t=>this.calendars=t),this.rest.servicesPools.actionsList(this.servicePool.id).then(t=>{this.actionList=t,this.actionList.forEach(n=>{this.paramsDict[n.id]=n.params[0]}),this.scheduledAction.id!==void 0&&this.rest.servicesPools.detail(this.servicePool.id,"actions").get(this.scheduledAction.id).then(n=>{this.scheduledAction=n,this.actionChangedTo(this.scheduledAction.action)})})}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}actionChangedTo(t){if(this.parameter=this.paramsDict[t],this.parameter!==void 0&&(this.paramValue=this.scheduledAction.params[this.parameter.name],this.paramValue===void 0&&(this.parameter.default!==!1?this.paramValue=this.parameter.default||"":this.paramValue=!1),this.parameter.type==="group")){let n=this.paramValue.split("@");n.length!==2&&(n=["",""]),this.authenticator=n[0],this.authenticatorChangedTo(this.authenticator)}}authenticatorChangedTo(t){return q(this,null,function*(){t&&(this.groups=yield this.rest.authenticators.detail(t,"groups").summary())})}save(){return q(this,null,function*(){this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),yield this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction),this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-scheduled-action"]],decls:40,vars:15,consts:[["editTitle",""],["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModelChange","ngModel"],[1,"toggle"],[3,"ngModelChange","valueChange","ngModel"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"mat-form-field-infix"],[1,"label"],["matInput","",3,"ngModelChange","type","ngModel"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",1),D(1,RG,3,0,"ng-container",2)(2,PG,2,0,"ng-template",null,0,hi),g(4),d(),l(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),g(10,"Calendar"),d()(),l(11,"mat-select",4),H("ngModelChange",function(c){return y(a),$(o.scheduledAction.calendar_id,c)||(o.scheduledAction.calendar_id=c),w(c)}),l(12,"uds-cond-select-search",5),b("changed",function(c){return y(a),w(o.calendarsFilter=c)}),d(),D(13,FG,2,2,"mat-option",6),d()(),l(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),g(17,"Events offset (minutes)"),d()(),l(18,"input",7),H("ngModelChange",function(c){return y(a),$(o.scheduledAction.events_offset,c)||(o.scheduledAction.events_offset=c),w(c)}),d()(),l(19,"div",8)(20,"mat-slide-toggle",4),H("ngModelChange",function(c){return y(a),$(o.scheduledAction.at_start,c)||(o.scheduledAction.at_start=c),w(c)}),l(21,"uds-translate"),g(22,"At the beginning of the interval?"),d()()(),l(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),g(26,"Action"),d()(),l(27,"mat-select",9),H("ngModelChange",function(c){return y(a),$(o.scheduledAction.action,c)||(o.scheduledAction.action=c),w(c)}),b("valueChange",function(c){return y(a),w(o.actionChangedTo(c))}),D(28,NG,2,2,"mat-option",6),d()(),D(29,VG,8,3,"ng-container",10)(30,zG,14,5,"ng-container",10)(31,UG,6,2,"ng-container",10)(32,HG,5,3,"ng-container",10),d()(),l(33,"mat-dialog-actions")(34,"button",11)(35,"uds-translate"),g(36,"Cancel"),d()(),l(37,"button",12),b("click",function(){return y(a),w(o.save())}),l(38,"uds-translate"),g(39,"Ok"),d()()()}if(n&2){let a=Ie(3);m(),p("ngIf",o.scheduledAction.id!==void 0)("ngIfElse",a),m(3),P(" ",o.servicePool.name,` +`),m(7),U("ngModel",o.scheduledAction.calendar_id),m(),p("options",o.calendars),m(),p("ngForOf",o.filtered(o.calendars,o.calendarsFilter)),m(5),U("ngModel",o.scheduledAction.events_offset),m(2),U("ngModel",o.scheduledAction.at_start),m(7),U("ngModel",o.scheduledAction.action),m(),p("ngForOf",o.actionList),m(),p("ngIf",(o.parameter==null?null:o.parameter.type)==="transport"),m(),p("ngIf",(o.parameter==null?null:o.parameter.type)==="group"),m(),p("ngIf",(o.parameter==null?null:o.parameter.type)==="bool"),m(),p("ngIf",(o.parameter==null?null:o.parameter.type)&&!Zs(14,OG).includes(o.parameter.type))}},dependencies:[$e,he,ct,Vn,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,vt,it,ir,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var Nd=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.userService=a.userService,this.model=a.model}static launch(t,n,o){let a=window.innerWidth<800?"80%":"60%",s=t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:o},disableClose:!1})}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Logs of"),d(),g(3),d(),l(4,"mat-dialog-content"),I(5,"uds-logs-table",1),d(),l(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),g(9,"Ok"),d()()()),n&2&&(m(3),P(" ",o.userService.name,` +`),m(2),p("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[ke,Yt,Xe,et,Je,ce,so],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();function $G(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}function WG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}function GG(i,e){if(i&1&&(l(0,"mat-option",8),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var Lk=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.serviceId="",this.authId="",this.userId="",this.servicePool=a.servicePool}static launch(t,n){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.authId="",this.userId="";let t=yield this.rest.authenticators.summary(),n=yield this.rest.servicesPools.listAssignables(this.servicePool.id);this.auths=t,this.assignablesServices=n})}changeAuth(t){return q(this,null,function*(){this.userId="",this.authChanged()})}filteredUsers(){if(!this.userFilter)return this.users;let t=new Array;return this.users.forEach(n=>{n.name.toLocaleLowerCase().includes(this.userFilter.toLocaleLowerCase())&&t.push(n)}),t}filteredAssignables(){if(!this.assignablesServicesFilter)return this.assignablesServices;let t=new Array;return this.assignablesServices.forEach(n=>{n.text.toLocaleLowerCase().includes(this.assignablesServicesFilter.toLocaleLowerCase())&&t.push(n)}),t}save(){return q(this,null,function*(){if(this.userId===""||this.authId===""){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"));return}this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).then(t=>{this.dialogRef.close(),this.done.resolve(!0)})})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}authChanged(){return q(this,null,function*(){this.authId&&(this.users=yield this.rest.authenticators.detail(this.authId,"users").summary())})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModelChange","ngModel"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelChange","selectionChange","ngModel"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0)(1,"uds-translate"),g(2,"Assign service to user manually"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Service"),d()(),l(9,"mat-select",2),H("ngModelChange",function(s){return $(o.serviceId,s)||(o.serviceId=s),s}),l(10,"uds-cond-select-search",3),b("changed",function(s){return o.assignablesServicesFilter=s}),d(),D(11,$G,2,2,"mat-option",4),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Authenticator"),d()(),l(16,"mat-select",5),H("ngModelChange",function(s){return $(o.authId,s)||(o.authId=s),s}),b("selectionChange",function(s){return o.changeAuth(s)}),D(17,WG,2,2,"mat-option",4),d()(),l(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),g(21,"User"),d()(),l(22,"mat-select",2),H("ngModelChange",function(s){return $(o.userId,s)||(o.userId=s),s}),l(23,"uds-cond-select-search",3),b("changed",function(s){return o.userFilter=s}),d(),D(24,GG,2,2,"mat-option",4),d()()()(),l(25,"mat-dialog-actions")(26,"button",6),b("click",function(){return o.cancel()}),l(27,"uds-translate"),g(28,"Cancel"),d()(),l(29,"button",7),b("click",function(){return o.save()}),l(30,"uds-translate"),g(31,"Ok"),d()()()),n&2&&(m(9),U("ngModel",o.serviceId),m(),p("options",o.assignablesServices),m(),p("ngForOf",o.filteredAssignables()),m(5),U("ngModel",o.authId),m(),p("ngForOf",o.auths),m(5),U("ngModel",o.userId),m(),p("options",o.users),m(),p("ngForOf",o.filteredUsers()))},dependencies:[$e,we,De,ke,Xe,et,Je,ge,Ae,vt,it,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let i=e;return i})();var jk=Kd(Ff());var Vk=(()=>{let e=class e{constructor(t){this.rest=t,this.poolUuid="",this.options={},this.chart=null}onResize(t){this.chart&&this.chart.resize()}ngOnInit(){return q(this,null,function*(){let t=yield this.rest.system.stats("complete",this.poolUuid);this.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:t.assigned.map(n=>Bi("SHORT_DATETIME_FORMAT",new Date(n.stamp))),boundaryGap:!1},yAxis:{type:"value"},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.assigned.map(n=>n.value)},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.cached.map(n=>n.value)},{name:django.gettext("In use"),type:"line",smooth:!0,data:t.inuse.map(n=>n.value)}]}})}chartInit(t){this.chart=t}};e.\u0275fac=function(n){return new(n||e)(h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-charts"]],hostBindings:function(n,o){n&1&&b("resize",function(s){return o.onResize(s)},!1,Lm)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"chartInit","options"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),b("chartInit",function(s){return o.chartInit(s)}),d()()),n&2&&(m(),p("options",o.options))},dependencies:[tf]});let i=e;return i})();var YG=i=>["/pools","service-pools",i];function QG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function KG(i,e){if(i&1&&I(0,"uds-information",20),i&2){let r=_(2);p("value",r.servicePool)("gui",r.gui)}}function ZG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Assigned services"),d())}function XG(i,e){i&1&&(l(0,"uds-translate"),g(1,"Cache"),d())}function JG(i,e){if(i&1){let r=A();l(0,"mat-tab"),D(1,XG,2,0,"ng-template",9),l(2,"div",10)(3,"uds-table",21),b("customButtonAction",function(n){y(r);let o=_(2);return w(o.onCustomCached(n))})("deleteAction",function(n){y(r);let o=_(2);return w(o.onDeleteCache(n))}),d()()()}if(i&2){let r=_(2);m(3),p("rest",r.cache)("multiSelect",!0)("allowExport",!0)("onItem",r.processsCacheElement)("tableId","servicePools-d-cache"+r.servicePool.id)("customButtons",r.customButtonsCachedServices)("pageSize",r.api.config.admin.page_size)}}function e7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function t7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Transports"),d())}function i7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Publications"),d())}function n7(i,e){if(i&1){let r=A();l(0,"mat-tab"),D(1,i7,2,0,"ng-template",9),l(2,"div",10)(3,"uds-table",22),b("customButtonAction",function(n){y(r);let o=_(2);return w(o.onCustomPublication(n))})("newAction",function(n){y(r);let o=_(2);return w(o.onNewPublication(n))})("rowSelected",function(n){y(r);let o=_(2);return w(o.onPublicationRowSelect(n))}),d()()()}if(i&2){let r=_(2);m(3),p("rest",r.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+r.servicePool.id)("customButtons",r.customButtonsPublication)("pageSize",r.api.config.admin.page_size)}}function o7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Scheduled actions"),d())}function r7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Access calendars"),d())}function a7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Charts"),d())}function s7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}function c7(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),l(3,"mat-tab"),D(4,QG,2,0,"ng-template",9),l(5,"div",10),D(6,KG,1,2,"uds-information",11),d()(),l(7,"mat-tab"),D(8,ZG,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomAssigned(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAssigned(n))}),d()()(),D(11,JG,4,7,"mat-tab",13),l(12,"mat-tab"),D(13,e7,2,0,"ng-template",9),l(14,"div",10)(15,"uds-table",14),b("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))}),d()()(),l(16,"mat-tab"),D(17,t7,2,0,"ng-template",9),l(18,"div",10)(19,"uds-table",15),b("newAction",function(n){y(r);let o=_();return w(o.onNewTransport(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteTransport(n))}),d()()(),D(20,n7,4,6,"mat-tab",13),l(21,"mat-tab"),D(22,o7,2,0,"ng-template",9),l(23,"div",10)(24,"uds-table",16),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomScheduleAction(n))})("newAction",function(n){y(r);let o=_();return w(o.onNewScheduledAction(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditScheduledAction(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteScheduledAction(n))}),d()()(),l(25,"mat-tab"),D(26,r7,2,0,"ng-template",9),l(27,"div",10)(28,"uds-table",17),b("newAction",function(n){y(r);let o=_();return w(o.onNewAccessCalendar(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditAccessCalendar(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAccessCalendar(n))})("loaded",function(n){y(r);let o=_();return w(o.onAccessCalendarLoad(n))}),d()()(),l(29,"mat-tab"),D(30,a7,2,0,"ng-template",9),l(31,"div",10),I(32,"uds-service-pools-charts",18),d()(),l(33,"mat-tab"),D(34,s7,2,0,"ng-template",9),l(35,"div",10),I(36,"uds-logs-table",19),d()()()()()}if(i&2){let r=_();m(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),m(4),p("ngIf",r.servicePool&&r.gui),m(4),p("rest",r.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",r.processsAssignedElement)("tableId","servicePools-d-services"+r.servicePool.id)("customButtons",r.customButtonsAssignedServices)("pageSize",r.api.config.admin.page_size),m(),p("ngIf",r.cache),m(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),m(),p("ngIf",r.publications),m(4),p("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),m(4),p("poolUuid",r.servicePool.id),m(4),p("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)("pageSize",r.api.config.admin.page_size)}}var $f='event'+django.gettext("Logs")+"",l7='computer'+django.gettext("VNC")+"",d7='schedule'+django.gettext("Launch now")+"",Jy='perm_identity'+django.gettext("Change owner")+"",u7='perm_identity'+django.gettext("Assign service")+"",m7='cancel'+django.gettext("Cancel")+"",h7='event'+django.gettext("Changelog")+"",Wf=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtonsScheduledAction=[{id:"launch-action",html:d7,type:ut.SINGLE_SELECT},Ei.getGotoButton(Pp,"calendarId")],this.customButtonAccessCalendars=[Ei.getGotoButton(Pp,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:Jy,type:ut.SINGLE_SELECT},{id:"log",html:$f,type:ut.SINGLE_SELECT},Ei.getGotoButton(Od,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:$f,type:ut.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:m7,type:ut.SINGLE_SELECT},{id:"changelog",html:h7,type:ut.ALWAYS}],this.customButtonsGroups=[Ei.getGotoButton(my,"auth_id","id")],this.customButtonsTransports=[Ei.getGotoButton(hy,"id")],this.servicePool=null,this.gui=[],this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(t){return t.table.selection.selected.filter(n=>["E","R","M","S","C"].includes(n.state)).forEach(n=>t.table.selection.deselect(n)),t.table.selection.isEmpty()}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("pool");if(!t)return;this.assignedServices=this.rest.servicesPools.detail(t,"services"),this.groups=this.rest.servicesPools.detail(t,"groups"),this.transports=this.rest.servicesPools.detail(t,"transports"),this.scheduledActions=this.rest.servicesPools.detail(t,"actions"),this.accessCalendars=this.rest.servicesPools.detail(t,"access");let n=yield this.rest.servicesPools.get(t),o=(yield this.rest.servicesPools.gui()).filter(a=>{let s=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(n.info.uses_cache===!1&&s.includes(a.name)||n.info.uses_cache_l2===!1&&a.name==="cache_l2_srvs"||n.info.needs_manager===!1&&a.name==="osmanager_id")});this.servicePool=n,this.gui=o,n.info.uses_cache?this.cache=this.rest.servicesPools.detail(t,"cache"):this.cache=null,n.info.needs_publication?this.publications=this.rest.servicesPools.detail(t,"publications"):this.publications=null,this.api.config.admin.vnc_userservices&&this.customButtonsAssignedServices.push({id:"vnc",html:l7,type:ut.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:u7,type:ut.ALWAYS})})}vnc(t){let n=`[connection] host=`+t.ip+` port=5900 -`,o=new Blob([n],{type:"application/extension-vnc"});setTimeout(()=>{(0,Wk.saveAs)(o,t.ip+".vnc")},100)}onCustomAssigned(t){return q(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield Hf.launch(this.api,n,this.assignedServices))===!0&&t.table.overview()}else t.param.id==="log"?Ld.launch(this.api,n,this.assignedServices):t.param.id==="assign-service"?(yield Hk.launch(this.api,this.servicePool))===!0&&t.table.overview():t.param.id==="vnc"&&this.vnc(n)})}onCustomCached(t){let n=t.table.selection.selected[0];t.param.id==="log"&&this.cache&&Ld.launch(this.api,n,this.cache)}processsAssignedElement(t){t.in_use=this.api.boolAsHumanString(t.in_use),t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onDeleteAssigned(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))}onDeleteCache(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete cached service"))}processsCacheElement(t){t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onNewGroup(t){return q(this,null,function*(){(yield $f.launch(this.api,this.servicePool,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))})}onNewTransport(t){return q(this,null,function*(){(yield jk.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onDeleteTransport(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))})}onNewPublication(t){return q(this,null,function*(){(yield Bk.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onPublicationRowSelect(t){t.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))}onCustomPublication(t){t.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(t.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})}):t.param.id==="changelog"&&zk.launch(this.api,this.servicePool)}onNewScheduledAction(t){tw.launch(this.api,this.servicePool).subscribe(n=>t.table.overview())}onEditScheduledAction(t){tw.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteScheduledAction(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))}onCustomScheduleAction(t){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onNewAccessCalendar(t){zc.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){zc.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processsCalendarOrScheduledElement(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],[4,"ngIf"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","cached",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,f7,37,43,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,t7,o.servicePool?o.servicePool.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/pools.png"),Ee),m(),P(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),p("ngIf",o.servicePool!==null))},dependencies:[he,gi,ei,ti,ni,ce,Te,so,co,$k],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-publish_date, .mat-column-state_date, .mat-column-creation_date{width:14rem} .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-mdc-cell{color:gray!important} .row-state-C>.mat-mdc-cell{color:gray!important} .row-state-E>.mat-mdc-cell{color:red!important} .row-state-R>.mat-mdc-cell{color:orange!important}"]});let i=e;return i})();var nw=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))}onDetail(t){this.api.navigation.gotoMetapoolDetail(t.param.id)}processElement(t){t.visible=this.api.boolAsHumanString(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"detailAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","onItem","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("detailAction",function(s){return o.onDetail(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]});let i=e;return i})();function w7(i,e){i&1&&(l(0,"uds-translate"),g(1,"New member pool"),d())}function C7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Edit member pool"),d())}function x7(i,e){if(i&1){let r=A();l(0,"uds-cond-select-search",11),b("changed",function(n){y(r);let o=_();return w(o.servicePoolsFilter=n)}),d()}}function D7(i,e){if(i&1&&(l(0,"mat-option",12),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var ow=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.servicePools=[],this.servicePoolsFilter="",this.model=a.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},a.memberPool&&(this.memberPool.id=a.memberPool.id)}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.servicePools=yield this.rest.servicesPools.summary(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}save(){return q(this,null,function*(){if(!this.memberPool.pool_id){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"));return}yield this.model.save(this.memberPool),this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0),x(1,w7,2,0,"uds-translate",1)(2,C7,2,0,"uds-translate",1),d(),l(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Priority"),d()(),l(9,"input",3),H("ngModelChange",function(s){return $(o.memberPool.priority,s)||(o.memberPool.priority=s),s}),d()(),l(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),g(13,"Service pool"),d()(),l(14,"mat-select",4),H("ngModelChange",function(s){return $(o.memberPool.pool_id,s)||(o.memberPool.pool_id=s),s}),x(15,x7,1,0,"uds-cond-select-search",5)(16,D7,2,2,"mat-option",6),d()(),l(17,"div",7)(18,"span",8)(19,"uds-translate"),g(20,"Enabled?"),d()(),l(21,"mat-slide-toggle",4),H("ngModelChange",function(s){return $(o.memberPool.enabled,s)||(o.memberPool.enabled=s),s}),g(22),d()()()(),l(23,"mat-dialog-actions")(24,"button",9),b("click",function(){return o.cancel()}),l(25,"uds-translate"),g(26,"Cancel"),d()(),l(27,"button",10),b("click",function(){return o.save()}),l(28,"uds-translate"),g(29,"Ok"),d()()()),n&2&&(m(),p("ngIf",!(o.memberPool!=null&&o.memberPool.id)),m(),p("ngIf",o.memberPool==null?null:o.memberPool.id),m(7),U("ngModel",o.memberPool.priority),m(5),U("ngModel",o.memberPool.pool_id),m(),p("ngIf",o.servicePools.length>10),m(),p("ngForOf",o.filtered(o.servicePools,o.servicePoolsFilter)),m(5),U("ngModel",o.memberPool.enabled),m(),P(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[$e,he,ct,Vn,we,De,ke,Xe,et,Je,ge,Ae,ft,vt,it,nr,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]});let i=e;return i})();var S7=i=>["/pools","meta-pools",i];function E7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function I7(i,e){if(i&1&&I(0,"uds-information",17),i&2){let r=_(2);p("value",r.metaPool)("gui",r.gui)}}function M7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Service pools"),d())}function T7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Assigned services"),d())}function k7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function A7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Access calendars"),d())}function O7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}function R7(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),l(3,"mat-tab"),x(4,E7,2,0,"ng-template",9),l(5,"div",10),x(6,I7,1,2,"uds-information",11),d()(),l(7,"mat-tab"),x(8,M7,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNewMemberPool(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditMemberPool(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteMemberPool(n))}),d()()(),l(11,"mat-tab"),x(12,T7,2,0,"ng-template",9),l(13,"div",10)(14,"uds-table",13),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomAssigned(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAssigned(n))}),d()()(),l(15,"mat-tab"),x(16,k7,2,0,"ng-template",9),l(17,"div",10)(18,"uds-table",14),b("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))}),d()()(),l(19,"mat-tab"),x(20,A7,2,0,"ng-template",9),l(21,"div",10)(22,"uds-table",15),b("newAction",function(n){y(r);let o=_();return w(o.onNewAccessCalendar(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditAccessCalendar(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAccessCalendar(n))})("loaded",function(n){y(r);let o=_();return w(o.onAccessCalendarLoad(n))}),d()()(),l(23,"mat-tab"),x(24,O7,2,0,"ng-template",9),l(25,"div",10),I(26,"uds-logs-table",16),d()()()()()}if(i&2){let r=_();m(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),m(4),p("ngIf",r.metaPool&&r.gui),m(4),p("rest",r.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("customButtons",r.customButtons)("tableId","metaPools-d-members"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+r.metaPool.id)("customButtons",r.customButtonsAssignedServices)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)("onItem",r.processsCalendarItem),m(4),p("rest",r.rest.metaPools)("itemId",r.metaPool.id)("tableId","metaPools-d-log"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)}}var Gk=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[Ei.getGotoButton(Od,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:iw,type:ut.SINGLE_SELECT},{id:"log",html:qf,type:ut.SINGLE_SELECT},Ei.getGotoButton(Rd,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1,this.memberPools={},this.memberUserServices={},this.groups={},this.accessCalendars={}}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("metapool");if(!t)return;let n=yield this.rest.metaPools.get(t),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(t,"pools"),this.memberUserServices=this.rest.metaPools.detail(t,"services"),this.groups=this.rest.metaPools.detail(t,"groups"),this.accessCalendars=this.rest.metaPools.detail(t,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(t){return q(this,null,function*(){(yield ow.launch(this.api,this.memberPools))===!0&&t.table.overview()})}onEditMemberPool(t){return q(this,null,function*(){(yield ow.launch(this.api,this.memberPools,t.table.selection.selected[0]))===!0&&t.table.overview()})}onDeleteMemberPool(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))})}onCustomAssigned(t){return q(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield Hf.launch(this.api,n,this.memberUserServices))===!0&&t.table.overview()}else t.param.id==="log"&&Ld.launch(this.api,n,this.memberUserServices)})}onDeleteAssigned(t){return q(this,null,function*(){Yf.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))})}onNewGroup(t){return q(this,null,function*(){(yield $f.launch(this.api,this.metaPool.id,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))}onNewAccessCalendar(t){zc.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){zc.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processElement(t){t.enabled=this.api.boolAsHumanString(t.enabled)}processsCalendarItem(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","tableId","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","tableId","pageSize","onItem"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,R7,27,31,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,S7,o.metaPool?o.metaPool.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/metas.png"),Ee),m(),P(" ",o.metaPool==null?null:o.metaPool.name," "),m(),p("ngIf",o.metaPool))},dependencies:[he,gi,ei,ti,ni,ce,Te,so,co],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]});let i=e;return i})();var rw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New pool group"),!1).then(()=>t.table.overview())}onEdit(t){return q(this,null,function*(){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1)})}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]});let i=e;return i})();var aw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))}onDetail(t){this.api.navigation.gotoCalendarDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();var P7=["mat-calendar-body",""];function F7(i,e){return this._trackRow(e)}var eA=(i,e)=>e.id;function N7(i,e){if(i&1&&(l(0,"tr",0)(1,"td",3),g(2),d()()),i&2){let r=_();m(),xi("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r.numCols),m(),P(" ",r.label," ")}}function L7(i,e){if(i&1&&(l(0,"td",3),g(1),d()),i&2){let r=_(2);xi("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r._firstRowOffset),m(),P(" ",r._firstRowOffset>=r.labelMinRequiredCells?r.label:""," ")}}function V7(i,e){if(i&1){let r=A();l(0,"td",6)(1,"button",7),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a._cellClicked(o,n))})("focus",function(n){let o=y(r).$implicit,a=_(2);return w(a._emitActiveDateChange(o,n))}),l(2,"span",8),g(3),d(),I(4,"span",9),d()()}if(i&2){let r=e.$implicit,t=e.$index,n=_().$index,o=_();xi("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),ie("data-mat-row",n)("data-mat-col",t),m(),ne("mat-calendar-body-disabled",!r.enabled)("mat-calendar-body-active",o._isActiveCell(n,t))("mat-calendar-body-range-start",o._isRangeStart(r.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(r.compareValue))("mat-calendar-body-in-range",o._isInRange(r.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(r.compareValue,n,t))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(r.compareValue,n,t))("mat-calendar-body-comparison-start",o._isComparisonStart(r.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(r.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(r.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(r.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(r.compareValue))("mat-calendar-body-in-preview",o._isInPreview(r.compareValue)),p("ngClass",r.cssClasses)("tabindex",o._isActiveCell(n,t)?0:-1),ie("aria-label",r.ariaLabel)("aria-disabled",!r.enabled||null)("aria-pressed",o._isSelected(r.compareValue))("aria-current",o.todayValue===r.compareValue?"date":null)("aria-describedby",o._getDescribedby(r.compareValue)),m(),ne("mat-calendar-body-selected",o._isSelected(r.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(r.compareValue))("mat-calendar-body-today",o.todayValue===r.compareValue),m(),P(" ",r.displayValue," ")}}function j7(i,e){if(i&1&&(l(0,"tr",1),x(1,L7,2,6,"td",4),vr(2,V7,5,48,"td",5,eA),d()),i&2){let r=e.$implicit,t=e.$index,n=_();m(),xe(t===0&&n._firstRowOffset?1:-1),m(),br(r)}}function B7(i,e){if(i&1&&(l(0,"th",2)(1,"span",6),g(2),d(),l(3,"span",3),g(4),d()()),i&2){let r=e.$implicit;m(2),He(r.long),m(2),He(r.narrow)}}var z7=["*"];function U7(i,e){}function H7(i,e){if(i&1){let r=A();l(0,"mat-month-view",4),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("_userSelection",function(n){y(r);let o=_();return w(o._dateSelected(n))})("dragStarted",function(n){y(r);let o=_();return w(o._dragStarted(n))})("dragEnded",function(n){y(r);let o=_();return w(o._dragEnded(n))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName)("activeDrag",r._activeDrag)}}function $7(i,e){if(i&1){let r=A();l(0,"mat-year-view",5),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("monthSelected",function(n){y(r);let o=_();return w(o._monthSelectedInYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"month"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function W7(i,e){if(i&1){let r=A();l(0,"mat-multi-year-view",6),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("yearSelected",function(n){y(r);let o=_();return w(o._yearSelectedInMultiYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"year"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function G7(i,e){}var q7=["button"],Y7=[[["","matDatepickerToggleIcon",""]]],Q7=["[matDatepickerToggleIcon]"];function K7(i,e){i&1&&(vi(),l(0,"svg",2),I(1,"path",3),d())}var zd=(()=>{let e=class e{constructor(){this.changes=new W,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(t,n){return`${t} \u2013 ${n}`}formatYearRangeLabel(t,n){return`${t} to ${n}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Z7=0,jd=class{constructor(e,r,t,n,o={},a=e,s){this.value=e,this.displayValue=r,this.ariaLabel=t,this.enabled=n,this.cssClasses=o,this.compareValue=a,this.rawValue=s,this.id=Z7++}},X7=1,qk=ji({passive:!1,capture:!0}),Ea=ji({passive:!0,capture:!0}),Qf=ji({passive:!0}),Hc=(()=>{let e=class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(t,n){this._elementRef=t,this._ngZone=n,this._platform=k(je),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new T,this.previewChange=new T,this.activeDateChange=new T,this.dragStarted=new T,this.dragEnded=new T,this._didDragSinceMouseDown=!1,this._injector=k(Pe),this._trackRow=o=>o,this._enterHandler=o=>{if(this._skipNextFocus&&o.type==="focus"){this._skipNextFocus=!1;return}if(o.target&&this.isRange){let a=this._getCellFromElement(o.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;let a=Yk(o),s=a?this._getCellFromElement(a):null;a!==o.target&&(this._didDragSinceMouseDown=!0),cw(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:o}))},this._leaveHandler=o=>{this.previewEnd!==null&&this.isRange&&(o.type!=="blur"&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&!(o.relatedTarget&&this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=o.target&&this._getCellFromElement(o.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;let a=cw(o.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(a);this.dragEnded.emit({value:s?.rawValue??null,event:o})})},this._touchendHandler=o=>{let a=Yk(o);a&&this._mouseupHandler({target:a})},this._id=`mat-calendar-body-${X7++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,n.runOutsideAngular(()=>{let o=t.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,qk),o.addEventListener("mouseenter",this._enterHandler,Ea),o.addEventListener("focus",this._enterHandler,Ea),o.addEventListener("mouseleave",this._leaveHandler,Ea),o.addEventListener("blur",this._leaveHandler,Ea),o.addEventListener("mousedown",this._mousedownHandler,Qf),o.addEventListener("touchstart",this._mousedownHandler,Qf),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(t,n){this._didDragSinceMouseDown||t.enabled&&this.selectedValueChange.emit({value:t.value,event:n})}_emitActiveDateChange(t,n){t.enabled&&this.activeDateChange.emit({value:t.value,event:n})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){let n=t.numCols,{rows:o,numCols:a}=this;(t.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?a-o[0].length:0),(t.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/a}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/a}%`)}ngOnDestroy(){let t=this._elementRef.nativeElement;t.removeEventListener("touchmove",this._touchmoveHandler,qk),t.removeEventListener("mouseenter",this._enterHandler,Ea),t.removeEventListener("focus",this._enterHandler,Ea),t.removeEventListener("mouseleave",this._leaveHandler,Ea),t.removeEventListener("blur",this._leaveHandler,Ea),t.removeEventListener("mousedown",this._mousedownHandler,Qf),t.removeEventListener("touchstart",this._mousedownHandler,Qf),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(t,n){let o=t*this.numCols+n;return t&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(t=!0){ri(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(t||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return lw(t,this.startValue,this.endValue)}_isRangeEnd(t){return dw(t,this.startValue,this.endValue)}_isInRange(t){return uw(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return lw(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,n,o){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let a=this.rows[n][o-1];if(!a){let s=this.rows[n-1];a=s&&s[s.length-1]}return a&&!this._isRangeEnd(a.compareValue)}_isComparisonBridgeEnd(t,n,o){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let a=this.rows[n][o+1];if(!a){let s=this.rows[n+1];a=s&&s[0]}return a&&!this._isRangeStart(a.compareValue)}_isComparisonEnd(t){return dw(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return uw(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return lw(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return dw(t,this.previewStart,this.previewEnd)}_isInPreview(t){return uw(t,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(t){return this.isRange?this.startValue===t&&this.endValue===t?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===t?this._startDateLabelId:this.endValue===t?this._endDateLabelId:null:null}_getCellFromElement(t){let n=cw(t);if(n){let o=n.getAttribute("data-mat-row"),a=n.getAttribute("data-mat-col");if(o&&a)return this.rows[parseInt(o)][parseInt(a)]}return null}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z))},e.\u0275cmp=S({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[Qe,re],attrs:P7,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,o){n&1&&(x(0,N7,3,6,"tr",0),vr(1,j7,4,1,"tr",1,F7,!0),l(3,"label",2),g(4),d(),l(5,"label",2),g(6),d()),n&2&&(xe(o._firstRowOffset{(0,jk.saveAs)(o,t.ip+".vnc",{autoBom:!1})},100)}onCustomAssigned(t){return q(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield Bf.launch(this.api,n,this.assignedServices))===!0&&t.table.overview()}else t.param.id==="log"?Nd.launch(this.api,n,this.assignedServices):t.param.id==="assign-service"?(yield Lk.launch(this.api,this.servicePool))===!0&&t.table.overview():t.param.id==="vnc"&&this.vnc(n)})}onCustomCached(t){let n=t.table.selection.selected[0];t.param.id==="log"&&this.cache&&Nd.launch(this.api,n,this.cache)}processsAssignedElement(t){t.in_use=this.api.boolAsHumanString(t.in_use),t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onDeleteAssigned(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))}onDeleteCache(t){e.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete cached service"))}processsCacheElement(t){t.origState=t.state,t.state==="U"&&(t.state=t.os_state!==""&&t.os_state!=="U"?"Z":"U")}onNewGroup(t){return q(this,null,function*(){(yield zf.launch(this.api,this.servicePool,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))})}onNewTransport(t){return q(this,null,function*(){(yield Rk.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onDeleteTransport(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))})}onNewPublication(t){return q(this,null,function*(){(yield Pk.launch(this.api,this.servicePool))===!0&&t.table.overview()})}onPublicationRowSelect(t){t.table.selection.selected.length===1&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))}onCustomPublication(t){t.param.id==="cancel-publication"?this.api.gui.questionDialog(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).then(n=>{n&&this.publications&&this.publications.invoke(t.table.selection.selected[0].id+"/cancel").then(o=>{this.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})}):t.param.id==="changelog"&&Fk.launch(this.api,this.servicePool)}onNewScheduledAction(t){Xy.launch(this.api,this.servicePool).subscribe(n=>t.table.overview())}onEditScheduledAction(t){Xy.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteScheduledAction(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))}onCustomScheduleAction(t){this.api.gui.questionDialog(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).then(n=>{n&&this.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").then(()=>{this.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onNewAccessCalendar(t){Bc.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){Bc.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processsCalendarOrScheduledElement(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],[4,"ngIf"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","transports",3,"newAction","deleteAction","rest","multiSelect","allowExport","customButtons","tableId","pageSize"],["icon","calendars",3,"customButtonAction","newAction","editAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","cached",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize"],["icon","publications",3,"customButtonAction","newAction","rowSelected","rest","multiSelect","allowExport","tableId","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,c7,37,43,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,YG,o.servicePool?o.servicePool.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/pools.png"),Ee),m(),P(" \xA0",o.servicePool==null?null:o.servicePool.name," "),m(),p("ngIf",o.servicePool!==null))},dependencies:[he,gi,ei,ti,ni,ce,Te,so,co,Vk],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-publish_date, .mat-column-state_date, .mat-column-creation_date{width:14rem} .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-mdc-cell{color:gray!important} .row-state-C>.mat-mdc-cell{color:gray!important} .row-state-E>.mat-mdc-cell{color:red!important} .row-state-R>.mat-mdc-cell{color:orange!important}"]});let i=e;return i})();var ew=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))}onDetail(t){this.api.navigation.gotoMetapoolDetail(t.param.id)}processElement(t){t.visible=this.api.boolAsHumanString(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"detailAction","newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","onItem","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("detailAction",function(s){return o.onDetail(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()()),n&2&&(m(),p("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]});let i=e;return i})();function p7(i,e){i&1&&(l(0,"uds-translate"),g(1,"New member pool"),d())}function f7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Edit member pool"),d())}function g7(i,e){if(i&1){let r=A();l(0,"uds-cond-select-search",11),b("changed",function(n){y(r);let o=_();return w(o.servicePoolsFilter=n)}),d()}}function _7(i,e){if(i&1&&(l(0,"mat-option",12),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.name," ")}}var tw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.done=new Jt,this.servicePools=[],this.servicePoolsFilter="",this.model=a.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},a.memberPool&&(this.memberPool.id=a.memberPool.id)}static launch(t,n,o){let a=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:a,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:o,model:n},disableClose:!1}).componentInstance.done}ngOnInit(){return q(this,null,function*(){this.servicePools=yield this.rest.servicesPools.summary(),this.memberPool.id&&(this.memberPool=yield this.model.get(this.memberPool.id))})}filtered(t,n){return n?t.filter(o=>o.name.toLocaleLowerCase().includes(n.toLocaleLowerCase())):t}save(){return q(this,null,function*(){if(!this.memberPool.pool_id){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"));return}yield this.model.save(this.memberPool),this.dialogRef.close(),this.done.resolve(!0)})}cancel(){this.dialogRef.close(),this.done.resolve(!1)}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(n,o){n&1&&(l(0,"h4",0),D(1,p7,2,0,"uds-translate",1)(2,f7,2,0,"uds-translate",1),d(),l(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Priority"),d()(),l(9,"input",3),H("ngModelChange",function(s){return $(o.memberPool.priority,s)||(o.memberPool.priority=s),s}),d()(),l(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),g(13,"Service pool"),d()(),l(14,"mat-select",4),H("ngModelChange",function(s){return $(o.memberPool.pool_id,s)||(o.memberPool.pool_id=s),s}),D(15,g7,1,0,"uds-cond-select-search",5)(16,_7,2,2,"mat-option",6),d()(),l(17,"div",7)(18,"span",8)(19,"uds-translate"),g(20,"Enabled?"),d()(),l(21,"mat-slide-toggle",4),H("ngModelChange",function(s){return $(o.memberPool.enabled,s)||(o.memberPool.enabled=s),s}),g(22),d()()()(),l(23,"mat-dialog-actions")(24,"button",9),b("click",function(){return o.cancel()}),l(25,"uds-translate"),g(26,"Cancel"),d()(),l(27,"button",10),b("click",function(){return o.save()}),l(28,"uds-translate"),g(29,"Ok"),d()()()),n&2&&(m(),p("ngIf",!(o.memberPool!=null&&o.memberPool.id)),m(),p("ngIf",o.memberPool==null?null:o.memberPool.id),m(7),U("ngModel",o.memberPool.priority),m(5),U("ngModel",o.memberPool.pool_id),m(),p("ngIf",o.servicePools.length>10),m(),p("ngForOf",o.filtered(o.servicePools,o.servicePoolsFilter)),m(5),U("ngModel",o.memberPool.enabled),m(),P(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[$e,he,ct,Vn,we,De,ke,Xe,et,Je,ge,Ae,ft,vt,it,ir,ce,di],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]});let i=e;return i})();var v7=i=>["/pools","meta-pools",i];function b7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Summary"),d())}function y7(i,e){if(i&1&&I(0,"uds-information",17),i&2){let r=_(2);p("value",r.metaPool)("gui",r.gui)}}function w7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Service pools"),d())}function C7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Assigned services"),d())}function x7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Groups"),d())}function D7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Access calendars"),d())}function S7(i,e){i&1&&(l(0,"uds-translate"),g(1,"Logs"),d())}function E7(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),H("selectedIndexChange",function(n){y(r);let o=_();return $(o.selectedTab,n)||(o.selectedTab=n),w(n)}),l(3,"mat-tab"),D(4,b7,2,0,"ng-template",9),l(5,"div",10),D(6,y7,1,2,"uds-information",11),d()(),l(7,"mat-tab"),D(8,w7,2,0,"ng-template",9),l(9,"div",10)(10,"uds-table",12),b("newAction",function(n){y(r);let o=_();return w(o.onNewMemberPool(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditMemberPool(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteMemberPool(n))}),d()()(),l(11,"mat-tab"),D(12,C7,2,0,"ng-template",9),l(13,"div",10)(14,"uds-table",13),b("customButtonAction",function(n){y(r);let o=_();return w(o.onCustomAssigned(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAssigned(n))}),d()()(),l(15,"mat-tab"),D(16,x7,2,0,"ng-template",9),l(17,"div",10)(18,"uds-table",14),b("newAction",function(n){y(r);let o=_();return w(o.onNewGroup(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteGroup(n))}),d()()(),l(19,"mat-tab"),D(20,D7,2,0,"ng-template",9),l(21,"div",10)(22,"uds-table",15),b("newAction",function(n){y(r);let o=_();return w(o.onNewAccessCalendar(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditAccessCalendar(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteAccessCalendar(n))})("loaded",function(n){y(r);let o=_();return w(o.onAccessCalendarLoad(n))}),d()()(),l(23,"mat-tab"),D(24,S7,2,0,"ng-template",9),l(25,"div",10),I(26,"uds-logs-table",16),d()()()()()}if(i&2){let r=_();m(2),U("selectedIndex",r.selectedTab),p("@.disabled",!0),m(4),p("ngIf",r.metaPool&&r.gui),m(4),p("rest",r.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("customButtons",r.customButtons)("tableId","metaPools-d-members"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+r.metaPool.id)("customButtons",r.customButtonsAssignedServices)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+r.metaPool.id)("pageSize",r.api.config.admin.page_size),m(4),p("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)("onItem",r.processsCalendarItem),m(4),p("rest",r.rest.metaPools)("itemId",r.metaPool.id)("tableId","metaPools-d-log"+r.metaPool.id)("pageSize",r.api.config.admin.page_size)}}var Bk=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.customButtons=[Ei.getGotoButton(Ad,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:Jy,type:ut.SINGLE_SELECT},{id:"log",html:$f,type:ut.SINGLE_SELECT},Ei.getGotoButton(Od,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1,this.memberPools={},this.memberUserServices={},this.groups={},this.accessCalendars={}}ngOnInit(){return q(this,null,function*(){let t=this.route.snapshot.paramMap.get("metapool");if(!t)return;let n=yield this.rest.metaPools.get(t),o=yield this.rest.metaPools.gui();this.memberPools=this.rest.metaPools.detail(t,"pools"),this.memberUserServices=this.rest.metaPools.detail(t,"services"),this.groups=this.rest.metaPools.detail(t,"groups"),this.accessCalendars=this.rest.metaPools.detail(t,"access"),this.metaPool=n,this.gui=o})}onNewMemberPool(t){return q(this,null,function*(){(yield tw.launch(this.api,this.memberPools))===!0&&t.table.overview()})}onEditMemberPool(t){return q(this,null,function*(){(yield tw.launch(this.api,this.memberPools,t.table.selection.selected[0]))===!0&&t.table.overview()})}onDeleteMemberPool(t){return q(this,null,function*(){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))})}onCustomAssigned(t){return q(this,null,function*(){let n=t.table.selection.selected[0];if(t.param.id==="change-owner"){if(["E","R","M","S","C"].includes(n.state))return;(yield Bf.launch(this.api,n,this.memberUserServices))===!0&&t.table.overview()}else t.param.id==="log"&&Nd.launch(this.api,n,this.memberUserServices)})}onDeleteAssigned(t){return q(this,null,function*(){Wf.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))})}onNewGroup(t){return q(this,null,function*(){(yield zf.launch(this.api,this.metaPool.id,this.groups))===!0&&t.table.overview()})}onDeleteGroup(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))}onNewAccessCalendar(t){Bc.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>t.table.overview())}onEditAccessCalendar(t){Bc.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe(n=>t.table.overview())}onDeleteAccessCalendar(t){t.table.selection.selected[0].id!==-1?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)}onAccessCalendarLoad(t){this.rest.metaPools.getFallbackAccess(this.metaPool.id).then(n=>{let o=t.table.dataSource.data.filter(a=>!0);o.push({id:-1,calendar:"-",priority:this.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=o})}processElement(t){t.enabled=this.api.boolAsHumanString(t.enabled)}processsCalendarItem(t){t.name=t.calendar,t.atStart=this.api.boolAsHumanString(t.atStart)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize"],["icon","pools",3,"customButtonAction","deleteAction","rest","multiSelect","allowExport","tableId","customButtons","pageSize"],["icon","groups",3,"newAction","deleteAction","rest","multiSelect","allowExport","tableId","pageSize"],["icon","calendars",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","tableId","pageSize","onItem"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,E7,27,31,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,v7,o.metaPool?o.metaPool.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/metas.png"),Ee),m(),P(" ",o.metaPool==null?null:o.metaPool.name," "),m(),p("ngIf",o.metaPool))},dependencies:[he,gi,ei,ti,ni,ce,Te,so,co],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]});let i=e;return i})();var iw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New pool group"),!1).then(()=>t.table.overview())}onEdit(t){return q(this,null,function*(){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1)})}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]});let i=e;return i})();var nw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))}onDetail(t){this.api.navigation.gotoCalendarDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Te]});let i=e;return i})();var I7=["mat-calendar-body",""];function M7(i,e){return this._trackRow(e)}var Yk=(i,e)=>e.id;function T7(i,e){if(i&1&&(l(0,"tr",0)(1,"td",3),g(2),d()()),i&2){let r=_();m(),xi("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r.numCols),m(),P(" ",r.label," ")}}function k7(i,e){if(i&1&&(l(0,"td",3),g(1),d()),i&2){let r=_(2);xi("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ie("colspan",r._firstRowOffset),m(),P(" ",r._firstRowOffset>=r.labelMinRequiredCells?r.label:""," ")}}function A7(i,e){if(i&1){let r=A();l(0,"td",6)(1,"button",7),b("click",function(n){let o=y(r).$implicit,a=_(2);return w(a._cellClicked(o,n))})("focus",function(n){let o=y(r).$implicit,a=_(2);return w(a._emitActiveDateChange(o,n))}),l(2,"span",8),g(3),d(),I(4,"span",9),d()()}if(i&2){let r=e.$implicit,t=e.$index,n=_().$index,o=_();xi("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),ie("data-mat-row",n)("data-mat-col",t),m(),ne("mat-calendar-body-disabled",!r.enabled)("mat-calendar-body-active",o._isActiveCell(n,t))("mat-calendar-body-range-start",o._isRangeStart(r.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(r.compareValue))("mat-calendar-body-in-range",o._isInRange(r.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(r.compareValue,n,t))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(r.compareValue,n,t))("mat-calendar-body-comparison-start",o._isComparisonStart(r.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(r.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(r.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(r.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(r.compareValue))("mat-calendar-body-in-preview",o._isInPreview(r.compareValue)),p("ngClass",r.cssClasses)("tabindex",o._isActiveCell(n,t)?0:-1),ie("aria-label",r.ariaLabel)("aria-disabled",!r.enabled||null)("aria-pressed",o._isSelected(r.compareValue))("aria-current",o.todayValue===r.compareValue?"date":null)("aria-describedby",o._getDescribedby(r.compareValue)),m(),ne("mat-calendar-body-selected",o._isSelected(r.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(r.compareValue))("mat-calendar-body-today",o.todayValue===r.compareValue),m(),P(" ",r.displayValue," ")}}function O7(i,e){if(i&1&&(l(0,"tr",1),D(1,k7,2,6,"td",4),_r(2,A7,5,48,"td",5,Yk),d()),i&2){let r=e.$implicit,t=e.$index,n=_();m(),xe(t===0&&n._firstRowOffset?1:-1),m(),vr(r)}}function R7(i,e){if(i&1&&(l(0,"th",2)(1,"span",6),g(2),d(),l(3,"span",3),g(4),d()()),i&2){let r=e.$implicit;m(2),He(r.long),m(2),He(r.narrow)}}var P7=["*"];function F7(i,e){}function N7(i,e){if(i&1){let r=A();l(0,"mat-month-view",4),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("_userSelection",function(n){y(r);let o=_();return w(o._dateSelected(n))})("dragStarted",function(n){y(r);let o=_();return w(o._dragStarted(n))})("dragEnded",function(n){y(r);let o=_();return w(o._dragEnded(n))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName)("activeDrag",r._activeDrag)}}function L7(i,e){if(i&1){let r=A();l(0,"mat-year-view",5),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("monthSelected",function(n){y(r);let o=_();return w(o._monthSelectedInYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"month"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function V7(i,e){if(i&1){let r=A();l(0,"mat-multi-year-view",6),H("activeDateChange",function(n){y(r);let o=_();return $(o.activeDate,n)||(o.activeDate=n),w(n)}),b("yearSelected",function(n){y(r);let o=_();return w(o._yearSelectedInMultiYearView(n))})("selectedChange",function(n){y(r);let o=_();return w(o._goToDateInView(n,"year"))}),d()}if(i&2){let r=_();U("activeDate",r.activeDate),p("selected",r.selected)("dateFilter",r.dateFilter)("maxDate",r.maxDate)("minDate",r.minDate)("dateClass",r.dateClass)}}function j7(i,e){}var B7=["button"],z7=[[["","matDatepickerToggleIcon",""]]],U7=["[matDatepickerToggleIcon]"];function H7(i,e){i&1&&(vi(),l(0,"svg",2),I(1,"path",3),d())}var Bd=(()=>{let e=class e{constructor(){this.changes=new W,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(t,n){return`${t} \u2013 ${n}`}formatYearRangeLabel(t,n){return`${t} to ${n}`}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),$7=0,Vd=class{constructor(e,r,t,n,o={},a=e,s){this.value=e,this.displayValue=r,this.ariaLabel=t,this.enabled=n,this.cssClasses=o,this.compareValue=a,this.rawValue=s,this.id=$7++}},W7=1,zk=ji({passive:!1,capture:!0}),Sa=ji({passive:!0,capture:!0}),Gf=ji({passive:!0}),Uc=(()=>{let e=class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(t,n){this._elementRef=t,this._ngZone=n,this._platform=k(je),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new T,this.previewChange=new T,this.activeDateChange=new T,this.dragStarted=new T,this.dragEnded=new T,this._didDragSinceMouseDown=!1,this._injector=k(Pe),this._trackRow=o=>o,this._enterHandler=o=>{if(this._skipNextFocus&&o.type==="focus"){this._skipNextFocus=!1;return}if(o.target&&this.isRange){let a=this._getCellFromElement(o.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;let a=Uk(o),s=a?this._getCellFromElement(a):null;a!==o.target&&(this._didDragSinceMouseDown=!0),rw(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:o}))},this._leaveHandler=o=>{this.previewEnd!==null&&this.isRange&&(o.type!=="blur"&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&!(o.relatedTarget&&this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=o.target&&this._getCellFromElement(o.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;let a=rw(o.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(a);this.dragEnded.emit({value:s?.rawValue??null,event:o})})},this._touchendHandler=o=>{let a=Uk(o);a&&this._mouseupHandler({target:a})},this._id=`mat-calendar-body-${W7++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,n.runOutsideAngular(()=>{let o=t.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,zk),o.addEventListener("mouseenter",this._enterHandler,Sa),o.addEventListener("focus",this._enterHandler,Sa),o.addEventListener("mouseleave",this._leaveHandler,Sa),o.addEventListener("blur",this._leaveHandler,Sa),o.addEventListener("mousedown",this._mousedownHandler,Gf),o.addEventListener("touchstart",this._mousedownHandler,Gf),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(t,n){this._didDragSinceMouseDown||t.enabled&&this.selectedValueChange.emit({value:t.value,event:n})}_emitActiveDateChange(t,n){t.enabled&&this.activeDateChange.emit({value:t.value,event:n})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){let n=t.numCols,{rows:o,numCols:a}=this;(t.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?a-o[0].length:0),(t.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/a}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/a}%`)}ngOnDestroy(){let t=this._elementRef.nativeElement;t.removeEventListener("touchmove",this._touchmoveHandler,zk),t.removeEventListener("mouseenter",this._enterHandler,Sa),t.removeEventListener("focus",this._enterHandler,Sa),t.removeEventListener("mouseleave",this._leaveHandler,Sa),t.removeEventListener("blur",this._leaveHandler,Sa),t.removeEventListener("mousedown",this._mousedownHandler,Gf),t.removeEventListener("touchstart",this._mousedownHandler,Gf),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(t,n){let o=t*this.numCols+n;return t&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(t=!0){ri(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(t||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return aw(t,this.startValue,this.endValue)}_isRangeEnd(t){return sw(t,this.startValue,this.endValue)}_isInRange(t){return cw(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return aw(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,n,o){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let a=this.rows[n][o-1];if(!a){let s=this.rows[n-1];a=s&&s[s.length-1]}return a&&!this._isRangeEnd(a.compareValue)}_isComparisonBridgeEnd(t,n,o){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let a=this.rows[n][o+1];if(!a){let s=this.rows[n+1];a=s&&s[0]}return a&&!this._isRangeStart(a.compareValue)}_isComparisonEnd(t){return sw(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return cw(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return aw(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return sw(t,this.previewStart,this.previewEnd)}_isInPreview(t){return cw(t,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(t){return this.isRange?this.startValue===t&&this.endValue===t?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===t?this._startDateLabelId:this.endValue===t?this._endDateLabelId:null:null}_getCellFromElement(t){let n=rw(t);if(n){let o=n.getAttribute("data-mat-row"),a=n.getAttribute("data-mat-col");if(o&&a)return this.rows[parseInt(o)][parseInt(a)]}return null}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Z))},e.\u0275cmp=S({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[Qe,re],attrs:I7,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,o){n&1&&(D(0,T7,3,6,"tr",0),_r(1,O7,4,1,"tr",1,M7,!0),l(3,"label",2),g(4),d(),l(5,"label",2),g(6),d()),n&2&&(xe(o._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let i=e;return i})();function sw(i){return i?.nodeName==="TD"}function cw(i){let e;return sw(i)?e=i:sw(i.parentNode)?e=i.parentNode:sw(i.parentNode?.parentNode)&&(e=i.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function lw(i,e,r){return r!==null&&e!==r&&i=e&&i===r}function uw(i,e,r,t){return t&&e!==null&&r!==null&&e!==r&&i>=e&&i<=r}function Yk(i){let e=i.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var lo=class{constructor(e,r){this.start=e,this.end=r}},Bd=(()=>{let e=class e{constructor(t,n){this.selection=t,this._adapter=n,this._selectionChanged=new W,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,n){let o=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}};e.\u0275fac=function(n){Xa()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),J7=(()=>{let e=class e extends Bd{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let t=new e(this._adapter);return t.updateSelection(this.selection,this),t}};e.\u0275fac=function(n){return new(n||e)(M(Ai))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function e9(i,e){return i||new J7(e)}var tA={provide:Bd,deps:[[new Yn,new bo,Bd],Ai],useFactory:e9};var iA=new O("MAT_DATE_RANGE_SELECTION_STRATEGY");var mw=7,t9=0,Qk=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof lo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a,s){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rangeStrategy=s,this._rerenderSubscription=Ce.EMPTY,this.activeDrag=null,this.selectedChange=new T,this._userSelection=new T,this.dragStarted=new T,this.dragEnded=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnChanges(t){let n=t.comparisonStart||t.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){let n=t.value,o=this._getDateFromDayOfMonth(n),a,s;this._selected instanceof lo?(a=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):a=s=this._getDateInCurrentMonth(this._selected),(a!==n||s!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&t.preventDefault();return;case 27:this._previewEnd!=null&&!Rt(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(mw+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%mw,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,a=this._rangeStrategy.createPreview(o,this.selected,t);if(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end),this.activeDrag&&o){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,t);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:n??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){let t=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map((s,c)=>({long:s,narrow:n[c],id:t9++}));this._weekdays=a.slice(t).concat(a.slice(0,t))}_createWeekCells(){let t=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,a=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,n){return!!(t&&n&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n))}_getCellCompareValue(t){if(t){let n=this._dateAdapter.getYear(t),o=this._dateAdapter.getMonth(t),a=this._dateAdapter.getDate(t);return new Date(n,o,a).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(t){t instanceof lo?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(n){return new(n||e)(h(me),h(pa,8),h(Ai,8),h(kt,8),h(iA,8))},e.\u0275cmp=S({type:e,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&le(Hc,5),n&2){let a;Q(a=K())&&(o._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[Qe,re],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(n,o){n&1&&(l(0,"table",0)(1,"thead",1)(2,"tr"),vr(3,B7,5,2,"th",2,eA),d(),l(5,"tr",3),I(6,"th",4),d()(),l(7,"tbody",5),b("selectedValueChange",function(s){return o._dateSelected(s)})("activeDateChange",function(s){return o._updateActiveDate(s)})("previewChange",function(s){return o._previewChanged(s)})("dragStarted",function(s){return o.dragStarted.emit(s)})("dragEnded",function(s){return o._dragEnded(s)})("keyup",function(s){return o._handleCalendarBodyKeyup(s)})("keydown",function(s){return o._handleCalendarBodyKeydown(s)}),d()()),n&2&&(m(3),br(o._weekdays),m(4),p("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[Hc],encapsulation:2,changeDetection:0});let i=e;return i})(),Bn=24,hw=4,Kk=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),nA(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof lo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o){this._changeDetectorRef=t,this._dateAdapter=n,this._dir=o,this._rerenderSubscription=Ce.EMPTY,this.selectedChange=new T,this.yearSelected=new T,this.activeDateChange=new T,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let n=this._dateAdapter.getYear(this._activeDate)-Vd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){let n=t.value,o=this._dateAdapter.createDate(n,0,1),a=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-hw);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,hw);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Vd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Bn-Vd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-Bn*10:-Bn);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?Bn*10:Bn);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return Vd(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));return this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(t){let n=this._dateAdapter.createDate(t,0,1),o=this._dateAdapter.getYearName(n),a=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new jd(t,o,o,this._shouldEnableYear(t),a)}_shouldEnableYear(t){if(t==null||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){t instanceof lo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rerenderSubscription=Ce.EMPTY,this.selectedChange=new T,this.monthSelected=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){let n=t.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let a=this._getDateFromMonth(n);this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,t[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(t,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),a=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(o,"year"):void 0;return new jd(t,n.toLocaleUpperCase(),a,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){let n=this._dateAdapter.getYear(this.activeDate);if(t==null||this._isYearAndMonthAfterMaxDate(n,t)||this._isYearAndMonthBeforeMinDate(n,t))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,t,1);for(let a=o;this._dateAdapter.getMonth(a)==t;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(t,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return t>o||t===o&&n>a}return!1}_isYearAndMonthBeforeMinDate(t,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return t{let e=class e{constructor(t,n,o,a,s){this._intl=t,this.calendar=n,this._dateAdapter=o,this._dateFormats=a,this._id=`mat-calendar-header-${n9++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Bn)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Bn)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n):nA(this._dateAdapter,t,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-Vd(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Bn-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[a,s]}};e.\u0275fac=function(n){return new(n||e)(h(zd),h(Wt(()=>pw)),h(Ai,8),h(pa,8),h(me))},e.\u0275cmp=S({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[re],ngContentSelectors:z7,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(n,o){n&1&&(Ue(),l(0,"div",0)(1,"div",1)(2,"label",2),g(3),d(),l(4,"button",3),b("click",function(){return o.currentPeriodClicked()}),l(5,"span",4),g(6),d(),vi(),l(7,"svg",5),I(8,"polygon",6),d()(),Xr(),I(9,"div",7),ae(10),l(11,"button",8),b("click",function(){return o.previousClicked()}),d(),l(12,"button",9),b("click",function(){return o.nextClicked()}),d()()()),n&2&&(m(2),p("id",o._periodButtonLabelId),m(),He(o.periodButtonDescription),m(),ie("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),He(o.periodButtonText),m(),ne("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),p("disabled",!o.previousEnabled()),ie("aria-label",o.prevButtonLabel),m(),p("disabled",!o.nextEnabled()),ie("aria-label",o.nextButtonLabel))},dependencies:[ke,Wi],encapsulation:2,changeDetection:0});let i=e;return i})(),pw=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){t instanceof lo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){let n=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}constructor(t,n,o,a){this._dateAdapter=n,this._dateFormats=o,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new T,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this._userSelection=new T,this._userDragDrop=new T,this._activeDrag=null,this.stateChanges=new W,this._intlChanges=t.changes.subscribe(()=>{a.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Dn(this.headerComponent||rA),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){let n=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,o=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,a=n||o||t.dateFilter;if(a&&!a.firstChange){let s=this._getCurrentViewComponent();s&&(this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){let n=t.value;(this.selected instanceof lo||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,n){this.activeDate=t,this.currentView=n}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(n){return new(n||e)(h(zd),h(Ai,8),h(pa,8),h(me))},e.\u0275cmp=S({type:e,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(le(Qk,5),le(Zk,5),le(Kk,5)),n&2){let a;Q(a=K())&&(o.monthView=a.first),Q(a=K())&&(o.yearView=a.first),Q(a=K())&&(o.multiYearView=a.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[be([tA]),Qe,re],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(n,o){if(n&1&&(x(0,U7,0,0,"ng-template",0),l(1,"div",1),x(2,H7,1,11,"mat-month-view",2)(3,$7,1,6,"mat-year-view",3)(4,W7,1,6,"mat-multi-year-view",3),d()),n&2){let a;p("cdkPortalOutlet",o._calendarHeaderPortal),m(2),xe((a=o.currentView)==="month"?2:a==="year"?3:a==="multi-year"?4:-1)}},dependencies:[tn,Xh,Qk,Zk,Kk],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})(),Xk={transformPanel:li("transformPanel",[xt("void => enter-dropdown",Et("120ms cubic-bezier(0, 0, 0.2, 1)",ga([Me({opacity:0,transform:"scale(1, 0.8)"}),Me({opacity:1,transform:"scale(1, 1)"})]))),xt("void => enter-dialog",Et("150ms cubic-bezier(0, 0, 0.2, 1)",ga([Me({opacity:0,transform:"scale(0.7)"}),Me({transform:"none",opacity:1})]))),xt("* => void",Et("100ms linear",Me({opacity:0})))]),fadeInCalendar:li("fadeInCalendar",[Pt("void",Me({opacity:0})),Pt("enter",Me({opacity:1})),xt("void => *",Et("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},o9=0,aA=new O("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function r9(i){return()=>i.scrollStrategies.reposition()}var a9={provide:aA,deps:[Ct],useFactory:r9},sA=(()=>{let e=class e{constructor(t,n,o,a,s,c){this._elementRef=t,this._changeDetectorRef=n,this._globalModel=o,this._dateAdapter=a,this._rangeSelectionStrategy=s,this._subscriptions=new Ce,this._animationDone=new W,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=c.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){let n=this._model.selection,o=t.value,a=n instanceof lo;if(a&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(o,n,t.event);this._model.updateSelection(s,this)}else o&&(a||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating=t.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(t,n){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,n&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(Bd),h(Ai),h(iA,8),h(zd))},e.\u0275cmp=S({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&le(pw,5),n&2){let a;Q(a=K())&&(o._calendar=a.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(n,o){n&1&&xl("@transformPanel.start",function(s){return o._handleAnimationEvent(s)})("@transformPanel.done",function(s){return o._handleAnimationEvent(s)}),n&2&&(Cl("@transformPanel",o._animationState),qt(o.color?"mat-"+o.color:""),ne("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[re],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){if(n&1&&(l(0,"div",0)(1,"mat-calendar",1),b("yearSelected",function(s){return o.datepicker._selectYear(s)})("monthSelected",function(s){return o.datepicker._selectMonth(s)})("viewChanged",function(s){return o.datepicker._viewChanged(s)})("_userSelection",function(s){return o._handleUserSelection(s)})("_userDragDrop",function(s){return o._handleUserDragDrop(s)}),d(),x(2,G7,0,0,"ng-template",2),l(3,"button",3),b("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),g(4),d()()),n&2){let a;ne("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ie("aria-modal",!0)("aria-labelledby",(a=o._dialogLabelId)!==null&&a!==void 0?a:void 0),m(),qt(o.datepicker.panelClass),p("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),p("cdkPortalOutlet",o._actionsPortal),m(),ne("cdk-visually-hidden",!o._closeButtonFocused),p("color",o.color||"primary"),m(),He(o._closeButtonText)}},dependencies:[O1,pw,tn,ke],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Xk.transformPanel,Xk.fadeInCalendar]},changeDetection:0});let i=e;return i})(),Jk=(()=>{let e=class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=r1(t)}get opened(){return this._opened}set opened(t){t?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(t,n,o,a,s,c,u){this._overlay=t,this._viewContainerRef=o,this._dateAdapter=s,this._dir=c,this._model=u,this._inputStateChanges=Ce.EMPTY,this._document=k(se),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this.openedStream=new T,this.closedStream=new T,this._opened=!1,this.id=`mat-datepicker-${o9++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new W,this._injector=k(Pe),this._dateAdapter,this._scrollStrategy=a}ngOnChanges(t){let n=t.xPosition||t.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof ld&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal,this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=sa(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let t=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:a}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(It(1)).subscribe(()=>{let s=this._document.activeElement;t&&(!s||s===this._document.activeElement||a.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let t=this.touchUi,n=new Dn(sA,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new Sn({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${t?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(a=>{a&&a.preventDefault(),this.close()}),o.keydownEvents().subscribe(a=>{let s=a.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&a.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),t||ri(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",a=this.yPosition==="above"?"bottom":"top",s=a==="top"?"bottom":"top";return t.withPositions([{originX:n,originY:s,overlayX:n,overlayY:a},{originX:n,originY:a,overlayX:n,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s}])}_getCloseStream(t){let n=["ctrlKey","shiftKey","metaKey"];return yt(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(qe(o=>o.keyCode===27&&!Rt(o)||this.datepickerInput&&Rt(o,"altKey")&&o.keyCode===38&&n.every(a=>!Rt(o,a)))))}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(Z),h(wt),h(aA),h(Ai,8),h(kt,8),h(Bd))},e.\u0275dir=N({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Y],disabled:[2,"disabled","disabled",Y],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Y],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Y]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ue,Qe]});let i=e;return i})(),Kf=(()=>{let e=class e extends Jk{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[be([tA,{provide:Jk,useExisting:e}]),ve,re],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0});let i=e;return i})(),Uc=class{constructor(e,r){this.target=e,this.targetElement=r,this.value=this.target.value}},s9=(()=>{let e=class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){let n=t,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){let o=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new Uc(this,this._elementRef.nativeElement)),this.dateChange.emit(new Uc(this,this._elementRef.nativeElement))}})}constructor(t,n,o){this._elementRef=t,this._dateAdapter=n,this._dateFormats=o,this.dateChange=new T,this.dateInput=new T,this.stateChanges=new W,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Ce.EMPTY,this._localeSubscription=Ce.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),c=this._getMinDate();return!c||!s||this._dateAdapter.compareDate(c,s)<=0?null:{matDatepickerMin:{min:c,actual:s}}},this._maxValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),c=this._getMaxDate();return!c||!s||this._dateAdapter.compareDate(c,s)>=0?null:{matDatepickerMax:{max:c,actual:s}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){c9(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){let n=["ctrlKey","shiftKey","metaKey"];Rt(t,"altKey")&&t.keyCode===40&&n.every(a=>!Rt(t,a))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){let n=this._lastValueValid,o=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(t&&!this.value&&this._cvaOnChange(o),n!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new Uc(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Uc(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t!=null?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){let n=this._getDateFilter();return!n||n(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Ai,8),h(pa,8))},e.\u0275dir=N({type:e,inputs:{value:"value",disabled:[2,"disabled","disabled",Y]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[ue,Qe]});let i=e;return i})();function c9(i,e){let r=Object.keys(i);for(let t of r){let{previousValue:n,currentValue:o}=i[t];if(e.isDateInstance(n)&&e.isDateInstance(o)){if(!e.sameDate(n,o))return!0}else return!0}return!1}var l9={provide:qi,useExisting:Wt(()=>$c),multi:!0},d9={provide:no,useExisting:Wt(()=>$c),multi:!0},$c=(()=>{let e=class e extends s9{set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}get max(){return this._max}set max(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){let n=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}constructor(t,n,o,a){super(t,n,o),this._formField=a,this._closedSubscription=Ce.EMPTY,this._validator=er.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Ai,8),h(pa,8),h(Mo,8))},e.\u0275dir=N({type:e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&b("input",function(s){return o._onInput(s.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(s){return o._onKeydown(s)}),n&2&&(Di("disabled",o.disabled),ie("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",(o._datepicker==null?null:o._datepicker.opened)&&o._datepicker.id||null)("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[be([l9,d9,{provide:By,useExisting:e}]),ve]});let i=e;return i})(),u9=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let i=e;return i})(),Ud=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=t}constructor(t,n,o){this._intl=t,this._changeDetectorRef=n,this._stateChanges=Ce.EMPTY;let a=Number(o);this.tabIndex=a||a===0?a:null}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){let t=this.datepicker?this.datepicker.stateChanges:oe(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:oe(),o=this.datepicker?yt(this.datepicker.openedStream,this.datepicker.closedStream):oe();this._stateChanges.unsubscribe(),this._stateChanges=yt(this._intl.changes,t,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(zd),h(me),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,u9,5),n&2){let s;Q(s=K())&&(o._customIcon=s.first)}},viewQuery:function(n,o){if(n&1&&le(q7,5),n&2){let a;Q(a=K())&&(o._button=a.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&b("click",function(s){return o._open(s)}),n&2&&(ie("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),ne("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Y],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[ue,Qe,re],ngContentSelectors:Q7,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(Ue(Y7),l(0,"button",1,0),x(2,K7,2,0,":svg:svg",2),ae(3),d()),n&2&&(p("disabled",o.disabled)("disableRipple",o.disableRipple),ie("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),m(2),xe(o._customIcon?-1:2))},dependencies:[Wi],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let i=e;return i})();var cA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[zd,a9],imports:[Si,Jo,on,Ec,Ln,pe,sA,Ud,rA,to]});let i=e;return i})();var m9=["button"],h9=["*"];function p9(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function f9(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}var dA=new O("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:g9});function g9(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var uA=new O("MatButtonToggleGroup"),_9={provide:qi,useExisting:Wt(()=>gw),multi:!0},mA=0,Zf=class{constructor(e,r){this.source=e,this.value=r}},gw=(()=>{let e=class e{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(n=>n.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}constructor(t,n,o){this._changeDetector=t,this._dir=o,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${mA++}`,this.valueChange=new T,this.change=new T,this.appearance=n&&n.appearance?n.appearance:"standard",this.hideSingleSelectionIndicator=n?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=n?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new So(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let o=t.target.id,a=this._buttonToggles.toArray().findIndex(c=>c.buttonId===o),s;switch(t.keyCode){case 32:case 13:s=this._buttonToggles.get(a);break;case 38:s=this._buttonToggles.get(this._getNextIndex(a,-1));break;case 37:s=this._buttonToggles.get(this._getNextIndex(a,this.dir==="ltr"?-1:1));break;case 40:s=this._buttonToggles.get(this._getNextIndex(a,1));break;case 39:s=this._buttonToggles.get(this._getNextIndex(a,this.dir==="ltr"?1:-1));break;default:return}t.preventDefault(),s?._onButtonClick(),s?.focus()}_emitChangeEvent(t){let n=new Zf(t,this.value);this._rawValue=n.value,this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(t,n,o=!1,a=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(t):this._selectionModel.deselect(t):a=!0,a?Promise.resolve().then(()=>this._updateModelValue(t,o)):this._updateModelValue(t,o)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>t.value!=null&&n===t.value):t.value===this._rawValue}_initializeTabIndex(){this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected?this.selected.tabIndex=0:this._buttonToggles.length>0&&(this._buttonToggles.get(0).tabIndex=0),this._markButtonsForCheck()}_getNextIndex(t,n){let o=t+n;return o===this._buttonToggles.length&&(o=0),o===-1&&(o=this._buttonToggles.length-1),o}_setSelectionByValue(t){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(n=>this._selectValue(n))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t){let n=this._buttonToggles.find(o=>o.value!=null&&o.value===t);n&&(n.checked=!0,this._selectionModel.select(n),this.multiple||(n.tabIndex=0))}_updateModelValue(t,n){n&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(me),h(dA,8),h(kt,8))},e.\u0275dir=N({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Xf,5),n&2){let s;Q(s=K())&&(o._buttonToggles=s)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)}),n&2&&(ie("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),ne("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",Y],value:"value",multiple:[2,"multiple","multiple",Y],disabled:[2,"disabled","disabled",Y],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",Y]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[be([_9,{provide:uA,useExisting:e}]),ue]});let i=e;return i})(),Xf=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}constructor(t,n,o,a,s,c){this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=a,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T;let u=Number(s);this.tabIndex=u||u===0?u:null,this.buttonToggleGroup=t,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${mA++}`,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new Zf(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(n){return new(n||e)(h(uA,8),h(me),h(G),h(wi),mi("tabindex"),h(dA,8))},e.\u0275cmp=S({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&le(m9,5),n&2){let a;Q(a=K())&&(o._buttonElement=a.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()}),n&2&&(ie("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),ne("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-appearance-standard",o.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",Y],appearance:"appearance",checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[ue,re],ngContentSelectors:h9,decls:8,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"button",1,0),b("click",function(){return y(a),w(o._onButtonClick())}),l(2,"span",2),x(3,p9,1,1,"mat-pseudo-checkbox",3)(4,f9,1,1,"mat-pseudo-checkbox",3),ae(5),d()(),I(6,"span",4)(7,"span",5)}if(n&2){let a=Ie(1);p("id",o.buttonId)("disabled",o.disabled||null),ie("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(3),xe(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),m(),xe(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),m(3),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Mn,Q0],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);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.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)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .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-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.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}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .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-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[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-standard-button-toggle-divider-color)}.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-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):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-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.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-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .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-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0});let i=e;return i})(),hA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,Mr,Xf,pe]});let i=e;return i})();function b9(i,e){i&1&&(l(0,"uds-translate"),g(1,"Edit rule"),d())}function y9(i,e){i&1&&(l(0,"uds-translate"),g(1,"New rule"),d())}function w9(i,e){if(i&1&&(l(0,"mat-option",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function C9(i,e){if(i&1&&(l(0,"mat-option",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function x9(i,e){if(i&1&&(l(0,"mat-button-toggle",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function D9(i,e){if(i&1){let r=A();l(0,"div",23)(1,"span",24)(2,"uds-translate"),g(3,"Weekdays"),d()(),l(4,"mat-button-toggle-group",25),H("ngModelChange",function(n){y(r);let o=_();return $(o.wDays,n)||(o.wDays=n),w(n)}),x(5,x9,2,2,"mat-button-toggle",10),d()()}if(i&2){let r=_();m(4),U("ngModel",r.wDays),m(),p("ngForOf",r.weekDays)}}function S9(i,e){if(i&1){let r=A();l(0,"mat-form-field",11)(1,"mat-label")(2,"uds-translate"),g(3,"Repeat every"),d()(),l(4,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.rule.interval,n)||(o.rule.interval=n),w(n)}),d(),l(5,"div",26),g(6),d()()}if(i&2){let r=_();m(4),U("ngModel",r.rule.interval),m(2),P("\xA0",r.frequency(),"")}}var Jf={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")],NEVER:["","",django.gettext("Never")]},eg={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},pA=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],fA=(i,e=!1)=>{let r=new Array;for(let t=0;t<7;t++)i&1&&r.push(pA[t].substr(0,e?100:3)),i>>=1;return r.length?r.join(", "):django.gettext("(no days)")},gA=i=>{i.frequency==="WEEKDAYS"?i.interval=fA(i.interval):i.interval=i.interval+" "+Jf[i.frequency][django.pluralidx(i.interval)],i.duration=i.duration+" "+eg[i.duration_unit]},_w=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(eg).map(s=>({id:s,value:eg[s]})),this.freqs=Object.keys(Jf).map(s=>({id:s,value:Jf[s][2]})),this.weekDays=pA.map((s,c)=>({id:1<{if(this.rule=t,this.startDate=new Date(this.rule.start*1e3),this.startTime=this.startDate.toTimeString().split(":").splice(0,2).join(":"),this.endDate=this.rule.end?new Date(this.rule.end*1e3):null,this.rule.frequency==="WEEKDAYS"){let n=[];for(let o=0;o<7;o++){let a=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let t=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=Z0(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){t=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?t+=" "+fA(this.rule.interval,!0)+" "+django.gettext("of any week"):t+=" "+ +this.rule.interval+" "+this.frequency();let a=new Date(this.rule.start*1e3);t+=", "+django.gettext("from")+" "+_a(n,a),this.rule.end?t+=" "+django.gettext("until")+" "+_a(n,new Date(this.rule.end*1e3)):t+=" "+django.gettext("onwards"),t+=", "+django.gettext("starting at")+" "+a.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?t+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+eg[this.rule.duration_unit]:t+=django.gettext("with no duration")}return t.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-calendar-rule"]],decls:73,vars:22,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],[1,"oneThird"],["matInput","","type","time",3,"ngModelChange","ngModel"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf","ngIfAnd"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let a=A();l(0,"h4",2),x(1,b9,2,0,"uds-translate",3)(2,y9,2,0,"uds-translate",3),d(),l(3,"mat-dialog-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Name"),d()(),l(9,"input",5),H("ngModelChange",function(c){return y(a),$(o.rule.name,c)||(o.rule.name=c),w(c)}),d()(),l(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),g(13,"Comments"),d()(),l(14,"input",5),H("ngModelChange",function(c){return y(a),$(o.rule.comments,c)||(o.rule.comments=c),w(c)}),d()(),l(15,"h3")(16,"uds-translate"),g(17,"Event"),d()(),l(18,"mat-form-field",6)(19,"mat-label")(20,"uds-translate"),g(21,"Start time"),d()(),l(22,"input",7),H("ngModelChange",function(c){return y(a),$(o.startTime,c)||(o.startTime=c),w(c)}),d()(),l(23,"mat-form-field",6)(24,"mat-label")(25,"uds-translate"),g(26,"Duration"),d()(),l(27,"input",8),H("ngModelChange",function(c){return y(a),$(o.rule.duration,c)||(o.rule.duration=c),w(c)}),d()(),l(28,"mat-form-field",6)(29,"mat-label")(30,"uds-translate"),g(31,"Duration units"),d()(),l(32,"mat-select",9),H("ngModelChange",function(c){return y(a),$(o.rule.duration_unit,c)||(o.rule.duration_unit=c),w(c)}),x(33,w9,2,2,"mat-option",10),d()(),l(34,"h3"),g(35," Repetition "),d(),l(36,"mat-form-field",11)(37,"mat-label")(38,"uds-translate"),g(39," Start date "),d()(),l(40,"input",12),H("ngModelChange",function(c){return y(a),$(o.startDate,c)||(o.startDate=c),w(c)}),d(),I(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),d(),l(44,"mat-form-field",11)(45,"mat-label")(46,"uds-translate"),g(47," Repeat until date "),d()(),l(48,"input",14),H("ngModelChange",function(c){return y(a),$(o.endDate,c)||(o.endDate=c),w(c)}),d(),I(49,"mat-datepicker-toggle",13)(50,"mat-datepicker",null,1),d(),l(52,"div",15)(53,"mat-form-field",11)(54,"mat-label")(55,"uds-translate"),g(56,"Frequency"),d()(),l(57,"mat-select",16),H("ngModelChange",function(c){return y(a),$(o.rule.frequency,c)||(o.rule.frequency=c),w(c)}),b("valueChange",function(){return y(a),w(o.rule.interval=1)}),x(58,C9,2,2,"mat-option",10),d()(),x(59,D9,6,2,"div",17)(60,S9,7,2,"mat-form-field",18),d(),l(61,"h3")(62,"uds-translate"),g(63,"Summary"),d()(),l(64,"div",19),g(65),d()()(),l(66,"mat-dialog-actions")(67,"button",20)(68,"uds-translate"),g(69,"Cancel"),d()(),l(70,"button",21),b("click",function(){return y(a),w(o.save())}),l(71,"uds-translate"),g(72,"Ok"),d()()()}if(n&2){let a=Ie(43),s=Ie(51);m(),p("ngIf",o.rule.id),m(),p("ngIf",!o.rule.id),m(7),U("ngModel",o.rule.name),m(5),U("ngModel",o.rule.comments),m(8),U("ngModel",o.startTime),m(5),U("ngModel",o.rule.duration),m(5),U("ngModel",o.rule.duration_unit),m(),p("ngForOf",o.dunits),m(7),p("matDatepicker",a),U("ngModel",o.startDate),m(),p("for",a),m(7),p("matDatepicker",s),U("ngModel",o.endDate),p("placeholder",o.FOREVER_STRING),m(),p("for",s),m(8),U("ngModel",o.rule.frequency),m(),p("ngForOf",o.freqs),m(),p("ngIf",o.rule.frequency==="WEEKDAYS"),m(),p("ngIf",o.rule.frequency!=="WEEKDAYS")("ngIfAnd",o.rule.frequency!=="NEVER"),m(5),P(" ",o.summary()," "),m(5),p("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[$e,he,ct,Vn,we,De,ke,Yt,Xe,et,Je,ge,Ae,oo,ft,vt,it,Kf,$c,Ud,gw,Xf,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]});let i=e;return i})();var E9=i=>["/pools","calendars",i];function I9(i,e){i&1&&(l(0,"uds-translate"),g(1,"Rules"),d())}function M9(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,I9,2,0,"ng-template",9),l(5,"div",10)(6,"uds-table",11),b("newAction",function(n){y(r);let o=_();return w(o.onNewRule(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditRule(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteRule(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("rest",r.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","calendars-d-rules"+r.calendar.id)("pageSize",r.api.config.admin.page_size)}}var _A=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("calendar");t&&this.rest.calendars.get(t).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(t){_w.launch(this.api,this.calendarRules).subscribe(()=>t.table.overview())}onEditRule(t){_w.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDeleteRule(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))}processElement(t){gA(t)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","pageSize"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,M9,7,7,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,E9,o.calendar?o.calendar.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/calendars.png"),Ee),m(),P(" ",o.calendar==null?null:o.calendar.name," "),m(),p("ngIf",o.calendar))},dependencies:[he,gi,ei,ti,ni,ce,Te],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]});let i=e;return i})();var T9='event'+django.gettext("Set time mark")+"",vw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:T9,type:ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))}onTimeMark(t){let n=t.table.selection.selected[0];this.api.gui.questionDialog(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).then(o=>{o&&this.rest.accounts.timemark(n.id).then(()=>{this.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onDetail(t){this.api.navigation.gotoAccountDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}processElement(t){t.time_mark=t.time_mark===78793200?django.gettext("No time mark"):Bi("SHORT_DATE_FORMAT",t.time_mark)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"customButtonAction","newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("customButtonAction",function(s){return o.onTimeMark(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Te]});let i=e;return i})();var k9=i=>["/pools","accounts",i];function A9(i,e){i&1&&(l(0,"uds-translate"),g(1,"Account usage"),d())}function O9(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),x(4,A9,2,0,"ng-template",9),l(5,"div",10)(6,"uds-table",11),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("rest",r.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","account-d-usage"+r.account.id)}}var vA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("account");t&&this.rest.accounts.get(t).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))}processElement(t){t.running=this.api.boolAsHumanString(t.running)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","onItem","tableId"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),x(8,O9,7,6,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,k9,o.account?o.account.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/accounts.png"),Ee),m(),P(" ",o.account==null?null:o.account.name," "),m(),p("ngIf",o.account))},dependencies:[he,gi,ei,ti,ni,ce,Te]});let i=e;return i})();function R9(i,e){i&1&&(l(0,"uds-translate"),g(1,"New image for"),d())}function P9(i,e){i&1&&(l(0,"uds-translate"),g(1,"Edit for"),d())}var bw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.preview="",this.image={id:void 0,data:"",name:""},a.image&&(this.image.id=a.image.id)}static launch(t,n=null){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(t){let n=t.target;if(!n.files||n.files.length===0)return;let o=n.files[0];if(o.size>256*1024){this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));return}if(!["image/jpeg","image/png","image/gif"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"));return}let a=new FileReader;a.onload=s=>{let c=a.result;this.preview=c,this.image.data=c.substr(c.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},a.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(t=>{switch(this.image=t,this.image.data.substr(2)){case"iV":this.preview="data:image/png;base64,"+this.image.data;break;case"/9":this.preview="data:image/jpeg;base64,"+this.image.data;break;default:this.preview="data:image/gif;base64,"+this.image.data}})}background(){let t=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":t,"height.px":n,"background-size":t+"px "+n+"px","background-image":"none"};return this.preview&&(o["background-image"]="url("+this.preview+")"),o}save(){if(!this.image.name||!this.image.data){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"));return}this.rest.gallery.save(this.image).then(()=>{this.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],["type","file",2,"display","none",3,"change"],["matInput","","type","text",3,"click","hidden"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",1),x(1,R9,2,0,"uds-translate",2)(2,P9,2,0,"uds-translate",2),d(),l(3,"mat-dialog-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Image name"),d()(),l(9,"input",4),H("ngModelChange",function(c){return y(a),$(o.image.name,c)||(o.image.name=c),w(c)}),d()(),l(10,"input",5,0),b("change",function(c){return y(a),w(o.onFileChanged(c))}),d(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Image (click to change)"),d()(),l(16,"input",6),b("click",function(){y(a);let c=Ie(11);return w(c.click())}),d(),l(17,"div",7),b("click",function(){y(a);let c=Ie(11);return w(c.click())}),I(18,"div",8),d()(),l(19,"div",9)(20,"uds-translate"),g(21,' For optimal results, use "squared" images. '),d(),l(22,"uds-translate"),g(23," The image will be resized on upload to "),d(),g(24),d()()(),l(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),g(28,"Cancel"),d()(),l(29,"button",11),b("click",function(){return y(a),w(o.save())}),l(30,"uds-translate"),g(31,"Ok"),d()()()}n&2&&(m(),p("ngIf",!o.image.id),m(),p("ngIf",o.image.id),m(7),U("ngModel",o.image.name),m(7),p("hidden",!0),m(2),p("ngStyle",o.background()),m(6),yr(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[he,UE,ct,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]});let i=e;return i})();var yw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){bw.launch(this.api).subscribe(()=>t.table.overview())}onEdit(t){bw.launch(this.api,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var bA=Zd(Vf());var F9='assessment'+django.gettext("Generate report")+"",yA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n,this.customButtons=[{id:"genreport",html:F9,type:ut.SINGLE_SELECT}]}ngOnInit(){}generateReport(t){return q(this,null,function*(){let n=new Jt;this.api.gui.forms.typedForm(t,django.gettext("Generate report"),!1,[],void 0,t.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let a=yield this.rest.reports.save(o,t.table.selection.selected[0].id),s=a.encoded?window.atob(a.data):a.data,c=s.length,u=new Uint8Array(c);for(let v=0;v{(0,bA.saveAs)(f,a.filename)})})}};e.\u0275fac=function(n){return new(n||e)(h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"customButtonAction","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("customButtonAction",function(s){return o.generateReport(s)}),d()),n&2&&p("rest",o.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var wA=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Notifier"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Notifier"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-notifiers"]],decls:2,vars:4,consts:[["icon","accounts",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();function N9(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;P(" ",r," ")}}function L9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",18),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),p("type",n.config[t][r].crypt?"password":"text"),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function V9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"textarea",19),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function j9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",20),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function B9(i,e){if(i&1){let r=A();l(0,"div")(1,"div",21)(2,"mat-slide-toggle",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),g(3),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(2),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),m(),P(" ",r," ")}}function z9(i,e){if(i&1&&(l(0,"mat-option",24),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}function U9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"mat-select",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),x(5,z9,2,2,"mat-option",23),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),P(" ",r," "),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),m(),p("ngForOf",n.config[t][r].params)}}function H9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",25),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function $9(i,e){i&1&&bi(0)}function W9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",26),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function G9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",27),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function q9(i,e){if(i&1&&(ht(0,15),x(1,L9,5,4,"div",16)(2,V9,5,3,"div",16)(3,j9,5,3,"div",16)(4,B9,4,3,"div",16)(5,U9,6,4,"div",16)(6,H9,5,3,"div",16)(7,$9,1,0,"ng-container",16)(8,W9,5,3,"div",16)(9,G9,5,3,"div",17),pt()),i&2){let r=_().$implicit,t=_().$implicit,n=_(2);p("ngSwitch",n.config[t][r].type),m(),p("ngSwitchCase",0),m(),p("ngSwitchCase",1),m(),p("ngSwitchCase",2),m(),p("ngSwitchCase",3),m(),p("ngSwitchCase",4),m(),p("ngSwitchCase",5),m(),p("ngSwitchCase",6),m(),p("ngSwitchCase",7)}}function Y9(i,e){if(i&1&&(l(0,"div",13),x(1,q9,10,9,"ng-container",14),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_(2);m(),p("ngIf",n.config[t][r])}}function Q9(i,e){if(i&1&&(l(0,"mat-tab"),x(1,N9,1,1,"ng-template",10),l(2,"div",11),x(3,Y9,2,1,"div",12),d()()),i&2){let r=e.$implicit,t=_(2);m(3),p("ngForOf",t.configElements(r))}}function K9(i,e){if(i&1){let r=A();l(0,"div",4)(1,"div",5)(2,"mat-tab-group",6),x(3,Q9,4,1,"mat-tab",7),d(),l(4,"div",8)(5,"button",9),b("click",function(){y(r);let n=_();return w(n.save())}),l(6,"uds-translate"),g(7,"Save"),d()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(),p("ngForOf",r.sections())}}var CA=["UDS","Security"],xA=["UDS ID"],DA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n}ngOnInit(){this.rest.configuration.overview().then(t=>{this.config=t;for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];a.type===7?a.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':a.type===3&&(a.value=!!["1",1,!0].includes(a.value)),a.original_value=a.value}}})}sections(){let t=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!CA.includes(n)&&t.push(n);return t=t.sort((n,o)=>n.localeCompare(o)),t.unshift.apply(t,CA),t}configElements(t){let n=[],o=this.config[t];if(o)for(let a in o)o.hasOwnProperty(a)&&!(t==="UDS"&&xA.includes(a))&&n.push(a);return n=n.sort((a,s)=>a.localeCompare(s)),t==="UDS"&&n.unshift.apply(n,xA),n}save(){let t={};for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];if(a.original_value!==a.value){a.original_value=a.value,t[n]||(t[n]={});let s=a.value;a.type===3&&(s=["1",1,!0].includes(a.value)?"1":"0"),t[n][o]={value:s}}}}this.rest.configuration.save(t).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"ngModelChange","type","ngModel","matTooltip"],["matInput","",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","number",3,"ngModelChange","ngModel","matTooltip"],[1,"toggle"],[3,"ngModelChange","ngModel","matTooltip"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","password",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","text",3,"ngModelChange","ngModel","matTooltip"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),I(2,"img",2),g(3,"\xA0"),l(4,"uds-translate"),g(5,"UDS Configuration"),d()(),x(6,K9,8,2,"div",3),d()),n&2&&(m(2),p("src",o.api.staticURL("admin/img/icons/configuration.png"),Ee),m(4),p("ngIf",o.config))},dependencies:[$e,he,tc,rh,zE,ct,Vn,we,De,ke,tr,ge,Ae,ft,vt,it,ei,ti,ni,nr,ce],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]});let i=e;return i})();var SA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){return q(this,null,function*(){yield this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var EA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-servers-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var Z9=[{path:"",canActivate:[cT],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:mT},{path:"services/providers",component:zy},{path:"services/providers/:provider/detail",component:Uy},{path:"services/providers/:provider",component:zy},{path:"services/providers/:provider/detail/:service",component:Uy},{path:"services/servers",component:Hy},{path:"services/servers/:server/detail",component:kk},{path:"services/servers/:server",component:Hy},{path:"authenticators",component:$y},{path:"authenticators/:authenticator/detail",component:Uf},{path:"authenticators/:authenticator",component:$y},{path:"authenticators/:authenticator/detail/groups/:group",component:Uf},{path:"authenticators/:authenticator/detail/users/:user",component:Uf},{path:"mfas",component:Wy},{path:"mfas/:mfa",component:Wy},{path:"osmanagers",component:Ky},{path:"osmanagers/:osmanager",component:Ky},{path:"connectivity/transports",component:Zy},{path:"connectivity/transports/:transport",component:Zy},{path:"connectivity/networks",component:Xy},{path:"connectivity/networks/:network",component:Xy},{path:"connectivity/tunnels",component:Jy},{path:"connectivity/tunnels/:tunnel",component:Jy},{path:"connectivity/tunnels/:tunnel/detail",component:Vk},{path:"pools/service-pools",component:ew},{path:"pools/service-pools/:pool",component:ew},{path:"pools/service-pools/:pool/detail",component:Yf},{path:"pools/meta-pools",component:nw},{path:"pools/meta-pools/:metapool",component:nw},{path:"pools/meta-pools/:metapool/detail",component:Gk},{path:"pools/pool-groups",component:rw},{path:"pools/pool-groups/:poolgroup",component:rw},{path:"pools/calendars",component:aw},{path:"pools/calendars/:calendar",component:aw},{path:"pools/calendars/:calendar/detail",component:_A},{path:"pools/accounts",component:vw},{path:"pools/accounts/:account",component:vw},{path:"pools/accounts/:account/detail",component:vA},{path:"tools/gallery",component:yw},{path:"tools/gallery/:image",component:yw},{path:"tools/reports",component:yA},{path:"tools/notifiers",component:wA},{path:"tools/tokens/actor",component:SA},{path:"tools/tokens/server",component:EA},{path:"tools/configuration",component:DA}]}],IA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[C0.forRoot(Z9,{}),C0]});let i=e;return i})();function MA(i){return new te(3e3,!1)}function X9(){return new te(3100,!1)}function J9(){return new te(3101,!1)}function eq(i){return new te(3001,!1)}function tq(i){return new te(3003,!1)}function iq(i){return new te(3004,!1)}function nq(i,e){return new te(3005,!1)}function oq(){return new te(3006,!1)}function rq(){return new te(3007,!1)}function aq(i,e){return new te(3008,!1)}function sq(i){return new te(3002,!1)}function cq(i,e,r,t,n){return new te(3010,!1)}function lq(){return new te(3011,!1)}function dq(){return new te(3012,!1)}function uq(){return new te(3200,!1)}function mq(){return new te(3202,!1)}function hq(){return new te(3013,!1)}function pq(i){return new te(3014,!1)}function fq(i){return new te(3015,!1)}function gq(i){return new te(3016,!1)}function _q(i,e){return new te(3404,!1)}function vq(i){return new te(3502,!1)}function bq(i){return new te(3503,!1)}function yq(){return new te(3300,!1)}function wq(i){return new te(3504,!1)}function Cq(i){return new te(3301,!1)}function xq(i,e){return new te(3302,!1)}function Dq(i){return new te(3303,!1)}function Sq(i,e){return new te(3400,!1)}function Eq(i){return new te(3401,!1)}function Iq(i){return new te(3402,!1)}function Mq(i,e){return new te(3505,!1)}function Ia(i){switch(i.length){case 0:return new fa;case 1:return i[0];default:return new wd(i)}}function UA(i,e,r=new Map,t=new Map){let n=[],o=[],a=-1,s=null;if(e.forEach(c=>{let u=c.get("offset"),f=u==a,v=f&&s||new Map;c.forEach((C,D)=>{let E=D,R=C;if(D!=="offset")switch(E=i.normalizePropertyName(E,n),R){case sp:R=r.get(D);break;case Zo:R=t.get(D);break;default:R=i.normalizeStyleValue(D,E,R,n);break}v.set(E,R)}),f||o.push(v),s=v,a=u}),n.length)throw vq(n);return o}function Hw(i,e,r,t){switch(e){case"start":i.onStart(()=>t(r&&ww(r,"start",i)));break;case"done":i.onDone(()=>t(r&&ww(r,"done",i)));break;case"destroy":i.onDestroy(()=>t(r&&ww(r,"destroy",i)));break}}function ww(i,e,r){let t=r.totalTime,n=!!r.disabled,o=$w(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t??i.totalTime,n),a=i._data;return a!=null&&(o._data=a),o}function $w(i,e,r,t,n="",o=0,a){return{element:i,triggerName:e,fromState:r,toState:t,phaseName:n,totalTime:o,disabled:!!a}}function Un(i,e,r){let t=i.get(e);return t||i.set(e,t=r),t}function TA(i){let e=i.indexOf(":"),r=i.substring(1,e),t=i.slice(e+1);return[r,t]}var Tq=typeof document>"u"?null:document.documentElement;function Ww(i){let e=i.parentNode||i.host||null;return e===Tq?null:e}function kq(i){return i.substring(1,6)=="ebkit"}var gs=null,kA=!1;function Aq(i){gs||(gs=Oq()||{},kA=gs.style?"WebkitAppearance"in gs.style:!1);let e=!0;return gs.style&&!kq(i)&&(e=i in gs.style,!e&&kA&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in gs.style)),e}function Oq(){return typeof document<"u"?document.body:null}function HA(i,e){for(;e;){if(e===i)return!0;e=Ww(e)}return!1}function $A(i,e,r){if(r)return Array.from(i.querySelectorAll(e));let t=i.querySelector(e);return t?[t]:[]}var Gw=(()=>{let e=class e{validateStyleProperty(t){return Aq(t)}containsElement(t,n){return HA(t,n)}getParentElement(t){return Ww(t)}query(t,n,o){return $A(t,n,o)}computeStyle(t,n,o){return o||""}animate(t,n,o,a,s,c=[],u){return new fa(o,a)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),Kw=class Kw{};Kw.NOOP=new Gw;var bs=Kw,ys=class{};var Rq=1e3,WA="{{",Pq="}}",GA="ng-enter",Iw="ng-leave",tg="ng-trigger",ag=".ng-trigger",AA="ng-animating",Mw=".ng-animating";function Rr(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Tw(parseFloat(e[1]),e[2])}function Tw(i,e){switch(e){case"s":return i*Rq;default:return i}}function sg(i,e,r){return i.hasOwnProperty("duration")?i:Fq(i,e,r)}function Fq(i,e,r){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,o=0,a="";if(typeof i=="string"){let s=i.match(t);if(s===null)return e.push(MA(i)),{duration:0,delay:0,easing:""};n=Tw(parseFloat(s[1]),s[2]);let c=s[3];c!=null&&(o=Tw(parseFloat(c),s[4]));let u=s[5];u&&(a=u)}else n=i;if(!r){let s=!1,c=e.length;n<0&&(e.push(X9()),s=!0),o<0&&(e.push(J9()),s=!0),s&&e.splice(c,0,MA(i))}return{duration:n,delay:o,easing:a}}function Nq(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function or(i,e,r){e.forEach((t,n)=>{let o=qw(n);r&&!r.has(n)&&r.set(n,i.style[o]),i.style[o]=t})}function vs(i,e){e.forEach((r,t)=>{let n=qw(t);i.style[n]=""})}function Hd(i){return Array.isArray(i)?i.length==1?i[0]:q1(i):i}function Lq(i,e,r){let t=e.params||{},n=qA(i);n.length&&n.forEach(o=>{t.hasOwnProperty(o)||r.push(eq(o))})}var kw=new RegExp(`${WA}\\s*(.+?)\\s*${Pq}`,"g");function qA(i){let e=[];if(typeof i=="string"){let r;for(;r=kw.exec(i);)e.push(r[1]);kw.lastIndex=0}return e}function Wd(i,e,r){let t=`${i}`,n=t.replace(kw,(o,a)=>{let s=e[a];return s==null&&(r.push(tq(a)),s=""),s.toString()});return n==t?i:n}var Vq=/-+([a-z0-9])/g;function qw(i){return i.replace(Vq,(...e)=>e[1].toUpperCase())}function jq(i,e){return i===0||e===0}function Bq(i,e,r){if(r.size&&e.length){let t=e[0],n=[];if(r.forEach((o,a)=>{t.has(a)||n.push(a),t.set(a,o)}),n.length)for(let o=1;oa.set(s,Yw(i,s)))}}return e}function zn(i,e,r){switch(e.type){case nt.Trigger:return i.visitTrigger(e,r);case nt.State:return i.visitState(e,r);case nt.Transition:return i.visitTransition(e,r);case nt.Sequence:return i.visitSequence(e,r);case nt.Group:return i.visitGroup(e,r);case nt.Animate:return i.visitAnimate(e,r);case nt.Keyframes:return i.visitKeyframes(e,r);case nt.Style:return i.visitStyle(e,r);case nt.Reference:return i.visitReference(e,r);case nt.AnimateChild:return i.visitAnimateChild(e,r);case nt.AnimateRef:return i.visitAnimateRef(e,r);case nt.Query:return i.visitQuery(e,r);case nt.Stagger:return i.visitStagger(e,r);default:throw iq(e.type)}}function Yw(i,e){return window.getComputedStyle(i)[e]}var zq=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),cg=class extends ys{normalizePropertyName(e,r){return qw(e)}normalizeStyleValue(e,r,t,n){let o="",a=t.toString().trim();if(zq.has(r)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&n.push(nq(e,t))}return a+o}};var lg="*";function Uq(i,e){let r=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>Hq(t,r,e)):r.push(i),r}function Hq(i,e,r){if(i[0]==":"){let c=$q(i,r);if(typeof c=="function"){e.push(c);return}i=c}let t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return r.push(fq(i)),e;let n=t[1],o=t[2],a=t[3];e.push(OA(n,a));let s=n==lg&&a==lg;o[0]=="<"&&!s&&e.push(OA(a,n))}function $q(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,t)=>parseFloat(t)>parseFloat(r);case":decrement":return(r,t)=>parseFloat(t) *"}}var ig=new Set(["true","1"]),ng=new Set(["false","0"]);function OA(i,e){let r=ig.has(i)||ng.has(i),t=ig.has(e)||ng.has(e);return(n,o)=>{let a=i==lg||i==n,s=e==lg||e==o;return!a&&r&&typeof n=="boolean"&&(a=n?ig.has(i):ng.has(i)),!s&&t&&typeof o=="boolean"&&(s=o?ig.has(e):ng.has(e)),a&&s}}var YA=":self",Wq=new RegExp(`s*${YA}s*,?`,"g");function QA(i,e,r,t){return new Aw(i).build(e,r,t)}var RA="",Aw=class{constructor(e){this._driver=e}build(e,r,t){let n=new Ow(r);return this._resetContextStyleTimingState(n),zn(this,Hd(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=RA,e.collectedStyles=new Map,e.collectedStyles.set(RA,new Map),e.currentTime=0}visitTrigger(e,r){let t=r.queryCount=0,n=r.depCount=0,o=[],a=[];return e.name.charAt(0)=="@"&&r.errors.push(oq()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(r),s.type==nt.State){let c=s,u=c.name;u.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,o.push(this.visitState(c,r))}),c.name=u}else if(s.type==nt.Transition){let c=this.visitTransition(s,r);t+=c.queryCount,n+=c.depCount,a.push(c)}else r.errors.push(rq())}),{type:nt.Trigger,name:e.name,states:o,transitions:a,queryCount:t,depCount:n,options:null}}visitState(e,r){let t=this.visitStyle(e.styles,r),n=e.options&&e.options.params||null;if(t.containsDynamicStyles){let o=new Set,a=n||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{qA(c).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&r.errors.push(aq(e.name,[...o.values()]))}return{type:nt.State,name:e.name,style:t,options:n?{params:n}:null}}visitTransition(e,r){r.queryCount=0,r.depCount=0;let t=zn(this,Hd(e.animation),r),n=Uq(e.expr,r.errors);return{type:nt.Transition,matchers:n,animation:t,queryCount:r.queryCount,depCount:r.depCount,options:_s(e.options)}}visitSequence(e,r){return{type:nt.Sequence,steps:e.steps.map(t=>zn(this,t,r)),options:_s(e.options)}}visitGroup(e,r){let t=r.currentTime,n=0,o=e.steps.map(a=>{r.currentTime=t;let s=zn(this,a,r);return n=Math.max(n,r.currentTime),s});return r.currentTime=n,{type:nt.Group,steps:o,options:_s(e.options)}}visitAnimate(e,r){let t=Qq(e.timings,r.errors);r.currentAnimateTimings=t;let n,o=e.styles?e.styles:Me({});if(o.type==nt.Keyframes)n=this.visitKeyframes(o,r);else{let a=e.styles,s=!1;if(!a){s=!0;let u={};t.easing&&(u.easing=t.easing),a=Me(u)}r.currentTime+=t.duration+t.delay;let c=this.visitStyle(a,r);c.isEmptyStep=s,n=c}return r.currentAnimateTimings=null,{type:nt.Animate,timings:t,style:n,options:null}}visitStyle(e,r){let t=this._makeStyleAst(e,r);return this._validateStyleAst(t,r),t}_makeStyleAst(e,r){let t=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of n)typeof s=="string"?s===Zo?t.push(s):r.errors.push(sq(s)):t.push(new Map(Object.entries(s)));let o=!1,a=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let c of s.values())if(c.toString().indexOf(WA)>=0){o=!0;break}}}),{type:nt.Style,styles:t,easing:a,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,r){let t=r.currentAnimateTimings,n=r.currentTime,o=r.currentTime;t&&o>0&&(o-=t.duration+t.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,c)=>{let u=r.collectedStyles.get(r.currentQuerySelector),f=u.get(c),v=!0;f&&(o!=n&&o>=f.startTime&&n<=f.endTime&&(r.errors.push(cq(c,f.startTime,f.endTime,o,n)),v=!1),o=f.startTime),v&&u.set(c,{startTime:o,endTime:n}),r.options&&Lq(s,r.options,r.errors)})})}visitKeyframes(e,r){let t={type:nt.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(lq()),t;let n=1,o=0,a=[],s=!1,c=!1,u=0,f=e.steps.map(F=>{let _e=this._makeStyleAst(F,r),at=_e.offset!=null?_e.offset:Yq(_e.styles),ot=0;return at!=null&&(o++,ot=_e.offset=at),c=c||ot<0||ot>1,s=s||ot0&&o{let at=C>0?_e==D?1:C*_e:a[_e],ot=at*j;r.currentTime=E+R.delay+ot,R.duration=ot,this._validateStyleAst(F,r),F.offset=at,t.styles.push(F)}),t}visitReference(e,r){return{type:nt.Reference,animation:zn(this,Hd(e.animation),r),options:_s(e.options)}}visitAnimateChild(e,r){return r.depCount++,{type:nt.AnimateChild,options:_s(e.options)}}visitAnimateRef(e,r){return{type:nt.AnimateRef,animation:this.visitReference(e.animation,r),options:_s(e.options)}}visitQuery(e,r){let t=r.currentQuerySelector,n=e.options||{};r.queryCount++,r.currentQuery=e;let[o,a]=Gq(e.selector);r.currentQuerySelector=t.length?t+" "+o:o,Un(r.collectedStyles,r.currentQuerySelector,new Map);let s=zn(this,Hd(e.animation),r);return r.currentQuery=null,r.currentQuerySelector=t,{type:nt.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:_s(e.options)}}visitStagger(e,r){r.currentQuery||r.errors.push(hq());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:sg(e.timings,r.errors,!0);return{type:nt.Stagger,animation:zn(this,Hd(e.animation),r),timings:t,options:null}}};function Gq(i){let e=!!i.split(/\s*,\s*/).find(r=>r==YA);return e&&(i=i.replace(Wq,"")),i=i.replace(/@\*/g,ag).replace(/@\w+/g,r=>ag+"-"+r.slice(1)).replace(/:animating/g,Mw),[i,e]}function qq(i){return i?B({},i):null}var Ow=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Yq(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(r=>{if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let r=i;e=parseFloat(r.get("offset")),r.delete("offset")}return e}function Qq(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let o=sg(i,e).duration;return Cw(o,0,"")}let r=i;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Cw(0,0,"");return o.dynamic=!0,o.strValue=r,o}let n=sg(r,e);return Cw(n.duration,n.delay,n.easing)}function _s(i){return i?(i=B({},i),i.params&&(i.params=qq(i.params))):i={},i}function Cw(i,e,r){return{duration:i,delay:e,easing:r}}function Qw(i,e,r,t,n,o,a=null,s=!1){return{type:1,element:i,keyframes:e,preStyleProps:r,postStyleProps:t,duration:n,delay:o,totalTime:n+o,easing:a,subTimeline:s}}var Gd=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,r){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...r)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Kq=1,Zq=":enter",Xq=new RegExp(Zq,"g"),Jq=":leave",eY=new RegExp(Jq,"g");function KA(i,e,r,t,n,o=new Map,a=new Map,s,c,u=[]){return new Rw().buildKeyframes(i,e,r,t,n,o,a,s,c,u)}var Rw=class{buildKeyframes(e,r,t,n,o,a,s,c,u,f=[]){u=u||new Gd;let v=new Pw(e,r,u,n,o,f,[]);v.options=c;let C=c.delay?Rr(c.delay):0;v.currentTimeline.delayNextStep(C),v.currentTimeline.setStyles([a],null,v.errors,c),zn(this,t,v);let D=v.timelines.filter(E=>E.containsAnimation());if(D.length&&s.size){let E;for(let R=D.length-1;R>=0;R--){let j=D[R];if(j.element===r){E=j;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([s],null,v.errors,c)}return D.length?D.map(E=>E.buildKeyframes()):[Qw(r,[],[],[],0,C,"",!1)]}visitTrigger(e,r){}visitState(e,r){}visitTransition(e,r){}visitAnimateChild(e,r){let t=r.subInstructions.get(r.element);if(t){let n=r.createSubContext(e.options),o=r.currentTimeline.currentTime,a=this._visitSubInstructions(t,n,n.options);o!=a&&r.transformIntoNewTimeline(a)}r.previousNode=e}visitAnimateRef(e,r){let t=r.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],r,t),this.visitReference(e.animation,t),r.transformIntoNewTimeline(t.currentTimeline.currentTime),r.previousNode=e}_applyAnimationRefDelays(e,r,t){for(let n of e){let o=n?.delay;if(o){let a=typeof o=="number"?o:Rr(Wd(o,n?.params??{},r.errors));t.delayNextStep(a)}}}_visitSubInstructions(e,r,t){let o=r.currentTimeline.currentTime,a=t.duration!=null?Rr(t.duration):null,s=t.delay!=null?Rr(t.delay):null;return a!==0&&e.forEach(c=>{let u=r.appendInstructionToTimeline(c,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,r){r.updateOptions(e.options,!0),zn(this,e.animation,r),r.previousNode=e}visitSequence(e,r){let t=r.subContextCount,n=r,o=e.options;if(o&&(o.params||o.delay)&&(n=r.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==nt.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=dg);let a=Rr(o.delay);n.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>zn(this,a,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>t&&n.transformIntoNewTimeline()),r.previousNode=e}visitGroup(e,r){let t=[],n=r.currentTimeline.currentTime,o=e.options&&e.options.delay?Rr(e.options.delay):0;e.steps.forEach(a=>{let s=r.createSubContext(e.options);o&&s.delayNextStep(o),zn(this,a,s),n=Math.max(n,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(a=>r.currentTimeline.mergeTimelineCollectedStyles(a)),r.transformIntoNewTimeline(n),r.previousNode=e}_visitTiming(e,r){if(e.dynamic){let t=e.strValue,n=r.params?Wd(t,r.params,r.errors):t;return sg(n,r.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,r){let t=r.currentAnimateTimings=this._visitTiming(e.timings,r),n=r.currentTimeline;t.delay&&(r.incrementTime(t.delay),n.snapshotCurrentStyles());let o=e.style;o.type==nt.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(t.duration),this.visitStyle(o,r),n.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=e}visitStyle(e,r){let t=r.currentTimeline,n=r.currentAnimateTimings;!n&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(o):t.setStyles(e.styles,o,r.errors,r.options),r.previousNode=e}visitKeyframes(e,r){let t=r.currentAnimateTimings,n=r.currentTimeline.duration,o=t.duration,s=r.createSubContext().currentTimeline;s.easing=t.easing,e.styles.forEach(c=>{let u=c.offset||0;s.forwardTime(u*o),s.setStyles(c.styles,c.easing,r.errors,r.options),s.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(s),r.transformIntoNewTimeline(n+o),r.previousNode=e}visitQuery(e,r){let t=r.currentTimeline.currentTime,n=e.options||{},o=n.delay?Rr(n.delay):0;o&&(r.previousNode.type===nt.Style||t==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=dg);let a=t,s=r.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,r.errors);r.currentQueryTotal=s.length;let c=null;s.forEach((u,f)=>{r.currentQueryIndex=f;let v=r.createSubContext(e.options,u);o&&v.delayNextStep(o),u===r.element&&(c=v.currentTimeline),zn(this,e.animation,v),v.currentTimeline.applyStylesToKeyframe();let C=v.currentTimeline.currentTime;a=Math.max(a,C)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(a),c&&(r.currentTimeline.mergeTimelineCollectedStyles(c),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=e}visitStagger(e,r){let t=r.parentContext,n=r.currentTimeline,o=e.timings,a=Math.abs(o.duration),s=a*(r.currentQueryTotal-1),c=a*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=s-c;break;case"full":c=t.currentStaggerTime;break}let f=r.currentTimeline;c&&f.delayNextStep(c);let v=f.currentTime;zn(this,e.animation,r),r.previousNode=e,t.currentStaggerTime=n.currentTime-v+(n.startTime-t.currentTimeline.startTime)}},dg={},Pw=class i{constructor(e,r,t,n,o,a,s,c){this._driver=e,this.element=r,this.subInstructions=t,this._enterClassName=n,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new ug(this._driver,r,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,r){if(!e)return;let t=e,n=this.options;t.duration!=null&&(n.duration=Rr(t.duration)),t.delay!=null&&(n.delay=Rr(t.delay));let o=t.params;if(o){let a=n.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!r||!a.hasOwnProperty(s))&&(a[s]=Wd(o[s],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let r=this.options.params;if(r){let t=e.params={};Object.keys(r).forEach(n=>{t[n]=r[n]})}}return e}createSubContext(e=null,r,t){let n=r||this.element,o=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=dg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,r,t){let n={duration:r??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},o=new Fw(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,r,t,n,o,a){let s=[];if(n&&s.push(this.element),e.length>0){e=e.replace(Xq,"."+this._enterClassName),e=e.replace(eY,"."+this._leaveClassName);let c=t!=1,u=this._driver.query(this.element,e,c);t!==0&&(u=t<0?u.slice(u.length+t,u.length):u.slice(0,t)),s.push(...u)}return!o&&s.length==0&&a.push(pq(r)),s}},ug=class i{constructor(e,r,t,n){this._driver=e,this.element=r,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+e),r&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,r){return this.applyStylesToKeyframe(),new i(this._driver,e,r||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Kq,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,r){this._localTimelineStyles.set(e,r),this._globalTimelineStyles.set(e,r),this._styleSummary.set(e,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[r,t]of this._globalTimelineStyles)this._backFill.set(r,t||Zo),this._currentKeyframe.set(r,Zo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,r,t,n){r&&this._previousKeyframe.set("easing",r);let o=n&&n.params||{},a=tY(e,this._globalTimelineStyles);for(let[s,c]of a){let u=Wd(c,o,t);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Zo),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,r)=>{this._currentKeyframe.set(r,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,e)}))}snapshotCurrentStyles(){for(let[e,r]of this._localTimelineStyles)this._pendingStyles.set(e,r),this._updateStyle(e,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let r in this._currentKeyframe)e.push(r);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((r,t)=>{let n=this._styleSummary.get(t);(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,r=new Set,t=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((s,c)=>{let u=new Map([...this._backFill,...s]);u.forEach((f,v)=>{f===sp?e.add(v):f===Zo&&r.add(v)}),t||u.set("offset",c/this.duration),n.push(u)});let o=[...e.values()],a=[...r.values()];if(t){let s=n[0],c=new Map(s);s.set("offset",0),c.set("offset",1),n=[s,c]}return Qw(this.element,n,o,a,this.duration,this.startTime,this.easing,!1)}},Fw=class extends ug{constructor(e,r,t,n,o,a,s=!1){super(e,r,a.delay),this.keyframes=t,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:r,duration:t,easing:n}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],a=t+r,s=r/a,c=new Map(e[0]);c.set("offset",0),o.push(c);let u=new Map(e[0]);u.set("offset",PA(s)),o.push(u);let f=e.length-1;for(let v=1;v<=f;v++){let C=new Map(e[v]),D=C.get("offset"),E=r+D*t;C.set("offset",PA(E/a)),o.push(C)}t=a,r=0,n="",e=o}return Qw(this.element,e,this.preStyleProps,this.postStyleProps,t,r,n,!0)}};function PA(i,e=3){let r=Math.pow(10,e-1);return Math.round(i*r)/r}function tY(i,e){let r=new Map,t;return i.forEach(n=>{if(n==="*"){t??=e.keys();for(let o of t)r.set(o,Zo)}else for(let[o,a]of n)r.set(o,a)}),r}function FA(i,e,r,t,n,o,a,s,c,u,f,v,C){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:r,fromStyles:o,toState:t,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:f,totalTime:v,errors:C}}var xw={},mg=class{constructor(e,r,t){this._triggerName=e,this.ast=r,this._stateStyles=t}match(e,r,t,n){return iY(this.ast.matchers,e,r,t,n)}buildStyles(e,r,t){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(r,t):new Map}build(e,r,t,n,o,a,s,c,u,f){let v=[],C=this.ast.options&&this.ast.options.params||xw,D=s&&s.params||xw,E=this.buildStyles(t,D,v),R=c&&c.params||xw,j=this.buildStyles(n,R,v),F=new Set,_e=new Map,at=new Map,ot=n==="void",Mi={params:ZA(R,C),delay:this.ast.options?.delay},Nt=f?[]:KA(e,r,this.ast.animation,o,a,E,j,Mi,u,v),Ht=0;return Nt.forEach(_i=>{Ht=Math.max(_i.duration+_i.delay,Ht)}),v.length?FA(r,this._triggerName,t,n,ot,E,j,[],[],_e,at,Ht,v):(Nt.forEach(_i=>{let rr=_i.element,Pr=Un(_e,rr,new Set);_i.preStyleProps.forEach(Ma=>Pr.add(Ma));let nC=Un(at,rr,new Set);_i.postStyleProps.forEach(Ma=>nC.add(Ma)),rr!==r&&F.add(rr)}),FA(r,this._triggerName,t,n,ot,E,j,Nt,[...F.values()],_e,at,Ht))}};function iY(i,e,r,t,n){return i.some(o=>o(e,r,t,n))}function ZA(i,e){let r=B({},e);return Object.entries(i).forEach(([t,n])=>{n!=null&&(r[t]=n)}),r}var Nw=class{constructor(e,r,t){this.styles=e,this.defaultParams=r,this.normalizer=t}buildStyles(e,r){let t=new Map,n=ZA(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=Wd(a,n,r));let c=this.normalizer.normalizePropertyName(s,r);a=this.normalizer.normalizeStyleValue(s,c,a,r),t.set(s,a)})}),t}};function nY(i,e,r){return new Lw(i,e,r)}var Lw=class{constructor(e,r,t){this.name=e,this.ast=r,this._normalizer=t,this.transitionFactories=[],this.states=new Map,r.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new Nw(n.style,o,t))}),NA(this.states,"true","1"),NA(this.states,"false","0"),r.transitions.forEach(n=>{this.transitionFactories.push(new mg(e,n,this.states))}),this.fallbackTransition=oY(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,r,t,n){return this.transitionFactories.find(a=>a.match(e,r,t,n))||null}matchStyles(e,r,t){return this.fallbackTransition.buildStyles(e,r,t)}};function oY(i,e,r){let t=[(a,s)=>!0],n={type:nt.Sequence,steps:[],options:null},o={type:nt.Transition,animation:n,matchers:t,options:null,queryCount:0,depCount:0};return new mg(i,o,e)}function NA(i,e,r){i.has(e)?i.has(r)||i.set(r,i.get(e)):i.has(r)&&i.set(e,i.get(r))}var rY=new Gd,Vw=class{constructor(e,r,t){this.bodyNode=e,this._driver=r,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,r){let t=[],n=[],o=QA(this._driver,r,t,n);if(t.length)throw bq(t);n.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,r,t){let n=e.element,o=UA(this._normalizer,e.keyframes,r,t);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,r,t={}){let n=[],o=this._animations.get(e),a,s=new Map;if(o?(a=KA(this._driver,r,o,GA,Iw,new Map,new Map,t,rY,n),a.forEach(f=>{let v=Un(s,f.element,new Map);f.postStyleProps.forEach(C=>v.set(C,null))})):(n.push(yq()),a=[]),n.length)throw wq(n);s.forEach((f,v)=>{f.forEach((C,D)=>{f.set(D,this._driver.computeStyle(v,D,Zo))})});let c=a.map(f=>{let v=s.get(f.element);return this._buildPlayer(f,new Map,v)}),u=Ia(c);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let r=this._getPlayer(e);r.destroy(),this._playersById.delete(e);let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1)}_getPlayer(e){let r=this._playersById.get(e);if(!r)throw Cq(e);return r}listen(e,r,t,n){let o=$w(r,"","","");return Hw(this._getPlayer(e),t,o,n),()=>{}}command(e,r,t,n){if(t=="register"){this.register(e,n[0]);return}if(t=="create"){let a=n[0]||{};this.create(e,r,a);return}let o=this._getPlayer(e);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},LA="ng-animate-queued",aY=".ng-animate-queued",Dw="ng-animate-disabled",sY=".ng-animate-disabled",cY="ng-star-inserted",lY=".ng-star-inserted",dY=[],XA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ko="__ng_removed",qd=class{get params(){return this.options.params}constructor(e,r=""){this.namespaceId=r;let t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=hY(n),t){let o=e,{value:a}=o,s=yg(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let r=e.params;if(r){let t=this.options.params;Object.keys(r).forEach(n=>{t[n]==null&&(t[n]=r[n])})}}},$d="void",Sw=new qd($d),jw=class{constructor(e,r,t){this.id=e,this.hostElement=r,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,uo(r,this._hostClassName)}listen(e,r,t,n){if(!this._triggers.has(r))throw xq(t,r);if(t==null||t.length==0)throw Dq(r);if(!pY(t))throw Sq(t,r);let o=Un(this._elementListeners,e,[]),a={name:r,phase:t,callback:n};o.push(a);let s=Un(this._engine.statesByElement,e,new Map);return s.has(r)||(uo(e,tg),uo(e,tg+"-"+r),s.set(r,Sw)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(a);c>=0&&o.splice(c,1),this._triggers.has(r)||s.delete(r)})}}register(e,r){return this._triggers.has(e)?!1:(this._triggers.set(e,r),!0)}_getTrigger(e){let r=this._triggers.get(e);if(!r)throw Eq(e);return r}trigger(e,r,t,n=!0){let o=this._getTrigger(r),a=new Yd(this.id,r,e),s=this._engine.statesByElement.get(e);s||(uo(e,tg),uo(e,tg+"-"+r),this._engine.statesByElement.set(e,s=new Map));let c=s.get(r),u=new qd(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s.set(r,u),c||(c=Sw),!(u.value===$d)&&c.value===u.value){if(!_Y(c.params,u.params)){let R=[],j=o.matchStyles(c.value,c.params,R),F=o.matchStyles(u.value,u.params,R);R.length?this._engine.reportError(R):this._engine.afterFlush(()=>{vs(e,j),or(e,F)})}return}let C=Un(this._engine.playersByElement,e,[]);C.forEach(R=>{R.namespaceId==this.id&&R.triggerName==r&&R.queued&&R.destroy()});let D=o.matchTransition(c.value,u.value,e,u.params),E=!1;if(!D){if(!n)return;D=o.fallbackTransition,E=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:D,fromState:c,toState:u,player:a,isFallbackTransition:E}),E||(uo(e,LA),a.onStart(()=>{Wc(e,LA)})),a.onDone(()=>{let R=this.players.indexOf(a);R>=0&&this.players.splice(R,1);let j=this._engine.playersByElement.get(e);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),C.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(r=>r.delete(e)),this._elementListeners.forEach((r,t)=>{this._elementListeners.set(t,r.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let r=this._engine.playersByElement.get(e);r&&(r.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,r){let t=this._engine.driver.query(e,ag,!0);t.forEach(n=>{if(n[ko])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(a=>a.triggerLeaveAnimation(n,r,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,r,t,n){let o=this._engine.statesByElement.get(e),a=new Map;if(o){let s=[];if(o.forEach((c,u)=>{if(a.set(u,c.value),this._triggers.has(u)){let f=this.trigger(e,u,$d,n);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,r,a),t&&Ia(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let r=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(r&&t){let n=new Set;r.forEach(o=>{let a=o.name;if(n.has(a))return;n.add(a);let c=this._triggers.get(a).fallbackTransition,u=t.get(a)||Sw,f=new qd($d),v=new Yd(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:c,fromState:u,toState:f,player:v,isFallbackTransition:!0})})}}removeNode(e,r){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,r),this.triggerLeaveAnimation(e,r,!0))return;let n=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let a=e;for(;a=a.parentNode;)if(t.statesByElement.get(a)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)t.markElementAsRemoved(this.id,e,!1,r);else{let o=e[ko];(!o||o===XA)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,r))}}insertNode(e,r){uo(e,this._hostClassName)}drainQueuedTransitions(e){let r=[];return this._queue.forEach(t=>{let n=t.player;if(n.destroyed)return;let o=t.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==t.triggerName){let c=$w(o,t.triggerName,t.fromState.value,t.toState.value);c._data=e,Hw(t.player,s.phase,c,s.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):r.push(t)}),this._queue=[],r.sort((t,n)=>{let o=t.transition.ast.depCount,a=n.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(t.element,n.element)?1:-1})}destroy(e){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Bw=class{_onRemovalComplete(e,r){this.onRemovalComplete(e,r)}constructor(e,r,t){this.bodyNode=e,this.driver=r,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(n,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(r=>{r.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,r){let t=new jw(e,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(t,r):(this.newHostElements.set(r,t),this.collectEnterElement(r)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,r){let t=this._namespaceList,n=this.namespacesByHostElement;if(t.length-1>=0){let a=!1,s=this.driver.getParentElement(r);for(;s;){let c=n.get(s);if(c){let u=t.indexOf(c);t.splice(u+1,0,e),a=!0;break}s=this.driver.getParentElement(s)}a||t.unshift(e)}else t.push(e);return n.set(r,e),e}register(e,r){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,r)),t}registerTrigger(e,r,t){let n=this._namespaceLookup[e];n&&n.register(r,t)&&this.totalAnimations++}destroy(e,r){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let n=this._namespaceList.indexOf(t);n>=0&&this._namespaceList.splice(n,1),t.destroy(r),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let r=new Set,t=this.statesByElement.get(e);if(t){for(let n of t.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&r.add(o)}}return r}trigger(e,r,t,n){if(og(r)){let o=this._fetchNamespace(e);if(o)return o.trigger(r,t,n),!0}return!1}insertNode(e,r,t,n){if(!og(r))return;let o=r[ko];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(r);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(r,t)}n&&this.collectEnterElement(r)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,r){r?this.disabledNodes.has(e)||(this.disabledNodes.add(e),uo(e,Dw)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Wc(e,Dw))}removeNode(e,r,t){if(og(r)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(r,t):this.markElementAsRemoved(e,r,!1,t);let o=this.namespacesByHostElement.get(r);o&&o.id!==e&&o.removeNode(r,t)}else this._onRemovalComplete(r,t)}markElementAsRemoved(e,r,t,n,o){this.collectedLeaveElements.push(r),r[ko]={namespaceId:e,setForRemoval:n,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,r,t,n,o){return og(r)?this._fetchNamespace(e).listen(r,t,n,o):()=>{}}_buildInstruction(e,r,t,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,n,e.fromState.options,e.toState.options,r,o)}destroyInnerAnimations(e){let r=this.driver.query(e,ag,!0);r.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(e,Mw,!0),r.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let r=this.playersByElement.get(e);r&&r.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let r=this.playersByQueriedElement.get(e);r&&r.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ia(this.players).onDone(()=>e());e()})}processLeaveNode(e){let r=e[ko];if(r&&r.setForRemoval){if(e[ko]=XA,r.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(r.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}e.classList?.contains(Dw)&&this.markElementAsDisabled(e,!1),this.driver.query(e,sY,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,n)=>this._balanceNamespaceList(t,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],r.length?Ia(r).onDone(()=>{t.forEach(n=>n())}):t.forEach(n=>n())}}reportError(e){throw Iq(e)}_flushAnimations(e,r){let t=new Gd,n=[],o=new Map,a=[],s=new Map,c=new Map,u=new Map,f=new Set;this.disabledNodes.forEach(ye=>{f.add(ye);let Ne=this.driver.query(ye,aY,!0);for(let Ge=0;Ge{let Ge=GA+R++;E.set(Ne,Ge),ye.forEach(At=>uo(At,Ge))});let j=[],F=new Set,_e=new Set;for(let ye=0;yeF.add(At)):_e.add(Ne))}let at=new Map,ot=BA(C,Array.from(F));ot.forEach((ye,Ne)=>{let Ge=Iw+R++;at.set(Ne,Ge),ye.forEach(At=>uo(At,Ge))}),e.push(()=>{D.forEach((ye,Ne)=>{let Ge=E.get(Ne);ye.forEach(At=>Wc(At,Ge))}),ot.forEach((ye,Ne)=>{let Ge=at.get(Ne);ye.forEach(At=>Wc(At,Ge))}),j.forEach(ye=>{this.processLeaveNode(ye)})});let Mi=[],Nt=[];for(let ye=this._namespaceList.length-1;ye>=0;ye--)this._namespaceList[ye].drainQueuedTransitions(r).forEach(Ge=>{let At=Ge.player,Ri=Ge.element;if(Mi.push(At),this.collectedEnterElements.length){let Qi=Ri[ko];if(Qi&&Qi.setForMove){if(Qi.previousTriggersValues&&Qi.previousTriggersValues.has(Ge.triggerName)){let Ta=Qi.previousTriggersValues.get(Ge.triggerName),Hn=this.statesByElement.get(Ge.element);if(Hn&&Hn.has(Ge.triggerName)){let Kd=Hn.get(Ge.triggerName);Kd.value=Ta,Hn.set(Ge.triggerName,Kd)}}At.destroy();return}}let Ao=!v||!this.driver.containsElement(v,Ri),kn=at.get(Ri),Fr=E.get(Ri),ui=this._buildInstruction(Ge,t,Fr,kn,Ao);if(ui.errors&&ui.errors.length){Nt.push(ui);return}if(Ao){At.onStart(()=>vs(Ri,ui.fromStyles)),At.onDestroy(()=>or(Ri,ui.toStyles)),n.push(At);return}if(Ge.isFallbackTransition){At.onStart(()=>vs(Ri,ui.fromStyles)),At.onDestroy(()=>or(Ri,ui.toStyles)),n.push(At);return}let aC=[];ui.timelines.forEach(Qi=>{Qi.stretchStartingKeyframe=!0,this.disabledNodes.has(Qi.element)||aC.push(Qi)}),ui.timelines=aC,t.append(Ri,ui.timelines);let zO={instruction:ui,player:At,element:Ri};a.push(zO),ui.queriedElements.forEach(Qi=>Un(s,Qi,[]).push(At)),ui.preStyleProps.forEach((Qi,Ta)=>{if(Qi.size){let Hn=c.get(Ta);Hn||c.set(Ta,Hn=new Set),Qi.forEach((Kd,bg)=>Hn.add(bg))}}),ui.postStyleProps.forEach((Qi,Ta)=>{let Hn=u.get(Ta);Hn||u.set(Ta,Hn=new Set),Qi.forEach((Kd,bg)=>Hn.add(bg))})});if(Nt.length){let ye=[];Nt.forEach(Ne=>{ye.push(Mq(Ne.triggerName,Ne.errors))}),Mi.forEach(Ne=>Ne.destroy()),this.reportError(ye)}let Ht=new Map,_i=new Map;a.forEach(ye=>{let Ne=ye.element;t.has(Ne)&&(_i.set(Ne,Ne),this._beforeAnimationBuild(ye.player.namespaceId,ye.instruction,Ht))}),n.forEach(ye=>{let Ne=ye.element;this._getPreviousPlayers(Ne,!1,ye.namespaceId,ye.triggerName,null).forEach(At=>{Un(Ht,Ne,[]).push(At),At.destroy()})});let rr=j.filter(ye=>zA(ye,c,u)),Pr=new Map;jA(Pr,this.driver,_e,u,Zo).forEach(ye=>{zA(ye,c,u)&&rr.push(ye)});let Ma=new Map;D.forEach((ye,Ne)=>{jA(Ma,this.driver,new Set(ye),c,sp)}),rr.forEach(ye=>{let Ne=Pr.get(ye),Ge=Ma.get(ye);Pr.set(ye,new Map([...Ne?.entries()??[],...Ge?.entries()??[]]))});let vg=[],oC=[],rC={};a.forEach(ye=>{let{element:Ne,player:Ge,instruction:At}=ye;if(t.has(Ne)){if(f.has(Ne)){Ge.onDestroy(()=>or(Ne,At.toStyles)),Ge.disabled=!0,Ge.overrideTotalTime(At.totalTime),n.push(Ge);return}let Ri=rC;if(_i.size>1){let kn=Ne,Fr=[];for(;kn=kn.parentNode;){let ui=_i.get(kn);if(ui){Ri=ui;break}Fr.push(kn)}Fr.forEach(ui=>_i.set(ui,Ri))}let Ao=this._buildAnimation(Ge.namespaceId,At,Ht,o,Ma,Pr);if(Ge.setRealPlayer(Ao),Ri===rC)vg.push(Ge);else{let kn=this.playersByElement.get(Ri);kn&&kn.length&&(Ge.parentPlayer=Ia(kn)),n.push(Ge)}}else vs(Ne,At.fromStyles),Ge.onDestroy(()=>or(Ne,At.toStyles)),oC.push(Ge),f.has(Ne)&&n.push(Ge)}),oC.forEach(ye=>{let Ne=o.get(ye.element);if(Ne&&Ne.length){let Ge=Ia(Ne);ye.setRealPlayer(Ge)}}),n.forEach(ye=>{ye.parentPlayer?ye.syncPlayerEvents(ye.parentPlayer):ye.destroy()});for(let ye=0;ye!Ao.destroyed);Ri.length?fY(this,Ne,Ri):this.processLeaveNode(Ne)}return j.length=0,vg.forEach(ye=>{this.players.push(ye),ye.onDone(()=>{ye.destroy();let Ne=this.players.indexOf(ye);this.players.splice(Ne,1)}),ye.play()}),vg}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,r,t,n,o){let a=[];if(r){let s=this.playersByQueriedElement.get(e);s&&(a=s)}else{let s=this.playersByElement.get(e);if(s){let c=!o||o==$d;s.forEach(u=>{u.queued||!c&&u.triggerName!=n||a.push(u)})}}return(t||n)&&(a=a.filter(s=>!(t&&t!=s.namespaceId||n&&n!=s.triggerName))),a}_beforeAnimationBuild(e,r,t){let n=r.triggerName,o=r.element,a=r.isRemovalTransition?void 0:e,s=r.isRemovalTransition?void 0:n;for(let c of r.timelines){let u=c.element,f=u!==o,v=Un(t,u,[]);this._getPreviousPlayers(u,f,a,s,r.toState).forEach(D=>{let E=D.getRealPlayer();E.beforeDestroy&&E.beforeDestroy(),D.destroy(),v.push(D)})}vs(o,r.fromStyles)}_buildAnimation(e,r,t,n,o,a){let s=r.triggerName,c=r.element,u=[],f=new Set,v=new Set,C=r.timelines.map(E=>{let R=E.element;f.add(R);let j=R[ko];if(j&&j.removedBeforeQueried)return new fa(E.duration,E.delay);let F=R!==c,_e=gY((t.get(R)||dY).map(Ht=>Ht.getRealPlayer())).filter(Ht=>{let _i=Ht;return _i.element?_i.element===R:!1}),at=o.get(R),ot=a.get(R),Mi=UA(this._normalizer,E.keyframes,at,ot),Nt=this._buildPlayer(E,Mi,_e);if(E.subTimeline&&n&&v.add(R),F){let Ht=new Yd(e,s,R);Ht.setRealPlayer(Nt),u.push(Ht)}return Nt});u.forEach(E=>{Un(this.playersByQueriedElement,E.element,[]).push(E),E.onDone(()=>mY(this.playersByQueriedElement,E.element,E))}),f.forEach(E=>uo(E,AA));let D=Ia(C);return D.onDestroy(()=>{f.forEach(E=>Wc(E,AA)),or(c,r.toStyles)}),v.forEach(E=>{Un(n,E,[]).push(D)}),D}_buildPlayer(e,r,t){return r.length>0?this.driver.animate(e.element,r,e.duration,e.delay,e.easing,t):new fa(e.duration,e.delay)}},Yd=class{constructor(e,r,t){this.namespaceId=e,this.triggerName=r,this.element=t,this._player=new fa,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((r,t)=>{r.forEach(n=>Hw(e,t,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let r=this._player;r.triggerCallback&&e.onStart(()=>r.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,r){Un(this._queuedCallbacks,e,[]).push(r)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let r=this._player;r.triggerCallback&&r.triggerCallback(e)}};function mY(i,e,r){let t=i.get(e);if(t){if(t.length){let n=t.indexOf(r);t.splice(n,1)}t.length==0&&i.delete(e)}return t}function hY(i){return i??null}function og(i){return i&&i.nodeType===1}function pY(i){return i=="start"||i=="done"}function VA(i,e){let r=i.style.display;return i.style.display=e??"none",r}function jA(i,e,r,t,n){let o=[];r.forEach(c=>o.push(VA(c)));let a=[];t.forEach((c,u)=>{let f=new Map;c.forEach(v=>{let C=e.computeStyle(u,v,n);f.set(v,C),(!C||C.length==0)&&(u[ko]=uY,a.push(u))}),i.set(u,f)});let s=0;return r.forEach(c=>VA(c,o[s++])),a}function BA(i,e){let r=new Map;if(i.forEach(s=>r.set(s,[])),e.length==0)return r;let t=1,n=new Set(e),o=new Map;function a(s){if(!s)return t;let c=o.get(s);if(c)return c;let u=s.parentNode;return r.has(u)?c=u:n.has(u)?c=t:c=a(u),o.set(s,c),c}return e.forEach(s=>{let c=a(s);c!==t&&r.get(c).push(s)}),r}function uo(i,e){i.classList?.add(e)}function Wc(i,e){i.classList?.remove(e)}function fY(i,e,r){Ia(r).onDone(()=>i.processLeaveNode(e))}function gY(i){let e=[];return JA(i,e),e}function JA(i,e){for(let r=0;rn.add(o)):e.set(i,t),r.delete(i),!0}var qc=class{constructor(e,r,t){this._driver=r,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(n,o)=>{},this._transitionEngine=new Bw(e.body,r,t),this._timelineEngine=new Vw(e.body,r,t),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,r,t,n,o){let a=e+"-"+n,s=this._triggerCache[a];if(!s){let c=[],u=[],f=QA(this._driver,o,c,u);if(c.length)throw _q(n,c);u.length&&void 0,s=nY(n,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(r,n,s)}register(e,r){this._transitionEngine.register(e,r)}destroy(e,r){this._transitionEngine.destroy(e,r)}onInsert(e,r,t,n){this._transitionEngine.insertNode(e,r,t,n)}onRemove(e,r,t){this._transitionEngine.removeNode(e,r,t)}disableAnimations(e,r){this._transitionEngine.markElementAsDisabled(e,r)}process(e,r,t,n){if(t.charAt(0)=="@"){let[o,a]=TA(t),s=n;this._timelineEngine.command(o,r,a,s)}else this._transitionEngine.trigger(e,r,t,n)}listen(e,r,t,n,o){if(t.charAt(0)=="@"){let[a,s]=TA(t);return this._timelineEngine.listen(a,r,s,o)}return this._transitionEngine.listen(e,r,t,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function vY(i,e){let r=null,t=null;return Array.isArray(e)&&e.length?(r=Ew(e[0]),e.length>1&&(t=Ew(e[e.length-1]))):e instanceof Map&&(r=Ew(e)),r||t?new zw(i,r,t):null}var Gc=class Gc{constructor(e,r,t){this._element=e,this._startStyles=r,this._endStyles=t,this._state=0;let n=Gc.initialStylesByElement.get(e);n||Gc.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&or(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(or(this._element,this._initialStyles),this._endStyles&&(or(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Gc.initialStylesByElement.delete(this._element),this._startStyles&&(vs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(vs(this._element,this._endStyles),this._endStyles=null),or(this._element,this._initialStyles),this._state=3)}};Gc.initialStylesByElement=new WeakMap;var zw=Gc;function Ew(i){let e=null;return i.forEach((r,t)=>{bY(t)&&(e=e||new Map,e.set(t,r))}),e}function bY(i){return i==="display"||i==="position"}var hg=class{constructor(e,r,t,n){this.element=e,this.keyframes=r,this.options=t,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let r=[];return e.forEach(t=>{r.push(Object.fromEntries(t))}),r}_triggerWebAnimation(e,r,t){return e.animate(this._convertKeyframesToObject(r),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:Yw(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let r=e==="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},pg=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,r){return HA(e,r)}getParentElement(e){return Ww(e)}query(e,r,t){return $A(e,r,t)}computeStyle(e,r,t){return Yw(e,r)}animate(e,r,t,n,o,a=[]){let s=n==0?"both":"forwards",c={duration:t,delay:n,fill:s};o&&(c.easing=o);let u=new Map,f=a.filter(D=>D instanceof hg);jq(t,n)&&f.forEach(D=>{D.currentSnapshot.forEach((E,R)=>u.set(R,E))});let v=Nq(r).map(D=>new Map(D));v=Bq(e,v,u);let C=vY(e,v);return new hg(e,v,c,C)}};var rg="@",eO="@.disabled",fg=class{constructor(e,r,t,n){this.namespaceId=e,this.delegate=r,this.engine=t,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,r){this.delegate.appendChild(e,r),this.engine.onInsert(this.namespaceId,r,e,!1)}insertBefore(e,r,t,n=!0){this.delegate.insertBefore(e,r,t),this.engine.onInsert(this.namespaceId,r,e,n)}removeChild(e,r,t){this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,t,n){this.delegate.setAttribute(e,r,t,n)}removeAttribute(e,r,t){this.delegate.removeAttribute(e,r,t)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,t,n){this.delegate.setStyle(e,r,t,n)}removeStyle(e,r,t){this.delegate.removeStyle(e,r,t)}setProperty(e,r,t){r.charAt(0)==rg&&r==eO?this.disableAnimations(e,!!t):this.delegate.setProperty(e,r,t)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,t){return this.delegate.listen(e,r,t)}disableAnimations(e,r){this.engine.disableAnimations(e,r)}},Uw=class extends fg{constructor(e,r,t,n,o){super(r,t,n,o),this.factory=e,this.namespaceId=r}setProperty(e,r,t){r.charAt(0)==rg?r.charAt(1)=="."&&r==eO?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,r.slice(1),t):this.delegate.setProperty(e,r,t)}listen(e,r,t){if(r.charAt(0)==rg){let n=yY(e),o=r.slice(1),a="";return o.charAt(0)!=rg&&([o,a]=wY(o)),this.engine.listen(this.namespaceId,n,o,a,s=>{let c=s._data||-1;this.factory.scheduleListenerCallback(c,t,s)})}return this.delegate.listen(e,r,t)}};function yY(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function wY(i){let e=i.indexOf("."),r=i.substring(0,e),t=i.slice(e+1);return[r,t]}var gg=class{constructor(e,r,t){this.delegate=e,this.engine=r,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(n,o)=>{let a=o?.parentNode(n);a&&o.removeChild(a,n)}}createRenderer(e,r){let t="",n=this.delegate.createRenderer(e,r);if(!e||!r?.data?.animation){let u=this._rendererCache,f=u.get(n);if(!f){let v=()=>u.delete(n);f=new fg(t,n,this.engine,v),u.set(n,f)}return f}let o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(o,a,e,u.name,u)};return r.data.animation.forEach(s),new Uw(this,a,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,t){if(e>=0&&er(t));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),n.push([r,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var xY=(()=>{let e=class e extends qc{constructor(t,n,o){super(t,n,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(M(se),M(bs),M(ys))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function DY(){return new cg}function SY(i,e,r){return new gg(i,e,r)}var iO=[{provide:ys,useFactory:DY},{provide:qc,useClass:xY},{provide:Yr,useFactory:SY,deps:[hh,qc,Z]}],tO=[{provide:bs,useFactory:()=>new pg},{provide:Tt,useValue:"BrowserAnimations"},...iO],EY=[{provide:bs,useClass:Gw},{provide:Tt,useValue:"NoopAnimations"},...iO],nO=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?EY:tO}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:tO,imports:[fh]});let i=e;return i})();var MY=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],TY=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function kY(i,e){i&1&&(l(0,"span",3),ae(1,1),d())}function AY(i,e){i&1&&(l(0,"span",6),ae(1,2),d())}var OY='.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused:before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus:before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-hover-state-layer-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-selected-hover-state-layer-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}',RY=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],PY=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function FY(i,e){i&1&&I(0,"span",0)}function NY(i,e){i&1&&(l(0,"span",2),ae(1),d())}function LY(i,e){i&1&&ae(0,1)}function VY(i,e){i&1&&I(0,"span",7)}function jY(i,e){if(i&1&&x(0,LY,1,0)(1,VY,1,0,"span",7),i&2){let r=_();xe(r.contentEditInput?0:1)}}function BY(i,e){i&1&&ae(0,2)}function zY(i,e){i&1&&(l(0,"span",5),ae(1,3),d())}var aO=["*"],UY=".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}",sO=new O("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),oO=new O("MatChipAvatar"),rO=new O("MatChipTrailingIcon"),Xw=new O("MatChipRemove"),tC=new O("MatChip"),_g=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=t}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(t,n){this._elementRef=t,this._parentChip=n,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,t.nativeElement.nodeName==="BUTTON"&&t.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(n){return new(n||e)(h(G),h(tC))},e.\u0275dir=N({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(ie("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),ne("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?-1:Zt(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[ue]});let i=e;return i})();var cO=(()=>{let e=class e extends _g{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(t){this.disabled||(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&ie("aria-hidden",null)},standalone:!0,features:[be([{provide:Xw,useExisting:e}]),ve]});let i=e;return i})(),HY=0,Jw=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}constructor(t,n,o,a,s,c,u,f){this._changeDetectorRef=t,this._elementRef=n,this._ngZone=o,this._focusMonitor=a,this._globalRippleOptions=u,this._onFocus=new W,this._onBlur=new W,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${HY++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new T,this.destroyed=new T,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=k(np),this._injector=k(Pe),this._document=s,this._animationsDisabled=c==="NoopAnimations",f!=null&&(this.tabIndex=parseInt(f)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=yt(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(t){(t.keyCode===8&&!t.repeat||t.keyCode===46)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===t||o.contains(t)})}_getActions(){let t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=t!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):ri(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(n){return new(n||e)(h(me),h(G),h(Z),h(wi),h(se),h(Tt,8),h(Ic,8),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,oO,5),Fe(a,rO,5),Fe(a,Xw,5),Fe(a,oO,5),Fe(a,rO,5),Fe(a,Xw,5)),n&2){let s;Q(s=K())&&(o.leadingIcon=s.first),Q(s=K())&&(o.trailingIcon=s.first),Q(s=K())&&(o.removeIcon=s.first),Q(s=K())&&(o._allLeadingIcons=s),Q(s=K())&&(o._allTrailingIcons=s),Q(s=K())&&(o._allRemoveIcons=s)}},viewQuery:function(n,o){if(n&1&&le(_g,5),n&2){let a;Q(a=K())&&(o.primaryAction=a.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Di("id",o.id),ie("role",o.role)("tabindex",o._getTabIndex())("aria-label",o.ariaLabel),qt("mat-"+(o.color||"primary")),ne("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",Y],highlighted:[2,"highlighted","highlighted",Y],disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Zt(t)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[be([{provide:tC,useExisting:e}]),ue,re],ngContentSelectors:TY,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(Ue(MY),I(0,"span",0),l(1,"span",1)(2,"span",2),x(3,kY,2,0,"span",3),l(4,"span",4),ae(5),I(6,"span",5),d()()(),x(7,AY,2,0,"span",6)),n&2&&(m(2),p("isInteractive",!1),m(),xe(o.leadingIcon?3:-1),m(4),xe(o._hasTrailingIcon()?7:-1))},dependencies:[_g],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused:before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus:before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-hover-state-layer-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-selected-hover-state-layer-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Zw=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._document=n}initialize(t){this.getNativeElement().focus(),this.setValue(t)}getNativeElement(){return this._elementRef.nativeElement}setValue(t){this.getNativeElement().textContent=t,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let t=this._document.createRange();t.selectNodeContents(this.getNativeElement()),t.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(se))},e.\u0275dir=N({type:e,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"],standalone:!0});let i=e;return i})(),iC=(()=>{let e=class e extends Jw{constructor(t,n,o,a,s,c,u,f){super(t,n,o,a,s,c,u,f),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new T,this._isEditing=!1,this.role="row",this._onBlur.pipe(fe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(t){t.keyCode===13&&!this.disabled?this._isEditing?(t.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(t):this._isEditing?t.stopPropagation():super._handleKeydown(t)}_handleDoubleclick(t){!this.disabled&&this.editable&&this._startEditing(t)}_startEditing(t){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(t.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(n),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}};e.\u0275fac=function(n){return new(n||e)(h(me),h(G),h(Z),h(wi),h(se),h(Tt,8),h(Ic,8),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Zw,5),n&2){let s;Q(s=K())&&(o.contentEditInput=s.first)}},viewQuery:function(n,o){if(n&1&&le(Zw,5),n&2){let a;Q(a=K())&&(o.defaultEditInput=a.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,o){n&1&&b("focus",function(s){return o._handleFocus(s)})("dblclick",function(s){return o._handleDoubleclick(s)}),n&2&&(Di("id",o.id),ie("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),ne("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},standalone:!0,features:[be([{provide:Jw,useExisting:e},{provide:tC,useExisting:e}]),ve,re],ngContentSelectors:PY,decls:10,vars:10,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],["matChipEditInput",""]],template:function(n,o){n&1&&(Ue(RY),x(0,FY,1,0,"span",0),l(1,"span",1),x(2,NY,2,0,"span",2),l(3,"span",3),x(4,jY,2,1)(5,BY,1,0),I(6,"span",4),d()(),x(7,zY,2,0,"span",5),l(8,"span",6),g(9),d()),n&2&&(xe(o._isEditing?-1:0),m(),p("tabIndex",o.tabIndex)("disabled",o.disabled),ie("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),m(),xe(o.leadingIcon?2:-1),m(2),xe(o._isEditing?4:5),m(3),xe(o._hasTrailingIcon()?7:-1),m(),p("id",o._ariaDescriptionId),m(),He(o.ariaDescription))},dependencies:[_g,Zw],styles:[OY],encapsulation:2,changeDetection:0});let i=e;return i})(),$Y=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(t){this._explicitRole=t}get focused(){return this._hasFocusedChip()}constructor(t,n,o){this._elementRef=t,this._changeDetectorRef=n,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new W,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new qn}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(t=>{t.disabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&tthis.tabIndex=t)}}_getChipStream(t){return this._chips.changes.pipe(Ot(null),Mt(()=>yt(...this._chips.map(t))))}_originatesFromChip(t){let n=t.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Ot(this._chips)).subscribe(t=>{let n=[];t.forEach(o=>o._getActions().forEach(a=>n.push(a))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new da(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(fe(this._destroyed)).subscribe(({chip:t})=>{let n=t._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(fe(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Ot(null),fe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(fe(this._destroyed)).subscribe(t=>{let o=this._chips.toArray().indexOf(t.chip);this._isValidIndex(o)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[t];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(kt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Jw,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("role",o.role)},inputs:{disabled:[2,"disabled","disabled",Y],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Zt(t)]},standalone:!0,features:[ue,re],ngContentSelectors:aO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Ue(),l(0,"div",0),ae(1),d())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let i=e;return i})();var eC=class{constructor(e,r){this.source=e,this.value=r}},lO=(()=>{let e=class e extends $Y{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(er.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(t){this._value=t}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,c,u){super(t,n,o),this.ngControl=u,this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new T,this.valueChange=new T,this._chips=void 0,this.stateChanges=new W,this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Er(c,u,s,a,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(fe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),yt(this.chipFocusChanges,this._chips.changes).pipe(fe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit(),this._chipInput}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(t){this._chipInput=t,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(t){!this.disabled&&!this._originatesFromChip(t)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(t){this._ariaDescribedbyIds=t,this._chipInput?.setDescribedByIds(t)}writeValue(t){this._value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(t){t.keyCode===9?this._chipInput.focused&&Rt(t,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(t.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(t),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let t=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=t,this.change.emit(new eC(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(kt,8),h(Io,8),h(ds,8),h(Ir),h(Tn,10))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,iC,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(ie("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),ne("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{disabled:[2,"disabled","disabled",Y],placeholder:"placeholder",required:[2,"required","required",Y],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},standalone:!0,features:[be([{provide:Ca,useExisting:e}]),ue,ve,re],ngContentSelectors:aO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Ue(),l(0,"div",0),ae(1),d())},styles:[UY],encapsulation:2,changeDetection:0});let i=e;return i})(),WY=0,dO=(()=>{let e=class e{get chipGrid(){return this._chipGrid}set chipGrid(t){t&&(this._chipGrid=t,this._chipGrid.registerInput(this))}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(t){this._disabled=t}get empty(){return!this.inputElement.value}constructor(t,n,o){this._elementRef=t,this.focused=!1,this.addOnBlur=!1,this.chipEnd=new T,this.placeholder="",this.id=`mat-mdc-chip-list-input-${WY++}`,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=n.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(t){this.empty&&t.keyCode===8?(t.repeat||this._chipGrid._focusLastChip(),t.preventDefault()):this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._chipGrid.stateChanges.next()}_emitChipEnd(t){(!t||this._isSeparatorKey(t))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),t?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}setDescribedByIds(t){let n=this._elementRef.nativeElement;t.length?n.setAttribute("aria-describedby",t.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(t){return!Rt(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(sO),h(Mo,8))},e.\u0275dir=N({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(Di("id",o.id),ie("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",Y],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],standalone:!0,features:[ue,Qe]});let i=e;return i})();var uO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Ir,{provide:sO,useValue:{separatorKeyCodes:[13]}}],imports:[pe,Mr,pe]});let i=e;return i})();var mO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var hO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,mO,Ln]});let i=e;return i})();var qY=["*",[["mat-toolbar-row"]]],YY=["*","mat-toolbar-row"],QY=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let i=e;return i})(),pO=(()=>{let e=class e{constructor(t,n,o){this._elementRef=t,this._platform=n,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(se))},e.\u0275cmp=S({type:e,selectors:[["mat-toolbar"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,QY,5),n&2){let s;Q(s=K())&&(o._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(qt(o.color?"mat-"+o.color:""),ne("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[re],ngContentSelectors:YY,decls:2,vars:0,template:function(n,o){n&1&&(Ue(qY),ae(0),ae(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let i=e;return i})();var fO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})();var gO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[{provide:Cy,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ep,useValue:udsData.language}],imports:[Si,qM,Tp,fO,Jo,bk,Pc,hO,tM,ms,Dk,af,cA,W1,UT,kT,RT,Rf,Tf,eT,uO,hA,Uk,Rk,rT,Ff,pk,nk]});let i=e;return i})();function ZY(i,e){if(i&1){let r=A();l(0,"button",7),b("click",function(){let n=y(r).$implicit,o=_();return w(o.changeLang(n))}),g(1),d()}if(i&2){let r=e.$implicit;m(),He(r.name)}}function XY(i,e){if(i&1&&(l(0,"button",12)(1,"i",8),g(2,"face"),d(),g(3),d()),i&2){let r=_(),t=Ie(7);p("matMenuTriggerFor",t),m(3),He(r.api.user.user)}}function JY(i,e){if(i&1&&(l(0,"button",18),g(1),l(2,"i",8),g(3,"arrow_drop_down"),d()()),i&2){let r=_(),t=Ie(7);p("matMenuTriggerFor",t),m(),P("",r.api.user.user," ")}}var _O=(()=>{let e=class e{constructor(t){this.api=t,this.lang={id:"",name:""},this.isNavbarCollapsed=!0;let n=t.config.language;this.langs=[];for(let o of t.config.available_languages)o.id===n?this.lang=o:this.langs.push(o)}ngOnInit(){}changeLang(t){this.lang=t;let n=document.getElementById("id_language");return n&&n.setAttribute("value",t.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-navbar"]],decls:39,vars:13,consts:[["appMenu","matMenu"],["userMenu","matMenu"],["shrink","matMenu"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(n,o){if(n&1){let a=A();l(0,"form",3),I(1,"input",4)(2,"input",5),d(),l(3,"mat-menu",null,0),x(5,ZY,2,1,"button",6),d(),l(6,"mat-menu",null,1)(8,"button",7),b("click",function(){return y(a),w(o.user())}),l(9,"i",8),g(10,"home"),d(),l(11,"uds-translate"),g(12,"User mode"),d()(),l(13,"button",7),b("click",function(){return y(a),w(o.logout())}),l(14,"i",9),g(15,"exit_to_app"),d(),l(16,"uds-translate"),g(17,"Logout"),d()()(),l(18,"mat-menu",10,2),x(20,XY,4,2,"button",11),l(21,"button",12)(22,"i",8),g(23,"language"),d(),g(24),d()(),l(25,"mat-toolbar",13)(26,"button",14),I(27,"img",15),d(),I(28,"span",16),l(29,"div",17)(30,"button",18),g(31),l(32,"i",8),g(33,"arrow_drop_down"),d()(),x(34,JY,4,2,"button",19),d(),l(35,"div",20)(36,"button",21)(37,"i",8),g(38,"menu"),d()()()()}if(n&2){let a=Ie(4),s=Ie(19);Jr("action",o.api.config.urls.changeLang,Ee),m(),Jr("name",o.api.csrfField),Jr("value",o.api.csrfToken),m(),Jr("value",o.lang.id),m(3),p("ngForOf",o.langs),m(15),p("ngIf",o.api.user.isLogged),m(),p("matMenuTriggerFor",a),m(3),He(o.lang.name),m(3),p("src",o.api.staticURL("admin/img/udsicon.png"),Ee),m(3),p("matMenuTriggerFor",a),m(),P("",o.lang.name," "),m(3),p("ngIf",o.api.user.isLogged),m(2),p("matMenuTriggerFor",s)}},dependencies:[$e,he,gi,Mp,Dp,Io,pO,ke,Wi,Sa,ps,zf,ce],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:300}.uds-nav[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}} .dark-theme .uds-nav .expanded button{color:#fff!important}']});let i=e;return i})();var vO=(()=>{let e=class e{constructor(){}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(l(0,"div"),g(1,"\xA9 2012-2023 "),l(2,"a",0),g(3,"Virtual Cable S.L.U."),d()())},styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']});let i=e;return i})();function iQ(i,e){if(i&1&&(l(0,"a",27),I(1,"img",2),l(2,"uds-translate"),g(3,"Groups"),d()()),i&2){let r=_();m(),p("src",r.icon("groups"),Ee)}}function nQ(i,e){if(i&1){let r=A();l(0,"a",3),b("click",function(){y(r);let n=_();return w(n.toggleConfig())}),I(1,"img",2),l(2,"span")(3,"uds-translate"),g(4,"Tools"),d(),l(5,"i",4),g(6,"arrow_drop_down"),d()()()}if(i&2){let r=_();m(),p("src",r.icon("tools"),Ee)}}var bO=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){}icon(t){return this.api.staticURL("admin/img/icons/"+t+".png")}toggle(t){let n=new Map([["connectivity",o=>this.connectivityShown=o?!this.connectivityShown:!1],["pools",o=>this.poolsShown=o?!this.poolsShown:!1],["config",o=>this.configShown=o?!this.configShown:!1],["tokens",o=>this.tokensShown=o?!this.tokensShown:!1],["auths",o=>this.authsShown=o?!this.authsShown:!1],["services",o=>this.servicesShown=o?!this.servicesShown:!1]]);for(let o of n)o[1](o[0]===t)}toggleConnectivity(){this.toggle("connectivity")}togglePools(){this.toggle("pools")}toggleConfig(){this.toggle("config")}toggleTokens(){this.toggle("tokens")}toggleAuths(){this.toggle("auths")}toggleServices(){this.toggle("services")}flushCache(){this.rest.system.flushCache().then(()=>{this.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-sidebar"]],decls:124,vars:33,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/services/providers",1,"sidebar-link"],["mat-button","","routerLink","/services/servers",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/mfas",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/transports",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/networks",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/tunnels",1,"sidebar-link"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/server",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"a",1),I(2,"img",2),l(3,"uds-translate"),g(4,"Summary"),d()(),l(5,"a",3),b("click",function(){return o.toggleServices()}),I(6,"img",2),l(7,"span")(8,"uds-translate"),g(9,"Services"),d(),l(10,"i",4),g(11,"arrow_drop_down"),d()()(),l(12,"div",5)(13,"a",6),I(14,"img",2),l(15,"uds-translate"),g(16,"Providers"),d()(),l(17,"a",7),I(18,"img",2),l(19,"uds-translate"),g(20,"Servers"),d()()(),l(21,"a",3),b("click",function(){return o.toggleAuths()}),I(22,"img",2),l(23,"span")(24,"uds-translate"),g(25,"Authentication"),d(),l(26,"i",4),g(27,"arrow_drop_down"),d()()(),l(28,"div",5)(29,"a",8),I(30,"img",2),l(31,"uds-translate"),g(32,"Authenticators"),d()(),l(33,"a",9),I(34,"img",2),l(35,"uds-translate"),g(36,"Multi Factor"),d()()(),l(37,"a",10),I(38,"img",2),l(39,"uds-translate"),g(40,"Os Managers"),d()(),l(41,"a",3),b("click",function(){return o.toggleConnectivity()}),I(42,"img",2),l(43,"span")(44,"uds-translate"),g(45,"Connectivity"),d(),l(46,"i",4),g(47,"arrow_drop_down"),d()()(),l(48,"div",5)(49,"a",11),I(50,"img",2),l(51,"uds-translate"),g(52,"Transports"),d()(),l(53,"a",12),I(54,"img",2),l(55,"uds-translate"),g(56,"Networks"),d()(),l(57,"a",13),I(58,"img",2),l(59,"uds-translate"),g(60,"Tunnels"),d()()(),l(61,"a",3),b("click",function(){return o.togglePools()}),I(62,"img",2),l(63,"span")(64,"uds-translate"),g(65,"Pools"),d(),l(66,"i",4),g(67,"arrow_drop_down"),d()()(),l(68,"div",5)(69,"a",14),I(70,"img",2),l(71,"uds-translate"),g(72,"Service pools"),d()(),l(73,"a",15),I(74,"img",2),l(75,"uds-translate"),g(76,"Meta pools"),d()(),x(77,iQ,4,1,"a",16),l(78,"a",17),I(79,"img",2),l(80,"uds-translate"),g(81,"Calendars"),d()(),l(82,"a",18),I(83,"img",2),l(84,"uds-translate"),g(85,"Accounting"),d()()(),x(86,nQ,7,1,"a",19),l(87,"div",5)(88,"a",20),I(89,"img",2),l(90,"uds-translate"),g(91,"Gallery"),d()(),l(92,"a",21),I(93,"img",2),l(94,"uds-translate"),g(95,"Reports"),d()(),l(96,"a",22),I(97,"img",2),l(98,"uds-translate"),g(99,"Notifiers"),d()(),l(100,"a",3),b("click",function(){return o.tokensShown=!o.tokensShown}),I(101,"img",2),l(102,"span")(103,"uds-translate"),g(104,"Tokens"),d(),l(105,"i",4),g(106,"arrow_drop_down"),d()()(),l(107,"div",23)(108,"a",24),I(109,"img",2),l(110,"uds-translate"),g(111,"Actor"),d()(),l(112,"a",25),I(113,"img",2),l(114,"uds-translate"),g(115,"Servers"),d()()(),l(116,"a",26),I(117,"img",2),l(118,"uds-translate"),g(119,"Configuration"),d()(),l(120,"a",3),b("click",function(){return o.flushCache()}),I(121,"img",2),l(122,"uds-translate"),g(123,"Flush Cache"),d()()()()),n&2&&(m(2),p("src",o.icon("dashboard-monitor"),Ee),m(4),p("src",o.icon("providers"),Ee),m(6),p("hidden",!o.servicesShown),m(2),p("src",o.icon("providers"),Ee),m(4),p("src",o.icon("servers"),Ee),m(4),p("src",o.icon("authentication"),Ee),m(6),p("hidden",!o.authsShown),m(2),p("src",o.icon("authenticators"),Ee),m(4),p("src",o.icon("mfas"),Ee),m(4),p("src",o.icon("osmanagers"),Ee),m(4),p("src",o.icon("connectivity"),Ee),m(6),p("hidden",!o.connectivityShown),m(2),p("src",o.icon("transports"),Ee),m(4),p("src",o.icon("networks"),Ee),m(4),p("src",o.icon("tunnels"),Ee),m(4),p("src",o.icon("poolsmenu"),Ee),m(6),p("hidden",!o.poolsShown),m(2),p("src",o.icon("pools"),Ee),m(4),p("src",o.icon("metas"),Ee),m(3),p("ngIf",o.api.user.isAdmin),m(2),p("src",o.icon("calendars"),Ee),m(4),p("src",o.icon("accounts"),Ee),m(3),p("ngIf",o.api.user.isAdmin),m(),p("hidden",!o.configShown),m(2),p("src",o.icon("gallery"),Ee),m(4),p("src",o.icon("reports"),Ee),m(4),p("src",o.icon("notifiers"),Ee),m(4),p("src",o.icon("tokens"),Ee),m(6),p("hidden",!o.tokensShown),m(2),p("src",o.icon("actors"),Ee),m(4),p("src",o.icon("servers"),Ee),m(4),p("src",o.icon("configuration"),Ee),m(4),p("src",o.icon("flush-cache"),Ee))},dependencies:[he,gi,va,ce],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:3.7rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:15rem;color:transparent;-moz-transition:color .5s cubic-bezier(.86,0,.07,1);transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem;justify-content:left;justify-items:center;padding-left:1rem;text-decoration:none}.sidebar[_ngcontent-%COMP%]:hover{width:15rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em -.5rem 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']});let i=e;return i})();function rQ(i,e){if(i&1&&I(0,"div",1),i&2){let r=_();p("innerHTML",r.messages,Gt)}}var yO=(()=>{let e=class e{constructor(t){this.api=t,this.messages="",this.visible=!1}ngOnInit(){let t=n=>n.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1");if(this.api.notices.length>0){let n='
';this.messages='
'+n+this.api.notices.map(t).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&x(0,rQ,1,1,"div",0),n&2&&p("ngIf",o.visible)},dependencies:[he],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]});let i=e;return i})();var wO=(()=>{let e=class e{constructor(t){this.api=t,this.title="UDS Admin"}get blackTheme(){return this.api.getFromStorage("blackTheme")==="true"}set blackTheme(t){this.api.putOnStorage("blackTheme",t.toString())}handleKeyboardEvent(t){t.altKey&&t.ctrlKey&&t.key==="b"&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){this.api.switchTheme(this.blackTheme)}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&b("keydown",function(s){return o.handleKeyboardEvent(s)},!1,sS)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(I(0,"uds-navbar")(1,"uds-sidebar"),l(2,"div",0)(3,"div",1),I(4,"uds-notices")(5,"router-outlet"),d(),l(6,"div",2),I(7,"uds-footer"),d()())},dependencies:[f0,_O,vO,bO,yO],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]});let i=e;return i})();var CO=(()=>{let e=class e extends xa{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var xO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","autocomplete"]],template:function(n,o){n&1&&(l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("autocomplete","new-"+o.field.name))},dependencies:[ct,we,Oi,us,De,ge,Ae,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();function sQ(i,e){if(i&1&&(l(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}var DO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.values=[]}ngOnInit(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=t.map(n=>n.text)}_filter(){let t=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"],[3,"value"]],template:function(n,o){if(n&1){let a=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"mat-autocomplete",null,0),x(5,sQ,2,2,"mat-option",1),d(),l(6,"input",2),H("ngModelChange",function(c){return y(a),$(o.field.value,c)||(o.field.value=c),w(c)}),b("change",function(){return y(a),w(o.changed.emit(o))}),d()()}if(n&2){let a=Ie(4);m(2),P(" ",o.field.gui.label," "),m(3),p("ngForOf",o._filter()),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",a)("autocomplete","new-"+o.field.name)}},dependencies:[$e,ct,we,Oi,us,De,ge,Ae,ft,it,Bc,fs],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var SO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always"],["matInput","","type","number",3,"ngModelChange","change","ngModel","placeholder","required","disabled"]],template:function(n,o){n&1&&(l(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),l(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[ct,Vn,we,Oi,De,ge,Ae,ft]});let i=e;return i})();var EO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModelChange","change","ngModel","placeholder","required","disabled","type"],["matSuffix","","mat-icon-button","",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(l(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),l(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d(),l(4,"button",2),b("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),l(5,"i",3),g(6),d()()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),He(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[ct,we,Oi,De,Wi,ge,Ae,oo,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var IO=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(n,o){}});let i=e;return i})();var MO=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:7,consts:[["floatLabel","auto"],["matInput","",3,"ngModelChange","ngModel","placeholder","required","readonly","rows","maxlength"]],template:function(n,o){n&1&&(l(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),l(3,"textarea",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",!!o.field.gui.required)("readonly",o.field.gui.readonly===!0)("rows",o.field.gui.lines||3)("maxlength",o.field.gui.length||255))},dependencies:[ct,we,Oi,us,De,ge,Ae,ft]});let i=e;return i})();function cQ(i,e){if(i&1&&(l(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}var TO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.filter=""}setValue(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",t.length>0&&!t.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}ngOnInit(){this.setValue()}filteredValues(){let t=this.field.gui.choices||[];if(this.setValue(),!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:9,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),l(4,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),x(5,cQ,2,2,"mat-option",2),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),p("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,we,Oi,De,ge,Ae,vt,it,di]});let i=e;return i})();function lQ(i,e){if(i&1&&(l(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}var kO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||new Array}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter||t.length===0)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let t=this.field.value||[],n="";t.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of t)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(a=>a.id===o)?.text||o;return n}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),l(4,"mat-select-trigger"),g(5),d(),l(6,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),x(7,lQ,2,2,"mat-option",2),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),P(" ",o.selectTriggerString()," "),m(),p("options",o.field.gui.choices),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,we,Oi,De,ge,Ae,vt,rf,it,di]});let i=e;return i})();function dQ(i,e){if(i&1){let r=A();l(0,"div",12)(1,"div",13),g(2),d(),l(3,"div",14),g(4," \xA0"),l(5,"a",15),b("click",function(){let n=y(r).index,o=_();return w(o.removeElement(n))}),l(6,"i",16),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;m(2),P(" ",r," ")}}var AO=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.values=[],this.input="",this.done=new Jt,this.data.values.forEach(s=>this.values.push(s))}static launch(t,n,o){let a=window.innerWidth<800?"50%":"30%";return t.gui.dialog.open(e,{width:a,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(t=>{this.values.push(t)}),this.input=""}checkKey(t){t.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(t){this.values.splice(t,1)}save(){this.data.values.length=0,this.values.forEach(t=>this.data.values.push(t)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"keyup","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(l(0,"h4",0),g(1),d(),l(2,"mat-dialog-content")(3,"div",1)(4,"div",2),x(5,dQ,8,1,"div",3),d(),l(6,"div",4)(7,"button",5),b("click",function(){return o.removeAll()}),l(8,"uds-translate"),g(9,"Remove all"),d()()(),l(10,"div",6)(11,"mat-form-field",7)(12,"input",8),b("keyup",function(s){return o.checkKey(s)}),H("ngModelChange",function(s){return $(o.input,s)||(o.input=s),s}),d(),l(13,"button",9),b("click",function(){return o.addElements()}),l(14,"i",10),g(15,"add"),d()()()()()(),l(16,"mat-dialog-actions")(17,"button",5),b("click",function(){return o.cancel()}),l(18,"uds-translate"),g(19,"Cancel"),d()(),l(20,"button",11),b("click",function(){return o.save()}),l(21,"uds-translate"),g(22,"Ok"),d()()()),n&2&&(m(),P(" ",o.data.title,` -`),m(4),p("ngForOf",o.values),m(7),U("ngModel",o.input))},dependencies:[$e,ct,we,De,ke,Wi,Xe,et,Je,ge,oo,ft,ce],styles:[".content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem;margin-bottom:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var OO=(()=>{let e=class e{constructor(t){this.api=t,this.field={},this.changed=new T}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return q(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let t=yield AO.launch(this.api,this.field.gui.label,this.field.value||this.field.gui.default||[]);this.changed.emit({field:this.field})})}getValue(){if(this.valueEmpty())return"";let t=this.field.value.filter((n,o,a)=>o<5).join(", ");return this.field.value.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),t}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always",3,"click"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled"]],template:function(n,o){n&1&&(l(0,"mat-form-field",0),b("click",function(){return o.launch()}),l(1,"mat-label"),g(2),d(),I(3,"input",1),d()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),p("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ge,Ae,ft],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]});let i=e;return i})();var RO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){lM(this.field.value)?this.field.value=lp(this.field.gui.default):this.field.value=lp(this.field.value)}getValue(){return lp(this.field.value)?django.gettext("Yes"):django.gettext("No")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:3,vars:4,consts:[[1,"toggle"],[3,"ngModelChange","change","ngModel","required","disabled"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"mat-slide-toggle",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),g(2),d()()),n&2&&(m(),U("ngModel",o.field.value),p("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),P(" ",o.field.gui.label," "))},dependencies:[we,Oi,De,nr]});let i=e;return i})();function uQ(i,e){if(i&1&&I(0,"div",5),i&2){let r=_().$implicit,t=_();p("innerHTML",t.asIcon(r),Gt)}}function mQ(i,e){if(i&1&&(l(0,"div"),x(1,uQ,1,1,"div",4),d()),i&2){let r=e.$implicit,t=_();m(),p("ngIf",r.id===t.field.value)}}function hQ(i,e){if(i&1&&(l(0,"mat-option",6),I(1,"div",5),d()),i&2){let r=e.$implicit,t=_();p("value",r.id),m(),p("innerHTML",t.asIcon(r),Gt)}}var PO=(()=>{let e=class e{constructor(t){this.api=t,this.field={},this.changed=new T,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let t=this.field.gui.choices||[];this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}asIcon(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[4,"ngFor","ngForOf"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"value"]],template:function(n,o){n&1&&(l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"mat-select",0),b("valueChange",function(){return o.changed.emit(o)}),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),l(4,"mat-select-trigger"),x(5,mQ,2,1,"div",1),d(),l(6,"uds-cond-select-search",2),b("changed",function(s){return o.filter=s}),d(),x(7,hQ,2,2,"mat-option",3),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),p("placeholder",o.field.gui.tooltip),U("ngModel",o.field.value),p("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),p("ngForOf",o.field.gui.choices),m(),p("options",o.field.gui.choices),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,he,we,Oi,De,ge,Ae,vt,rf,it,di]});let i=e;return i})();var FO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.value=new Date}get date(){return this.value}set date(t){this.value!==t&&(this.value=t,this.field.value=_a("%Y-%m-%d",this.value))}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"",this.field.value==="2000-01-01"?this.field.value=_a("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=_a("%Y-12-31"));let t=this.field.value.split("-");t.length===3&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["endDatePicker",""],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder","disabled"],["matSuffix","",3,"for"]],template:function(n,o){if(n&1){let a=A();l(0,"mat-form-field",1)(1,"mat-label"),g(2),d(),l(3,"input",2),H("ngModelChange",function(c){return y(a),$(o.date,c)||(o.date=c),w(c)}),d(),I(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let a=Ie(6);m(2),P(" ",o.field.gui.label," "),m(),p("matDatepicker",a),U("ngModel",o.date),p("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),p("for",a)}},dependencies:[ct,we,De,ge,Ae,oo,ft,Kf,$c,Ud]});let i=e;return i})();function pQ(i,e){if(i&1){let r=A();l(0,"mat-chip-row",5),b("removed",function(){let n=y(r).$implicit,o=_();return w(o.remove(n))}),g(1),l(2,"i",6),g(3,"cancel"),d()()}if(i&2){let r=e.$implicit,t=_();p("removable",t.field.gui.readonly!==!0),m(),P(" ",r," ")}}var NO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((t,n,o)=>{t.trim()===""&&o.splice(n,1)})}add(t){let n=t.input,o=t.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(t){if(!this.field.value){console.warn("Trying to remove tag from field with no values: "+this.field.name);return}let n=this.field.value.indexOf(t);n>=0&&this.field.value.splice(n,1)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable","removed",4,"ngFor","ngForOf"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1){let a=A();l(0,"mat-form-field",1)(1,"mat-label"),g(2),d(),l(3,"mat-chip-grid",2,0),b("change",function(){return y(a),w(o.changed.emit(o))}),x(5,pQ,4,2,"mat-chip-row",3),l(6,"input",4),b("matChipInputTokenEnd",function(c){return y(a),w(o.add(c))}),d()()()}if(n&2){let a=Ie(4);m(2),P(" ",o.field.gui.label," "),m(),p("disabled",o.field.gui.readonly===!0),m(2),p("ngForOf",o.field.value),m(),p("placeholder",o.field.gui.tooltip)("matChipInputFor",a)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[$e,ge,Ae,lO,dO,cO,iC],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]});let i=e;return i})();var wSe=Zd(jO());var BO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e,bootstrap:[wO]}),e.\u0275inj=J({providers:[z,X,{provide:xa,useClass:CO},rI(aI())],imports:[fh,IA,nO,gO,dT.forRoot({echarts:()=>import("./chunk-TAOUYBKI.js")})]});let i=e;return i})();fE(Ap,function(){return[tc,rh,tr,xO,SO,EO,IO,MO,TO,kO,OO,RO,PO,FO,NO,DO]},[]);Pp.production&&void 0;pI().bootstrapModule(BO).catch(i=>console.log(i)); +`))},dependencies:[Cn],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let i=e;return i})();function ow(i){return i?.nodeName==="TD"}function rw(i){let e;return ow(i)?e=i:ow(i.parentNode)?e=i.parentNode:ow(i.parentNode?.parentNode)&&(e=i.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function aw(i,e,r){return r!==null&&e!==r&&i=e&&i===r}function cw(i,e,r,t){return t&&e!==null&&r!==null&&e!==r&&i>=e&&i<=r}function Uk(i){let e=i.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var lo=class{constructor(e,r){this.start=e,this.end=r}},jd=(()=>{let e=class e{constructor(t,n){this.selection=t,this._adapter=n,this._selectionChanged=new W,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,n){let o=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}};e.\u0275fac=function(n){Za()},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),G7=(()=>{let e=class e extends jd{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let t=new e(this._adapter);return t.updateSelection(this.selection,this),t}};e.\u0275fac=function(n){return new(n||e)(M(Ai))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function q7(i,e){return i||new G7(e)}var Qk={provide:jd,deps:[[new Yn,new bo,jd],Ai],useFactory:q7};var Kk=new O("MAT_DATE_RANGE_SELECTION_STRATEGY");var lw=7,Y7=0,Hk=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof lo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a,s){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rangeStrategy=s,this._rerenderSubscription=Ce.EMPTY,this.activeDrag=null,this.selectedChange=new T,this._userSelection=new T,this.dragStarted=new T,this.dragEnded=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnChanges(t){let n=t.comparisonStart||t.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){let n=t.value,o=this._getDateFromDayOfMonth(n),a,s;this._selected instanceof lo?(a=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):a=s=this._getDateInCurrentMonth(this._selected),(a!==n||s!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&t.preventDefault();return;case 27:this._previewEnd!=null&&!Rt(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(lw+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%lw,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,a=this._rangeStrategy.createPreview(o,this.selected,t);if(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end),this.activeDrag&&o){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,t);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:n??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){let t=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map((s,c)=>({long:s,narrow:n[c],id:Y7++}));this._weekdays=a.slice(t).concat(a.slice(0,t))}_createWeekCells(){let t=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,a=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,n){return!!(t&&n&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n))}_getCellCompareValue(t){if(t){let n=this._dateAdapter.getYear(t),o=this._dateAdapter.getMonth(t),a=this._dateAdapter.getDate(t);return new Date(n,o,a).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(t){t instanceof lo?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(n){return new(n||e)(h(me),h(ha,8),h(Ai,8),h(kt,8),h(Kk,8))},e.\u0275cmp=S({type:e,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&le(Uc,5),n&2){let a;Q(a=K())&&(o._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[Qe,re],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(n,o){n&1&&(l(0,"table",0)(1,"thead",1)(2,"tr"),_r(3,R7,5,2,"th",2,Yk),d(),l(5,"tr",3),I(6,"th",4),d()(),l(7,"tbody",5),b("selectedValueChange",function(s){return o._dateSelected(s)})("activeDateChange",function(s){return o._updateActiveDate(s)})("previewChange",function(s){return o._previewChanged(s)})("dragStarted",function(s){return o.dragStarted.emit(s)})("dragEnded",function(s){return o._dragEnded(s)})("keyup",function(s){return o._handleCalendarBodyKeyup(s)})("keydown",function(s){return o._handleCalendarBodyKeydown(s)}),d()()),n&2&&(m(3),vr(o._weekdays),m(4),p("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[Uc],encapsulation:2,changeDetection:0});let i=e;return i})(),Bn=24,dw=4,$k=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),Zk(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof lo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o){this._changeDetectorRef=t,this._dateAdapter=n,this._dir=o,this._rerenderSubscription=Ce.EMPTY,this.selectedChange=new T,this.yearSelected=new T,this.activeDateChange=new T,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let n=this._dateAdapter.getYear(this._activeDate)-Ld(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){let n=t.value,o=this._dateAdapter.createDate(n,0,1),a=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-dw);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,dw);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Ld(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Bn-Ld(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-Bn*10:-Bn);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?Bn*10:Bn);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return Ld(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));return this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(t){let n=this._dateAdapter.createDate(t,0,1),o=this._dateAdapter.getYearName(n),a=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new Vd(t,o,o,this._shouldEnableYear(t),a)}_shouldEnableYear(t){if(t==null||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){t instanceof lo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,n,o,a){this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=o,this._dir=a,this._rerenderSubscription=Ce.EMPTY,this.selectedChange=new T,this.monthSelected=new T,this.activeDateChange=new T,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){let n=t.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let a=this._getDateFromMonth(n);this.selectedChange.emit(a)}_updateActiveDate(t){let n=t.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let n=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,t[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(t,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),a=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(o,"year"):void 0;return new Vd(t,n.toLocaleUpperCase(),a,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){let n=this._dateAdapter.getYear(this.activeDate);if(t==null||this._isYearAndMonthAfterMaxDate(n,t)||this._isYearAndMonthBeforeMinDate(n,t))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,t,1);for(let a=o;this._dateAdapter.getMonth(a)==t;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(t,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return t>o||t===o&&n>a}return!1}_isYearAndMonthBeforeMinDate(t,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return t{let e=class e{constructor(t,n,o,a,s){this._intl=t,this.calendar=n,this._dateAdapter=o,this._dateFormats=a,this._id=`mat-calendar-header-${K7++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Bn)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Bn)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(n):Zk(this._dateAdapter,t,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-Ld(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Bn-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[a,s]}};e.\u0275fac=function(n){return new(n||e)(h(Bd),h(Wt(()=>uw)),h(Ai,8),h(ha,8),h(me))},e.\u0275cmp=S({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[re],ngContentSelectors:P7,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(n,o){n&1&&(Ue(),l(0,"div",0)(1,"div",1)(2,"label",2),g(3),d(),l(4,"button",3),b("click",function(){return o.currentPeriodClicked()}),l(5,"span",4),g(6),d(),vi(),l(7,"svg",5),I(8,"polygon",6),d()(),Zr(),I(9,"div",7),ae(10),l(11,"button",8),b("click",function(){return o.previousClicked()}),d(),l(12,"button",9),b("click",function(){return o.nextClicked()}),d()()()),n&2&&(m(2),p("id",o._periodButtonLabelId),m(),He(o.periodButtonDescription),m(),ie("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),He(o.periodButtonText),m(),ne("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),p("disabled",!o.previousEnabled()),ie("aria-label",o.prevButtonLabel),m(),p("disabled",!o.nextEnabled()),ie("aria-label",o.nextButtonLabel))},dependencies:[ke,Wi],encapsulation:2,changeDetection:0});let i=e;return i})(),uw=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){t instanceof lo?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){let n=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}constructor(t,n,o,a){this._dateAdapter=n,this._dateFormats=o,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new T,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this._userSelection=new T,this._userDragDrop=new T,this._activeDrag=null,this.stateChanges=new W,this._intlChanges=t.changes.subscribe(()=>{a.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Dn(this.headerComponent||Jk),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){let n=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,o=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,a=n||o||t.dateFilter;if(a&&!a.firstChange){let s=this._getCurrentViewComponent();s&&(this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(t){let n=t.value;(this.selected instanceof lo||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,n){this.activeDate=t,this.currentView=n}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(n){return new(n||e)(h(Bd),h(Ai,8),h(ha,8),h(me))},e.\u0275cmp=S({type:e,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(le(Hk,5),le(Wk,5),le($k,5)),n&2){let a;Q(a=K())&&(o.monthView=a.first),Q(a=K())&&(o.yearView=a.first),Q(a=K())&&(o.multiYearView=a.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[be([Qk]),Qe,re],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(n,o){if(n&1&&(D(0,F7,0,0,"ng-template",0),l(1,"div",1),D(2,N7,1,11,"mat-month-view",2)(3,L7,1,6,"mat-year-view",3)(4,V7,1,6,"mat-multi-year-view",3),d()),n&2){let a;p("cdkPortalOutlet",o._calendarHeaderPortal),m(2),xe((a=o.currentView)==="month"?2:a==="year"?3:a==="multi-year"?4:-1)}},dependencies:[tn,Zh,Hk,Wk,$k],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})(),Gk={transformPanel:li("transformPanel",[xt("void => enter-dropdown",Et("120ms cubic-bezier(0, 0, 0.2, 1)",fa([Me({opacity:0,transform:"scale(1, 0.8)"}),Me({opacity:1,transform:"scale(1, 1)"})]))),xt("void => enter-dialog",Et("150ms cubic-bezier(0, 0, 0.2, 1)",fa([Me({opacity:0,transform:"scale(0.7)"}),Me({transform:"none",opacity:1})]))),xt("* => void",Et("100ms linear",Me({opacity:0})))]),fadeInCalendar:li("fadeInCalendar",[Pt("void",Me({opacity:0})),Pt("enter",Me({opacity:1})),xt("void => *",Et("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Z7=0,eA=new O("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=k(Ct);return()=>i.scrollStrategies.reposition()}});function X7(i){return()=>i.scrollStrategies.reposition()}var J7={provide:eA,deps:[Ct],useFactory:X7},tA=(()=>{let e=class e{constructor(t,n,o,a,s,c){this._elementRef=t,this._changeDetectorRef=n,this._globalModel=o,this._dateAdapter=a,this._rangeSelectionStrategy=s,this._subscriptions=new Ce,this._animationDone=new W,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=c.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){let n=this._model.selection,o=t.value,a=n instanceof lo;if(a&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(o,n,t.event);this._model.updateSelection(s,this)}else o&&(a||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating=t.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(t,n){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,n&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(jd),h(Ai),h(Kk,8),h(Bd))},e.\u0275cmp=S({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&le(uw,5),n&2){let a;Q(a=K())&&(o._calendar=a.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(n,o){n&1&&Cl("@transformPanel.start",function(s){return o._handleAnimationEvent(s)})("@transformPanel.done",function(s){return o._handleAnimationEvent(s)}),n&2&&(wl("@transformPanel",o._animationState),qt(o.color?"mat-"+o.color:""),ne("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[re],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){if(n&1&&(l(0,"div",0)(1,"mat-calendar",1),b("yearSelected",function(s){return o.datepicker._selectYear(s)})("monthSelected",function(s){return o.datepicker._selectMonth(s)})("viewChanged",function(s){return o.datepicker._viewChanged(s)})("_userSelection",function(s){return o._handleUserSelection(s)})("_userDragDrop",function(s){return o._handleUserDragDrop(s)}),d(),D(2,j7,0,0,"ng-template",2),l(3,"button",3),b("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),g(4),d()()),n&2){let a;ne("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ie("aria-modal",!0)("aria-labelledby",(a=o._dialogLabelId)!==null&&a!==void 0?a:void 0),m(),qt(o.datepicker.panelClass),p("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),p("cdkPortalOutlet",o._actionsPortal),m(),ne("cdk-visually-hidden",!o._closeButtonFocused),p("color",o.color||"primary"),m(),He(o._closeButtonText)}},dependencies:[T1,uw,tn,ke],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Gk.transformPanel,Gk.fadeInCalendar]},changeDetection:0});let i=e;return i})(),qk=(()=>{let e=class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=i1(t)}get opened(){return this._opened}set opened(t){t?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(t,n,o,a,s,c,u){this._overlay=t,this._viewContainerRef=o,this._dateAdapter=s,this._dir=c,this._model=u,this._inputStateChanges=Ce.EMPTY,this._document=k(se),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new T,this.monthSelected=new T,this.viewChanged=new T(!0),this.openedStream=new T,this.closedStream=new T,this._opened=!1,this.id=`mat-datepicker-${Z7++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new W,this._injector=k(Pe),this._dateAdapter,this._scrollStrategy=a}ngOnChanges(t){let n=t.xPosition||t.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof cd&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal,this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=aa(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let t=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:a}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(It(1)).subscribe(()=>{let s=this._document.activeElement;t&&(!s||s===this._document.activeElement||a.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let t=this.touchUi,n=new Dn(tA,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new Sn({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${t?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(a=>{a&&a.preventDefault(),this.close()}),o.keydownEvents().subscribe(a=>{let s=a.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&a.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),t||ri(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",a=this.yPosition==="above"?"bottom":"top",s=a==="top"?"bottom":"top";return t.withPositions([{originX:n,originY:s,overlayX:n,overlayY:a},{originX:n,originY:a,overlayX:n,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s}])}_getCloseStream(t){let n=["ctrlKey","shiftKey","metaKey"];return yt(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(qe(o=>o.keyCode===27&&!Rt(o)||this.datepickerInput&&Rt(o,"altKey")&&o.keyCode===38&&n.every(a=>!Rt(o,a)))))}};e.\u0275fac=function(n){return new(n||e)(h(Ct),h(Z),h(wt),h(eA),h(Ai,8),h(kt,8),h(jd))},e.\u0275dir=N({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Y],disabled:[2,"disabled","disabled",Y],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Y],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Y]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ue,Qe]});let i=e;return i})(),qf=(()=>{let e=class e extends qk{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275cmp=S({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[be([Qk,{provide:qk,useExisting:e}]),ve,re],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0});let i=e;return i})(),zc=class{constructor(e,r){this.target=e,this.targetElement=r,this.value=this.target.value}},e9=(()=>{let e=class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){let n=t,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){let o=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new zc(this,this._elementRef.nativeElement)),this.dateChange.emit(new zc(this,this._elementRef.nativeElement))}})}constructor(t,n,o){this._elementRef=t,this._dateAdapter=n,this._dateFormats=o,this.dateChange=new T,this.dateInput=new T,this.stateChanges=new W,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Ce.EMPTY,this._localeSubscription=Ce.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),c=this._getMinDate();return!c||!s||this._dateAdapter.compareDate(c,s)<=0?null:{matDatepickerMin:{min:c,actual:s}}},this._maxValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),c=this._getMaxDate();return!c||!s||this._dateAdapter.compareDate(c,s)>=0?null:{matDatepickerMax:{max:c,actual:s}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){t9(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){let n=["ctrlKey","shiftKey","metaKey"];Rt(t,"altKey")&&t.keyCode===40&&n.every(a=>!Rt(t,a))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){let n=this._lastValueValid,o=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(t&&!this.value&&this._cvaOnChange(o),n!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new zc(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new zc(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t!=null?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){let n=this._getDateFilter();return!n||n(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Ai,8),h(ha,8))},e.\u0275dir=N({type:e,inputs:{value:"value",disabled:[2,"disabled","disabled",Y]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[ue,Qe]});let i=e;return i})();function t9(i,e){let r=Object.keys(i);for(let t of r){let{previousValue:n,currentValue:o}=i[t];if(e.isDateInstance(n)&&e.isDateInstance(o)){if(!e.sameDate(n,o))return!0}else return!0}return!1}var i9={provide:qi,useExisting:Wt(()=>Hc),multi:!0},n9={provide:no,useExisting:Wt(()=>Hc),multi:!0},Hc=(()=>{let e=class e extends e9{set matDatepicker(t){t&&(this._datepicker=t,this._closedSubscription=t.closedStream.subscribe(()=>this._onTouched()),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}get max(){return this._max}set max(t){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){let n=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}constructor(t,n,o,a){super(t,n,o),this._formField=a,this._closedSubscription=Ce.EMPTY,this._validator=er.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Ai,8),h(ha,8),h(Mo,8))},e.\u0275dir=N({type:e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&b("input",function(s){return o._onInput(s.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(s){return o._onKeydown(s)}),n&2&&(Di("disabled",o.disabled),ie("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",(o._datepicker==null?null:o._datepicker.opened)&&o._datepicker.id||null)("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[be([i9,n9,{provide:Ly,useExisting:e}]),ve]});let i=e;return i})(),o9=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let i=e;return i})(),zd=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=t}constructor(t,n,o){this._intl=t,this._changeDetectorRef=n,this._stateChanges=Ce.EMPTY;let a=Number(o);this.tabIndex=a||a===0?a:null}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){let t=this.datepicker?this.datepicker.stateChanges:oe(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:oe(),o=this.datepicker?yt(this.datepicker.openedStream,this.datepicker.closedStream):oe();this._stateChanges.unsubscribe(),this._stateChanges=yt(this._intl.changes,t,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(Bd),h(me),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,o9,5),n&2){let s;Q(s=K())&&(o._customIcon=s.first)}},viewQuery:function(n,o){if(n&1&&le(B7,5),n&2){let a;Q(a=K())&&(o._button=a.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&b("click",function(s){return o._open(s)}),n&2&&(ie("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),ne("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Y],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[ue,Qe,re],ngContentSelectors:U7,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(Ue(z7),l(0,"button",1,0),D(2,H7,2,0,":svg:svg",2),ae(3),d()),n&2&&(p("disabled",o.disabled)("disableRipple",o.disableRipple),ie("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),m(2),xe(o._customIcon?-1:2))},dependencies:[Wi],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let i=e;return i})();var iA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Bd,J7],imports:[Si,Jo,on,Sc,Ln,pe,tA,zd,Jk,to]});let i=e;return i})();var r9=["button"],a9=["*"];function s9(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}function c9(i,e){if(i&1&&I(0,"mat-pseudo-checkbox",3),i&2){let r=_();p("disabled",r.disabled)}}var oA=new O("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:l9});function l9(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var rA=new O("MatButtonToggleGroup"),d9={provide:qi,useExisting:Wt(()=>hw),multi:!0},aA=0,Yf=class{constructor(e,r){this.source=e,this.value=r}},hw=(()=>{let e=class e{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(n=>n.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}constructor(t,n,o){this._changeDetector=t,this._dir=o,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${aA++}`,this.valueChange=new T,this.change=new T,this.appearance=n&&n.appearance?n.appearance:"standard",this.hideSingleSelectionIndicator=n?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=n?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new So(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let o=t.target.id,a=this._buttonToggles.toArray().findIndex(c=>c.buttonId===o),s;switch(t.keyCode){case 32:case 13:s=this._buttonToggles.get(a);break;case 38:s=this._buttonToggles.get(this._getNextIndex(a,-1));break;case 37:s=this._buttonToggles.get(this._getNextIndex(a,this.dir==="ltr"?-1:1));break;case 40:s=this._buttonToggles.get(this._getNextIndex(a,1));break;case 39:s=this._buttonToggles.get(this._getNextIndex(a,this.dir==="ltr"?1:-1));break;default:return}t.preventDefault(),s?._onButtonClick(),s?.focus()}_emitChangeEvent(t){let n=new Yf(t,this.value);this._rawValue=n.value,this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(t,n,o=!1,a=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(t):this._selectionModel.deselect(t):a=!0,a?Promise.resolve().then(()=>this._updateModelValue(t,o)):this._updateModelValue(t,o)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>t.value!=null&&n===t.value):t.value===this._rawValue}_initializeTabIndex(){this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected?this.selected.tabIndex=0:this._buttonToggles.length>0&&(this._buttonToggles.get(0).tabIndex=0),this._markButtonsForCheck()}_getNextIndex(t,n){let o=t+n;return o===this._buttonToggles.length&&(o=0),o===-1&&(o=this._buttonToggles.length-1),o}_setSelectionByValue(t){this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(n=>this._selectValue(n))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t){let n=this._buttonToggles.find(o=>o.value!=null&&o.value===t);n&&(n.checked=!0,this._selectionModel.select(n),this.multiple||(n.tabIndex=0))}_updateModelValue(t,n){n&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}};e.\u0275fac=function(n){return new(n||e)(h(me),h(oA,8),h(kt,8))},e.\u0275dir=N({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Qf,5),n&2){let s;Q(s=K())&&(o._buttonToggles=s)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)}),n&2&&(ie("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),ne("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",Y],value:"value",multiple:[2,"multiple","multiple",Y],disabled:[2,"disabled","disabled",Y],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Y],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",Y]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[be([d9,{provide:rA,useExisting:e}]),ue]});let i=e;return i})(),Qf=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}constructor(t,n,o,a,s,c){this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=a,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T;let u=Number(s);this.tabIndex=u||u===0?u:null,this.buttonToggleGroup=t,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${aA++}`,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new Yf(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(n){return new(n||e)(h(rA,8),h(me),h(G),h(wi),mi("tabindex"),h(oA,8))},e.\u0275cmp=S({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&le(r9,5),n&2){let a;Q(a=K())&&(o._buttonElement=a.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()}),n&2&&(ie("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),ne("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-appearance-standard",o.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",Y],appearance:"appearance",checked:[2,"checked","checked",Y],disabled:[2,"disabled","disabled",Y]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[ue,re],ngContentSelectors:a9,decls:8,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){if(n&1){let a=A();Ue(),l(0,"button",1,0),b("click",function(){return y(a),w(o._onButtonClick())}),l(2,"span",2),D(3,s9,1,1,"mat-pseudo-checkbox",3)(4,c9,1,1,"mat-pseudo-checkbox",3),ae(5),d()(),I(6,"span",4)(7,"span",5)}if(n&2){let a=Ie(1);p("id",o.buttonId)("disabled",o.disabled||null),ie("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),m(3),xe(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),m(),xe(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),m(3),p("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Mn,G0],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);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.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)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .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-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.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}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .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-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[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-standard-button-toggle-divider-color)}.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-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):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-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.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-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .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-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0});let i=e;return i})(),sA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,Ir,Qf,pe]});let i=e;return i})();function m9(i,e){i&1&&(l(0,"uds-translate"),g(1,"Edit rule"),d())}function h9(i,e){i&1&&(l(0,"uds-translate"),g(1,"New rule"),d())}function p9(i,e){if(i&1&&(l(0,"mat-option",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function f9(i,e){if(i&1&&(l(0,"mat-option",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function g9(i,e){if(i&1&&(l(0,"mat-button-toggle",22),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.value," ")}}function _9(i,e){if(i&1){let r=A();l(0,"div",23)(1,"span",24)(2,"uds-translate"),g(3,"Weekdays"),d()(),l(4,"mat-button-toggle-group",25),H("ngModelChange",function(n){y(r);let o=_();return $(o.wDays,n)||(o.wDays=n),w(n)}),D(5,g9,2,2,"mat-button-toggle",10),d()()}if(i&2){let r=_();m(4),U("ngModel",r.wDays),m(),p("ngForOf",r.weekDays)}}function v9(i,e){if(i&1){let r=A();l(0,"mat-form-field",11)(1,"mat-label")(2,"uds-translate"),g(3,"Repeat every"),d()(),l(4,"input",8),H("ngModelChange",function(n){y(r);let o=_();return $(o.rule.interval,n)||(o.rule.interval=n),w(n)}),d(),l(5,"div",26),g(6),d()()}if(i&2){let r=_();m(4),U("ngModel",r.rule.interval),m(2),P("\xA0",r.frequency(),"")}}var Kf={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")],NEVER:["","",django.gettext("Never")]},Zf={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},cA=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],lA=(i,e=!1)=>{let r=new Array;for(let t=0;t<7;t++)i&1&&r.push(cA[t].substr(0,e?100:3)),i>>=1;return r.length?r.join(", "):django.gettext("(no days)")},dA=i=>{i.frequency==="WEEKDAYS"?i.interval=lA(i.interval):i.interval=i.interval+" "+Kf[i.frequency][django.pluralidx(i.interval)],i.duration=i.duration+" "+Zf[i.duration_unit]},pw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Zf).map(s=>({id:s,value:Zf[s]})),this.freqs=Object.keys(Kf).map(s=>({id:s,value:Kf[s][2]})),this.weekDays=cA.map((s,c)=>({id:1<{if(this.rule=t,this.startDate=new Date(this.rule.start*1e3),this.startTime=this.startDate.toTimeString().split(":").splice(0,2).join(":"),this.endDate=this.rule.end?new Date(this.rule.end*1e3):null,this.rule.frequency==="WEEKDAYS"){let n=[];for(let o=0;o<7;o++){let a=1<this.rule.interval+=n),this.rule.interval===0)?django.gettext("Week days"):null}summary(){let t=django.gettext("Invalid or incomplete rule. Please, fix field $FIELD"),n=Y0(django.get_format("SHORT_DATE_FORMAT")),o=this.updateRuleData();if(o===null){t=django.gettext("This rule will be valid every"),this.rule.frequency==="WEEKDAYS"?t+=" "+lA(this.rule.interval,!0)+" "+django.gettext("of any week"):t+=" "+ +this.rule.interval+" "+this.frequency();let a=new Date(this.rule.start*1e3);t+=", "+django.gettext("from")+" "+ga(n,a),this.rule.end?t+=" "+django.gettext("until")+" "+ga(n,new Date(this.rule.end*1e3)):t+=" "+django.gettext("onwards"),t+=", "+django.gettext("starting at")+" "+a.toTimeString().split(":").slice(0,2).join(":"),+this.rule.duration>0?t+=" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+Zf[this.rule.duration_unit]:t+=django.gettext("with no duration")}return t.replace("$FIELD",o)}save(){this.rules.save(this.rule).then(()=>{this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-calendar-rule"]],decls:73,vars:22,consts:[["startDatePicker",""],["endDatePicker",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],[1,"oneThird"],["matInput","","type","time",3,"ngModelChange","ngModel"],["matInput","","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel"],["matSuffix","",3,"for"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder"],[1,"weekdays"],[3,"ngModelChange","valueChange","ngModel"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf","ngIfAnd"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click","disabled"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModelChange","ngModel"],["matSuffix",""]],template:function(n,o){if(n&1){let a=A();l(0,"h4",2),D(1,m9,2,0,"uds-translate",3)(2,h9,2,0,"uds-translate",3),d(),l(3,"mat-dialog-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Name"),d()(),l(9,"input",5),H("ngModelChange",function(c){return y(a),$(o.rule.name,c)||(o.rule.name=c),w(c)}),d()(),l(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),g(13,"Comments"),d()(),l(14,"input",5),H("ngModelChange",function(c){return y(a),$(o.rule.comments,c)||(o.rule.comments=c),w(c)}),d()(),l(15,"h3")(16,"uds-translate"),g(17,"Event"),d()(),l(18,"mat-form-field",6)(19,"mat-label")(20,"uds-translate"),g(21,"Start time"),d()(),l(22,"input",7),H("ngModelChange",function(c){return y(a),$(o.startTime,c)||(o.startTime=c),w(c)}),d()(),l(23,"mat-form-field",6)(24,"mat-label")(25,"uds-translate"),g(26,"Duration"),d()(),l(27,"input",8),H("ngModelChange",function(c){return y(a),$(o.rule.duration,c)||(o.rule.duration=c),w(c)}),d()(),l(28,"mat-form-field",6)(29,"mat-label")(30,"uds-translate"),g(31,"Duration units"),d()(),l(32,"mat-select",9),H("ngModelChange",function(c){return y(a),$(o.rule.duration_unit,c)||(o.rule.duration_unit=c),w(c)}),D(33,p9,2,2,"mat-option",10),d()(),l(34,"h3"),g(35," Repetition "),d(),l(36,"mat-form-field",11)(37,"mat-label")(38,"uds-translate"),g(39," Start date "),d()(),l(40,"input",12),H("ngModelChange",function(c){return y(a),$(o.startDate,c)||(o.startDate=c),w(c)}),d(),I(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),d(),l(44,"mat-form-field",11)(45,"mat-label")(46,"uds-translate"),g(47," Repeat until date "),d()(),l(48,"input",14),H("ngModelChange",function(c){return y(a),$(o.endDate,c)||(o.endDate=c),w(c)}),d(),I(49,"mat-datepicker-toggle",13)(50,"mat-datepicker",null,1),d(),l(52,"div",15)(53,"mat-form-field",11)(54,"mat-label")(55,"uds-translate"),g(56,"Frequency"),d()(),l(57,"mat-select",16),H("ngModelChange",function(c){return y(a),$(o.rule.frequency,c)||(o.rule.frequency=c),w(c)}),b("valueChange",function(){return y(a),w(o.rule.interval=1)}),D(58,f9,2,2,"mat-option",10),d()(),D(59,_9,6,2,"div",17)(60,v9,7,2,"mat-form-field",18),d(),l(61,"h3")(62,"uds-translate"),g(63,"Summary"),d()(),l(64,"div",19),g(65),d()()(),l(66,"mat-dialog-actions")(67,"button",20)(68,"uds-translate"),g(69,"Cancel"),d()(),l(70,"button",21),b("click",function(){return y(a),w(o.save())}),l(71,"uds-translate"),g(72,"Ok"),d()()()}if(n&2){let a=Ie(43),s=Ie(51);m(),p("ngIf",o.rule.id),m(),p("ngIf",!o.rule.id),m(7),U("ngModel",o.rule.name),m(5),U("ngModel",o.rule.comments),m(8),U("ngModel",o.startTime),m(5),U("ngModel",o.rule.duration),m(5),U("ngModel",o.rule.duration_unit),m(),p("ngForOf",o.dunits),m(7),p("matDatepicker",a),U("ngModel",o.startDate),m(),p("for",a),m(7),p("matDatepicker",s),U("ngModel",o.endDate),p("placeholder",o.FOREVER_STRING),m(),p("for",s),m(8),U("ngModel",o.rule.frequency),m(),p("ngForOf",o.freqs),m(),p("ngIf",o.rule.frequency==="WEEKDAYS"),m(),p("ngIf",o.rule.frequency!=="WEEKDAYS")("ngIfAnd",o.rule.frequency!=="NEVER"),m(5),P(" ",o.summary()," "),m(5),p("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[$e,he,ct,Vn,we,De,ke,Yt,Xe,et,Je,ge,Ae,oo,ft,vt,it,qf,Hc,zd,hw,Qf,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]});let i=e;return i})();var b9=i=>["/pools","calendars",i];function y9(i,e){i&1&&(l(0,"uds-translate"),g(1,"Rules"),d())}function w9(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),D(4,y9,2,0,"ng-template",9),l(5,"div",10)(6,"uds-table",11),b("newAction",function(n){y(r);let o=_();return w(o.onNewRule(n))})("editAction",function(n){y(r);let o=_();return w(o.onEditRule(n))})("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteRule(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("rest",r.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","calendars-d-rules"+r.calendar.id)("pageSize",r.api.config.admin.page_size)}}var uA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.calendarRules={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("calendar");t&&this.rest.calendars.get(t).then(n=>{this.calendar=n,this.calendarRules=this.rest.calendars.detail(n.id,"rules")})}onNewRule(t){pw.launch(this.api,this.calendarRules).subscribe(()=>t.table.overview())}onEditRule(t){pw.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDeleteRule(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))}processElement(t){dA(t)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","onItem","tableId","pageSize"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,w9,7,7,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,b9,o.calendar?o.calendar.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/calendars.png"),Ee),m(),P(" ",o.calendar==null?null:o.calendar.name," "),m(),p("ngIf",o.calendar))},dependencies:[he,gi,ei,ti,ni,ce,Te],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]});let i=e;return i})();var C9='event'+django.gettext("Set time mark")+"",fw=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:C9,type:ut.SINGLE_SELECT}]}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))}onTimeMark(t){let n=t.table.selection.selected[0];this.api.gui.questionDialog(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).then(o=>{o&&this.rest.accounts.timemark(n.id).then(()=>{this.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})}onDetail(t){this.api.navigation.gotoAccountDetail(t.param.id)}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}processElement(t){t.time_mark=t.time_mark===78793200?django.gettext("No time mark"):Bi("SHORT_DATE_FORMAT",t.time_mark)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"customButtonAction","newAction","editAction","deleteAction","detailAction","loaded","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("customButtonAction",function(s){return o.onTimeMark(s)})("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("detailAction",function(s){return o.onDetail(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Te]});let i=e;return i})();var x9=i=>["/pools","accounts",i];function D9(i,e){i&1&&(l(0,"uds-translate"),g(1,"Account usage"),d())}function S9(i,e){if(i&1){let r=A();l(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),D(4,D9,2,0,"ng-template",9),l(5,"div",10)(6,"uds-table",11),b("deleteAction",function(n){y(r);let o=_();return w(o.onDeleteUsage(n))}),d()()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(4),p("rest",r.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",r.processElement)("tableId","account-d-usage"+r.account.id)}}var mA=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o,this.accountUsage={}}ngOnInit(){let t=this.route.snapshot.paramMap.get("account");t&&this.rest.accounts.get(t).then(n=>{this.account=n,this.accountUsage=this.rest.accounts.detail(n.id,"usage")})}onDeleteUsage(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))}processElement(t){t.running=this.api.boolAsHumanString(t.running)}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","onItem","tableId"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),g(4,"arrow_back"),d()(),g(5," \xA0"),I(6,"img",4),g(7),d(),D(8,S9,7,6,"div",5),d()),n&2&&(m(2),p("routerLink",Li(4,x9,o.account?o.account.id:"")),m(4),p("src",o.api.staticURL("admin/img/icons/accounts.png"),Ee),m(),P(" ",o.account==null?null:o.account.name," "),m(),p("ngIf",o.account))},dependencies:[he,gi,ei,ti,ni,ce,Te]});let i=e;return i})();function E9(i,e){i&1&&(l(0,"uds-translate"),g(1,"New image for"),d())}function I9(i,e){i&1&&(l(0,"uds-translate"),g(1,"Edit for"),d())}var gw=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.onSave=new T(!0),this.preview="",this.image={id:void 0,data:"",name:""},a.image&&(this.image.id=a.image.id)}static launch(t,n=null){let o=window.innerWidth<800?"60%":"40%";return t.gui.dialog.open(e,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave}onFileChanged(t){let n=t.target;if(!n.files||n.files.length===0)return;let o=n.files[0];if(o.size>256*1024){this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));return}if(!["image/jpeg","image/png","image/gif"].includes(o.type)){this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"));return}let a=new FileReader;a.onload=s=>{let c=a.result;this.preview=c,this.image.data=c.substr(c.indexOf("base64,")+7),this.image.name||(this.image.name=o.name)},a.readAsDataURL(o)}ngOnInit(){this.image.id&&this.rest.gallery.get(this.image.id).then(t=>{switch(this.image=t,this.image.data.substr(2)){case"iV":this.preview="data:image/png;base64,"+this.image.data;break;case"/9":this.preview="data:image/jpeg;base64,"+this.image.data;break;default:this.preview="data:image/gif;base64,"+this.image.data}})}background(){let t=this.api.config.image_size[0],n=this.api.config.image_size[1],o={"width.px":t,"height.px":n,"background-size":t+"px "+n+"px","background-image":"none"};return this.preview&&(o["background-image"]="url("+this.preview+")"),o}save(){if(!this.image.name||!this.image.data){this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"));return}this.rest.gallery.save(this.image).then(()=>{this.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),this.dialogRef.close(),this.onSave.emit(!0)})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["fileInput",""],["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModelChange","ngModel"],["type","file",2,"display","none",3,"change"],["matInput","","type","text",3,"click","hidden"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,o){if(n&1){let a=A();l(0,"h4",1),D(1,E9,2,0,"uds-translate",2)(2,I9,2,0,"uds-translate",2),d(),l(3,"mat-dialog-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),g(8,"Image name"),d()(),l(9,"input",4),H("ngModelChange",function(c){return y(a),$(o.image.name,c)||(o.image.name=c),w(c)}),d()(),l(10,"input",5,0),b("change",function(c){return y(a),w(o.onFileChanged(c))}),d(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),g(15,"Image (click to change)"),d()(),l(16,"input",6),b("click",function(){y(a);let c=Ie(11);return w(c.click())}),d(),l(17,"div",7),b("click",function(){y(a);let c=Ie(11);return w(c.click())}),I(18,"div",8),d()(),l(19,"div",9)(20,"uds-translate"),g(21,' For optimal results, use "squared" images. '),d(),l(22,"uds-translate"),g(23," The image will be resized on upload to "),d(),g(24),d()()(),l(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),g(28,"Cancel"),d()(),l(29,"button",11),b("click",function(){return y(a),w(o.save())}),l(30,"uds-translate"),g(31,"Ok"),d()()()}n&2&&(m(),p("ngIf",!o.image.id),m(),p("ngIf",o.image.id),m(7),U("ngModel",o.image.name),m(7),p("hidden",!0),m(2),p("ngStyle",o.background()),m(6),br(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[he,jE,ct,we,De,ke,Yt,Xe,et,Je,ge,Ae,ft,ce],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]});let i=e;return i})();var _w=(()=>{let e=class e{constructor(t,n,o){this.route=t,this.rest=n,this.api=o}ngOnInit(){}onNew(t){gw.launch(this.api).subscribe(()=>t.table.overview())}onEdit(t){gw.launch(this.api,t.table.selection.selected[0]).subscribe(()=>t.table.overview())}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))}onLoad(t){t.param===!0&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}};e.\u0275fac=function(n){return new(n||e)(h(Oe),h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"newAction","editAction","deleteAction","loaded","rest","multiSelect","allowExport","hasPermissions","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)})("loaded",function(s){return o.onLoad(s)}),d()),n&2&&p("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var hA=Kd(Ff());var M9='assessment'+django.gettext("Generate report")+"",pA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n,this.customButtons=[{id:"genreport",html:M9,type:ut.SINGLE_SELECT}]}ngOnInit(){}generateReport(t){return q(this,null,function*(){let n=new Jt;this.api.gui.forms.typedForm(t,django.gettext("Generate report"),!1,[],void 0,t.table.selection.selected[0].id,{save:n});let o=yield n;this.api.gui.snackbar.open(django.gettext("Generating report..."));let a=yield this.rest.reports.save(o,t.table.selection.selected[0].id),s=a.encoded?window.atob(a.data):a.data,c=s.length,u=new Uint8Array(c);for(let v=0;v{(0,hA.saveAs)(f,a.filename,{autoBom:!1})})})}};e.\u0275fac=function(n){return new(n||e)(h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"customButtonAction","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("customButtonAction",function(s){return o.generateReport(s)}),d()),n&2&&p("rest",o.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Te],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]});let i=e;return i})();var fA=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n}ngOnInit(){}onNew(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Notifier"),!1)}onEdit(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Notifier"),!1)}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-notifiers"]],decls:2,vars:4,consts:[["icon","accounts",3,"newAction","editAction","deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("newAction",function(s){return o.onNew(s)})("editAction",function(s){return o.onEdit(s)})("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();function T9(i,e){if(i&1&&g(0),i&2){let r=_().$implicit;P(" ",r," ")}}function k9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",18),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),p("type",n.config[t][r].crypt?"password":"text"),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function A9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"textarea",19),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function O9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",20),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function R9(i,e){if(i&1){let r=A();l(0,"div")(1,"div",21)(2,"mat-slide-toggle",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),g(3),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(2),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),m(),P(" ",r," ")}}function P9(i,e){if(i&1&&(l(0,"mat-option",24),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}function F9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"mat-select",22),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),D(5,P9,2,2,"mat-option",23),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),P(" ",r," "),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help),m(),p("ngForOf",n.config[t][r].params)}}function N9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",25),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function L9(i,e){i&1&&bi(0)}function V9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",26),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function j9(i,e){if(i&1){let r=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),g(3),d(),l(4,"input",27),H("ngModelChange",function(n){y(r);let o=_(2).$implicit,a=_().$implicit,s=_(2);return $(s.config[a][o].value,n)||(s.config[a][o].value=n),w(n)}),d()()()}if(i&2){let r=_(2).$implicit,t=_().$implicit,n=_(2);m(3),He(r),m(),U("ngModel",n.config[t][r].value),p("matTooltip",n.config[t][r].help)}}function B9(i,e){if(i&1&&(ht(0,15),D(1,k9,5,4,"div",16)(2,A9,5,3,"div",16)(3,O9,5,3,"div",16)(4,R9,4,3,"div",16)(5,F9,6,4,"div",16)(6,N9,5,3,"div",16)(7,L9,1,0,"ng-container",16)(8,V9,5,3,"div",16)(9,j9,5,3,"div",17),pt()),i&2){let r=_().$implicit,t=_().$implicit,n=_(2);p("ngSwitch",n.config[t][r].type),m(),p("ngSwitchCase",0),m(),p("ngSwitchCase",1),m(),p("ngSwitchCase",2),m(),p("ngSwitchCase",3),m(),p("ngSwitchCase",4),m(),p("ngSwitchCase",5),m(),p("ngSwitchCase",6),m(),p("ngSwitchCase",7)}}function z9(i,e){if(i&1&&(l(0,"div",13),D(1,B9,10,9,"ng-container",14),d()),i&2){let r=e.$implicit,t=_().$implicit,n=_(2);m(),p("ngIf",n.config[t][r])}}function U9(i,e){if(i&1&&(l(0,"mat-tab"),D(1,T9,1,1,"ng-template",10),l(2,"div",11),D(3,z9,2,1,"div",12),d()()),i&2){let r=e.$implicit,t=_(2);m(3),p("ngForOf",t.configElements(r))}}function H9(i,e){if(i&1){let r=A();l(0,"div",4)(1,"div",5)(2,"mat-tab-group",6),D(3,U9,4,1,"mat-tab",7),d(),l(4,"div",8)(5,"button",9),b("click",function(){y(r);let n=_();return w(n.save())}),l(6,"uds-translate"),g(7,"Save"),d()()()()()}if(i&2){let r=_();m(2),p("@.disabled",!0),m(),p("ngForOf",r.sections())}}var gA=["UDS","Security"],_A=["UDS ID"],vA=(()=>{let e=class e{constructor(t,n){this.rest=t,this.api=n}ngOnInit(){this.rest.configuration.overview().then(t=>{this.config=t;for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];a.type===7?a.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':a.type===3&&(a.value=!!["1",1,!0].includes(a.value)),a.original_value=a.value}}})}sections(){let t=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!gA.includes(n)&&t.push(n);return t=t.sort((n,o)=>n.localeCompare(o)),t.unshift.apply(t,gA),t}configElements(t){let n=[],o=this.config[t];if(o)for(let a in o)o.hasOwnProperty(a)&&!(t==="UDS"&&_A.includes(a))&&n.push(a);return n=n.sort((a,s)=>a.localeCompare(s)),t==="UDS"&&n.unshift.apply(n,_A),n}save(){let t={};for(let n in this.config)if(this.config.hasOwnProperty(n)){for(let o in this.config[n])if(this.config[n].hasOwnProperty(o)){let a=this.config[n][o];if(a.original_value!==a.value){a.original_value=a.value,t[n]||(t[n]={});let s=a.value;a.type===3&&(s=["1",1,!0].includes(a.value)?"1":"0"),t[n][o]={value:s}}}}this.rest.configuration.save(t).then(()=>{this.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(h(X),h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"ngModelChange","type","ngModel","matTooltip"],["matInput","",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","number",3,"ngModelChange","ngModel","matTooltip"],[1,"toggle"],[3,"ngModelChange","ngModel","matTooltip"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","password",3,"ngModelChange","ngModel","matTooltip"],["matInput","","type","text",3,"ngModelChange","ngModel","matTooltip"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),I(2,"img",2),g(3,"\xA0"),l(4,"uds-translate"),g(5,"UDS Configuration"),d()(),D(6,H9,8,2,"div",3),d()),n&2&&(m(2),p("src",o.api.staticURL("admin/img/icons/configuration.png"),Ee),m(4),p("ngIf",o.config))},dependencies:[$e,he,ec,oh,VE,ct,Vn,we,De,ke,tr,ge,Ae,ft,vt,it,ei,ti,ni,ir,ce],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]});let i=e;return i})();var bA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){return q(this,null,function*(){yield this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var yA=(()=>{let e=class e{constructor(t,n,o){this.api=t,this.route=n,this.rest=o}ngOnInit(){}onDelete(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete servers token - USE WITH EXTREME CAUTION!!!"))}};e.\u0275fac=function(n){return new(n||e)(h(z),h(Oe),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-servers-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"deleteAction","rest","multiSelect","allowExport","pageSize"]],template:function(n,o){n&1&&(l(0,"div")(1,"uds-table",0),b("deleteAction",function(s){return o.onDelete(s)}),d()()),n&2&&(m(),p("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Te]});let i=e;return i})();var $9=[{path:"",canActivate:[rT],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:lT},{path:"services/providers",component:Vy},{path:"services/providers/:provider/detail",component:jy},{path:"services/providers/:provider",component:Vy},{path:"services/providers/:provider/detail/:service",component:jy},{path:"services/servers",component:By},{path:"services/servers/:server/detail",component:Dk},{path:"services/servers/:server",component:By},{path:"authenticators",component:zy},{path:"authenticators/:authenticator/detail",component:jf},{path:"authenticators/:authenticator",component:zy},{path:"authenticators/:authenticator/detail/groups/:group",component:jf},{path:"authenticators/:authenticator/detail/users/:user",component:jf},{path:"mfas",component:Uy},{path:"mfas/:mfa",component:Uy},{path:"osmanagers",component:qy},{path:"osmanagers/:osmanager",component:qy},{path:"connectivity/transports",component:Yy},{path:"connectivity/transports/:transport",component:Yy},{path:"connectivity/networks",component:Qy},{path:"connectivity/networks/:network",component:Qy},{path:"connectivity/tunnels",component:Ky},{path:"connectivity/tunnels/:tunnel",component:Ky},{path:"connectivity/tunnels/:tunnel/detail",component:Ok},{path:"pools/service-pools",component:Zy},{path:"pools/service-pools/:pool",component:Zy},{path:"pools/service-pools/:pool/detail",component:Wf},{path:"pools/meta-pools",component:ew},{path:"pools/meta-pools/:metapool",component:ew},{path:"pools/meta-pools/:metapool/detail",component:Bk},{path:"pools/pool-groups",component:iw},{path:"pools/pool-groups/:poolgroup",component:iw},{path:"pools/calendars",component:nw},{path:"pools/calendars/:calendar",component:nw},{path:"pools/calendars/:calendar/detail",component:uA},{path:"pools/accounts",component:fw},{path:"pools/accounts/:account",component:fw},{path:"pools/accounts/:account/detail",component:mA},{path:"tools/gallery",component:_w},{path:"tools/gallery/:image",component:_w},{path:"tools/reports",component:pA},{path:"tools/notifiers",component:fA},{path:"tools/tokens/actor",component:bA},{path:"tools/tokens/server",component:yA},{path:"tools/configuration",component:vA}]}],wA=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[b0.forRoot($9,{}),b0]});let i=e;return i})();function CA(i){return new te(3e3,!1)}function W9(){return new te(3100,!1)}function G9(){return new te(3101,!1)}function q9(i){return new te(3001,!1)}function Y9(i){return new te(3003,!1)}function Q9(i){return new te(3004,!1)}function K9(i,e){return new te(3005,!1)}function Z9(){return new te(3006,!1)}function X9(){return new te(3007,!1)}function J9(i,e){return new te(3008,!1)}function eq(i){return new te(3002,!1)}function tq(i,e,r,t,n){return new te(3010,!1)}function iq(){return new te(3011,!1)}function nq(){return new te(3012,!1)}function oq(){return new te(3200,!1)}function rq(){return new te(3202,!1)}function aq(){return new te(3013,!1)}function sq(i){return new te(3014,!1)}function cq(i){return new te(3015,!1)}function lq(i){return new te(3016,!1)}function dq(i,e){return new te(3404,!1)}function uq(i){return new te(3502,!1)}function mq(i){return new te(3503,!1)}function hq(){return new te(3300,!1)}function pq(i){return new te(3504,!1)}function fq(i){return new te(3301,!1)}function gq(i,e){return new te(3302,!1)}function _q(i){return new te(3303,!1)}function vq(i,e){return new te(3400,!1)}function bq(i){return new te(3401,!1)}function yq(i){return new te(3402,!1)}function wq(i,e){return new te(3505,!1)}function Ea(i){switch(i.length){case 0:return new pa;case 1:return i[0];default:return new yd(i)}}function NA(i,e,r=new Map,t=new Map){let n=[],o=[],a=-1,s=null;if(e.forEach(c=>{let u=c.get("offset"),f=u==a,v=f&&s||new Map;c.forEach((C,x)=>{let E=x,R=C;if(x!=="offset")switch(E=i.normalizePropertyName(E,n),R){case ap:R=r.get(x);break;case Zo:R=t.get(x);break;default:R=i.normalizeStyleValue(x,E,R,n);break}v.set(E,R)}),f||o.push(v),s=v,a=u}),n.length)throw uq(n);return o}function Bw(i,e,r,t){switch(e){case"start":i.onStart(()=>t(r&&vw(r,"start",i)));break;case"done":i.onDone(()=>t(r&&vw(r,"done",i)));break;case"destroy":i.onDestroy(()=>t(r&&vw(r,"destroy",i)));break}}function vw(i,e,r){let t=r.totalTime,n=!!r.disabled,o=zw(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t??i.totalTime,n),a=i._data;return a!=null&&(o._data=a),o}function zw(i,e,r,t,n="",o=0,a){return{element:i,triggerName:e,fromState:r,toState:t,phaseName:n,totalTime:o,disabled:!!a}}function Un(i,e,r){let t=i.get(e);return t||i.set(e,t=r),t}function xA(i){let e=i.indexOf(":"),r=i.substring(1,e),t=i.slice(e+1);return[r,t]}var Cq=typeof document>"u"?null:document.documentElement;function Uw(i){let e=i.parentNode||i.host||null;return e===Cq?null:e}function xq(i){return i.substring(1,6)=="ebkit"}var fs=null,DA=!1;function Dq(i){fs||(fs=Sq()||{},DA=fs.style?"WebkitAppearance"in fs.style:!1);let e=!0;return fs.style&&!xq(i)&&(e=i in fs.style,!e&&DA&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in fs.style)),e}function Sq(){return typeof document<"u"?document.body:null}function LA(i,e){for(;e;){if(e===i)return!0;e=Uw(e)}return!1}function VA(i,e,r){if(r)return Array.from(i.querySelectorAll(e));let t=i.querySelector(e);return t?[t]:[]}var Hw=(()=>{let e=class e{validateStyleProperty(t){return Dq(t)}containsElement(t,n){return LA(t,n)}getParentElement(t){return Uw(t)}query(t,n,o){return VA(t,n,o)}computeStyle(t,n,o){return o||""}animate(t,n,o,a,s,c=[],u){return new pa(o,a)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})(),qw=class qw{};qw.NOOP=new Hw;var vs=qw,bs=class{};var Eq=1e3,jA="{{",Iq="}}",BA="ng-enter",Dw="ng-leave",Xf="ng-trigger",ng=".ng-trigger",SA="ng-animating",Sw=".ng-animating";function Or(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ew(parseFloat(e[1]),e[2])}function Ew(i,e){switch(e){case"s":return i*Eq;default:return i}}function og(i,e,r){return i.hasOwnProperty("duration")?i:Mq(i,e,r)}function Mq(i,e,r){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,o=0,a="";if(typeof i=="string"){let s=i.match(t);if(s===null)return e.push(CA(i)),{duration:0,delay:0,easing:""};n=Ew(parseFloat(s[1]),s[2]);let c=s[3];c!=null&&(o=Ew(parseFloat(c),s[4]));let u=s[5];u&&(a=u)}else n=i;if(!r){let s=!1,c=e.length;n<0&&(e.push(W9()),s=!0),o<0&&(e.push(G9()),s=!0),s&&e.splice(c,0,CA(i))}return{duration:n,delay:o,easing:a}}function Tq(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function nr(i,e,r){e.forEach((t,n)=>{let o=$w(n);r&&!r.has(n)&&r.set(n,i.style[o]),i.style[o]=t})}function _s(i,e){e.forEach((r,t)=>{let n=$w(t);i.style[n]=""})}function Ud(i){return Array.isArray(i)?i.length==1?i[0]:$1(i):i}function kq(i,e,r){let t=e.params||{},n=zA(i);n.length&&n.forEach(o=>{t.hasOwnProperty(o)||r.push(q9(o))})}var Iw=new RegExp(`${jA}\\s*(.+?)\\s*${Iq}`,"g");function zA(i){let e=[];if(typeof i=="string"){let r;for(;r=Iw.exec(i);)e.push(r[1]);Iw.lastIndex=0}return e}function $d(i,e,r){let t=`${i}`,n=t.replace(Iw,(o,a)=>{let s=e[a];return s==null&&(r.push(Y9(a)),s=""),s.toString()});return n==t?i:n}var Aq=/-+([a-z0-9])/g;function $w(i){return i.replace(Aq,(...e)=>e[1].toUpperCase())}function Oq(i,e){return i===0||e===0}function Rq(i,e,r){if(r.size&&e.length){let t=e[0],n=[];if(r.forEach((o,a)=>{t.has(a)||n.push(a),t.set(a,o)}),n.length)for(let o=1;oa.set(s,Ww(i,s)))}}return e}function zn(i,e,r){switch(e.type){case nt.Trigger:return i.visitTrigger(e,r);case nt.State:return i.visitState(e,r);case nt.Transition:return i.visitTransition(e,r);case nt.Sequence:return i.visitSequence(e,r);case nt.Group:return i.visitGroup(e,r);case nt.Animate:return i.visitAnimate(e,r);case nt.Keyframes:return i.visitKeyframes(e,r);case nt.Style:return i.visitStyle(e,r);case nt.Reference:return i.visitReference(e,r);case nt.AnimateChild:return i.visitAnimateChild(e,r);case nt.AnimateRef:return i.visitAnimateRef(e,r);case nt.Query:return i.visitQuery(e,r);case nt.Stagger:return i.visitStagger(e,r);default:throw Q9(e.type)}}function Ww(i,e){return window.getComputedStyle(i)[e]}var Pq=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),rg=class extends bs{normalizePropertyName(e,r){return $w(e)}normalizeStyleValue(e,r,t,n){let o="",a=t.toString().trim();if(Pq.has(r)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&n.push(K9(e,t))}return a+o}};var ag="*";function Fq(i,e){let r=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>Nq(t,r,e)):r.push(i),r}function Nq(i,e,r){if(i[0]==":"){let c=Lq(i,r);if(typeof c=="function"){e.push(c);return}i=c}let t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return r.push(cq(i)),e;let n=t[1],o=t[2],a=t[3];e.push(EA(n,a));let s=n==ag&&a==ag;o[0]=="<"&&!s&&e.push(EA(a,n))}function Lq(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,t)=>parseFloat(t)>parseFloat(r);case":decrement":return(r,t)=>parseFloat(t) *"}}var Jf=new Set(["true","1"]),eg=new Set(["false","0"]);function EA(i,e){let r=Jf.has(i)||eg.has(i),t=Jf.has(e)||eg.has(e);return(n,o)=>{let a=i==ag||i==n,s=e==ag||e==o;return!a&&r&&typeof n=="boolean"&&(a=n?Jf.has(i):eg.has(i)),!s&&t&&typeof o=="boolean"&&(s=o?Jf.has(e):eg.has(e)),a&&s}}var UA=":self",Vq=new RegExp(`s*${UA}s*,?`,"g");function HA(i,e,r,t){return new Mw(i).build(e,r,t)}var IA="",Mw=class{constructor(e){this._driver=e}build(e,r,t){let n=new Tw(r);return this._resetContextStyleTimingState(n),zn(this,Ud(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=IA,e.collectedStyles=new Map,e.collectedStyles.set(IA,new Map),e.currentTime=0}visitTrigger(e,r){let t=r.queryCount=0,n=r.depCount=0,o=[],a=[];return e.name.charAt(0)=="@"&&r.errors.push(Z9()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(r),s.type==nt.State){let c=s,u=c.name;u.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,o.push(this.visitState(c,r))}),c.name=u}else if(s.type==nt.Transition){let c=this.visitTransition(s,r);t+=c.queryCount,n+=c.depCount,a.push(c)}else r.errors.push(X9())}),{type:nt.Trigger,name:e.name,states:o,transitions:a,queryCount:t,depCount:n,options:null}}visitState(e,r){let t=this.visitStyle(e.styles,r),n=e.options&&e.options.params||null;if(t.containsDynamicStyles){let o=new Set,a=n||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{zA(c).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&r.errors.push(J9(e.name,[...o.values()]))}return{type:nt.State,name:e.name,style:t,options:n?{params:n}:null}}visitTransition(e,r){r.queryCount=0,r.depCount=0;let t=zn(this,Ud(e.animation),r),n=Fq(e.expr,r.errors);return{type:nt.Transition,matchers:n,animation:t,queryCount:r.queryCount,depCount:r.depCount,options:gs(e.options)}}visitSequence(e,r){return{type:nt.Sequence,steps:e.steps.map(t=>zn(this,t,r)),options:gs(e.options)}}visitGroup(e,r){let t=r.currentTime,n=0,o=e.steps.map(a=>{r.currentTime=t;let s=zn(this,a,r);return n=Math.max(n,r.currentTime),s});return r.currentTime=n,{type:nt.Group,steps:o,options:gs(e.options)}}visitAnimate(e,r){let t=Uq(e.timings,r.errors);r.currentAnimateTimings=t;let n,o=e.styles?e.styles:Me({});if(o.type==nt.Keyframes)n=this.visitKeyframes(o,r);else{let a=e.styles,s=!1;if(!a){s=!0;let u={};t.easing&&(u.easing=t.easing),a=Me(u)}r.currentTime+=t.duration+t.delay;let c=this.visitStyle(a,r);c.isEmptyStep=s,n=c}return r.currentAnimateTimings=null,{type:nt.Animate,timings:t,style:n,options:null}}visitStyle(e,r){let t=this._makeStyleAst(e,r);return this._validateStyleAst(t,r),t}_makeStyleAst(e,r){let t=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of n)typeof s=="string"?s===Zo?t.push(s):r.errors.push(eq(s)):t.push(new Map(Object.entries(s)));let o=!1,a=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let c of s.values())if(c.toString().indexOf(jA)>=0){o=!0;break}}}),{type:nt.Style,styles:t,easing:a,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,r){let t=r.currentAnimateTimings,n=r.currentTime,o=r.currentTime;t&&o>0&&(o-=t.duration+t.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,c)=>{let u=r.collectedStyles.get(r.currentQuerySelector),f=u.get(c),v=!0;f&&(o!=n&&o>=f.startTime&&n<=f.endTime&&(r.errors.push(tq(c,f.startTime,f.endTime,o,n)),v=!1),o=f.startTime),v&&u.set(c,{startTime:o,endTime:n}),r.options&&kq(s,r.options,r.errors)})})}visitKeyframes(e,r){let t={type:nt.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(iq()),t;let n=1,o=0,a=[],s=!1,c=!1,u=0,f=e.steps.map(F=>{let _e=this._makeStyleAst(F,r),at=_e.offset!=null?_e.offset:zq(_e.styles),ot=0;return at!=null&&(o++,ot=_e.offset=at),c=c||ot<0||ot>1,s=s||ot0&&o{let at=C>0?_e==x?1:C*_e:a[_e],ot=at*j;r.currentTime=E+R.delay+ot,R.duration=ot,this._validateStyleAst(F,r),F.offset=at,t.styles.push(F)}),t}visitReference(e,r){return{type:nt.Reference,animation:zn(this,Ud(e.animation),r),options:gs(e.options)}}visitAnimateChild(e,r){return r.depCount++,{type:nt.AnimateChild,options:gs(e.options)}}visitAnimateRef(e,r){return{type:nt.AnimateRef,animation:this.visitReference(e.animation,r),options:gs(e.options)}}visitQuery(e,r){let t=r.currentQuerySelector,n=e.options||{};r.queryCount++,r.currentQuery=e;let[o,a]=jq(e.selector);r.currentQuerySelector=t.length?t+" "+o:o,Un(r.collectedStyles,r.currentQuerySelector,new Map);let s=zn(this,Ud(e.animation),r);return r.currentQuery=null,r.currentQuerySelector=t,{type:nt.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:gs(e.options)}}visitStagger(e,r){r.currentQuery||r.errors.push(aq());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:og(e.timings,r.errors,!0);return{type:nt.Stagger,animation:zn(this,Ud(e.animation),r),timings:t,options:null}}};function jq(i){let e=!!i.split(/\s*,\s*/).find(r=>r==UA);return e&&(i=i.replace(Vq,"")),i=i.replace(/@\*/g,ng).replace(/@\w+/g,r=>ng+"-"+r.slice(1)).replace(/:animating/g,Sw),[i,e]}function Bq(i){return i?B({},i):null}var Tw=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function zq(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(r=>{if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let r=i;e=parseFloat(r.get("offset")),r.delete("offset")}return e}function Uq(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let o=og(i,e).duration;return bw(o,0,"")}let r=i;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=bw(0,0,"");return o.dynamic=!0,o.strValue=r,o}let n=og(r,e);return bw(n.duration,n.delay,n.easing)}function gs(i){return i?(i=B({},i),i.params&&(i.params=Bq(i.params))):i={},i}function bw(i,e,r){return{duration:i,delay:e,easing:r}}function Gw(i,e,r,t,n,o,a=null,s=!1){return{type:1,element:i,keyframes:e,preStyleProps:r,postStyleProps:t,duration:n,delay:o,totalTime:n+o,easing:a,subTimeline:s}}var Wd=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,r){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...r)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Hq=1,$q=":enter",Wq=new RegExp($q,"g"),Gq=":leave",qq=new RegExp(Gq,"g");function $A(i,e,r,t,n,o=new Map,a=new Map,s,c,u=[]){return new kw().buildKeyframes(i,e,r,t,n,o,a,s,c,u)}var kw=class{buildKeyframes(e,r,t,n,o,a,s,c,u,f=[]){u=u||new Wd;let v=new Aw(e,r,u,n,o,f,[]);v.options=c;let C=c.delay?Or(c.delay):0;v.currentTimeline.delayNextStep(C),v.currentTimeline.setStyles([a],null,v.errors,c),zn(this,t,v);let x=v.timelines.filter(E=>E.containsAnimation());if(x.length&&s.size){let E;for(let R=x.length-1;R>=0;R--){let j=x[R];if(j.element===r){E=j;break}}E&&!E.allowOnlyTimelineStyles()&&E.setStyles([s],null,v.errors,c)}return x.length?x.map(E=>E.buildKeyframes()):[Gw(r,[],[],[],0,C,"",!1)]}visitTrigger(e,r){}visitState(e,r){}visitTransition(e,r){}visitAnimateChild(e,r){let t=r.subInstructions.get(r.element);if(t){let n=r.createSubContext(e.options),o=r.currentTimeline.currentTime,a=this._visitSubInstructions(t,n,n.options);o!=a&&r.transformIntoNewTimeline(a)}r.previousNode=e}visitAnimateRef(e,r){let t=r.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],r,t),this.visitReference(e.animation,t),r.transformIntoNewTimeline(t.currentTimeline.currentTime),r.previousNode=e}_applyAnimationRefDelays(e,r,t){for(let n of e){let o=n?.delay;if(o){let a=typeof o=="number"?o:Or($d(o,n?.params??{},r.errors));t.delayNextStep(a)}}}_visitSubInstructions(e,r,t){let o=r.currentTimeline.currentTime,a=t.duration!=null?Or(t.duration):null,s=t.delay!=null?Or(t.delay):null;return a!==0&&e.forEach(c=>{let u=r.appendInstructionToTimeline(c,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,r){r.updateOptions(e.options,!0),zn(this,e.animation,r),r.previousNode=e}visitSequence(e,r){let t=r.subContextCount,n=r,o=e.options;if(o&&(o.params||o.delay)&&(n=r.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==nt.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=sg);let a=Or(o.delay);n.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>zn(this,a,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>t&&n.transformIntoNewTimeline()),r.previousNode=e}visitGroup(e,r){let t=[],n=r.currentTimeline.currentTime,o=e.options&&e.options.delay?Or(e.options.delay):0;e.steps.forEach(a=>{let s=r.createSubContext(e.options);o&&s.delayNextStep(o),zn(this,a,s),n=Math.max(n,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(a=>r.currentTimeline.mergeTimelineCollectedStyles(a)),r.transformIntoNewTimeline(n),r.previousNode=e}_visitTiming(e,r){if(e.dynamic){let t=e.strValue,n=r.params?$d(t,r.params,r.errors):t;return og(n,r.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,r){let t=r.currentAnimateTimings=this._visitTiming(e.timings,r),n=r.currentTimeline;t.delay&&(r.incrementTime(t.delay),n.snapshotCurrentStyles());let o=e.style;o.type==nt.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(t.duration),this.visitStyle(o,r),n.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=e}visitStyle(e,r){let t=r.currentTimeline,n=r.currentAnimateTimings;!n&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(o):t.setStyles(e.styles,o,r.errors,r.options),r.previousNode=e}visitKeyframes(e,r){let t=r.currentAnimateTimings,n=r.currentTimeline.duration,o=t.duration,s=r.createSubContext().currentTimeline;s.easing=t.easing,e.styles.forEach(c=>{let u=c.offset||0;s.forwardTime(u*o),s.setStyles(c.styles,c.easing,r.errors,r.options),s.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(s),r.transformIntoNewTimeline(n+o),r.previousNode=e}visitQuery(e,r){let t=r.currentTimeline.currentTime,n=e.options||{},o=n.delay?Or(n.delay):0;o&&(r.previousNode.type===nt.Style||t==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=sg);let a=t,s=r.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,r.errors);r.currentQueryTotal=s.length;let c=null;s.forEach((u,f)=>{r.currentQueryIndex=f;let v=r.createSubContext(e.options,u);o&&v.delayNextStep(o),u===r.element&&(c=v.currentTimeline),zn(this,e.animation,v),v.currentTimeline.applyStylesToKeyframe();let C=v.currentTimeline.currentTime;a=Math.max(a,C)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(a),c&&(r.currentTimeline.mergeTimelineCollectedStyles(c),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=e}visitStagger(e,r){let t=r.parentContext,n=r.currentTimeline,o=e.timings,a=Math.abs(o.duration),s=a*(r.currentQueryTotal-1),c=a*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=s-c;break;case"full":c=t.currentStaggerTime;break}let f=r.currentTimeline;c&&f.delayNextStep(c);let v=f.currentTime;zn(this,e.animation,r),r.previousNode=e,t.currentStaggerTime=n.currentTime-v+(n.startTime-t.currentTimeline.startTime)}},sg={},Aw=class i{constructor(e,r,t,n,o,a,s,c){this._driver=e,this.element=r,this.subInstructions=t,this._enterClassName=n,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=sg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new cg(this._driver,r,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,r){if(!e)return;let t=e,n=this.options;t.duration!=null&&(n.duration=Or(t.duration)),t.delay!=null&&(n.delay=Or(t.delay));let o=t.params;if(o){let a=n.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!r||!a.hasOwnProperty(s))&&(a[s]=$d(o[s],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let r=this.options.params;if(r){let t=e.params={};Object.keys(r).forEach(n=>{t[n]=r[n]})}}return e}createSubContext(e=null,r,t){let n=r||this.element,o=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=sg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,r,t){let n={duration:r??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},o=new Ow(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,r,t,n,o,a){let s=[];if(n&&s.push(this.element),e.length>0){e=e.replace(Wq,"."+this._enterClassName),e=e.replace(qq,"."+this._leaveClassName);let c=t!=1,u=this._driver.query(this.element,e,c);t!==0&&(u=t<0?u.slice(u.length+t,u.length):u.slice(0,t)),s.push(...u)}return!o&&s.length==0&&a.push(sq(r)),s}},cg=class i{constructor(e,r,t,n){this._driver=e,this.element=r,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+e),r&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,r){return this.applyStylesToKeyframe(),new i(this._driver,e,r||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Hq,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,r){this._localTimelineStyles.set(e,r),this._globalTimelineStyles.set(e,r),this._styleSummary.set(e,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[r,t]of this._globalTimelineStyles)this._backFill.set(r,t||Zo),this._currentKeyframe.set(r,Zo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,r,t,n){r&&this._previousKeyframe.set("easing",r);let o=n&&n.params||{},a=Yq(e,this._globalTimelineStyles);for(let[s,c]of a){let u=$d(c,o,t);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Zo),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,r)=>{this._currentKeyframe.set(r,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,e)}))}snapshotCurrentStyles(){for(let[e,r]of this._localTimelineStyles)this._pendingStyles.set(e,r),this._updateStyle(e,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let r in this._currentKeyframe)e.push(r);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((r,t)=>{let n=this._styleSummary.get(t);(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,r=new Set,t=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((s,c)=>{let u=new Map([...this._backFill,...s]);u.forEach((f,v)=>{f===ap?e.add(v):f===Zo&&r.add(v)}),t||u.set("offset",c/this.duration),n.push(u)});let o=[...e.values()],a=[...r.values()];if(t){let s=n[0],c=new Map(s);s.set("offset",0),c.set("offset",1),n=[s,c]}return Gw(this.element,n,o,a,this.duration,this.startTime,this.easing,!1)}},Ow=class extends cg{constructor(e,r,t,n,o,a,s=!1){super(e,r,a.delay),this.keyframes=t,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:r,duration:t,easing:n}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],a=t+r,s=r/a,c=new Map(e[0]);c.set("offset",0),o.push(c);let u=new Map(e[0]);u.set("offset",MA(s)),o.push(u);let f=e.length-1;for(let v=1;v<=f;v++){let C=new Map(e[v]),x=C.get("offset"),E=r+x*t;C.set("offset",MA(E/a)),o.push(C)}t=a,r=0,n="",e=o}return Gw(this.element,e,this.preStyleProps,this.postStyleProps,t,r,n,!0)}};function MA(i,e=3){let r=Math.pow(10,e-1);return Math.round(i*r)/r}function Yq(i,e){let r=new Map,t;return i.forEach(n=>{if(n==="*"){t??=e.keys();for(let o of t)r.set(o,Zo)}else for(let[o,a]of n)r.set(o,a)}),r}function TA(i,e,r,t,n,o,a,s,c,u,f,v,C){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:r,fromStyles:o,toState:t,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:f,totalTime:v,errors:C}}var yw={},lg=class{constructor(e,r,t){this._triggerName=e,this.ast=r,this._stateStyles=t}match(e,r,t,n){return Qq(this.ast.matchers,e,r,t,n)}buildStyles(e,r,t){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(r,t):new Map}build(e,r,t,n,o,a,s,c,u,f){let v=[],C=this.ast.options&&this.ast.options.params||yw,x=s&&s.params||yw,E=this.buildStyles(t,x,v),R=c&&c.params||yw,j=this.buildStyles(n,R,v),F=new Set,_e=new Map,at=new Map,ot=n==="void",Mi={params:WA(R,C),delay:this.ast.options?.delay},Nt=f?[]:$A(e,r,this.ast.animation,o,a,E,j,Mi,u,v),Ht=0;return Nt.forEach(_i=>{Ht=Math.max(_i.duration+_i.delay,Ht)}),v.length?TA(r,this._triggerName,t,n,ot,E,j,[],[],_e,at,Ht,v):(Nt.forEach(_i=>{let or=_i.element,Rr=Un(_e,or,new Set);_i.preStyleProps.forEach(Ia=>Rr.add(Ia));let eC=Un(at,or,new Set);_i.postStyleProps.forEach(Ia=>eC.add(Ia)),or!==r&&F.add(or)}),TA(r,this._triggerName,t,n,ot,E,j,Nt,[...F.values()],_e,at,Ht))}};function Qq(i,e,r,t,n){return i.some(o=>o(e,r,t,n))}function WA(i,e){let r=B({},e);return Object.entries(i).forEach(([t,n])=>{n!=null&&(r[t]=n)}),r}var Rw=class{constructor(e,r,t){this.styles=e,this.defaultParams=r,this.normalizer=t}buildStyles(e,r){let t=new Map,n=WA(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=$d(a,n,r));let c=this.normalizer.normalizePropertyName(s,r);a=this.normalizer.normalizeStyleValue(s,c,a,r),t.set(s,a)})}),t}};function Kq(i,e,r){return new Pw(i,e,r)}var Pw=class{constructor(e,r,t){this.name=e,this.ast=r,this._normalizer=t,this.transitionFactories=[],this.states=new Map,r.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new Rw(n.style,o,t))}),kA(this.states,"true","1"),kA(this.states,"false","0"),r.transitions.forEach(n=>{this.transitionFactories.push(new lg(e,n,this.states))}),this.fallbackTransition=Zq(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,r,t,n){return this.transitionFactories.find(a=>a.match(e,r,t,n))||null}matchStyles(e,r,t){return this.fallbackTransition.buildStyles(e,r,t)}};function Zq(i,e,r){let t=[(a,s)=>!0],n={type:nt.Sequence,steps:[],options:null},o={type:nt.Transition,animation:n,matchers:t,options:null,queryCount:0,depCount:0};return new lg(i,o,e)}function kA(i,e,r){i.has(e)?i.has(r)||i.set(r,i.get(e)):i.has(r)&&i.set(e,i.get(r))}var Xq=new Wd,Fw=class{constructor(e,r,t){this.bodyNode=e,this._driver=r,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,r){let t=[],n=[],o=HA(this._driver,r,t,n);if(t.length)throw mq(t);n.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,r,t){let n=e.element,o=NA(this._normalizer,e.keyframes,r,t);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,r,t={}){let n=[],o=this._animations.get(e),a,s=new Map;if(o?(a=$A(this._driver,r,o,BA,Dw,new Map,new Map,t,Xq,n),a.forEach(f=>{let v=Un(s,f.element,new Map);f.postStyleProps.forEach(C=>v.set(C,null))})):(n.push(hq()),a=[]),n.length)throw pq(n);s.forEach((f,v)=>{f.forEach((C,x)=>{f.set(x,this._driver.computeStyle(v,x,Zo))})});let c=a.map(f=>{let v=s.get(f.element);return this._buildPlayer(f,new Map,v)}),u=Ea(c);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let r=this._getPlayer(e);r.destroy(),this._playersById.delete(e);let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1)}_getPlayer(e){let r=this._playersById.get(e);if(!r)throw fq(e);return r}listen(e,r,t,n){let o=zw(r,"","","");return Bw(this._getPlayer(e),t,o,n),()=>{}}command(e,r,t,n){if(t=="register"){this.register(e,n[0]);return}if(t=="create"){let a=n[0]||{};this.create(e,r,a);return}let o=this._getPlayer(e);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},AA="ng-animate-queued",Jq=".ng-animate-queued",ww="ng-animate-disabled",eY=".ng-animate-disabled",tY="ng-star-inserted",iY=".ng-star-inserted",nY=[],GA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ko="__ng_removed",Gd=class{get params(){return this.options.params}constructor(e,r=""){this.namespaceId=r;let t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=aY(n),t){let o=e,{value:a}=o,s=_g(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let r=e.params;if(r){let t=this.options.params;Object.keys(r).forEach(n=>{t[n]==null&&(t[n]=r[n])})}}},Hd="void",Cw=new Gd(Hd),Nw=class{constructor(e,r,t){this.id=e,this.hostElement=r,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,uo(r,this._hostClassName)}listen(e,r,t,n){if(!this._triggers.has(r))throw gq(t,r);if(t==null||t.length==0)throw _q(r);if(!sY(t))throw vq(t,r);let o=Un(this._elementListeners,e,[]),a={name:r,phase:t,callback:n};o.push(a);let s=Un(this._engine.statesByElement,e,new Map);return s.has(r)||(uo(e,Xf),uo(e,Xf+"-"+r),s.set(r,Cw)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(a);c>=0&&o.splice(c,1),this._triggers.has(r)||s.delete(r)})}}register(e,r){return this._triggers.has(e)?!1:(this._triggers.set(e,r),!0)}_getTrigger(e){let r=this._triggers.get(e);if(!r)throw bq(e);return r}trigger(e,r,t,n=!0){let o=this._getTrigger(r),a=new qd(this.id,r,e),s=this._engine.statesByElement.get(e);s||(uo(e,Xf),uo(e,Xf+"-"+r),this._engine.statesByElement.set(e,s=new Map));let c=s.get(r),u=new Gd(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s.set(r,u),c||(c=Cw),!(u.value===Hd)&&c.value===u.value){if(!dY(c.params,u.params)){let R=[],j=o.matchStyles(c.value,c.params,R),F=o.matchStyles(u.value,u.params,R);R.length?this._engine.reportError(R):this._engine.afterFlush(()=>{_s(e,j),nr(e,F)})}return}let C=Un(this._engine.playersByElement,e,[]);C.forEach(R=>{R.namespaceId==this.id&&R.triggerName==r&&R.queued&&R.destroy()});let x=o.matchTransition(c.value,u.value,e,u.params),E=!1;if(!x){if(!n)return;x=o.fallbackTransition,E=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:x,fromState:c,toState:u,player:a,isFallbackTransition:E}),E||(uo(e,AA),a.onStart(()=>{$c(e,AA)})),a.onDone(()=>{let R=this.players.indexOf(a);R>=0&&this.players.splice(R,1);let j=this._engine.playersByElement.get(e);if(j){let F=j.indexOf(a);F>=0&&j.splice(F,1)}}),this.players.push(a),C.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(r=>r.delete(e)),this._elementListeners.forEach((r,t)=>{this._elementListeners.set(t,r.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let r=this._engine.playersByElement.get(e);r&&(r.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,r){let t=this._engine.driver.query(e,ng,!0);t.forEach(n=>{if(n[ko])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(a=>a.triggerLeaveAnimation(n,r,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,r,t,n){let o=this._engine.statesByElement.get(e),a=new Map;if(o){let s=[];if(o.forEach((c,u)=>{if(a.set(u,c.value),this._triggers.has(u)){let f=this.trigger(e,u,Hd,n);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,r,a),t&&Ea(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let r=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(r&&t){let n=new Set;r.forEach(o=>{let a=o.name;if(n.has(a))return;n.add(a);let c=this._triggers.get(a).fallbackTransition,u=t.get(a)||Cw,f=new Gd(Hd),v=new qd(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:c,fromState:u,toState:f,player:v,isFallbackTransition:!0})})}}removeNode(e,r){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,r),this.triggerLeaveAnimation(e,r,!0))return;let n=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let a=e;for(;a=a.parentNode;)if(t.statesByElement.get(a)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)t.markElementAsRemoved(this.id,e,!1,r);else{let o=e[ko];(!o||o===GA)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,r))}}insertNode(e,r){uo(e,this._hostClassName)}drainQueuedTransitions(e){let r=[];return this._queue.forEach(t=>{let n=t.player;if(n.destroyed)return;let o=t.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==t.triggerName){let c=zw(o,t.triggerName,t.fromState.value,t.toState.value);c._data=e,Bw(t.player,s.phase,c,s.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):r.push(t)}),this._queue=[],r.sort((t,n)=>{let o=t.transition.ast.depCount,a=n.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(t.element,n.element)?1:-1})}destroy(e){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Lw=class{_onRemovalComplete(e,r){this.onRemovalComplete(e,r)}constructor(e,r,t){this.bodyNode=e,this.driver=r,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(n,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(r=>{r.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,r){let t=new Nw(e,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(t,r):(this.newHostElements.set(r,t),this.collectEnterElement(r)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,r){let t=this._namespaceList,n=this.namespacesByHostElement;if(t.length-1>=0){let a=!1,s=this.driver.getParentElement(r);for(;s;){let c=n.get(s);if(c){let u=t.indexOf(c);t.splice(u+1,0,e),a=!0;break}s=this.driver.getParentElement(s)}a||t.unshift(e)}else t.push(e);return n.set(r,e),e}register(e,r){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,r)),t}registerTrigger(e,r,t){let n=this._namespaceLookup[e];n&&n.register(r,t)&&this.totalAnimations++}destroy(e,r){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let n=this._namespaceList.indexOf(t);n>=0&&this._namespaceList.splice(n,1),t.destroy(r),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let r=new Set,t=this.statesByElement.get(e);if(t){for(let n of t.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&r.add(o)}}return r}trigger(e,r,t,n){if(tg(r)){let o=this._fetchNamespace(e);if(o)return o.trigger(r,t,n),!0}return!1}insertNode(e,r,t,n){if(!tg(r))return;let o=r[ko];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(r);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(r,t)}n&&this.collectEnterElement(r)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,r){r?this.disabledNodes.has(e)||(this.disabledNodes.add(e),uo(e,ww)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),$c(e,ww))}removeNode(e,r,t){if(tg(r)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(r,t):this.markElementAsRemoved(e,r,!1,t);let o=this.namespacesByHostElement.get(r);o&&o.id!==e&&o.removeNode(r,t)}else this._onRemovalComplete(r,t)}markElementAsRemoved(e,r,t,n,o){this.collectedLeaveElements.push(r),r[ko]={namespaceId:e,setForRemoval:n,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,r,t,n,o){return tg(r)?this._fetchNamespace(e).listen(r,t,n,o):()=>{}}_buildInstruction(e,r,t,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,n,e.fromState.options,e.toState.options,r,o)}destroyInnerAnimations(e){let r=this.driver.query(e,ng,!0);r.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(e,Sw,!0),r.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let r=this.playersByElement.get(e);r&&r.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let r=this.playersByQueriedElement.get(e);r&&r.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Ea(this.players).onDone(()=>e());e()})}processLeaveNode(e){let r=e[ko];if(r&&r.setForRemoval){if(e[ko]=GA,r.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(r.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}e.classList?.contains(ww)&&this.markElementAsDisabled(e,!1),this.driver.query(e,eY,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,n)=>this._balanceNamespaceList(t,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],r.length?Ea(r).onDone(()=>{t.forEach(n=>n())}):t.forEach(n=>n())}}reportError(e){throw yq(e)}_flushAnimations(e,r){let t=new Wd,n=[],o=new Map,a=[],s=new Map,c=new Map,u=new Map,f=new Set;this.disabledNodes.forEach(ye=>{f.add(ye);let Ne=this.driver.query(ye,Jq,!0);for(let Ge=0;Ge{let Ge=BA+R++;E.set(Ne,Ge),ye.forEach(At=>uo(At,Ge))});let j=[],F=new Set,_e=new Set;for(let ye=0;yeF.add(At)):_e.add(Ne))}let at=new Map,ot=PA(C,Array.from(F));ot.forEach((ye,Ne)=>{let Ge=Dw+R++;at.set(Ne,Ge),ye.forEach(At=>uo(At,Ge))}),e.push(()=>{x.forEach((ye,Ne)=>{let Ge=E.get(Ne);ye.forEach(At=>$c(At,Ge))}),ot.forEach((ye,Ne)=>{let Ge=at.get(Ne);ye.forEach(At=>$c(At,Ge))}),j.forEach(ye=>{this.processLeaveNode(ye)})});let Mi=[],Nt=[];for(let ye=this._namespaceList.length-1;ye>=0;ye--)this._namespaceList[ye].drainQueuedTransitions(r).forEach(Ge=>{let At=Ge.player,Ri=Ge.element;if(Mi.push(At),this.collectedEnterElements.length){let Qi=Ri[ko];if(Qi&&Qi.setForMove){if(Qi.previousTriggersValues&&Qi.previousTriggersValues.has(Ge.triggerName)){let Ma=Qi.previousTriggersValues.get(Ge.triggerName),Hn=this.statesByElement.get(Ge.element);if(Hn&&Hn.has(Ge.triggerName)){let Qd=Hn.get(Ge.triggerName);Qd.value=Ma,Hn.set(Ge.triggerName,Qd)}}At.destroy();return}}let Ao=!v||!this.driver.containsElement(v,Ri),kn=at.get(Ri),Pr=E.get(Ri),ui=this._buildInstruction(Ge,t,Pr,kn,Ao);if(ui.errors&&ui.errors.length){Nt.push(ui);return}if(Ao){At.onStart(()=>_s(Ri,ui.fromStyles)),At.onDestroy(()=>nr(Ri,ui.toStyles)),n.push(At);return}if(Ge.isFallbackTransition){At.onStart(()=>_s(Ri,ui.fromStyles)),At.onDestroy(()=>nr(Ri,ui.toStyles)),n.push(At);return}let nC=[];ui.timelines.forEach(Qi=>{Qi.stretchStartingKeyframe=!0,this.disabledNodes.has(Qi.element)||nC.push(Qi)}),ui.timelines=nC,t.append(Ri,ui.timelines);let FO={instruction:ui,player:At,element:Ri};a.push(FO),ui.queriedElements.forEach(Qi=>Un(s,Qi,[]).push(At)),ui.preStyleProps.forEach((Qi,Ma)=>{if(Qi.size){let Hn=c.get(Ma);Hn||c.set(Ma,Hn=new Set),Qi.forEach((Qd,gg)=>Hn.add(gg))}}),ui.postStyleProps.forEach((Qi,Ma)=>{let Hn=u.get(Ma);Hn||u.set(Ma,Hn=new Set),Qi.forEach((Qd,gg)=>Hn.add(gg))})});if(Nt.length){let ye=[];Nt.forEach(Ne=>{ye.push(wq(Ne.triggerName,Ne.errors))}),Mi.forEach(Ne=>Ne.destroy()),this.reportError(ye)}let Ht=new Map,_i=new Map;a.forEach(ye=>{let Ne=ye.element;t.has(Ne)&&(_i.set(Ne,Ne),this._beforeAnimationBuild(ye.player.namespaceId,ye.instruction,Ht))}),n.forEach(ye=>{let Ne=ye.element;this._getPreviousPlayers(Ne,!1,ye.namespaceId,ye.triggerName,null).forEach(At=>{Un(Ht,Ne,[]).push(At),At.destroy()})});let or=j.filter(ye=>FA(ye,c,u)),Rr=new Map;RA(Rr,this.driver,_e,u,Zo).forEach(ye=>{FA(ye,c,u)&&or.push(ye)});let Ia=new Map;x.forEach((ye,Ne)=>{RA(Ia,this.driver,new Set(ye),c,ap)}),or.forEach(ye=>{let Ne=Rr.get(ye),Ge=Ia.get(ye);Rr.set(ye,new Map([...Ne?.entries()??[],...Ge?.entries()??[]]))});let fg=[],tC=[],iC={};a.forEach(ye=>{let{element:Ne,player:Ge,instruction:At}=ye;if(t.has(Ne)){if(f.has(Ne)){Ge.onDestroy(()=>nr(Ne,At.toStyles)),Ge.disabled=!0,Ge.overrideTotalTime(At.totalTime),n.push(Ge);return}let Ri=iC;if(_i.size>1){let kn=Ne,Pr=[];for(;kn=kn.parentNode;){let ui=_i.get(kn);if(ui){Ri=ui;break}Pr.push(kn)}Pr.forEach(ui=>_i.set(ui,Ri))}let Ao=this._buildAnimation(Ge.namespaceId,At,Ht,o,Ia,Rr);if(Ge.setRealPlayer(Ao),Ri===iC)fg.push(Ge);else{let kn=this.playersByElement.get(Ri);kn&&kn.length&&(Ge.parentPlayer=Ea(kn)),n.push(Ge)}}else _s(Ne,At.fromStyles),Ge.onDestroy(()=>nr(Ne,At.toStyles)),tC.push(Ge),f.has(Ne)&&n.push(Ge)}),tC.forEach(ye=>{let Ne=o.get(ye.element);if(Ne&&Ne.length){let Ge=Ea(Ne);ye.setRealPlayer(Ge)}}),n.forEach(ye=>{ye.parentPlayer?ye.syncPlayerEvents(ye.parentPlayer):ye.destroy()});for(let ye=0;ye!Ao.destroyed);Ri.length?cY(this,Ne,Ri):this.processLeaveNode(Ne)}return j.length=0,fg.forEach(ye=>{this.players.push(ye),ye.onDone(()=>{ye.destroy();let Ne=this.players.indexOf(ye);this.players.splice(Ne,1)}),ye.play()}),fg}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,r,t,n,o){let a=[];if(r){let s=this.playersByQueriedElement.get(e);s&&(a=s)}else{let s=this.playersByElement.get(e);if(s){let c=!o||o==Hd;s.forEach(u=>{u.queued||!c&&u.triggerName!=n||a.push(u)})}}return(t||n)&&(a=a.filter(s=>!(t&&t!=s.namespaceId||n&&n!=s.triggerName))),a}_beforeAnimationBuild(e,r,t){let n=r.triggerName,o=r.element,a=r.isRemovalTransition?void 0:e,s=r.isRemovalTransition?void 0:n;for(let c of r.timelines){let u=c.element,f=u!==o,v=Un(t,u,[]);this._getPreviousPlayers(u,f,a,s,r.toState).forEach(x=>{let E=x.getRealPlayer();E.beforeDestroy&&E.beforeDestroy(),x.destroy(),v.push(x)})}_s(o,r.fromStyles)}_buildAnimation(e,r,t,n,o,a){let s=r.triggerName,c=r.element,u=[],f=new Set,v=new Set,C=r.timelines.map(E=>{let R=E.element;f.add(R);let j=R[ko];if(j&&j.removedBeforeQueried)return new pa(E.duration,E.delay);let F=R!==c,_e=lY((t.get(R)||nY).map(Ht=>Ht.getRealPlayer())).filter(Ht=>{let _i=Ht;return _i.element?_i.element===R:!1}),at=o.get(R),ot=a.get(R),Mi=NA(this._normalizer,E.keyframes,at,ot),Nt=this._buildPlayer(E,Mi,_e);if(E.subTimeline&&n&&v.add(R),F){let Ht=new qd(e,s,R);Ht.setRealPlayer(Nt),u.push(Ht)}return Nt});u.forEach(E=>{Un(this.playersByQueriedElement,E.element,[]).push(E),E.onDone(()=>rY(this.playersByQueriedElement,E.element,E))}),f.forEach(E=>uo(E,SA));let x=Ea(C);return x.onDestroy(()=>{f.forEach(E=>$c(E,SA)),nr(c,r.toStyles)}),v.forEach(E=>{Un(n,E,[]).push(x)}),x}_buildPlayer(e,r,t){return r.length>0?this.driver.animate(e.element,r,e.duration,e.delay,e.easing,t):new pa(e.duration,e.delay)}},qd=class{constructor(e,r,t){this.namespaceId=e,this.triggerName=r,this.element=t,this._player=new pa,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((r,t)=>{r.forEach(n=>Bw(e,t,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let r=this._player;r.triggerCallback&&e.onStart(()=>r.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,r){Un(this._queuedCallbacks,e,[]).push(r)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let r=this._player;r.triggerCallback&&r.triggerCallback(e)}};function rY(i,e,r){let t=i.get(e);if(t){if(t.length){let n=t.indexOf(r);t.splice(n,1)}t.length==0&&i.delete(e)}return t}function aY(i){return i??null}function tg(i){return i&&i.nodeType===1}function sY(i){return i=="start"||i=="done"}function OA(i,e){let r=i.style.display;return i.style.display=e??"none",r}function RA(i,e,r,t,n){let o=[];r.forEach(c=>o.push(OA(c)));let a=[];t.forEach((c,u)=>{let f=new Map;c.forEach(v=>{let C=e.computeStyle(u,v,n);f.set(v,C),(!C||C.length==0)&&(u[ko]=oY,a.push(u))}),i.set(u,f)});let s=0;return r.forEach(c=>OA(c,o[s++])),a}function PA(i,e){let r=new Map;if(i.forEach(s=>r.set(s,[])),e.length==0)return r;let t=1,n=new Set(e),o=new Map;function a(s){if(!s)return t;let c=o.get(s);if(c)return c;let u=s.parentNode;return r.has(u)?c=u:n.has(u)?c=t:c=a(u),o.set(s,c),c}return e.forEach(s=>{let c=a(s);c!==t&&r.get(c).push(s)}),r}function uo(i,e){i.classList?.add(e)}function $c(i,e){i.classList?.remove(e)}function cY(i,e,r){Ea(r).onDone(()=>i.processLeaveNode(e))}function lY(i){let e=[];return qA(i,e),e}function qA(i,e){for(let r=0;rn.add(o)):e.set(i,t),r.delete(i),!0}var Gc=class{constructor(e,r,t){this._driver=r,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(n,o)=>{},this._transitionEngine=new Lw(e.body,r,t),this._timelineEngine=new Fw(e.body,r,t),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,r,t,n,o){let a=e+"-"+n,s=this._triggerCache[a];if(!s){let c=[],u=[],f=HA(this._driver,o,c,u);if(c.length)throw dq(n,c);u.length&&void 0,s=Kq(n,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(r,n,s)}register(e,r){this._transitionEngine.register(e,r)}destroy(e,r){this._transitionEngine.destroy(e,r)}onInsert(e,r,t,n){this._transitionEngine.insertNode(e,r,t,n)}onRemove(e,r,t){this._transitionEngine.removeNode(e,r,t)}disableAnimations(e,r){this._transitionEngine.markElementAsDisabled(e,r)}process(e,r,t,n){if(t.charAt(0)=="@"){let[o,a]=xA(t),s=n;this._timelineEngine.command(o,r,a,s)}else this._transitionEngine.trigger(e,r,t,n)}listen(e,r,t,n,o){if(t.charAt(0)=="@"){let[a,s]=xA(t);return this._timelineEngine.listen(a,r,s,o)}return this._transitionEngine.listen(e,r,t,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function uY(i,e){let r=null,t=null;return Array.isArray(e)&&e.length?(r=xw(e[0]),e.length>1&&(t=xw(e[e.length-1]))):e instanceof Map&&(r=xw(e)),r||t?new Vw(i,r,t):null}var Wc=class Wc{constructor(e,r,t){this._element=e,this._startStyles=r,this._endStyles=t,this._state=0;let n=Wc.initialStylesByElement.get(e);n||Wc.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&nr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(nr(this._element,this._initialStyles),this._endStyles&&(nr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Wc.initialStylesByElement.delete(this._element),this._startStyles&&(_s(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(_s(this._element,this._endStyles),this._endStyles=null),nr(this._element,this._initialStyles),this._state=3)}};Wc.initialStylesByElement=new WeakMap;var Vw=Wc;function xw(i){let e=null;return i.forEach((r,t)=>{mY(t)&&(e=e||new Map,e.set(t,r))}),e}function mY(i){return i==="display"||i==="position"}var dg=class{constructor(e,r,t,n){this.element=e,this.keyframes=r,this.options=t,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let r=[];return e.forEach(t=>{r.push(Object.fromEntries(t))}),r}_triggerWebAnimation(e,r,t){return e.animate(this._convertKeyframesToObject(r),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:Ww(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let r=e==="start"?this._onStartFns:this._onDoneFns;r.forEach(t=>t()),r.length=0}},ug=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,r){return LA(e,r)}getParentElement(e){return Uw(e)}query(e,r,t){return VA(e,r,t)}computeStyle(e,r,t){return Ww(e,r)}animate(e,r,t,n,o,a=[]){let s=n==0?"both":"forwards",c={duration:t,delay:n,fill:s};o&&(c.easing=o);let u=new Map,f=a.filter(x=>x instanceof dg);Oq(t,n)&&f.forEach(x=>{x.currentSnapshot.forEach((E,R)=>u.set(R,E))});let v=Tq(r).map(x=>new Map(x));v=Rq(e,v,u);let C=uY(e,v);return new dg(e,v,c,C)}};var ig="@",YA="@.disabled",mg=class{constructor(e,r,t,n){this.namespaceId=e,this.delegate=r,this.engine=t,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,r){return this.delegate.createElement(e,r)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,r){this.delegate.appendChild(e,r),this.engine.onInsert(this.namespaceId,r,e,!1)}insertBefore(e,r,t,n=!0){this.delegate.insertBefore(e,r,t),this.engine.onInsert(this.namespaceId,r,e,n)}removeChild(e,r,t){this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(e,r){return this.delegate.selectRootElement(e,r)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,r,t,n){this.delegate.setAttribute(e,r,t,n)}removeAttribute(e,r,t){this.delegate.removeAttribute(e,r,t)}addClass(e,r){this.delegate.addClass(e,r)}removeClass(e,r){this.delegate.removeClass(e,r)}setStyle(e,r,t,n){this.delegate.setStyle(e,r,t,n)}removeStyle(e,r,t){this.delegate.removeStyle(e,r,t)}setProperty(e,r,t){r.charAt(0)==ig&&r==YA?this.disableAnimations(e,!!t):this.delegate.setProperty(e,r,t)}setValue(e,r){this.delegate.setValue(e,r)}listen(e,r,t){return this.delegate.listen(e,r,t)}disableAnimations(e,r){this.engine.disableAnimations(e,r)}},jw=class extends mg{constructor(e,r,t,n,o){super(r,t,n,o),this.factory=e,this.namespaceId=r}setProperty(e,r,t){r.charAt(0)==ig?r.charAt(1)=="."&&r==YA?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,r.slice(1),t):this.delegate.setProperty(e,r,t)}listen(e,r,t){if(r.charAt(0)==ig){let n=hY(e),o=r.slice(1),a="";return o.charAt(0)!=ig&&([o,a]=pY(o)),this.engine.listen(this.namespaceId,n,o,a,s=>{let c=s._data||-1;this.factory.scheduleListenerCallback(c,t,s)})}return this.delegate.listen(e,r,t)}};function hY(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function pY(i){let e=i.indexOf("."),r=i.substring(0,e),t=i.slice(e+1);return[r,t]}var hg=class{constructor(e,r,t){this.delegate=e,this.engine=r,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(n,o)=>{let a=o?.parentNode(n);a&&o.removeChild(a,n)}}createRenderer(e,r){let t="",n=this.delegate.createRenderer(e,r);if(!e||!r?.data?.animation){let u=this._rendererCache,f=u.get(n);if(!f){let v=()=>u.delete(n);f=new mg(t,n,this.engine,v),u.set(n,f)}return f}let o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(o,a,e,u.name,u)};return r.data.animation.forEach(s),new jw(this,a,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,t){if(e>=0&&er(t));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),n.push([r,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var gY=(()=>{let e=class e extends Gc{constructor(t,n,o){super(t,n,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(M(se),M(vs),M(bs))},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();function _Y(){return new rg}function vY(i,e,r){return new hg(i,e,r)}var KA=[{provide:bs,useFactory:_Y},{provide:Gc,useClass:gY},{provide:qr,useFactory:vY,deps:[mh,Gc,Z]}],QA=[{provide:vs,useFactory:()=>new ug},{provide:Tt,useValue:"BrowserAnimations"},...KA],bY=[{provide:vs,useClass:Hw},{provide:Tt,useValue:"NoopAnimations"},...KA],ZA=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?bY:QA}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:QA,imports:[ph]});let i=e;return i})();var wY=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],CY=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function xY(i,e){i&1&&(l(0,"span",3),ae(1,1),d())}function DY(i,e){i&1&&(l(0,"span",6),ae(1,2),d())}var SY='.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused:before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus:before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-hover-state-layer-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-selected-hover-state-layer-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}',EY=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],IY=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function MY(i,e){i&1&&I(0,"span",0)}function TY(i,e){i&1&&(l(0,"span",2),ae(1),d())}function kY(i,e){i&1&&ae(0,1)}function AY(i,e){i&1&&I(0,"span",7)}function OY(i,e){if(i&1&&D(0,kY,1,0)(1,AY,1,0,"span",7),i&2){let r=_();xe(r.contentEditInput?0:1)}}function RY(i,e){i&1&&ae(0,2)}function PY(i,e){i&1&&(l(0,"span",5),ae(1,3),d())}var eO=["*"],FY=".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}",tO=new O("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),XA=new O("MatChipAvatar"),JA=new O("MatChipTrailingIcon"),Qw=new O("MatChipRemove"),Xw=new O("MatChip"),pg=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=t}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(t,n){this._elementRef=t,this._parentChip=n,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,t.nativeElement.nodeName==="BUTTON"&&t.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(n){return new(n||e)(h(G),h(Xw))},e.\u0275dir=N({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&b("click",function(s){return o._handleClick(s)})("keydown",function(s){return o._handleKeydown(s)}),n&2&&(ie("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),ne("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?-1:Zt(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[ue]});let i=e;return i})();var iO=(()=>{let e=class e extends pg{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(t){this.disabled||(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Lt(e)))(o||e)}})(),e.\u0275dir=N({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(n,o){n&2&&ie("aria-hidden",null)},standalone:!0,features:[be([{provide:Qw,useExisting:e}]),ve]});let i=e;return i})(),NY=0,Kw=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}constructor(t,n,o,a,s,c,u,f){this._changeDetectorRef=t,this._elementRef=n,this._ngZone=o,this._focusMonitor=a,this._globalRippleOptions=u,this._onFocus=new W,this._onBlur=new W,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${NY++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new T,this.destroyed=new T,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=k(ip),this._injector=k(Pe),this._document=s,this._animationsDisabled=c==="NoopAnimations",f!=null&&(this.tabIndex=parseInt(f)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=yt(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(t){(t.keyCode===8&&!t.repeat||t.keyCode===46)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(n=>{let o=n._elementRef.nativeElement;return o===t||o.contains(t)})}_getActions(){let t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let n=t!==null;n!==this._hasFocusInternal&&(this._hasFocusInternal=n,n?this._onFocus.next({chip:this}):ri(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(n){return new(n||e)(h(me),h(G),h(Z),h(wi),h(se),h(Tt,8),h(Ec,8),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,a){if(n&1&&(Fe(a,XA,5),Fe(a,JA,5),Fe(a,Qw,5),Fe(a,XA,5),Fe(a,JA,5),Fe(a,Qw,5)),n&2){let s;Q(s=K())&&(o.leadingIcon=s.first),Q(s=K())&&(o.trailingIcon=s.first),Q(s=K())&&(o.removeIcon=s.first),Q(s=K())&&(o._allLeadingIcons=s),Q(s=K())&&(o._allTrailingIcons=s),Q(s=K())&&(o._allRemoveIcons=s)}},viewQuery:function(n,o){if(n&1&&le(pg,5),n&2){let a;Q(a=K())&&(o.primaryAction=a.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&(Di("id",o.id),ie("role",o.role)("tabindex",o._getTabIndex())("aria-label",o.ariaLabel),qt("mat-"+(o.color||"primary")),ne("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",Y],highlighted:[2,"highlighted","highlighted",Y],disableRipple:[2,"disableRipple","disableRipple",Y],disabled:[2,"disabled","disabled",Y],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Zt(t)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[be([{provide:Xw,useExisting:e}]),ue,re],ngContentSelectors:CY,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(Ue(wY),I(0,"span",0),l(1,"span",1)(2,"span",2),D(3,xY,2,0,"span",3),l(4,"span",4),ae(5),I(6,"span",5),d()()(),D(7,DY,2,0,"span",6)),n&2&&(m(2),p("isInteractive",!1),m(),xe(o.leadingIcon?3:-1),m(4),xe(o._hasTrailingIcon()?7:-1))},dependencies:[pg],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused:before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus:before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-hover-state-layer-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-selected-hover-state-layer-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Yw=(()=>{let e=class e{constructor(t,n){this._elementRef=t,this._document=n}initialize(t){this.getNativeElement().focus(),this.setValue(t)}getNativeElement(){return this._elementRef.nativeElement}setValue(t){this.getNativeElement().textContent=t,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){let t=this._document.createRange();t.selectNodeContents(this.getNativeElement()),t.collapse(!1);let n=window.getSelection();n.removeAllRanges(),n.addRange(t)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(se))},e.\u0275dir=N({type:e,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"],standalone:!0});let i=e;return i})(),Jw=(()=>{let e=class e extends Kw{constructor(t,n,o,a,s,c,u,f){super(t,n,o,a,s,c,u,f),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new T,this._isEditing=!1,this.role="row",this._onBlur.pipe(fe(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(t){t.keyCode===13&&!this.disabled?this._isEditing?(t.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(t):this._isEditing?t.stopPropagation():super._handleKeydown(t)}_handleDoubleclick(t){!this.disabled&&this.editable&&this._startEditing(t)}_startEditing(t){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(t.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(n),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}};e.\u0275fac=function(n){return new(n||e)(h(me),h(G),h(Z),h(wi),h(se),h(Tt,8),h(Ec,8),mi("tabindex"))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Yw,5),n&2){let s;Q(s=K())&&(o.contentEditInput=s.first)}},viewQuery:function(n,o){if(n&1&&le(Yw,5),n&2){let a;Q(a=K())&&(o.defaultEditInput=a.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,o){n&1&&b("focus",function(s){return o._handleFocus(s)})("dblclick",function(s){return o._handleDoubleclick(s)}),n&2&&(Di("id",o.id),ie("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),ne("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},standalone:!0,features:[be([{provide:Kw,useExisting:e},{provide:Xw,useExisting:e}]),ve,re],ngContentSelectors:IY,decls:10,vars:10,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],["matChipEditInput",""]],template:function(n,o){n&1&&(Ue(EY),D(0,MY,1,0,"span",0),l(1,"span",1),D(2,TY,2,0,"span",2),l(3,"span",3),D(4,OY,2,1)(5,RY,1,0),I(6,"span",4),d()(),D(7,PY,2,0,"span",5),l(8,"span",6),g(9),d()),n&2&&(xe(o._isEditing?-1:0),m(),p("tabIndex",o.tabIndex)("disabled",o.disabled),ie("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),m(),xe(o.leadingIcon?2:-1),m(2),xe(o._isEditing?4:5),m(3),xe(o._hasTrailingIcon()?7:-1),m(),p("id",o._ariaDescriptionId),m(),He(o.ariaDescription))},dependencies:[pg,Yw],styles:[SY],encapsulation:2,changeDetection:0});let i=e;return i})(),LY=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(t){this._explicitRole=t}get focused(){return this._hasFocusedChip()}constructor(t,n,o){this._elementRef=t,this._changeDetectorRef=n,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new W,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new qn}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(t=>{t.disabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&tthis.tabIndex=t)}}_getChipStream(t){return this._chips.changes.pipe(Ot(null),Mt(()=>yt(...this._chips.map(t))))}_originatesFromChip(t){let n=t.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-mdc-chip"))return!0;n=n.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Ot(this._chips)).subscribe(t=>{let n=[];t.forEach(o=>o._getActions().forEach(a=>n.push(a))),this._chipActions.reset(n),this._chipActions.notifyOnChanges()}),this._keyManager=new la(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(fe(this._destroyed)).subscribe(({chip:t})=>{let n=t._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(fe(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Ot(null),fe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(fe(this._destroyed)).subscribe(t=>{let o=this._chips.toArray().indexOf(t.chip);this._isValidIndex(o)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),n=this._chips.toArray()[t];n.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():n.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(kt,8))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-set"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Kw,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._handleKeydown(s)}),n&2&&ie("role",o.role)},inputs:{disabled:[2,"disabled","disabled",Y],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Zt(t)]},standalone:!0,features:[ue,re],ngContentSelectors:eO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Ue(),l(0,"div",0),ae(1),d())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let i=e;return i})();var Zw=class{constructor(e,r){this.source=e,this.value=r}},nO=(()=>{let e=class e extends LY{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(er.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(t){this._value=t}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,n,o,a,s,c,u){super(t,n,o),this.ngControl=u,this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new T,this.valueChange=new T,this._chips=void 0,this.stateChanges=new W,this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Sr(c,u,s,a,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(fe(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),yt(this.chipFocusChanges,this._chips.changes).pipe(fe(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit(),this._chipInput}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(t){this._chipInput=t,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(t){!this.disabled&&!this._originatesFromChip(t)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(t){this._ariaDescribedbyIds=t,this._chipInput?.setDescribedByIds(t)}writeValue(t){this._value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}updateErrorState(){this._errorStateTracker.updateErrorState()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(t){t.keyCode===9?this._chipInput.focused&&Rt(t,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(t.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(t),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){let t=this._chips.length?this._chips.toArray().map(n=>n.value):[];this._value=t,this.change.emit(new Zw(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}};e.\u0275fac=function(n){return new(n||e)(h(G),h(me),h(kt,8),h(Io,8),h(ls,8),h(Er),h(Tn,10))},e.\u0275cmp=S({type:e,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,Jw,5),n&2){let s;Q(s=K())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(ie("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),ne("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-invalid",o.errorState)("mat-mdc-chip-list-required",o.required))},inputs:{disabled:[2,"disabled","disabled",Y],placeholder:"placeholder",required:[2,"required","required",Y],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},standalone:!0,features:[be([{provide:wa,useExisting:e}]),ue,ve,re],ngContentSelectors:eO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Ue(),l(0,"div",0),ae(1),d())},styles:[FY],encapsulation:2,changeDetection:0});let i=e;return i})(),VY=0,oO=(()=>{let e=class e{get chipGrid(){return this._chipGrid}set chipGrid(t){t&&(this._chipGrid=t,this._chipGrid.registerInput(this))}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(t){this._disabled=t}get empty(){return!this.inputElement.value}constructor(t,n,o){this._elementRef=t,this.focused=!1,this.addOnBlur=!1,this.chipEnd=new T,this.placeholder="",this.id=`mat-mdc-chip-list-input-${VY++}`,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=n.separatorKeyCodes,o&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}_keydown(t){this.empty&&t.keyCode===8?(t.repeat||this._chipGrid._focusLastChip(),t.preventDefault()):this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._chipGrid.stateChanges.next()}_emitChipEnd(t){(!t||this._isSeparatorKey(t))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),t?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value=""}setDescribedByIds(t){let n=this._elementRef.nativeElement;t.length?n.setAttribute("aria-describedby",t.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(t){return!Rt(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}};e.\u0275fac=function(n){return new(n||e)(h(G),h(tO),h(Mo,8))},e.\u0275dir=N({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(s){return o._keydown(s)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(Di("id",o.id),ie("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",Y],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",Y]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],standalone:!0,features:[ue,Qe]});let i=e;return i})();var rO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[Er,{provide:tO,useValue:{separatorKeyCodes:[13]}}],imports:[pe,Ir,pe]});let i=e;return i})();var aO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({});let i=e;return i})();var sO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,aO,Ln]});let i=e;return i})();var BY=["*",[["mat-toolbar-row"]]],zY=["*","mat-toolbar-row"],UY=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=N({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let i=e;return i})(),cO=(()=>{let e=class e{constructor(t,n,o){this._elementRef=t,this._platform=n,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(n){return new(n||e)(h(G),h(je),h(se))},e.\u0275cmp=S({type:e,selectors:[["mat-toolbar"]],contentQueries:function(n,o,a){if(n&1&&Fe(a,UY,5),n&2){let s;Q(s=K())&&(o._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(qt(o.color?"mat-"+o.color:""),ne("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[re],ngContentSelectors:zY,decls:2,vars:0,template:function(n,o){n&1&&(Ue(BY),ae(0),ae(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let i=e;return i})();var lO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({imports:[pe,pe]});let i=e;return i})();var dO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e}),e.\u0275inj=J({providers:[{provide:by,useValue:{floatLabel:"always",appearance:"outline"}},{provide:Jh,useValue:udsData.language}],imports:[Si,$M,Mp,lO,Jo,hk,Rc,sO,X1,us,vk,rf,iA,U1,jT,IT,kT,Of,Mf,ZM,rO,sA,Nk,Ik,iT,Pf,ck,ek]});let i=e;return i})();function $Y(i,e){if(i&1){let r=A();l(0,"button",7),b("click",function(){let n=y(r).$implicit,o=_();return w(o.changeLang(n))}),g(1),d()}if(i&2){let r=e.$implicit;m(),He(r.name)}}function WY(i,e){if(i&1&&(l(0,"button",12)(1,"i",8),g(2,"face"),d(),g(3),d()),i&2){let r=_(),t=Ie(7);p("matMenuTriggerFor",t),m(3),He(r.api.user.user)}}function GY(i,e){if(i&1&&(l(0,"button",18),g(1),l(2,"i",8),g(3,"arrow_drop_down"),d()()),i&2){let r=_(),t=Ie(7);p("matMenuTriggerFor",t),m(),P("",r.api.user.user," ")}}var uO=(()=>{let e=class e{constructor(t){this.api=t,this.lang={id:"",name:""},this.isNavbarCollapsed=!0;let n=t.config.language;this.langs=[];for(let o of t.config.available_languages)o.id===n?this.lang=o:this.langs.push(o)}ngOnInit(){}changeLang(t){this.lang=t;let n=document.getElementById("id_language");return n&&n.setAttribute("value",t.id),document.getElementById("form_language").submit(),!1}user(){this.api.gotoUser()}logout(){this.api.logout()}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-navbar"]],decls:39,vars:13,consts:[["appMenu","matMenu"],["userMenu","matMenu"],["shrink","matMenu"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(n,o){if(n&1){let a=A();l(0,"form",3),I(1,"input",4)(2,"input",5),d(),l(3,"mat-menu",null,0),D(5,$Y,2,1,"button",6),d(),l(6,"mat-menu",null,1)(8,"button",7),b("click",function(){return y(a),w(o.user())}),l(9,"i",8),g(10,"home"),d(),l(11,"uds-translate"),g(12,"User mode"),d()(),l(13,"button",7),b("click",function(){return y(a),w(o.logout())}),l(14,"i",9),g(15,"exit_to_app"),d(),l(16,"uds-translate"),g(17,"Logout"),d()()(),l(18,"mat-menu",10,2),D(20,WY,4,2,"button",11),l(21,"button",12)(22,"i",8),g(23,"language"),d(),g(24),d()(),l(25,"mat-toolbar",13)(26,"button",14),I(27,"img",15),d(),I(28,"span",16),l(29,"div",17)(30,"button",18),g(31),l(32,"i",8),g(33,"arrow_drop_down"),d()(),D(34,GY,4,2,"button",19),d(),l(35,"div",20)(36,"button",21)(37,"i",8),g(38,"menu"),d()()()()}if(n&2){let a=Ie(4),s=Ie(19);Xr("action",o.api.config.urls.changeLang,Ee),m(),Xr("name",o.api.csrfField),Xr("value",o.api.csrfToken),m(),Xr("value",o.lang.id),m(3),p("ngForOf",o.langs),m(15),p("ngIf",o.api.user.isLogged),m(),p("matMenuTriggerFor",a),m(3),He(o.lang.name),m(3),p("src",o.api.staticURL("admin/img/udsicon.png"),Ee),m(3),p("matMenuTriggerFor",a),m(),P("",o.lang.name," "),m(3),p("ngIf",o.api.user.isLogged),m(2),p("matMenuTriggerFor",s)}},dependencies:[$e,he,gi,Ip,xp,Io,cO,ke,Wi,Da,hs,Vf,ce],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}.mat-mdc-button[_ngcontent-%COMP%]{font-weight:300}.uds-nav[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}} .dark-theme .uds-nav .expanded button{color:#fff!important}']});let i=e;return i})();var mO=(()=>{let e=class e{constructor(){}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(l(0,"div"),g(1,"\xA9 2012-2023 "),l(2,"a",0),g(3,"Virtual Cable S.L.U."),d()())},styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']});let i=e;return i})();function QY(i,e){if(i&1&&(l(0,"a",27),I(1,"img",2),l(2,"uds-translate"),g(3,"Groups"),d()()),i&2){let r=_();m(),p("src",r.icon("groups"),Ee)}}function KY(i,e){if(i&1){let r=A();l(0,"a",3),b("click",function(){y(r);let n=_();return w(n.toggleConfig())}),I(1,"img",2),l(2,"span")(3,"uds-translate"),g(4,"Tools"),d(),l(5,"i",4),g(6,"arrow_drop_down"),d()()()}if(i&2){let r=_();m(),p("src",r.icon("tools"),Ee)}}var hO=(()=>{let e=class e{constructor(t,n){this.api=t,this.rest=n,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1,this.authsShown=!1,this.servicesShown=!1}ngOnInit(){}icon(t){return this.api.staticURL("admin/img/icons/"+t+".png")}toggle(t){let n=new Map([["connectivity",o=>this.connectivityShown=o?!this.connectivityShown:!1],["pools",o=>this.poolsShown=o?!this.poolsShown:!1],["config",o=>this.configShown=o?!this.configShown:!1],["tokens",o=>this.tokensShown=o?!this.tokensShown:!1],["auths",o=>this.authsShown=o?!this.authsShown:!1],["services",o=>this.servicesShown=o?!this.servicesShown:!1]]);for(let o of n)o[1](o[0]===t)}toggleConnectivity(){this.toggle("connectivity")}togglePools(){this.toggle("pools")}toggleConfig(){this.toggle("config")}toggleTokens(){this.toggle("tokens")}toggleAuths(){this.toggle("auths")}toggleServices(){this.toggle("services")}flushCache(){this.rest.system.flushCache().then(()=>{this.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X))},e.\u0275cmp=S({type:e,selectors:[["uds-sidebar"]],decls:124,vars:33,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/services/providers",1,"sidebar-link"],["mat-button","","routerLink","/services/servers",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/mfas",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/transports",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/networks",1,"sidebar-link"],["mat-button","","routerLink","/connectivity/tunnels",1,"sidebar-link"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/server",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"a",1),I(2,"img",2),l(3,"uds-translate"),g(4,"Summary"),d()(),l(5,"a",3),b("click",function(){return o.toggleServices()}),I(6,"img",2),l(7,"span")(8,"uds-translate"),g(9,"Services"),d(),l(10,"i",4),g(11,"arrow_drop_down"),d()()(),l(12,"div",5)(13,"a",6),I(14,"img",2),l(15,"uds-translate"),g(16,"Providers"),d()(),l(17,"a",7),I(18,"img",2),l(19,"uds-translate"),g(20,"Servers"),d()()(),l(21,"a",3),b("click",function(){return o.toggleAuths()}),I(22,"img",2),l(23,"span")(24,"uds-translate"),g(25,"Authentication"),d(),l(26,"i",4),g(27,"arrow_drop_down"),d()()(),l(28,"div",5)(29,"a",8),I(30,"img",2),l(31,"uds-translate"),g(32,"Authenticators"),d()(),l(33,"a",9),I(34,"img",2),l(35,"uds-translate"),g(36,"Multi Factor"),d()()(),l(37,"a",10),I(38,"img",2),l(39,"uds-translate"),g(40,"Os Managers"),d()(),l(41,"a",3),b("click",function(){return o.toggleConnectivity()}),I(42,"img",2),l(43,"span")(44,"uds-translate"),g(45,"Connectivity"),d(),l(46,"i",4),g(47,"arrow_drop_down"),d()()(),l(48,"div",5)(49,"a",11),I(50,"img",2),l(51,"uds-translate"),g(52,"Transports"),d()(),l(53,"a",12),I(54,"img",2),l(55,"uds-translate"),g(56,"Networks"),d()(),l(57,"a",13),I(58,"img",2),l(59,"uds-translate"),g(60,"Tunnels"),d()()(),l(61,"a",3),b("click",function(){return o.togglePools()}),I(62,"img",2),l(63,"span")(64,"uds-translate"),g(65,"Pools"),d(),l(66,"i",4),g(67,"arrow_drop_down"),d()()(),l(68,"div",5)(69,"a",14),I(70,"img",2),l(71,"uds-translate"),g(72,"Service pools"),d()(),l(73,"a",15),I(74,"img",2),l(75,"uds-translate"),g(76,"Meta pools"),d()(),D(77,QY,4,1,"a",16),l(78,"a",17),I(79,"img",2),l(80,"uds-translate"),g(81,"Calendars"),d()(),l(82,"a",18),I(83,"img",2),l(84,"uds-translate"),g(85,"Accounting"),d()()(),D(86,KY,7,1,"a",19),l(87,"div",5)(88,"a",20),I(89,"img",2),l(90,"uds-translate"),g(91,"Gallery"),d()(),l(92,"a",21),I(93,"img",2),l(94,"uds-translate"),g(95,"Reports"),d()(),l(96,"a",22),I(97,"img",2),l(98,"uds-translate"),g(99,"Notifiers"),d()(),l(100,"a",3),b("click",function(){return o.tokensShown=!o.tokensShown}),I(101,"img",2),l(102,"span")(103,"uds-translate"),g(104,"Tokens"),d(),l(105,"i",4),g(106,"arrow_drop_down"),d()()(),l(107,"div",23)(108,"a",24),I(109,"img",2),l(110,"uds-translate"),g(111,"Actor"),d()(),l(112,"a",25),I(113,"img",2),l(114,"uds-translate"),g(115,"Servers"),d()()(),l(116,"a",26),I(117,"img",2),l(118,"uds-translate"),g(119,"Configuration"),d()(),l(120,"a",3),b("click",function(){return o.flushCache()}),I(121,"img",2),l(122,"uds-translate"),g(123,"Flush Cache"),d()()()()),n&2&&(m(2),p("src",o.icon("dashboard-monitor"),Ee),m(4),p("src",o.icon("providers"),Ee),m(6),p("hidden",!o.servicesShown),m(2),p("src",o.icon("providers"),Ee),m(4),p("src",o.icon("servers"),Ee),m(4),p("src",o.icon("authentication"),Ee),m(6),p("hidden",!o.authsShown),m(2),p("src",o.icon("authenticators"),Ee),m(4),p("src",o.icon("mfas"),Ee),m(4),p("src",o.icon("osmanagers"),Ee),m(4),p("src",o.icon("connectivity"),Ee),m(6),p("hidden",!o.connectivityShown),m(2),p("src",o.icon("transports"),Ee),m(4),p("src",o.icon("networks"),Ee),m(4),p("src",o.icon("tunnels"),Ee),m(4),p("src",o.icon("poolsmenu"),Ee),m(6),p("hidden",!o.poolsShown),m(2),p("src",o.icon("pools"),Ee),m(4),p("src",o.icon("metas"),Ee),m(3),p("ngIf",o.api.user.isAdmin),m(2),p("src",o.icon("calendars"),Ee),m(4),p("src",o.icon("accounts"),Ee),m(3),p("ngIf",o.api.user.isAdmin),m(),p("hidden",!o.configShown),m(2),p("src",o.icon("gallery"),Ee),m(4),p("src",o.icon("reports"),Ee),m(4),p("src",o.icon("notifiers"),Ee),m(4),p("src",o.icon("tokens"),Ee),m(6),p("hidden",!o.tokensShown),m(2),p("src",o.icon("actors"),Ee),m(4),p("src",o.icon("servers"),Ee),m(4),p("src",o.icon("configuration"),Ee),m(4),p("src",o.icon("flush-cache"),Ee))},dependencies:[he,gi,_a,ce],styles:['.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%], .cdk-drag-placeholder[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:#00000052}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation[_ngcontent-%COMP%]{transition:none}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-start{}@keyframes _ngcontent-%COMP%_cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:_ngcontent-%COMP%_cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:_ngcontent-%COMP%_cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator[_ngcontent-%COMP%]:focus:before{content:""}.cdk-high-contrast-active[_ngcontent-%COMP%]{--mat-mdc-focus-indicator-display: block}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:3.7rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:15rem;color:transparent;-moz-transition:color .5s cubic-bezier(.86,0,.07,1);transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem;justify-content:left;justify-items:center;padding-left:1rem;text-decoration:none}.sidebar[_ngcontent-%COMP%]:hover{width:15rem;-moz-transition:all .5s cubic-bezier(.86,0,.07,1);transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-mdc-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em -.5rem 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']});let i=e;return i})();function XY(i,e){if(i&1&&I(0,"div",1),i&2){let r=_();p("innerHTML",r.messages,Gt)}}var pO=(()=>{let e=class e{constructor(t){this.api=t,this.messages="",this.visible=!1}ngOnInit(){let t=n=>n.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1");if(this.api.notices.length>0){let n='
';this.messages='
'+n+this.api.notices.map(t).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").then(()=>{this.visible=!0})}}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&D(0,XY,1,1,"div",0),n&2&&p("ngIf",o.visible)},dependencies:[he],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]});let i=e;return i})();var fO=(()=>{let e=class e{constructor(t){this.api=t,this.title="UDS Admin"}get blackTheme(){return this.api.getFromStorage("blackTheme")==="true"}set blackTheme(t){this.api.putOnStorage("blackTheme",t.toString())}handleKeyboardEvent(t){t.altKey&&t.ctrlKey&&t.key==="b"&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){this.api.switchTheme(this.blackTheme)}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&b("keydown",function(s){return o.handleKeyboardEvent(s)},!1,oS)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(n,o){n&1&&(I(0,"uds-navbar")(1,"uds-sidebar"),l(2,"div",0)(3,"div",1),I(4,"uds-notices")(5,"router-outlet"),d(),l(6,"div",2),I(7,"uds-footer"),d()())},dependencies:[m0,uO,mO,hO,pO],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]});let i=e;return i})();var gO=(()=>{let e=class e extends Ca{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=V({token:e,factory:e.\u0275fac});let i=e;return i})();var _O=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","autocomplete"]],template:function(n,o){n&1&&(l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"input",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("autocomplete","new-"+o.field.name))},dependencies:[ct,we,Oi,ds,De,ge,Ae,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();function eQ(i,e){if(i&1&&(l(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r),m(),P(" ",r," ")}}var vO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.values=[]}ngOnInit(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",this.values=t.map(n=>n.text)}_filter(){let t=this.field.value.toLowerCase();return this.values.filter(n=>n.toLowerCase().includes(t))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModelChange","change","ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete"],[3,"value"]],template:function(n,o){if(n&1){let a=A();l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"mat-autocomplete",null,0),D(5,eQ,2,2,"mat-option",1),d(),l(6,"input",2),H("ngModelChange",function(c){return y(a),$(o.field.value,c)||(o.field.value=c),w(c)}),b("change",function(){return y(a),w(o.changed.emit(o))}),d()()}if(n&2){let a=Ie(4);m(2),P(" ",o.field.gui.label," "),m(3),p("ngForOf",o._filter()),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("maxlength",o.field.gui.length||128)("matAutocomplete",a)("autocomplete","new-"+o.field.name)}},dependencies:[$e,ct,we,Oi,ds,De,ge,Ae,ft,it,jc,ps],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var bO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){!this.field.value&&this.field.value!==0&&(this.field.value=this.field.gui.default||0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always"],["matInput","","type","number",3,"ngModelChange","change","ngModel","placeholder","required","disabled"]],template:function(n,o){n&1&&(l(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),l(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[ct,Vn,we,Oi,De,ge,Ae,ft]});let i=e;return i})();var yO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.passwordType="password"}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModelChange","change","ngModel","placeholder","required","disabled","type"],["matSuffix","","mat-icon-button","",3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(l(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),l(3,"input",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),d(),l(4,"button",2),b("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),l(5,"i",3),g(6),d()()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),m(3),He(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[ct,we,Oi,De,Wi,ge,Ae,oo,ft],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]});let i=e;return i})();var wO=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){(this.field.value===""||this.field.value===void 0)&&(this.field.value=this.field.gui.default||"")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(n,o){}});let i=e;return i})();var CO=(()=>{let e=class e{constructor(){this.field={}}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:7,consts:[["floatLabel","auto"],["matInput","",3,"ngModelChange","ngModel","placeholder","required","readonly","rows","maxlength"]],template:function(n,o){n&1&&(l(0,"mat-form-field",0)(1,"mat-label"),g(2),d(),l(3,"textarea",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",!!o.field.gui.required)("readonly",o.field.gui.readonly===!0)("rows",o.field.gui.lines||3)("maxlength",o.field.gui.length||255))},dependencies:[ct,we,Oi,ds,De,ge,Ae,ft]});let i=e;return i})();function tQ(i,e){if(i&1&&(l(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}var xO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.filter=""}setValue(){let t=this.field.gui.choices||[];this.field.value=this.field.value||this.field.gui.default||"",t.length>0&&!t.find(n=>n.id===this.field.value)&&(this.field.value=""),this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}ngOnInit(){this.setValue()}filteredValues(){let t=this.field.gui.choices||[];if(this.setValue(),!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:9,consts:[[3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options","placeholderLabel","noEntriesFoundLabel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),l(4,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),D(5,tQ,2,2,"mat-option",2),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),p("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,we,Oi,De,ge,Ae,vt,it,di]});let i=e;return i})();function iQ(i,e){if(i&1&&(l(0,"mat-option",3),g(1),d()),i&2){let r=e.$implicit;p("value",r.id),m(),P(" ",r.text," ")}}var DO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.filter="",this.placeholderLabel=django.gettext("Search"),this.noEntriesFoundLabel=django.gettext("No entries found")}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||new Array}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter||t.length===0)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}selectTriggerString(){let t=this.field.value||[],n="";t.length===0&&(n=this.field.gui.tooltip||django.gettext("Select"));for(let o of t)n!==""&&(n+=", "),n+=this.field.gui.choices?.find(a=>a.id===o)?.text||o;return n}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[["multiple","",3,"ngModelChange","valueChange","ngModel","placeholder","required","disabled"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){n&1&&(l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"mat-select",0),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("valueChange",function(){return o.changed.emit(o)}),l(4,"mat-select-trigger"),g(5),d(),l(6,"uds-cond-select-search",1),b("changed",function(s){return o.filter=s}),d(),D(7,iQ,2,2,"mat-option",2),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),U("ngModel",o.field.value),p("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),P(" ",o.selectTriggerString()," "),m(),p("options",o.field.gui.choices),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,we,Oi,De,ge,Ae,vt,of,it,di]});let i=e;return i})();function nQ(i,e){if(i&1){let r=A();l(0,"div",12)(1,"div",13),g(2),d(),l(3,"div",14),g(4," \xA0"),l(5,"a",15),b("click",function(){let n=y(r).index,o=_();return w(o.removeElement(n))}),l(6,"i",16),g(7,"close"),d()()()()}if(i&2){let r=e.$implicit;m(2),P(" ",r," ")}}var SO=(()=>{let e=class e{constructor(t,n,o,a){this.api=t,this.rest=n,this.dialogRef=o,this.data=a,this.values=[],this.input="",this.done=new Jt,this.data.values.forEach(s=>this.values.push(s))}static launch(t,n,o){let a=window.innerWidth<800?"50%":"30%";return t.gui.dialog.open(e,{width:a,data:{title:n,values:o},disableClose:!0}).componentInstance.done}addElements(){this.input.split(",").forEach(t=>{this.values.push(t)}),this.input=""}checkKey(t){t.code==="Enter"&&this.addElements()}removeAll(){this.values.length=0}removeElement(t){this.values.splice(t,1)}save(){this.data.values.length=0,this.values.forEach(t=>this.data.values.push(t)),this.dialogRef.close(),this.done.resolve(this.data.values)}cancel(){this.dialogRef.close(),this.done.resolve(null)}ngOnInit(){}};e.\u0275fac=function(n){return new(n||e)(h(z),h(X),h(Le),h(Ke))},e.\u0275cmp=S({type:e,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"keyup","ngModelChange","ngModel"],["matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(n,o){n&1&&(l(0,"h4",0),g(1),d(),l(2,"mat-dialog-content")(3,"div",1)(4,"div",2),D(5,nQ,8,1,"div",3),d(),l(6,"div",4)(7,"button",5),b("click",function(){return o.removeAll()}),l(8,"uds-translate"),g(9,"Remove all"),d()()(),l(10,"div",6)(11,"mat-form-field",7)(12,"input",8),b("keyup",function(s){return o.checkKey(s)}),H("ngModelChange",function(s){return $(o.input,s)||(o.input=s),s}),d(),l(13,"button",9),b("click",function(){return o.addElements()}),l(14,"i",10),g(15,"add"),d()()()()()(),l(16,"mat-dialog-actions")(17,"button",5),b("click",function(){return o.cancel()}),l(18,"uds-translate"),g(19,"Cancel"),d()(),l(20,"button",11),b("click",function(){return o.save()}),l(21,"uds-translate"),g(22,"Ok"),d()()()),n&2&&(m(),P(" ",o.data.title,` +`),m(4),p("ngForOf",o.values),m(7),U("ngModel",o.input))},dependencies:[$e,ct,we,De,ke,Wi,Xe,et,Je,ge,oo,ft,ce],styles:[".content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem;margin-bottom:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]});let i=e;return i})();var EO=(()=>{let e=class e{constructor(t){this.api=t,this.field={},this.changed=new T}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return q(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let t=yield SO.launch(this.api,this.field.gui.label,this.field.value||this.field.gui.default||[]);this.changed.emit({field:this.field})})}getValue(){if(this.valueEmpty())return"";let t=this.field.value.filter((n,o,a)=>o<5).join(", ");return this.field.value.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.value.length-5))),t}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["floatLabel","always",3,"click"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled"]],template:function(n,o){n&1&&(l(0,"mat-form-field",0),b("click",function(){return o.launch()}),l(1,"mat-label"),g(2),d(),I(3,"input",1),d()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),p("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ge,Ae,ft],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]});let i=e;return i})();var IO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T}ngOnInit(){aM(this.field.value)?this.field.value=cp(this.field.gui.default):this.field.value=cp(this.field.value)}getValue(){return cp(this.field.value)?django.gettext("Yes"):django.gettext("No")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:3,vars:4,consts:[[1,"toggle"],[3,"ngModelChange","change","ngModel","required","disabled"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"mat-slide-toggle",1),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),b("change",function(){return o.changed.emit(o)}),g(2),d()()),n&2&&(m(),U("ngModel",o.field.value),p("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(),P(" ",o.field.gui.label," "))},dependencies:[we,Oi,De,ir]});let i=e;return i})();function oQ(i,e){if(i&1&&I(0,"div",5),i&2){let r=_().$implicit,t=_();p("innerHTML",t.asIcon(r),Gt)}}function rQ(i,e){if(i&1&&(l(0,"div"),D(1,oQ,1,1,"div",4),d()),i&2){let r=e.$implicit,t=_();m(),p("ngIf",r.id===t.field.value)}}function aQ(i,e){if(i&1&&(l(0,"mat-option",6),I(1,"div",5),d()),i&2){let r=e.$implicit,t=_();p("value",r.id),m(),p("innerHTML",t.asIcon(r),Gt)}}var MO=(()=>{let e=class e{constructor(t){this.api=t,this.field={},this.changed=new T,this.filter=""}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"";let t=this.field.gui.choices||[];this.field.value===""&&t.length>0&&(this.field.value=t[0].id)}asIcon(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)}filteredValues(){let t=this.field.gui.choices||[];if(!this.filter)return t;let n=this.filter.toLocaleLowerCase();return t.filter(o=>o.text.toLocaleLowerCase().includes(n))}};e.\u0275fac=function(n){return new(n||e)(h(z))},e.\u0275cmp=S({type:e,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"valueChange","ngModelChange","placeholder","ngModel","required","disabled"],[4,"ngFor","ngForOf"],[3,"changed","options"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"value"]],template:function(n,o){n&1&&(l(0,"mat-form-field")(1,"mat-label"),g(2),d(),l(3,"mat-select",0),b("valueChange",function(){return o.changed.emit(o)}),H("ngModelChange",function(s){return $(o.field.value,s)||(o.field.value=s),s}),l(4,"mat-select-trigger"),D(5,rQ,2,1,"div",1),d(),l(6,"uds-cond-select-search",2),b("changed",function(s){return o.filter=s}),d(),D(7,aQ,2,2,"mat-option",3),d()()),n&2&&(m(2),P(" ",o.field.gui.label," "),m(),p("placeholder",o.field.gui.tooltip),U("ngModel",o.field.value),p("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),m(2),p("ngForOf",o.field.gui.choices),m(),p("options",o.field.gui.choices),m(),p("ngForOf",o.filteredValues()))},dependencies:[$e,he,we,Oi,De,ge,Ae,vt,of,it,di]});let i=e;return i})();var TO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.value=new Date}get date(){return this.value}set date(t){this.value!==t&&(this.value=t,this.field.value=ga("%Y-%m-%d",this.value))}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||"",this.field.value==="2000-01-01"?this.field.value=ga("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=ga("%Y-12-31"));let t=this.field.value.split("-");t.length===3&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["endDatePicker",""],[1,"oneHalf"],["matInput","",3,"ngModelChange","matDatepicker","ngModel","placeholder","disabled"],["matSuffix","",3,"for"]],template:function(n,o){if(n&1){let a=A();l(0,"mat-form-field",1)(1,"mat-label"),g(2),d(),l(3,"input",2),H("ngModelChange",function(c){return y(a),$(o.date,c)||(o.date=c),w(c)}),d(),I(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let a=Ie(6);m(2),P(" ",o.field.gui.label," "),m(),p("matDatepicker",a),U("ngModel",o.date),p("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),m(),p("for",a)}},dependencies:[ct,we,De,ge,Ae,oo,ft,qf,Hc,zd]});let i=e;return i})();function sQ(i,e){if(i&1){let r=A();l(0,"mat-chip-row",5),b("removed",function(){let n=y(r).$implicit,o=_();return w(o.remove(n))}),g(1),l(2,"i",6),g(3,"cancel"),d()()}if(i&2){let r=e.$implicit,t=_();p("removable",t.field.gui.readonly!==!0),m(),P(" ",r," ")}}var kO=(()=>{let e=class e{constructor(){this.field={},this.changed=new T,this.separatorKeysCodes=[13,188]}ngOnInit(){this.field.value=this.field.value||new Array,this.field.value.forEach((t,n,o)=>{t.trim()===""&&o.splice(n,1)})}add(t){let n=t.input,o=t.value;(o||"").trim()&&this.field.value&&this.field.value.push(o.trim()),n&&(n.value="")}remove(t){if(!this.field.value){console.warn("Trying to remove tag from field with no values: "+this.field.name);return}let n=this.field.value.indexOf(t);n>=0&&this.field.value.splice(n,1)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=S({type:e,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:7,consts:[["chipList",""],["floatLabel","always"],[3,"change","disabled"],[3,"removable","removed",4,"ngFor","ngForOf"],[3,"matChipInputTokenEnd","placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[3,"removed","removable"],["matChipRemove","",1,"material-icons"]],template:function(n,o){if(n&1){let a=A();l(0,"mat-form-field",1)(1,"mat-label"),g(2),d(),l(3,"mat-chip-grid",2,0),b("change",function(){return y(a),w(o.changed.emit(o))}),D(5,sQ,4,2,"mat-chip-row",3),l(6,"input",4),b("matChipInputTokenEnd",function(c){return y(a),w(o.add(c))}),d()()()}if(n&2){let a=Ie(4);m(2),P(" ",o.field.gui.label," "),m(),p("disabled",o.field.gui.readonly===!0),m(2),p("ngForOf",o.field.value),m(),p("placeholder",o.field.gui.tooltip)("matChipInputFor",a)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[$e,ge,Ae,nO,oO,iO,Jw],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]});let i=e;return i})();var pSe=Kd(RO());var PO=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ee({type:e,bootstrap:[fO]}),e.\u0275inj=J({providers:[z,X,{provide:Ca,useClass:gO},iI(nI())],imports:[ph,wA,ZA,dO,sT.forRoot({echarts:()=>import("./chunk-TAOUYBKI.js")})]});let i=e;return i})();mE(kp,function(){return[ec,oh,tr,_O,bO,yO,wO,CO,xO,DO,EO,IO,MO,TO,kO,vO]},[]);Rp.production&&void 0;uI().bootstrapModule(PO).catch(i=>console.log(i)); diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index bad725d7d..fb317ee1d 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -90,7 +90,7 @@ - + @@ -102,6 +102,6 @@ - + diff --git a/server/src/uds/templates/uds/modern/index.html b/server/src/uds/templates/uds/modern/index.html index 8a3cf3b2e..f907aac2b 100644 --- a/server/src/uds/templates/uds/modern/index.html +++ b/server/src/uds/templates/uds/modern/index.html @@ -97,7 +97,7 @@ head.appendChild(link); --> - + @@ -109,6 +109,6 @@ - +