marketplacepos 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[126],{7481:(ze,Me,a)=>{a.d(Me,{R:()=>ee,p:()=>L});var r=a(4650),l=a(6895),t=a(4006),M=a(8252),ne=a(1589);function D(_,R){if(1&_){const B=r.EpF();r.ynx(0),r.TgZ(1,"div",18)(2,"input",19),r.NdJ("ngModelChange",function(z){r.CHM(B);const Z=r.oxw();return r.KtG(Z.text=z)})("keyup",function(){r.CHM(B);const z=r.oxw();return r.KtG(z.onTextChange())})("keyup.enter",function(){r.CHM(B);const z=r.oxw();return r.KtG(z.submit())}),r.qZA(),r.TgZ(3,"div")(4,"button",20),r.NdJ("click",function(){r.CHM(B);const z=r.oxw();return r.KtG(z.submit())}),r._UZ(5,"i",21),r.qZA()()(),r.BQk()}if(2&_){const B=r.oxw();r.xp6(2),r.Q6J("ngModel",B.text)("placeholder",B.searchBoxPlaceHolder)}}function _e(_,R){if(1&_){const B=r.EpF();r.TgZ(0,"div",22)(1,"a",23)(2,"i",24),r._UZ(3,"i",25),r.qZA()(),r.TgZ(4,"form",26),r.Hsn(5,2),r.TgZ(6,"button",27),r.NdJ("click",function(){r.CHM(B);const z=r.oxw();return r.KtG(z.submit())}),r._UZ(7,"i",28),r._uU(8,"Search "),r.qZA()()()}}const se=[[["actions"]],[["content"]],[["filters"]]],G=["actions","content","filters"];let L=(()=>{class _{constructor(B){this.sidebarService=B,this.onSubmit=new r.vpe,this.textChange=new r.vpe,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search.."}submit(){this.inputText=this.text,this.onSubmit.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}IsActive(B){return this.getMenuNameByUrl(window.location.href)==this.getMenuNameByUrl(B)}toggledropdown(B){B.stopPropagation()}getMenuNameByUrl(B){var j=B.split("#");if(j.length>1){var Z=j[1].split("/");return""!=Z[0]?Z[0]:Z[1]}return B}toggleMenu(){this.sidebarService.toggleSidebar()}}return _.\u0275fac=function(B){return new(B||_)(r.Y36(ne.g))},_.\u0275cmp=r.Xpm({type:_,selectors:[["mainpanel"]],inputs:{text:"text",Title:"Title",textButton:"textButton",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceHolder:"searchBoxPlaceHolder",showBeside:"showBeside"},outputs:{onSubmit:"onSubmit",textChange:"textChange"},ngContentSelectors:G,decls:26,vars:4,consts:[[1,"navbar","navbar-default","fixed-top","navbar-expand-lg","fixed-top","d-block","d-print-none","bg-white"],[1,"row","px-7",2,"margin-top","9px"],[1,"col-auto","pe-0","order-0","g-0","ms-6"],[1,"navbar-brand","me-5","float-start","my-1",3,"title"],["id","action-filter",1,"col-lg-auto","col-12","d-lg-flex","collapse","order-lg-1","ps-0","order-2","gx-0"],[1,"search-box"],[1,"d-flex","h-100","align-items-center","justify-content-lg-start","justify-content-end"],[4,"ngIf"],["class","dropdown text-secondary ps-5",4,"ngIf"],[1,"col","d-lg-none","d-flex","justify-content-end","align-items-center","order-lg-2","order-1"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-button","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-sort-down"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-filter","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-search"],["type","button","aria-controls","navigation-index","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right","float-end","toggle-menu","ps-2","pe-0",2,"width","max-content","height","max-content",3,"click"],[1,"navbar-toggler-bar","burger-lines"],["id","action-button",1,"col-lg","col-12","d-lg-flex","justify-content-end","collapse","order-3"],[1,"main-panel-content"],[1,"input-group",2,"width","13.375rem"],["type","text",1,"form-control",2,"font-size","1rem",3,"ngModel","placeholder","ngModelChange","keyup","keyup.enter"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0","border-start-0",3,"click"],[1,"fa","fa-search"],[1,"dropdown","text-secondary","ps-5"],["id","dropdown-filter","role","button","data-bs-toggle","dropdown","data-bs-auto-close","outside","aria-expanded","false",1,"text-muted","h5"],[1,"fa","fa-filter"],[1,"fa-solid","fa-caret-down"],[1,"dropdown-menu",2,"left","auto !important"],["title","Click to filter!",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-search","pointer","me-1"]],template:function(B,j){1&B&&(r.F$t(se),r.TgZ(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),r._uU(4),r.qZA()(),r.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div")(9,"div"),r.YNc(10,D,6,2,"ng-container",7),r.qZA()(),r.YNc(11,_e,9,0,"div",8),r.qZA()()(),r.TgZ(12,"div",9)(13,"button",10),r._UZ(14,"i",11),r.qZA(),r.TgZ(15,"button",12),r._UZ(16,"i",13),r.qZA(),r.TgZ(17,"button",14),r.NdJ("click",function(){return j.toggleMenu()}),r._UZ(18,"span",15)(19,"span",15)(20,"span",15),r.qZA()(),r.TgZ(21,"div",16),r.Hsn(22),r.qZA()()(),r.TgZ(23,"div",17)(24,"div"),r.Hsn(25,1),r.qZA()()),2&B&&(r.xp6(3),r.s9C("title",j.Title),r.xp6(1),r.hij(" ",j.Title," "),r.xp6(6),r.Q6J("ngIf",!j.hideSearchBox),r.xp6(1),r.Q6J("ngIf",!j.hideSearchDropdown))},dependencies:[l.O5,t._Y,t.Fj,t.JJ,t.JL,t.On,t.F],styles:[".dropdown .dropdown-menu.show{top:100%!important;transform:none!important;z-index:10000;cursor:pointer}.search-box .dropdown-menu{border-radius:4px!important;margin:-5px 0 0!important;padding:10px}.search-box .dropdown-menu div.d-flex>div:not(:last-child){margin-right:10px}.search-box .dropdown-menu div[container]{width:200px}.search-box .dropdown-menu div[container]>div{margin:0 0 12px}.search-box .dropdown-menu div[container]>div>h6{margin-bottom:5px}.search-box .dropdown-menu div[container]>div>input,.search-box .dropdown-menu div[container]>div>select{width:100%;padding:7px 5px 6px;border:solid 1px #ddd}.search-box .dropdown-menu div[container]>div>input[datepicker]{width:95px}.search-box .dropdown-menu div[container]>div radioyesnob ul{margin:10px 0 0}.search-box .dropdown-menu .more{background-color:#fff;position:absolute;bottom:-15px;width:5rem}.search-box .dropdown-menu div[container]>div>h6{font-size:12px}.search-box .form-control{height:auto}.navbar .navbar-brand{white-space:nowrap;max-width:24.75rem;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}@media (max-width: 468px){.navbar .navbar-brand{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media (max-width: 480px){.navbar.page-nav{height:auto}}@media (min-width: 1366px){.navbar.page-nav{height:44px}}\n"],encapsulation:2}),_})(),ee=(()=>{class _{}return _.\u0275fac=function(B){return new(B||_)},_.\u0275mod=r.oAB({type:_}),_.\u0275inj=r.cJS({imports:[l.ez,t.u5,M.Bz]}),_})()},3126:(ze,Me,a)=>{a.r(Me),a.d(Me,{MenuModule:()=>at});var c,r=a(6895),l=a(4006),t=a(8252),M=a(8063),ne=(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var h in n)n.hasOwnProperty(h)&&(o[h]=n[h])},function(o,n){function h(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}),D=function(c){function o(n,h){var d=this,N=this.constructor.prototype;return(d=c.call(this,n)||this).statusCode=h,d.__proto__=N,d}return ne(o,c),o}(Error),_e=function(c){function o(n){void 0===n&&(n="A timeout occurred.");var p=this,d=this.constructor.prototype;return(p=c.call(this,n)||this).__proto__=d,p}return ne(o,c),o}(Error),se=function(c){function o(n){void 0===n&&(n="An abort occurred.");var p=this,d=this.constructor.prototype;return(p=c.call(this,n)||this).__proto__=d,p}return ne(o,c),o}(Error),G=Object.assign||function(c){for(var o,n=1,h=arguments.length;n<h;n++)for(var p in o=arguments[n])Object.prototype.hasOwnProperty.call(o,p)&&(c[p]=o[p]);return c},L=function c(o,n,h){this.statusCode=o,this.statusText=n,this.content=h},ee=function(){function c(){}return c.prototype.get=function(o,n){return this.send(G({},n,{method:"GET",url:o}))},c.prototype.post=function(o,n){return this.send(G({},n,{method:"POST",url:o}))},c.prototype.delete=function(o,n){return this.send(G({},n,{method:"DELETE",url:o}))},c.prototype.getCookieString=function(o){return""},c}(),_=(()=>(function(c){c[c.Trace=0]="Trace",c[c.Debug=1]="Debug",c[c.Information=2]="Information",c[c.Warning=3]="Warning",c[c.Error=4]="Error",c[c.Critical=5]="Critical",c[c.None=6]="None"}(_||(_={})),_))(),R=function(){function c(){}return c.prototype.log=function(o,n){},c.instance=new c,c}(),z=function(){function c(){}return c.isRequired=function(o,n){if(null==o)throw new Error("The '"+n+"' argument is required.")},c.isIn=function(o,n,h){if(!(o in n))throw new Error("Unknown "+h+" value: "+o+".")},c}(),Z=function(){function c(){}return Object.defineProperty(c,"isBrowser",{get:function(){return"object"==typeof window},enumerable:!0,configurable:!0}),Object.defineProperty(c,"isWebWorker",{get:function(){return"object"==typeof self&&"importScripts"in self},enumerable:!0,configurable:!0}),Object.defineProperty(c,"isNode",{get:function(){return!this.isBrowser&&!this.isWebWorker},enumerable:!0,configurable:!0}),c}();function ge(c,o){var n="";return xe(c)?(n="Binary data of length "+c.byteLength,o&&(n+=". Content: '"+function ke(c){var o=new Uint8Array(c),n="";return o.forEach(function(h){n+="0x"+(h<16?"0":"")+h.toString(16)+" "}),n.substr(0,n.length-1)}(c)+"'")):"string"==typeof c&&(n="String data of length "+c.length,o&&(n+=". Content: '"+c+"'")),n}function xe(c){return c&&typeof ArrayBuffer<"u"&&(c instanceof ArrayBuffer||c.constructor&&"ArrayBuffer"===c.constructor.name)}function de(c,o,n,h,p,d,N){return function(c,o,n,h){return new(n||(n=Promise))(function(p,d){function N(g){try{K(h.next(g))}catch(ue){d(ue)}}function J(g){try{K(h.throw(g))}catch(ue){d(ue)}}function K(g){g.done?p(g.value):new n(function(ue){ue(g.value)}).then(N,J)}K((h=h.apply(c,[])).next())})}(this,0,void 0,function(){var J,K,g,ue,He;return function(c,o){var h,p,d,N,n={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function K(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,p&&(d=2&g[0]?p.return:g[0]?p.throw||((d=p.return)&&d.call(p),0):p.next)&&!(d=d.call(p,g[1])).done)return d;switch(p=0,d&&(g=[2&g[0],d.value]),g[0]){case 0:case 1:d=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,p=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(d=(d=n.trys).length>0&&d[d.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!d||g[1]>d[0]&&g[1]<d[3])){n.label=g[1];break}if(6===g[0]&&n.label<d[1]){n.label=d[1],d=g;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(g);break}d[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],p=0}finally{h=d=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}}(this,function(Ye){switch(Ye.label){case 0:return p?[4,p()]:[3,2];case 1:(g=Ye.sent())&&((J={}).Authorization="Bearer "+g,K=J),Ye.label=2;case 2:return c.log(_.Trace,"("+o+" transport) sending data. "+ge(d,N)+"."),ue=xe(d)?"arraybuffer":"text",[4,n.post(h,{content:d,headers:K,responseType:ue})];case 3:return He=Ye.sent(),c.log(_.Trace,"("+o+" transport) request complete. Response status: "+He.statusCode+"."),[2]}})})}var ae,b=function(){function c(o,n){this.subject=o,this.observer=n}return c.prototype.dispose=function(){var o=this.subject.observers.indexOf(this.observer);o>-1&&this.subject.observers.splice(o,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch(function(n){})},c}(),x=function(){function c(o){this.minimumLogLevel=o,this.outputConsole=console}return c.prototype.log=function(o,n){if(o>=this.minimumLogLevel)switch(o){case _.Critical:case _.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+_[o]+": "+n);break;case _.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+_[o]+": "+n);break;case _.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+_[o]+": "+n);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+_[o]+": "+n)}},c}(),v=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var h in n)n.hasOwnProperty(h)&&(o[h]=n[h])};return function(o,n){function h(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}(),k=Object.assign||function(c){for(var o,n=1,h=arguments.length;n<h;n++)for(var p in o=arguments[n])Object.prototype.hasOwnProperty.call(o,p)&&(c[p]=o[p]);return c};if(typeof XMLHttpRequest>"u"){var we=require;ae=we("request")}var Ce=function(c){function o(n){var h=c.call(this)||this;if(typeof ae>"u")throw new Error("The 'request' module could not be loaded.");return h.logger=n,h.cookieJar=ae.jar(),h.request=ae.defaults({jar:h.cookieJar}),h}return v(o,c),o.prototype.send=function(n){var h=this;return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new se):new Promise(function(p,d){var N;N=xe(n.content)?Buffer.from(n.content):n.content||"";var J=h.request(n.url,{body:N,encoding:"arraybuffer"===n.responseType?null:"utf8",headers:k({"X-Requested-With":"XMLHttpRequest"},n.headers),method:n.method,timeout:n.timeout},function(K,g,ue){if(n.abortSignal&&(n.abortSignal.onabort=null),K)return"ETIMEDOUT"===K.code&&(h.logger.log(_.Warning,"Timeout from HTTP request."),d(new _e)),h.logger.log(_.Warning,"Error from HTTP request. "+K),void d(K);g.statusCode>=200&&g.statusCode<300?p(new L(g.statusCode,g.statusMessage||"",ue)):d(new D(g.statusMessage||"",g.statusCode||0))});n.abortSignal&&(n.abortSignal.onabort=function(){J.abort(),d(new se)})})},o.prototype.getCookieString=function(n){return this.cookieJar.getCookieString(n)},o}(ee),Ie=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var h in n)n.hasOwnProperty(h)&&(o[h]=n[h])};return function(o,n){function h(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}(),Te=function(c){function o(n){var h=c.call(this)||this;return h.logger=n,h}return Ie(o,c),o.prototype.send=function(n){var h=this;return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new se):n.method?n.url?new Promise(function(p,d){var N=new XMLHttpRequest;N.open(n.method,n.url,!0),N.withCredentials=!0,N.setRequestHeader("X-Requested-With","XMLHttpRequest"),N.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var J=n.headers;J&&Object.keys(J).forEach(function(K){N.setRequestHeader(K,J[K])}),n.responseType&&(N.responseType=n.responseType),n.abortSignal&&(n.abortSignal.onabort=function(){N.abort(),d(new se)}),n.timeout&&(N.timeout=n.timeout),N.onload=function(){n.abortSignal&&(n.abortSignal.onabort=null),N.status>=200&&N.status<300?p(new L(N.status,N.statusText,N.response||N.responseText)):d(new D(N.statusText,N.status))},N.onerror=function(){h.logger.log(_.Warning,"Error from HTTP request. "+N.status+": "+N.statusText+"."),d(new D(N.statusText,N.status))},N.ontimeout=function(){h.logger.log(_.Warning,"Timeout from HTTP request."),d(new _e)},N.send(n.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},o}(ee),ye=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var h in n)n.hasOwnProperty(h)&&(o[h]=n[h])};return function(o,n){function h(){this.constructor=o}c(o,n),o.prototype=null===n?Object.create(n):(h.prototype=n.prototype,new h)}}(),Ee=function(c){function o(n){var h=c.call(this)||this;return h.httpClient=typeof XMLHttpRequest<"u"?new Te(n):new Ce(n),h}return ye(o,c),o.prototype.send=function(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new se):n.method?n.url?this.httpClient.send(n):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},o.prototype.getCookieString=function(n){return this.httpClient.getCookieString(n)},o}(ee),H=function(){function c(){}return c.write=function(o){return""+o+c.RecordSeparator},c.parse=function(o){if(o[o.length-1]!==c.RecordSeparator)throw new Error("Message is incomplete.");var n=o.split(c.RecordSeparator);return n.pop(),n},c.RecordSeparatorCode=30,c.RecordSeparator=String.fromCharCode(c.RecordSeparatorCode),c}(),Q=function(){function c(){}return c.prototype.writeHandshakeRequest=function(o){return H.write(JSON.stringify(o))},c.prototype.parseHandshakeResponse=function(o){var h,p;if(xe(o)||typeof Buffer<"u"&&o instanceof Buffer){var d=new Uint8Array(o);if(-1===(N=d.indexOf(H.RecordSeparatorCode)))throw new Error("Message is incomplete.");var J=N+1;h=String.fromCharCode.apply(null,d.slice(0,J)),p=d.byteLength>J?d.slice(J).buffer:null}else{var N,K=o;if(-1===(N=K.indexOf(H.RecordSeparator)))throw new Error("Message is incomplete.");h=K.substring(0,J=N+1),p=K.length>J?K.substring(J):null}var g=H.parse(h),ue=JSON.parse(g[0]);if(ue.type)throw new Error("Expected a handshake response from the server.");return[p,ue]},c}(),oe=(()=>(function(c){c[c.Invocation=1]="Invocation",c[c.StreamItem=2]="StreamItem",c[c.Completion=3]="Completion",c[c.StreamInvocation=4]="StreamInvocation",c[c.CancelInvocation=5]="CancelInvocation",c[c.Ping=6]="Ping",c[c.Close=7]="Close"}(oe||(oe={})),oe))(),F=function(){function c(){this.observers=[]}return c.prototype.next=function(o){for(var n=0,h=this.observers;n<h.length;n++)h[n].next(o)},c.prototype.error=function(o){for(var n=0,h=this.observers;n<h.length;n++){var p=h[n];p.error&&p.error(o)}},c.prototype.complete=function(){for(var o=0,n=this.observers;o<n.length;o++){var h=n[o];h.complete&&h.complete()}},c.prototype.subscribe=function(o){return this.observers.push(o),new b(this,o)},c}(),$=function(c,o,n,h){return new(n||(n=Promise))(function(p,d){function N(g){try{K(h.next(g))}catch(ue){d(ue)}}function J(g){try{K(h.throw(g))}catch(ue){d(ue)}}function K(g){g.done?p(g.value):new n(function(ue){ue(g.value)}).then(N,J)}K((h=h.apply(c,o||[])).next())})},ie=function(c,o){var h,p,d,N,n={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function K(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,p&&(d=2&g[0]?p.return:g[0]?p.throw||((d=p.return)&&d.call(p),0):p.next)&&!(d=d.call(p,g[1])).done)return d;switch(p=0,d&&(g=[2&g[0],d.value]),g[0]){case 0:case 1:d=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,p=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(d=(d=n.trys).length>0&&d[d.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!d||g[1]>d[0]&&g[1]<d[3])){n.label=g[1];break}if(6===g[0]&&n.label<d[1]){n.label=d[1],d=g;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(g);break}d[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],p=0}finally{h=d=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}},ve=(()=>(function(c){c.Disconnected="Disconnected",c.Connecting="Connecting",c.Connected="Connected",c.Disconnecting="Disconnecting",c.Reconnecting="Reconnecting"}(ve||(ve={})),ve))(),P=function(){function c(o,n,h,p){var d=this;this.nextKeepAlive=0,z.isRequired(o,"connection"),z.isRequired(n,"logger"),z.isRequired(h,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=n,this.protocol=h,this.connection=o,this.reconnectPolicy=p,this.handshakeProtocol=new Q,this.connection.onreceive=function(N){return d.processIncomingData(N)},this.connection.onclose=function(N){return d.connectionClosed(N)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=ve.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:oe.Ping})}return c.create=function(o,n,h,p){return new c(o,n,h,p)},Object.defineProperty(c.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(o){if(this.connectionState!==ve.Disconnected&&this.connectionState!==ve.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!o)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=o},enumerable:!0,configurable:!0}),c.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},c.prototype.startWithStateTransitions=function(){return $(this,void 0,void 0,function(){var o;return ie(this,function(n){switch(n.label){case 0:if(this.connectionState!==ve.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=ve.Connecting,this.logger.log(_.Debug,"Starting HubConnection."),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return n.sent(),this.connectionState=ve.Connected,this.connectionStarted=!0,this.logger.log(_.Debug,"HubConnection connected successfully."),[3,4];case 3:return o=n.sent(),this.connectionState=ve.Disconnected,this.logger.log(_.Debug,"HubConnection failed to start successfully because of error '"+o+"'."),[2,Promise.reject(o)];case 4:return[2]}})})},c.prototype.startInternal=function(){return $(this,void 0,void 0,function(){var o,n,h,p=this;return ie(this,function(d){switch(d.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,o=new Promise(function(N,J){p.handshakeResolver=N,p.handshakeRejecter=J}),[4,this.connection.start(this.protocol.transferFormat)];case 1:d.sent(),d.label=2;case 2:return d.trys.push([2,5,,7]),n={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(_.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(n))];case 3:return d.sent(),this.logger.log(_.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,o];case 4:if(d.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return h=d.sent(),this.logger.log(_.Debug,"Hub handshake failed with error '"+h+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(h)];case 6:throw d.sent(),h;case 7:return[2]}})})},c.prototype.stop=function(){return $(this,void 0,void 0,function(){var o;return ie(this,function(h){switch(h.label){case 0:return o=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:h.sent(),h.label=2;case 2:return h.trys.push([2,4,,5]),[4,o];case 3:case 4:return h.sent(),[3,5];case 5:return[2]}})})},c.prototype.stopInternal=function(o){return this.connectionState===ve.Disconnected?(this.logger.log(_.Debug,"Call to HubConnection.stop("+o+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===ve.Disconnecting?(this.logger.log(_.Debug,"Call to HttpConnection.stop("+o+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=ve.Disconnecting,this.logger.log(_.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(_.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=o||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(o)))},c.prototype.stream=function(o){for(var n=this,h=[],p=1;p<arguments.length;p++)h[p-1]=arguments[p];var g,d=this.replaceStreamingParams(h),N=d[0],J=d[1],K=this.createStreamInvocation(o,h,J),ue=new F;return ue.cancelCallback=function(){var He=n.createCancelInvocation(K.invocationId);return delete n.callbacks[K.invocationId],g.then(function(){return n.sendWithProtocol(He)})},this.callbacks[K.invocationId]=function(He,Ye){Ye?ue.error(Ye):He&&(He.type===oe.Completion?He.error?ue.error(new Error(He.error)):ue.complete():ue.next(He.item))},g=this.sendWithProtocol(K).catch(function(He){ue.error(He),delete n.callbacks[K.invocationId]}),this.launchStreams(N,g),ue},c.prototype.sendMessage=function(o){return this.resetKeepAliveInterval(),this.connection.send(o)},c.prototype.sendWithProtocol=function(o){return this.sendMessage(this.protocol.writeMessage(o))},c.prototype.send=function(o){for(var n=[],h=1;h<arguments.length;h++)n[h-1]=arguments[h];var p=this.replaceStreamingParams(n),d=p[0],N=p[1],J=this.sendWithProtocol(this.createInvocation(o,n,!0,N));return this.launchStreams(d,J),J},c.prototype.invoke=function(o){for(var n=this,h=[],p=1;p<arguments.length;p++)h[p-1]=arguments[p];var d=this.replaceStreamingParams(h),N=d[0],J=d[1],K=this.createInvocation(o,h,!1,J),g=new Promise(function(ue,He){n.callbacks[K.invocationId]=function(et,nt){nt?He(nt):et&&(et.type===oe.Completion?et.error?He(new Error(et.error)):ue(et.result):He(new Error("Unexpected message type: "+et.type)))};var Ye=n.sendWithProtocol(K).catch(function(et){He(et),delete n.callbacks[K.invocationId]});n.launchStreams(N,Ye)});return g},c.prototype.on=function(o,n){!o||!n||(o=o.toLowerCase(),this.methods[o]||(this.methods[o]=[]),-1===this.methods[o].indexOf(n)&&this.methods[o].push(n))},c.prototype.off=function(o,n){if(o){o=o.toLowerCase();var h=this.methods[o];if(h)if(n){var p=h.indexOf(n);-1!==p&&(h.splice(p,1),0===h.length&&delete this.methods[o])}else delete this.methods[o]}},c.prototype.onclose=function(o){o&&this.closedCallbacks.push(o)},c.prototype.onreconnecting=function(o){o&&this.reconnectingCallbacks.push(o)},c.prototype.onreconnected=function(o){o&&this.reconnectedCallbacks.push(o)},c.prototype.processIncomingData=function(o){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(o=this.processHandshakeResponse(o),this.receivedHandshakeResponse=!0),o)for(var h=0,p=this.protocol.parseMessages(o,this.logger);h<p.length;h++){var d=p[h];switch(d.type){case oe.Invocation:this.invokeClientMethod(d);break;case oe.StreamItem:case oe.Completion:var N=this.callbacks[d.invocationId];N&&(d.type===oe.Completion&&delete this.callbacks[d.invocationId],N(d));break;case oe.Ping:break;case oe.Close:this.logger.log(_.Information,"Close message received from server.");var J=d.error?new Error("Server returned an error on close: "+d.error):void 0;!0===d.allowReconnect?this.connection.stop(J):this.stopPromise=this.stopInternal(J);break;default:this.logger.log(_.Warning,"Invalid message type: "+d.type+".")}}this.resetTimeoutPeriod()},c.prototype.processHandshakeResponse=function(o){var n,h,p,d;try{p=(n=this.handshakeProtocol.parseHandshakeResponse(o))[0],h=n[1]}catch(J){this.logger.log(_.Error,d="Error parsing handshake response: "+J);var N=new Error(d);throw this.handshakeRejecter(N),N}if(h.error)throw this.logger.log(_.Error,d="Server returned handshake error: "+h.error),N=new Error(d),this.handshakeRejecter(N),N;return this.logger.log(_.Debug,"Server handshake complete."),this.handshakeResolver(),p},c.prototype.resetKeepAliveInterval=function(){this.connection.features.inherentKeepAlive||(this.nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this.cleanupPingTimer())},c.prototype.resetTimeoutPeriod=function(){var o=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout(function(){return o.serverTimeout()},this.serverTimeoutInMilliseconds),void 0!==this.pingServerHandle))){var n=this.nextKeepAlive-(new Date).getTime();n<0&&(n=0),this.pingServerHandle=setTimeout(function(){return $(o,void 0,void 0,function(){return ie(this,function(p){switch(p.label){case 0:if(this.connectionState!==ve.Connected)return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return p.sent(),[3,4];case 3:return p.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}})})},n)}},c.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},c.prototype.invokeClientMethod=function(o){var n=this,h=this.methods[o.target.toLowerCase()];if(h){try{h.forEach(function(d){return d.apply(n,o.arguments)})}catch(d){this.logger.log(_.Error,"A callback for the method "+o.target.toLowerCase()+" threw error '"+d+"'.")}if(o.invocationId){var p="Server requested a response, which is not supported in this version of the client.";this.logger.log(_.Error,p),this.stopPromise=this.stopInternal(new Error(p))}}else this.logger.log(_.Warning,"No client method with the name '"+o.target+"' found.")},c.prototype.connectionClosed=function(o){this.logger.log(_.Debug,"HubConnection.connectionClosed("+o+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||o||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(o||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===ve.Disconnecting?this.completeClose(o):this.connectionState===ve.Connected&&this.reconnectPolicy?this.reconnect(o):this.connectionState===ve.Connected&&this.completeClose(o)},c.prototype.completeClose=function(o){var n=this;if(this.connectionStarted){this.connectionState=ve.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach(function(h){return h.apply(n,[o])})}catch(h){this.logger.log(_.Error,"An onclose callback called with error '"+o+"' threw error '"+h+"'.")}}},c.prototype.reconnect=function(o){return $(this,void 0,void 0,function(){var n,h,p,d,N,J=this;return ie(this,function(K){switch(K.label){case 0:if(n=Date.now(),h=0,p=void 0!==o?o:new Error("Attempting to reconnect due to a unknown error."),null===(d=this.getNextRetryDelay(h++,0,p)))return this.logger.log(_.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(o),[2];if(this.connectionState=ve.Reconnecting,this.logger.log(_.Information,o?"Connection reconnecting because of error '"+o+"'.":"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach(function(g){return g.apply(J,[o])})}catch(g){this.logger.log(_.Error,"An onreconnecting callback called with error '"+o+"' threw error '"+g+"'.")}if(this.connectionState!==ve.Reconnecting)return this.logger.log(_.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}K.label=1;case 1:return null===d?[3,7]:(this.logger.log(_.Information,"Reconnect attempt number "+h+" will start in "+d+" ms."),[4,new Promise(function(g){J.reconnectDelayHandle=setTimeout(g,d)})]);case 2:if(K.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==ve.Reconnecting)return this.logger.log(_.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];K.label=3;case 3:return K.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(K.sent(),this.connectionState=ve.Connected,this.logger.log(_.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach(function(g){return g.apply(J,[J.connection.connectionId])})}catch(g){this.logger.log(_.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+g+"'.")}return[2];case 5:return N=K.sent(),this.logger.log(_.Information,"Reconnect attempt failed because of error '"+N+"'."),this.connectionState!==ve.Reconnecting?(this.logger.log(_.Debug,"Connection moved to the '"+this.connectionState+"' from the reconnecting state during reconnect attempt. Done reconnecting."),this.connectionState===ve.Disconnecting&&this.completeClose(),[2]):(p=N instanceof Error?N:new Error(N.toString()),d=this.getNextRetryDelay(h++,Date.now()-n,p),[3,6]);case 6:return[3,1];case 7:return this.logger.log(_.Information,"Reconnect retries have been exhausted after "+(Date.now()-n)+" ms and "+h+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}})})},c.prototype.getNextRetryDelay=function(o,n,h){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:o,retryReason:h})}catch(p){return this.logger.log(_.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+o+", "+n+") threw error '"+p+"'."),null}},c.prototype.cancelCallbacksWithError=function(o){var n=this.callbacks;this.callbacks={},Object.keys(n).forEach(function(h){(0,n[h])(null,o)})},c.prototype.cleanupPingTimer=function(){this.pingServerHandle&&(clearTimeout(this.pingServerHandle),this.pingServerHandle=void 0)},c.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},c.prototype.createInvocation=function(o,n,h,p){if(h)return{arguments:n,streamIds:p,target:o,type:oe.Invocation};var d=this.invocationId;return this.invocationId++,{arguments:n,invocationId:d.toString(),streamIds:p,target:o,type:oe.Invocation}},c.prototype.launchStreams=function(o,n){var h=this;if(0!==o.length){n||(n=Promise.resolve());var p=function(N){o[N].subscribe({complete:function(){n=n.then(function(){return h.sendWithProtocol(h.createCompletionMessage(N))})},error:function(J){var K;K=J instanceof Error?J.message:J&&J.toString?J.toString():"Unknown error",n=n.then(function(){return h.sendWithProtocol(h.createCompletionMessage(N,K))})},next:function(J){n=n.then(function(){return h.sendWithProtocol(h.createStreamItemMessage(N,J))})}})};for(var d in o)p(d)}},c.prototype.replaceStreamingParams=function(o){for(var n=[],h=[],p=0;p<o.length;p++){var d=o[p];if(this.isObservable(d)){var N=this.invocationId;this.invocationId++,n[N]=d,h.push(N.toString()),o.splice(p,1)}}return[n,h]},c.prototype.isObservable=function(o){return o&&o.subscribe&&"function"==typeof o.subscribe},c.prototype.createStreamInvocation=function(o,n,h){var p=this.invocationId;return this.invocationId++,{arguments:n,invocationId:p.toString(),streamIds:h,target:o,type:oe.StreamInvocation}},c.prototype.createCancelInvocation=function(o){return{invocationId:o,type:oe.CancelInvocation}},c.prototype.createStreamItemMessage=function(o,n){return{invocationId:o,item:n,type:oe.StreamItem}},c.prototype.createCompletionMessage=function(o,n,h){return n?{error:n,invocationId:o,type:oe.Completion}:{invocationId:o,result:h,type:oe.Completion}},c}(),W=[0,2e3,1e4,3e4,null],le=function(){function c(o){this.retryDelays=void 0!==o?o.concat([null]):W}return c.prototype.nextRetryDelayInMilliseconds=function(o){return this.retryDelays[o.previousRetryCount]},c}(),ce=(()=>(function(c){c[c.None=0]="None",c[c.WebSockets=1]="WebSockets",c[c.ServerSentEvents=2]="ServerSentEvents",c[c.LongPolling=4]="LongPolling"}(ce||(ce={})),ce))(),fe=(()=>(function(c){c[c.Text=1]="Text",c[c.Binary=2]="Binary"}(fe||(fe={})),fe))(),Be=function(){function c(){this.isAborted=!1,this.onabort=null}return c.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(c.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),c}(),Ue=function(c,o,n,h){return new(n||(n=Promise))(function(p,d){function N(g){try{K(h.next(g))}catch(ue){d(ue)}}function J(g){try{K(h.throw(g))}catch(ue){d(ue)}}function K(g){g.done?p(g.value):new n(function(ue){ue(g.value)}).then(N,J)}K((h=h.apply(c,o||[])).next())})},We=function(c,o){var h,p,d,N,n={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function K(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,p&&(d=2&g[0]?p.return:g[0]?p.throw||((d=p.return)&&d.call(p),0):p.next)&&!(d=d.call(p,g[1])).done)return d;switch(p=0,d&&(g=[2&g[0],d.value]),g[0]){case 0:case 1:d=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,p=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(d=(d=n.trys).length>0&&d[d.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!d||g[1]>d[0]&&g[1]<d[3])){n.label=g[1];break}if(6===g[0]&&n.label<d[1]){n.label=d[1],d=g;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(g);break}d[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],p=0}finally{h=d=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}},Ze=function(){function c(o,n,h,p){this.httpClient=o,this.accessTokenFactory=n,this.logger=h,this.pollAbort=new Be,this.logMessageContent=p,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(c.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),c.prototype.connect=function(o,n){return Ue(this,void 0,void 0,function(){var h,p,d,N;return We(this,function(J){switch(J.label){case 0:if(z.isRequired(o,"url"),z.isRequired(n,"transferFormat"),z.isIn(n,fe,"transferFormat"),this.url=o,this.logger.log(_.Trace,"(LongPolling transport) Connecting."),n===fe.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return h={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},n===fe.Binary&&(h.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return p=J.sent(),this.updateHeaderToken(h,p),d=o+"&_="+Date.now(),this.logger.log(_.Trace,"(LongPolling transport) polling: "+d+"."),[4,this.httpClient.get(d,h)];case 2:return 200!==(N=J.sent()).statusCode?(this.logger.log(_.Error,"(LongPolling transport) Unexpected response code: "+N.statusCode+"."),this.closeError=new D(N.statusText||"",N.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,h),[2]}})})},c.prototype.getAccessToken=function(){return Ue(this,void 0,void 0,function(){return We(this,function(o){switch(o.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,o.sent()];case 2:return[2,null]}})})},c.prototype.updateHeaderToken=function(o,n){o.headers||(o.headers={}),n?o.headers.Authorization="Bearer "+n:o.headers.Authorization&&delete o.headers.Authorization},c.prototype.poll=function(o,n){return Ue(this,void 0,void 0,function(){var h,p,d,N;return We(this,function(J){switch(J.label){case 0:J.trys.push([0,,8,9]),J.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:h=J.sent(),this.updateHeaderToken(n,h),J.label=3;case 3:return J.trys.push([3,5,,6]),p=o+"&_="+Date.now(),this.logger.log(_.Trace,"(LongPolling transport) polling: "+p+"."),[4,this.httpClient.get(p,n)];case 4:return 204===(d=J.sent()).statusCode?(this.logger.log(_.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==d.statusCode?(this.logger.log(_.Error,"(LongPolling transport) Unexpected response code: "+d.statusCode+"."),this.closeError=new D(d.statusText||"",d.statusCode),this.running=!1):d.content?(this.logger.log(_.Trace,"(LongPolling transport) data received. "+ge(d.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(d.content)):this.logger.log(_.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return N=J.sent(),this.running?N instanceof _e?this.logger.log(_.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=N,this.running=!1):this.logger.log(_.Trace,"(LongPolling transport) Poll errored after shutdown: "+N.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(_.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}})})},c.prototype.send=function(o){return Ue(this,void 0,void 0,function(){return We(this,function(n){return this.running?[2,de(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,o,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},c.prototype.stop=function(){return Ue(this,void 0,void 0,function(){var o,n;return We(this,function(h){switch(h.label){case 0:this.logger.log(_.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),h.label=1;case 1:return h.trys.push([1,,5,6]),[4,this.receiving];case 2:return h.sent(),this.logger.log(_.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),o={headers:{}},[4,this.getAccessToken()];case 3:return n=h.sent(),this.updateHeaderToken(o,n),[4,this.httpClient.delete(this.url,o)];case 4:return h.sent(),this.logger.log(_.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(_.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}})})},c.prototype.raiseOnClose=function(){if(this.onclose){var o="(LongPolling transport) Firing onclose event.";this.closeError&&(o+=" Error: "+this.closeError),this.logger.log(_.Trace,o),this.onclose(this.closeError)}},c}(),$e=function(c,o,n,h){return new(n||(n=Promise))(function(p,d){function N(g){try{K(h.next(g))}catch(ue){d(ue)}}function J(g){try{K(h.throw(g))}catch(ue){d(ue)}}function K(g){g.done?p(g.value):new n(function(ue){ue(g.value)}).then(N,J)}K((h=h.apply(c,o||[])).next())})},Xe=function(c,o){var h,p,d,N,n={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function K(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,p&&(d=2&g[0]?p.return:g[0]?p.throw||((d=p.return)&&d.call(p),0):p.next)&&!(d=d.call(p,g[1])).done)return d;switch(p=0,d&&(g=[2&g[0],d.value]),g[0]){case 0:case 1:d=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,p=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(d=(d=n.trys).length>0&&d[d.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!d||g[1]>d[0]&&g[1]<d[3])){n.label=g[1];break}if(6===g[0]&&n.label<d[1]){n.label=d[1],d=g;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(g);break}d[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],p=0}finally{h=d=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}},qe=function(){function c(o,n,h,p,d){this.httpClient=o,this.accessTokenFactory=n,this.logger=h,this.logMessageContent=p,this.eventSourceConstructor=d,this.onreceive=null,this.onclose=null}return c.prototype.connect=function(o,n){return $e(this,void 0,void 0,function(){var h,p=this;return Xe(this,function(d){switch(d.label){case 0:return z.isRequired(o,"url"),z.isRequired(n,"transferFormat"),z.isIn(n,fe,"transferFormat"),this.logger.log(_.Trace,"(SSE transport) Connecting."),this.url=o,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(h=d.sent())&&(o+=(o.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(h)),d.label=2;case 2:return[2,new Promise(function(N,J){var K=!1;if(n===fe.Text){var g;if(Z.isBrowser||Z.isWebWorker)g=new p.eventSourceConstructor(o,{withCredentials:!0});else{var ue=p.httpClient.getCookieString(o);g=new p.eventSourceConstructor(o,{withCredentials:!0,headers:{Cookie:ue}})}try{g.onmessage=function(He){if(p.onreceive)try{p.logger.log(_.Trace,"(SSE transport) data received. "+ge(He.data,p.logMessageContent)+"."),p.onreceive(He.data)}catch(Ye){return void p.close(Ye)}},g.onerror=function(He){var Ye=new Error(He.data||"Error occurred");K?p.close(Ye):J(Ye)},g.onopen=function(){p.logger.log(_.Information,"SSE connected to "+p.url),p.eventSource=g,K=!0,N()}}catch(He){return void J(He)}}else J(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})]}})})},c.prototype.send=function(o){return $e(this,void 0,void 0,function(){return Xe(this,function(n){return this.eventSource?[2,de(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,o,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},c.prototype.stop=function(){return this.close(),Promise.resolve()},c.prototype.close=function(o){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(o))},c}(),f=function(){function c(o,n,h,p,d){this.logger=h,this.accessTokenFactory=n,this.logMessageContent=p,this.webSocketConstructor=d,this.httpClient=o,this.onreceive=null,this.onclose=null}return c.prototype.connect=function(o,n){return function(c,o,n,h){return new(n||(n=Promise))(function(p,d){function N(g){try{K(h.next(g))}catch(ue){d(ue)}}function J(g){try{K(h.throw(g))}catch(ue){d(ue)}}function K(g){g.done?p(g.value):new n(function(ue){ue(g.value)}).then(N,J)}K((h=h.apply(c,[])).next())})}(this,0,void 0,function(){var h,p=this;return function(c,o){var h,p,d,N,n={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function K(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,p&&(d=2&g[0]?p.return:g[0]?p.throw||((d=p.return)&&d.call(p),0):p.next)&&!(d=d.call(p,g[1])).done)return d;switch(p=0,d&&(g=[2&g[0],d.value]),g[0]){case 0:case 1:d=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,p=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(d=(d=n.trys).length>0&&d[d.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!d||g[1]>d[0]&&g[1]<d[3])){n.label=g[1];break}if(6===g[0]&&n.label<d[1]){n.label=d[1],d=g;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(g);break}d[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],p=0}finally{h=d=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}}(this,function(d){switch(d.label){case 0:return z.isRequired(o,"url"),z.isRequired(n,"transferFormat"),z.isIn(n,fe,"transferFormat"),this.logger.log(_.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(h=d.sent())&&(o+=(o.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(h)),d.label=2;case 2:return[2,new Promise(function(N,J){o=o.replace(/^http/,"ws");var K,g=p.httpClient.getCookieString(o),ue=!1;Z.isNode&&g&&(K=new p.webSocketConstructor(o,void 0,{headers:{Cookie:""+g}})),K||(K=new p.webSocketConstructor(o)),n===fe.Binary&&(K.binaryType="arraybuffer"),K.onopen=function(He){p.logger.log(_.Information,"WebSocket connected to "+o+"."),p.webSocket=K,ue=!0,N()},K.onerror=function(He){var Ye;Ye=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.error:new Error("There was an error with the transport."),J(Ye)},K.onmessage=function(He){p.logger.log(_.Trace,"(WebSockets transport) data received. "+ge(He.data,p.logMessageContent)+"."),p.onreceive&&p.onreceive(He.data)},K.onclose=function(He){if(ue)p.close(He);else{var Ye;Ye=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.error:new Error("There was an error with the transport."),J(Ye)}}})]}})})},c.prototype.send=function(o){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(_.Trace,"(WebSockets transport) sending data. "+ge(o,this.logMessageContent)+"."),this.webSocket.send(o),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},c.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},c.prototype.close=function(o){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(_.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!o||!1!==o.wasClean&&1e3===o.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+o.code+" ("+o.reason+").")))},c}(),i=function(c,o,n,h){return new(n||(n=Promise))(function(p,d){function N(g){try{K(h.next(g))}catch(ue){d(ue)}}function J(g){try{K(h.throw(g))}catch(ue){d(ue)}}function K(g){g.done?p(g.value):new n(function(ue){ue(g.value)}).then(N,J)}K((h=h.apply(c,o||[])).next())})},e=function(c,o){var h,p,d,N,n={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return N={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function J(g){return function(ue){return function K(g){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,p&&(d=2&g[0]?p.return:g[0]?p.throw||((d=p.return)&&d.call(p),0):p.next)&&!(d=d.call(p,g[1])).done)return d;switch(p=0,d&&(g=[2&g[0],d.value]),g[0]){case 0:case 1:d=g;break;case 4:return n.label++,{value:g[1],done:!1};case 5:n.label++,p=g[1],g=[0];continue;case 7:g=n.ops.pop(),n.trys.pop();continue;default:if(!(d=(d=n.trys).length>0&&d[d.length-1])&&(6===g[0]||2===g[0])){n=0;continue}if(3===g[0]&&(!d||g[1]>d[0]&&g[1]<d[3])){n.label=g[1];break}if(6===g[0]&&n.label<d[1]){n.label=d[1],d=g;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(g);break}d[2]&&n.ops.pop(),n.trys.pop();continue}g=o.call(c,n)}catch(ue){g=[6,ue],p=0}finally{h=d=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,ue])}}},u=null,w=null;if(Z.isNode){var I=require;u=I("ws"),w=I("eventsource")}var q=function(){function c(o,n){void 0===n&&(n={}),this.stopPromiseResolver=function(){},this.features={},this.negotiateVersion=1,z.isRequired(o,"url"),this.logger=function te(c){return void 0===c?new x(_.Information):null===c?R.instance:c.log?c:new x(c)}(n.logger),this.baseUrl=this.resolveUrl(o),(n=n||{}).logMessageContent=n.logMessageContent||!1,!Z.isNode&&typeof WebSocket<"u"&&!n.WebSocket?n.WebSocket=WebSocket:Z.isNode&&!n.WebSocket&&u&&(n.WebSocket=u),!Z.isNode&&typeof EventSource<"u"&&!n.EventSource?n.EventSource=EventSource:Z.isNode&&!n.EventSource&&typeof w<"u"&&(n.EventSource=w),this.httpClient=n.httpClient||new Ee(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=n,this.onreceive=null,this.onclose=null}return c.prototype.start=function(o){return i(this,void 0,void 0,function(){var n;return e(this,function(h){switch(h.label){case 0:return z.isIn(o=o||fe.Binary,fe,"transferFormat"),this.logger.log(_.Debug,"Starting connection with transfer format '"+fe[o]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(o),[4,this.startInternalPromise]);case 1:return h.sent(),"Disconnecting"!==this.connectionState?[3,3]:(this.logger.log(_.Error,n="Failed to start the HttpConnection before stop() was called."),[4,this.stopPromise]);case 2:return h.sent(),[2,Promise.reject(new Error(n))];case 3:if("Connected"!==this.connectionState)return this.logger.log(_.Error,n="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!"),[2,Promise.reject(new Error(n))];h.label=4;case 4:return this.connectionStarted=!0,[2]}})})},c.prototype.send=function(o){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new Se(this.transport)),this.sendQueue.send(o))},c.prototype.stop=function(o){return i(this,void 0,void 0,function(){var n=this;return e(this,function(h){switch(h.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(_.Debug,"Call to HttpConnection.stop("+o+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(_.Debug,"Call to HttpConnection.stop("+o+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise(function(p){n.stopPromiseResolver=p}),[4,this.stopInternal(o)]);case 1:return h.sent(),[4,this.stopPromise];case 2:return h.sent(),[2]}})})},c.prototype.stopInternal=function(o){return i(this,void 0,void 0,function(){var h;return e(this,function(p){switch(p.label){case 0:this.stopError=o,p.label=1;case 1:return p.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:case 3:return p.sent(),[3,4];case 4:if(!this.transport)return[3,9];p.label=5;case 5:return p.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return p.sent(),[3,8];case 7:return h=p.sent(),this.logger.log(_.Error,"HttpConnection.transport.stop() threw error '"+h+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(_.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),p.label=10;case 10:return[2]}})})},c.prototype.startInternal=function(o){return i(this,void 0,void 0,function(){var n,h,p,d,N,J;return e(this,function(K){switch(K.label){case 0:n=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,K.label=1;case 1:return K.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==ce.WebSockets?[3,3]:(this.transport=this.constructTransport(ce.WebSockets),[4,this.startTransport(n,o)]):[3,5];case 2:return K.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:h=null,p=0,d=function(){var g;return e(this,function(ue){switch(ue.label){case 0:return[4,N.getNegotiationResponse(n)];case 1:if(h=ue.sent(),"Disconnecting"===N.connectionState||"Disconnected"===N.connectionState)throw new Error("The connection was stopped during negotiation.");if(h.error)throw new Error(h.error);if(h.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return h.url&&(n=h.url),h.accessToken&&(g=h.accessToken,N.accessTokenFactory=function(){return g}),p++,[2]}})},N=this,K.label=6;case 6:return[5,d()];case 7:K.sent(),K.label=8;case 8:if(h.url&&p<100)return[3,6];K.label=9;case 9:if(100===p&&h.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(n,this.options.transport,h,o)];case 10:K.sent(),K.label=11;case 11:return this.transport instanceof Ze&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(_.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return J=K.sent(),this.logger.log(_.Error,"Failed to start the connection: "+J),this.connectionState="Disconnected",this.transport=void 0,this.stopPromiseResolver(),[2,Promise.reject(J)];case 13:return[2]}})})},c.prototype.getNegotiationResponse=function(o){return i(this,void 0,void 0,function(){var n,h,p,d,N,J,K;return e(this,function(g){switch(g.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(p=g.sent())&&((n={}).Authorization="Bearer "+p,h=n),g.label=2;case 2:d=this.resolveNegotiateUrl(o),this.logger.log(_.Debug,"Sending negotiation request: "+d+"."),g.label=3;case 3:return g.trys.push([3,5,,6]),[4,this.httpClient.post(d,{content:"",headers:h})];case 4:return 200!==(N=g.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+N.statusCode))]:((!(J=JSON.parse(N.content)).negotiateVersion||J.negotiateVersion<1)&&(J.connectionToken=J.connectionId),[2,J]);case 5:return K=g.sent(),this.logger.log(_.Error,"Failed to complete negotiation with the server: "+K),[2,Promise.reject(K)];case 6:return[2]}})})},c.prototype.createConnectUrl=function(o,n){return n?o+(-1===o.indexOf("?")?"?":"&")+"id="+n:o},c.prototype.createTransport=function(o,n,h,p){return i(this,void 0,void 0,function(){var d,N,K,g,ue,He,Ye,et,nt;return e(this,function(tt){switch(tt.label){case 0:return d=this.createConnectUrl(o,h.connectionToken),this.isITransport(n)?(this.logger.log(_.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=n,[4,this.startTransport(d,p)]):[3,2];case 1:return tt.sent(),this.connectionId=h.connectionId,[2];case 2:N=[],K=h,g=0,ue=h.availableTransports||[],tt.label=3;case 3:return g<ue.length?(Ye=this.resolveTransportOrError(He=ue[g],n,p))instanceof Error?(N.push(He.transport+" failed: "+Ye),[3,12]):[3,4]:[3,13];case 4:if(!this.isITransport(Ye))return[3,12];if(this.transport=Ye,K)return[3,9];tt.label=5;case 5:return tt.trys.push([5,7,,8]),[4,this.getNegotiationResponse(o)];case 6:return K=tt.sent(),[3,8];case 7:return et=tt.sent(),[2,Promise.reject(et)];case 8:d=this.createConnectUrl(o,K.connectionToken),tt.label=9;case 9:return tt.trys.push([9,11,,12]),[4,this.startTransport(d,p)];case 10:return tt.sent(),this.connectionId=K.connectionId,[2];case 11:return nt=tt.sent(),this.logger.log(_.Error,"Failed to start the transport '"+He.transport+"': "+nt),K=void 0,N.push(He.transport+" failed: "+nt),"Connecting "!==this.connectionState?(this.logger.log(_.Debug,"Failed to select transport before stop() was called."),[2,Promise.reject(new Error("Failed to select transport before stop() was called."))]):[3,12];case 12:return g++,[3,3];case 13:return N.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+N.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}})})},c.prototype.constructTransport=function(o){switch(o){case ce.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new f(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case ce.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new qe(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case ce.LongPolling:return new Ze(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+o+".")}},c.prototype.startTransport=function(o,n){var h=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(p){return h.stopConnection(p)},this.transport.connect(o,n)},c.prototype.resolveTransportOrError=function(o,n,h){var p=ce[o.transport];if(null==p)return this.logger.log(_.Debug,"Skipping transport '"+o.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+o.transport+"' because it is not supported by this client.");if(!function be(c,o){return!c||0!=(o&c)}(n,p))return this.logger.log(_.Debug,"Skipping transport '"+ce[p]+"' because it was disabled by the client."),new Error("'"+ce[p]+"' is disabled by the client.");if(!(o.transferFormats.map(function(N){return fe[N]}).indexOf(h)>=0))return this.logger.log(_.Debug,"Skipping transport '"+ce[p]+"' because it does not support the requested transfer format '"+fe[h]+"'."),new Error("'"+ce[p]+"' does not support "+fe[h]+".");if(p===ce.WebSockets&&!this.options.WebSocket||p===ce.ServerSentEvents&&!this.options.EventSource)return this.logger.log(_.Debug,"Skipping transport '"+ce[p]+"' because it is not supported in your environment.'"),new Error("'"+ce[p]+"' is not supported in your environment.");this.logger.log(_.Debug,"Selecting transport '"+ce[p]+"'.");try{return this.constructTransport(p)}catch(N){return N}},c.prototype.isITransport=function(o){return o&&"object"==typeof o&&"connect"in o},c.prototype.stopConnection=function(o){var n=this;if(this.logger.log(_.Debug,"HttpConnection.stopConnection("+o+") called while in state "+this.connectionState+"."),this.transport=void 0,o=this.stopError||o,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),o?this.logger.log(_.Error,"Connection disconnected with error '"+o+"'."):this.logger.log(_.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch(function(h){n.logger.log(_.Error,"TransportSendQueue.stop() threw error '"+h+"'.")}),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(o)}catch(h){this.logger.log(_.Error,"HttpConnection.onclose("+o+") threw error '"+h+"'.")}}}else this.logger.log(_.Warning,"Call to HttpConnection.stopConnection("+o+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(_.Debug,"Call to HttpConnection.stopConnection("+o+") was ignored because the connection is already in the disconnected state.")},c.prototype.resolveUrl=function(o){if(0===o.lastIndexOf("https://",0)||0===o.lastIndexOf("http://",0))return o;if(!Z.isBrowser||!window.document)throw new Error("Cannot resolve '"+o+"'.");var n=window.document.createElement("a");return n.href=o,this.logger.log(_.Information,"Normalizing '"+o+"' to '"+n.href+"'."),n.href},c.prototype.resolveNegotiateUrl=function(o){var n=o.indexOf("?"),h=o.substring(0,-1===n?o.length:n);return"/"!==h[h.length-1]&&(h+="/"),h+="negotiate",-1===(h+=-1===n?"":o.substring(n)).indexOf("negotiateVersion")&&(h+=-1===n?"?":"&",h+="negotiateVersion="+this.negotiateVersion),h},c}(),Se=function(){function c(o){this.transport=o,this.buffer=[],this.executing=!0,this.sendBufferedData=new Le,this.transportResult=new Le,this.sendLoopPromise=this.sendLoop()}return c.prototype.send=function(o){return this.bufferData(o),this.transportResult||(this.transportResult=new Le),this.transportResult.promise},c.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},c.prototype.bufferData=function(o){if(this.buffer.length&&typeof this.buffer[0]!=typeof o)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof o);this.buffer.push(o),this.sendBufferedData.resolve()},c.prototype.sendLoop=function(){return i(this,void 0,void 0,function(){var o,n,h;return e(this,function(p){switch(p.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(p.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new Le,o=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):c.concatBuffers(this.buffer),this.buffer.length=0,p.label=2;case 2:return p.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return p.sent(),o.resolve(),[3,5];case 4:return h=p.sent(),o.reject(h),[3,5];case 5:return[3,0];case 6:return[2]}})})},c.concatBuffers=function(o){for(var n=o.map(function(K){return K.byteLength}).reduce(function(K,g){return K+g}),h=new Uint8Array(n),p=0,d=0,N=o;d<N.length;d++){var J=N[d];h.set(new Uint8Array(J),p),p+=J.byteLength}return h},c}(),Le=function(){function c(){var o=this;this.promise=new Promise(function(n,h){var p;return o.resolver=(p=[n,h])[0],o.rejecter=p[1],p})}return c.prototype.resolve=function(){this.resolver()},c.prototype.reject=function(o){this.rejecter(o)},c}(),Ne=function(){function c(){this.name="json",this.version=1,this.transferFormat=fe.Text}return c.prototype.parseMessages=function(o,n){if("string"!=typeof o)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!o)return[];null===n&&(n=R.instance);for(var p=[],d=0,N=H.parse(o);d<N.length;d++){var K=JSON.parse(N[d]);if("number"!=typeof K.type)throw new Error("Invalid payload.");switch(K.type){case oe.Invocation:this.isInvocationMessage(K);break;case oe.StreamItem:this.isStreamItemMessage(K);break;case oe.Completion:this.isCompletionMessage(K);break;case oe.Ping:case oe.Close:break;default:n.log(_.Information,"Unknown message type '"+K.type+"' ignored.");continue}p.push(K)}return p},c.prototype.writeMessage=function(o){return H.write(JSON.stringify(o))},c.prototype.isInvocationMessage=function(o){this.assertNotEmptyString(o.target,"Invalid payload for Invocation message."),void 0!==o.invocationId&&this.assertNotEmptyString(o.invocationId,"Invalid payload for Invocation message.")},c.prototype.isStreamItemMessage=function(o){if(this.assertNotEmptyString(o.invocationId,"Invalid payload for StreamItem message."),void 0===o.item)throw new Error("Invalid payload for StreamItem message.")},c.prototype.isCompletionMessage=function(o){if(o.result&&o.error)throw new Error("Invalid payload for Completion message.");!o.result&&o.error&&this.assertNotEmptyString(o.error,"Invalid payload for Completion message."),this.assertNotEmptyString(o.invocationId,"Invalid payload for Completion message.")},c.prototype.assertNotEmptyString=function(o,n){if("string"!=typeof o||""===o)throw new Error(n)},c}(),je=Object.assign||function(c){for(var o,n=1,h=arguments.length;n<h;n++)for(var p in o=arguments[n])Object.prototype.hasOwnProperty.call(o,p)&&(c[p]=o[p]);return c},Ve={trace:_.Trace,debug:_.Debug,info:_.Information,information:_.Information,warn:_.Warning,warning:_.Warning,error:_.Error,critical:_.Critical,none:_.None},U=function(){function c(){}return c.prototype.configureLogging=function(o){if(z.isRequired(o,"logging"),function O(c){return void 0!==c.log}(o))this.logger=o;else if("string"==typeof o){var n=function Ge(c){var o=Ve[c.toLowerCase()];if(typeof o<"u")return o;throw new Error("Unknown log level: "+c)}(o);this.logger=new x(n)}else this.logger=new x(o);return this},c.prototype.withUrl=function(o,n){return z.isRequired(o,"url"),this.url=o,this.httpConnectionOptions=je({},this.httpConnectionOptions,"object"==typeof n?n:{transport:n}),this},c.prototype.withHubProtocol=function(o){return z.isRequired(o,"protocol"),this.protocol=o,this},c.prototype.withAutomaticReconnect=function(o){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=o?Array.isArray(o)?new le(o):o:new le,this},c.prototype.build=function(){var o=this.httpConnectionOptions||{};if(void 0===o.logger&&(o.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var n=new q(this.url,o);return P.create(n,this.logger||R.instance,this.protocol||new Ne,this.reconnectPolicy)},c}(),Y=a(2722),S=a(7579),m=a(4650),y=a(8002),A=a(7185),V=a(3841),pe=a(1589);function Pe(c,o){if(1&c&&(m.TgZ(0,"ul",14)(1,"li",15)(2,"a",16),m._UZ(3,"i"),m.TgZ(4,"p"),m._uU(5),m.qZA()()()()),2&c){const n=o.$implicit;m.xp6(2),m.s9C("routerLink",n.Url),m.xp6(1),m.Tol(n.Icon),m.xp6(2),m.Oqu(n.Title)}}function X(c,o){if(1&c){const n=m.EpF();m.TgZ(0,"div",17)(1,"span"),m._uU(2),m.TgZ(3,"a",18),m._uU(4,"this Article"),m.qZA(),m._uU(5," to renew your ShopID! "),m.qZA(),m.TgZ(6,"a",19),m.NdJ("click",function(){m.CHM(n);const p=m.oxw();return m.KtG(p.CloseWarning())}),m._UZ(7,"i",20),m.qZA()()}if(2&c){const n=m.oxw();m.xp6(2),m.AsE(" Your Shopee Channel ShopID ",n.ShopID," is expired in (",n.Difference_In_Days,") days, please refer to ")}}const T=[{path:"",component:(()=>{class c{constructor(n,h,p,d,N){this._router=n,this.tokendecode=h,this.toastr=p,this.LocalData=d,this.toggleSidebarService=N,this.Menu={},this.connection=!1,this.Difference_In_Days=0,this.IsExpired=!1,this.destroy$=new S.x;var J=localStorage.getItem("Intercom"),K=JSON.parse(J);null==K?window.Intercom("boot",{app_id:"xv1oomgl"}):window.Intercom("boot",{app_id:"xv1oomgl",name:K.Name,email:K.Email,created_at:K.Created,user_hash:K.Hash}),this.token=h.GetNamePOS(),this.Menu=[{Icon:"fas fa-tag",Target:null,Title:"Products",Url:"/menu/products"},{Icon:"fas fa-archive",Target:null,Title:"Inventory",Url:"/menu/inventory"},{Icon:"fas fa-money-bill-alt",Target:null,Title:"Price",Url:"/menu/price"},{Icon:"fas fa-shopping-cart",Target:null,Title:"Order",Url:"/menu/Order"},{Icon:"fas fa-clipboard-list",Target:null,Title:"Report",Url:"/menu/report"},{Icon:"fas fa-dolly",Target:null,Title:"Logistic",Url:"/menu/Logistic"},{Icon:"fas fa-cog",Target:null,Title:"Channel",Url:"/menu/channel"},{Icon:"fas fa-file-alt",Target:null,Title:"Logs",Url:"/menu/log"},{Icon:"fas fa-bell",Target:null,Title:"Notification",Url:"/menu/Notification"}],this.CheckExpired()}ngOnInit(){this.startConnection(),this.subscribeToSidebarChange()}subscribeToSidebarChange(){this.toggleSidebarService.toggleState$.pipe((0,Y.R)(this.destroy$)).subscribe(n=>{this.isNavOpen=n})}CloseWarning(){localStorage.removeItem("channel"),this.IsExpired=!1}CheckExpired(){let n=JSON.parse(window.localStorage.getItem("user"));if(n)if(null!=n.expiredAt)this.LogOut();else{let p=n.Channel;if(p.length>0)for(let d of p)if(null!=d.ExpiredTime&&0==d.TypeID){let N=new Date(d.ExpiredTime),J=new Date;var h=N.getTime()-J.getTime();this.Difference_In_Days=Math.round(h/864e5),this.Difference_In_Days<=10&&(this.IsExpired=!0,this.ShopID=d.ShopID)}}}user(){this._router.navigate(["/menu/users"])}LogOut(){window.Intercom("shutdown"),window.localStorage.removeItem("user"),window.localStorage.removeItem("Intercom"),window.localStorage.removeItem("channel"),this.LocalData.Remove(),this._router.navigate([""])}startConnection(){this.hubConnection=(new U).withUrl("/MarketplaceHub").withAutomaticReconnect([0,1e4,1e4,1e4,1e4,null]).configureLogging(_.Information).build(),this.hubConnection.start().then(()=>{this.connection=!0,this.connectToRegister()}).catch(n=>console.log("Error while starting connection: "+n)),this.hubConnection.onclose(()=>{this.startConnection(),this.connection=!1}),this.hubConnection.on("Notification",n=>{let h=JSON.parse(n);h.ID==this.token.POSAccountID&&(200!=h.StatusCode?this.toastr.error(h.Message,h.Title,{enableHtml:!0}):this.toastr.success(h.Message,h.Title,{enableHtml:!0}))})}connectToRegister(){this.hubConnection.invoke("SubscribeGroup",this.token.POSAccountID).then(n=>{})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(m.Y36(t.F0),m.Y36(y.e),m.Y36(A._W),m.Y36(V.F),m.Y36(pe.g))},c.\u0275cmp=m.Xpm({type:c,selectors:[["app-menu"]],decls:20,vars:6,consts:[[1,"wrapper"],["data-color","green",1,"sidebar"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",3,"title"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],["class","nav",4,"ngFor","ngForOf"],[1,"main-panel"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],[1,"nav"],["routerLinkActive","active"],[1,"nav-link",3,"routerLink"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["target","_blank","href","https://support.dealpos.com/en/articles/5334947-renew-shopee-authorization"],[1,"alert-link","text-danger",2,"cursor","pointer",3,"click"],[1,"far","fa-times-circle","fa-lg"]],template:function(n,h){1&n&&(m.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),m._uU(5),m.qZA(),m.TgZ(6,"div",5)(7,"div",6),m._uU(8,"Admin "),m.qZA(),m._UZ(9,"div",7),m.TgZ(10,"a",8),m.NdJ("click",function(){return h.LogOut()}),m._UZ(11,"i",9),m._uU(12,"\xa0 "),m.TgZ(13,"span"),m._uU(14," Log Out"),m.qZA()()()()(),m.TgZ(15,"div",10),m.YNc(16,Pe,6,4,"ul",11),m.qZA()(),m.TgZ(17,"div",12),m.YNc(18,X,8,2,"div",13),m._UZ(19,"router-outlet"),m.qZA()()),2&n&&(m.ekj("nav-open",h.isNavOpen),m.xp6(4),m.s9C("title",h.token.StoreName),m.xp6(1),m.hij(" ",h.token.StoreName," "),m.xp6(11),m.Q6J("ngForOf",h.Menu),m.xp6(2),m.Q6J("ngIf",h.IsExpired))},dependencies:[r.sg,r.O5,t.lC,t.yS,t.Od],styles:[".top-initial[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:initial!important}"]}),c})(),children:[{path:"",redirectTo:"products",pathMatch:"full"},{path:"products",loadChildren:()=>Promise.all([a.e(796),a.e(231)]).then(a.bind(a,5231)).then(c=>c.ProductModule),canActivate:[M.a],data:{title:"Products"}},{path:"inventory",loadChildren:()=>Promise.all([a.e(796),a.e(170),a.e(472)]).then(a.bind(a,1472)).then(c=>c.InventoryModule),canActivate:[M.a],data:{title:"Inventory"}},{path:"price",loadChildren:()=>Promise.all([a.e(796),a.e(170),a.e(518)]).then(a.bind(a,6518)).then(c=>c.PriceModule),canActivate:[M.a],data:{title:"Price"}},{path:"Order",loadChildren:()=>Promise.all([a.e(796),a.e(616),a.e(739),a.e(46)]).then(a.bind(a,7046)).then(c=>c.OrdersModule),canActivate:[M.a],data:{title:"Order"}},{path:"report",loadChildren:()=>Promise.all([a.e(616),a.e(585),a.e(285)]).then(a.bind(a,4285)).then(c=>c.ReportModule),canActivate:[M.a],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>a.e(512).then(a.bind(a,5512)).then(c=>c.LogisticModule),canActivate:[M.a],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>Promise.all([a.e(796),a.e(592),a.e(763)]).then(a.bind(a,2763)).then(c=>c.ChannelsModule),canActivate:[M.a],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>Promise.all([a.e(796),a.e(616),a.e(585),a.e(739),a.e(767)]).then(a.bind(a,6767)).then(c=>c.LogsModule),canActivate:[M.a],data:{title:"Orders"}},{path:"Notification",loadChildren:()=>Promise.all([a.e(796),a.e(717)]).then(a.bind(a,6717)).then(c=>c.NotificationModule),canActivate:[M.a],data:{title:"Push Notification"}}]}];let re=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=m.oAB({type:c}),c.\u0275inj=m.cJS({imports:[t.Bz.forChild(T),t.Bz]}),c})();var De=a(7481),Fe=a(5412),Ke=a(1948),Je=a(4144),it=a(9549),Qe=a(4385),ot=a(8966);let at=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=m.oAB({type:c}),c.\u0275inj=m.cJS({providers:[r.uU],imports:[r.ez,l.u5,re,De.R,Fe.Is,Ke.Fk,Je.c,it.lN,Qe.LD,ot.n]}),c})()},8063:(ze,Me,a)=>{a.d(Me,{a:()=>t});var r=a(4650),l=a(8252);let t=(()=>{class M{constructor(D){this.router=D}canActivate(D,_e){let se=JSON.parse(window.localStorage.getItem("user")),G=new Date;return null!=se&&G<new Date(se.Token.expiredAt)||(this.router.navigate([""]),!1)}}return M.\u0275fac=function(D){return new(D||M)(r.LFG(l.F0))},M.\u0275prov=r.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},3841:(ze,Me,a)=>{a.d(Me,{F:()=>t});var r=a(4650),l=a(3131);let t=(()=>{class M{constructor(D){this.db=D,this.DATABASE="Categories"}saveList(D,_e){return new Promise(se=>{let G="";0==_e&&(G="Shopee"),1==_e&&(G="Tokopedia"),this.db.add(this.DATABASE,D,G).subscribe(()=>{se("Success!")})})}getListByKey(D){return new Promise((_e,se)=>{let G="";0==D&&(G="Shopee"),1==D&&(G="Tokopedia"),this.db.getByKey(this.DATABASE,G).subscribe(L=>{_e(L)},L=>{se(L)})})}Remove(){this.db.clear(this.DATABASE)}}return M.\u0275fac=function(D){return new(D||M)(r.LFG(l.ys))},M.\u0275prov=r.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},1589:(ze,Me,a)=>{a.d(Me,{g:()=>t});var r=a(1135),l=a(4650);let t=(()=>{class M{constructor(){this._toggleState=new r.X(!1),this.toggleState$=this._toggleState.asObservable()}toggleSidebar(){this._toggleState.next(!this._toggleState.value)}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=l.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},8966:(ze,Me,a)=>{a.d(Me,{h:()=>pe,n:()=>Pe});var r=a(6895),l=a(4650),t=a(4006),M=a(9549),ne=a(4385),D=a(2722),_e=a(8372),se=a(8505),G=a(7579),L=a(4968);let _=(()=>{class X{constructor(T,re){this.matSelect=T,this.ngZone=re,this.threshold="15%",this.debounceTime=150,this.infiniteScroll=new l.vpe,this.thrPx=0,this.thrPc=0,this.singleOptionHeight=3,this.destroyed$=new G.x}ngOnInit(){this.evaluateThreshold()}ngAfterViewInit(){this.matSelect.openedChange.pipe((0,D.R)(this.destroyed$)).subscribe(T=>{T&&(this.panel=this.matSelect.panel.nativeElement,this.singleOptionHeight=this.getSelectItemHeightPx(),this.registerScrollListener())})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}evaluateThreshold(){this.threshold.lastIndexOf("%")>-1?(this.thrPx=0,this.thrPc=parseFloat(this.threshold)/100):(this.thrPx=parseFloat(this.threshold),this.thrPc=0)}registerScrollListener(){(0,L.R)(this.panel,"scroll").pipe((0,D.R)(this.destroyed$),(0,_e.b)(this.debounceTime),(0,se.b)(T=>{this.handleScrollEvent(T)})).subscribe()}handleScrollEvent(T){this.ngZone.runOutsideAngular(()=>{if(this.complete)return;const De=this.singleOptionHeight*this.matSelect.options.length;this.panel.clientHeight+T.target.scrollTop+(0!==this.thrPc?De*this.thrPc:this.thrPx)>=De&&this.ngZone.run(()=>this.infiniteScroll.emit())})}getSelectItemHeightPx(){return 3*parseFloat(getComputedStyle(this.panel).fontSize)}}return X.\u0275fac=function(T){return new(T||X)(l.Y36(ne.gD),l.Y36(l.R0b))},X.\u0275dir=l.lG2({type:X,selectors:[["","msInfiniteScroll",""]],inputs:{threshold:"threshold",debounceTime:"debounceTime",complete:"complete"},outputs:{infiniteScroll:"infiniteScroll"}}),X})(),R=(()=>{class X{}return X.\u0275fac=function(T){return new(T||X)},X.\u0275mod=l.oAB({type:X}),X.\u0275inj=l.cJS({imports:[[ne.LD]]}),X})();var B=a(9521),j=a(3238),z=a(1135),Z=a(9646),ge=a(9841),ke=a(3900),xe=a(4004),de=a(8675),te=a(4986),b=a(7272),x=a(5698),v=a(4482),k=a(5403),ae=a(5032),Ce=a(9718),Ie=a(5577);function Te(X,me){return me?T=>(0,b.z)(me.pipe((0,x.q)(1),function we(){return(0,v.e)((X,me)=>{X.subscribe((0,k.x)(me,ae.Z))})}()),T.pipe(Te(X))):(0,Ie.z)((T,re)=>X(T,re).pipe((0,x.q)(1),(0,Ce.h)(T)))}var ye=a(2805),H=a(9300),Q=a(7376),oe=a(2687),F=a(6709),$=a(1281),ie=a(3353),Oe=a(727);function he(X,me){if(1&X&&(l.O4$(),l._UZ(0,"circle",4)),2&X){const T=l.oxw(),re=l.MAs(1);l.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+T._spinnerAnimationLabel)("stroke-dashoffset",T._getStrokeDashOffset(),"px")("stroke-dasharray",T._getStrokeCircumference(),"px")("stroke-width",T._getCircleStrokeWidth(),"%")("transform-origin",T._getCircleTransformOrigin(re)),l.uIk("r",T._getCircleRadius())}}function ve(X,me){if(1&X&&(l.O4$(),l._UZ(0,"circle",4)),2&X){const T=l.oxw(),re=l.MAs(1);l.Udp("stroke-dashoffset",T._getStrokeDashOffset(),"px")("stroke-dasharray",T._getStrokeCircumference(),"px")("stroke-width",T._getCircleStrokeWidth(),"%")("transform-origin",T._getCircleTransformOrigin(re)),l.uIk("r",T._getCircleRadius())}}const le=(0,j.pj)(class{constructor(X){this._elementRef=X}},"primary"),ce=new l.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function fe(){return{diameter:100}}});class Ue extends le{constructor(me,T,re,De,Fe,Ke,Je,it){super(me),this._document=re,this._diameter=100,this._value=0,this._resizeSubscription=Oe.w0.EMPTY,this.mode="determinate";const Qe=Ue._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Qe.has(re.head)||Qe.set(re.head,new Set([100])),this._noopAnimations="NoopAnimations"===De&&!!Fe&&!Fe._forceAnimations,"mat-spinner"===me.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Fe&&(Fe.color&&(this.color=this.defaultColor=Fe.color),Fe.diameter&&(this.diameter=Fe.diameter),Fe.strokeWidth&&(this.strokeWidth=Fe.strokeWidth)),T.isBrowser&&T.SAFARI&&Je&&Ke&&it&&(this._resizeSubscription=Je.change(150).subscribe(()=>{"indeterminate"===this.mode&&it.run(()=>Ke.markForCheck())}))}get diameter(){return this._diameter}set diameter(me){this._diameter=(0,$.su)(me),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(me){this._strokeWidth=(0,$.su)(me)}get value(){return"determinate"===this.mode?this._value:0}set value(me){this._value=Math.max(0,Math.min(100,(0,$.su)(me)))}ngOnInit(){const me=this._elementRef.nativeElement;this._styleRoot=(0,ie.kV)(me)||this._document.head,this._attachStyleNode(),me.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const me=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${me} ${me}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(me){const T=50*(me.currentScale??1);return`${T}% ${T}%`}_attachStyleNode(){const me=this._styleRoot,T=this._diameter,re=Ue._diameters;let De=re.get(me);if(!De||!De.has(T)){const Fe=this._document.createElement("style");Fe.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Fe.textContent=this._getAnimationText(),me.appendChild(Fe),De||(De=new Set,re.set(me,De)),De.add(T)}}_getAnimationText(){const me=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*me).replace(/END_VALUE/g,""+.2*me).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ue._diameters=new WeakMap,Ue.\u0275fac=function(me){return new(me||Ue)(l.Y36(l.SBq),l.Y36(ie.t4),l.Y36(r.K0,8),l.Y36(l.QbO,8),l.Y36(ce),l.Y36(l.sBO),l.Y36(Q.rL),l.Y36(l.R0b))},Ue.\u0275cmp=l.Xpm({type:Ue,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(me,T){2&me&&(l.uIk("aria-valuemin","determinate"===T.mode?0:null)("aria-valuemax","determinate"===T.mode?100:null)("aria-valuenow","determinate"===T.mode?T.value:null)("mode",T.mode),l.Udp("width",T.diameter,"px")("height",T.diameter,"px"),l.ekj("_mat-animation-noopable",T._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[l.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(me,T){1&me&&(l.O4$(),l.TgZ(0,"svg",0,1),l.YNc(2,he,1,11,"circle",2),l.YNc(3,ve,1,9,"circle",3),l.qZA()),2&me&&(l.Udp("width",T.diameter,"px")("height",T.diameter,"px"),l.Q6J("ngSwitch","indeterminate"===T.mode),l.uIk("viewBox",T._getViewBox()),l.xp6(2),l.Q6J("ngSwitchCase",!0),l.xp6(1),l.Q6J("ngSwitchCase",!1))},dependencies:[r.RF,r.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let We=(()=>{class X{}return X.\u0275fac=function(T){return new(T||X)},X.\u0275mod=l.oAB({type:X}),X.\u0275inj=l.cJS({imports:[j.BQ,r.ez,j.BQ]}),X})();var $e=a(4859),Xe=a(7392),qe=a(266);const Re=["searchSelectInput"],E=["innerSelectSearch"];function f(X,me){if(1&X){const T=l.EpF();l.TgZ(0,"mat-checkbox",9),l.NdJ("change",function(De){l.CHM(T);const Fe=l.oxw();return l.KtG(Fe._emitSelectAllBooleanToParent(De.checked))}),l.qZA()}if(2&X){const T=l.oxw();l.Q6J("color",null==T.matFormField?null:T.matFormField.color)("checked",T.toggleAllCheckboxChecked)("indeterminate",T.toggleAllCheckboxIndeterminate)("matTooltip",T.toggleAllCheckboxTooltipMessage)("matTooltipPosition",T.toogleAllCheckboxTooltipPosition)}}function i(X,me){1&X&&l._UZ(0,"mat-spinner",10)}function e(X,me){1&X&&l.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function s(X,me){if(1&X&&(l.TgZ(0,"mat-icon",14),l._uU(1),l.qZA()),2&X){const T=l.oxw(2);l.Q6J("svgIcon",T.closeSvgIcon),l.xp6(1),l.hij(" ",T.closeSvgIcon?null:T.closeIcon," ")}}function u(X,me){if(1&X){const T=l.EpF();l.TgZ(0,"button",11),l.NdJ("click",function(){l.CHM(T);const De=l.oxw();return l.KtG(De._reset(!0))}),l.YNc(1,e,1,0,"ng-content",12),l.YNc(2,s,2,2,"ng-template",null,13,l.W1O),l.qZA()}if(2&X){const T=l.MAs(3),re=l.oxw();l.xp6(1),l.Q6J("ngIf",re.clearIcon)("ngIfElse",T)}}function w(X,me){1&X&&l.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function I(X,me){if(1&X&&l._uU(0),2&X){const T=l.oxw(2);l.Oqu(T.noEntriesFoundLabel)}}function q(X,me){if(1&X&&(l.TgZ(0,"div",15),l.YNc(1,w,1,0,"ng-content",12),l.YNc(2,I,1,1,"ng-template",null,16,l.W1O),l.qZA()),2&X){const T=l.MAs(3),re=l.oxw();l.xp6(1),l.Q6J("ngIf",re.noEntriesFound)("ngIfElse",T)}}const be=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Se=function(X,me){return{"mat-select-search-inner-multiple":X,"mat-select-search-inner-toggle-all":me}},Le=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let Ae=(()=>{class X{}return X.\u0275fac=function(T){return new(T||X)},X.\u0275dir=l.lG2({type:X,selectors:[["","ngxMatSelectSearchClear",""]]}),X})();const Ne=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],je=new l.OlP("mat-selectsearch-default-options");let U=(()=>{class X{}return X.\u0275fac=function(T){return new(T||X)},X.\u0275dir=l.lG2({type:X,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),X})(),C=(()=>{class X{constructor(T,re,De,Fe=null,Ke,Je=null,it){this.matSelect=T,this.changeDetectorRef=re,this._viewportRuler=De,this.matOption=Fe,this.liveAnnouncer=Ke,this.matFormField=Je,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",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.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new l.vpe,this.onTouched=Qe=>{},this._options$=new z.X(null),this.optionsList$=this._options$.pipe((0,ke.w)(Qe=>Qe?Qe.changes.pipe((0,xe.U)(ot=>ot.toArray()),(0,de.O)(Qe.toArray())):(0,Z.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,xe.U)(Qe=>Qe?Qe.length:0)),this._formControl=new t.NI(""),this._showNoEntriesFound$=(0,ge.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,xe.U)(([Qe,ot])=>this.noEntriesFoundLabel&&Qe&&ot===this.getOptionsLengthOffset())),this._onDestroy=new G.x,this.applyDefaultOptions(it)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(T){this._options$.next(T)}get _options(){return this._options$.getValue()}applyDefaultOptions(T){if(T)for(const re of Ne)T.hasOwnProperty(re)&&(this[re]=T[re])}ngOnInit(){const T="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(T):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,T]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[T]=!0):this.matSelect.panelClass=T,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error("<ngx-mat-select-search> must be placed inside a <mat-option> element"),this.matSelect.openedChange.pipe(function Ee(X,me=te.z){const T=(0,ye.H)(X,me);return Te(()=>T)}(1),(0,D.R)(this._onDestroy)).subscribe(re=>{re?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,x.q)(1)).pipe((0,D.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,D.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let re=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,D.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const De=this._options.toArray(),Fe=De[this.getOptionsLengthOffset()],Ke=this.matSelect._keyManager;Ke&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(re,Fe)||!Ke.activeItem||!De.find(it=>this.matSelect.compareWith(it,Ke.activeItem)))&&Ke.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),re=Fe})})}),this._showNoEntriesFound$.pipe((0,D.R)(this._onDestroy)).subscribe(re=>{this.matOption&&(re?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((0,D.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,D.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(T){this.toggleAll.emit(T)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(T){(T.key&&1===T.key.length||T.keyCode>=B.A&&T.keyCode<=B.Z||T.keyCode>=B.xE&&T.keyCode<=B.aO||T.keyCode===B.L_||this.preventHomeEndKeyPropagation&&(T.keyCode===B.Sd||T.keyCode===B.uR))&&T.stopPropagation(),this.matSelect.multiple&&T.key&&T.keyCode===B.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&T.keyCode===B.hY&&this.value&&(this._reset(!0),T.stopPropagation())}_handleKeyup(T){if(T.keyCode===B.LH||T.keyCode===B.JH){const re=this.matSelect._getAriaActiveDescendant(),De=this._options.toArray().findIndex(Fe=>Fe.id===re);if(-1!==De){const Fe=this._options.toArray()[De];this.liveAnnouncer.announce(Fe.viewValue+" "+this.getAriaIndex(De)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(T){return 0===this.getOptionsLengthOffset()?T+1:T}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(T){this._lastExternalInputValue=T,this._formControl.setValue(T),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(T){this._formControl.valueChanges.pipe((0,H.h)(re=>re!==this._lastExternalInputValue),(0,se.b)(()=>this._lastExternalInputValue=void 0),(0,D.R)(this._onDestroy)).subscribe(T)}registerOnTouched(T){this.onTouched=T}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const T=this.matSelect.panel.nativeElement,re=T.scrollTop;this.searchSelectInput.nativeElement.focus(),T.scrollTop=re}_reset(T){this._formControl.setValue(""),T&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,D.R)(this._onDestroy)).subscribe(T=>{let re=!1;const De=T&&Array.isArray(T)?[...T]:[];if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){const Fe=this.matSelect.options.map(Ke=>Ke.value);this.previousSelectedValues.forEach(Ke=>{!De.some(Je=>this.matSelect.compareWith(Je,Ke))&&!Fe.some(Je=>this.matSelect.compareWith(Je,Ke))&&(De.push(Ke),re=!0)})}this.previousSelectedValues=De,re&&this.matSelect._onChange(De)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const T=this.getMatOptionHeight(),re=this.matSelect._keyManager.activeItemIndex||0,De=(0,j.CB)(re,this.matSelect.options,this.matSelect.optionGroups),Fe=(this.matOption?-1:0)+De+re,Ke=this.matSelect.panel.nativeElement.scrollTop,Je=this.innerSelectSearch.nativeElement.offsetHeight,it=Math.floor((256-Je)/T),Qe=Math.round((Ke+Je)/T)-1;Qe>=Fe?this.matSelect.panel.nativeElement.scrollTop=Fe*T:Qe+it<=Fe&&(this.matSelect.panel.nativeElement.scrollTop=(Fe+1)*T-(256-Je))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let re,T=this.innerSelectSearch.nativeElement;for(;T=T.parentElement;)if(T.classList.contains("mat-select-panel")){re=T;break}re&&(this.innerSelectSearch.nativeElement.style.width=re.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return X.\u0275fac=function(T){return new(T||X)(l.Y36(ne.gD),l.Y36(l.sBO),l.Y36(Q.rL),l.Y36(j.ey,8),l.Y36(oe.Kd),l.Y36(M.KE,8),l.Y36(je,8))},X.\u0275cmp=l.Xpm({type:X,selectors:[["ngx-mat-select-search"]],contentQueries:function(T,re,De){if(1&T&&(l.Suo(De,Ae,5),l.Suo(De,U,5)),2&T){let Fe;l.iGM(Fe=l.CRH())&&(re.clearIcon=Fe.first),l.iGM(Fe=l.CRH())&&(re.noEntriesFound=Fe.first)}},viewQuery:function(T,re){if(1&T&&(l.Gf(Re,7,l.SBq),l.Gf(E,7,l.SBq)),2&T){let De;l.iGM(De=l.CRH())&&(re.searchSelectInput=De.first),l.iGM(De=l.CRH())&&(re.innerSelectSearch=De.first)}},hostVars:2,hostBindings:function(T,re){2&T&&l.ekj("mat-select-search-inside-mat-option",re.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[l._Bn([{provide:t.JU,useExisting:(0,l.Gpc)(()=>X),multi:!0}])],ngContentSelectors:Le,decls:11,vars:14,consts:[["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"],["innerSelectSearch",""],["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","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","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,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(T,re){1&T&&(l.F$t(be),l._UZ(0,"input",0),l.TgZ(1,"div",1,2),l.YNc(3,f,1,5,"mat-checkbox",3),l.TgZ(4,"input",4,5),l.NdJ("keydown",function(Fe){return re._handleKeydown(Fe)})("keyup",function(Fe){return re._handleKeyup(Fe)})("blur",function(){return re.onBlur()}),l.qZA(),l.YNc(6,i,1,0,"mat-spinner",6),l.YNc(7,u,4,2,"button",7),l.Hsn(8),l.qZA(),l.YNc(9,q,4,2,"div",8),l.ALo(10,"async")),2&T&&(l.xp6(1),l.Q6J("ngClass",l.WLB(11,Se,re.matSelect.multiple,re._isToggleAllCheckboxVisible())),l.xp6(2),l.Q6J("ngIf",re._isToggleAllCheckboxVisible()),l.xp6(1),l.Q6J("type",re.type)("formControl",re._formControl)("placeholder",re.placeholderLabel),l.uIk("aria-label",re.ariaLabel),l.xp6(2),l.Q6J("ngIf",re.searching),l.xp6(1),l.Q6J("ngIf",!re.hideClearSearchButton&&re.value&&!re.searching),l.xp6(2),l.Q6J("ngIf",l.lcZ(10,9,re._showNoEntriesFound$)))},dependencies:[F.oG,Ue,$e.lW,Xe.Hw,r.mk,r.O5,qe.gM,t.Fj,t.JJ,t.oH,r.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[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-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[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-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[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:16px}"],changeDetection:0}),X})(),S=(()=>{class X{}return X.\u0275fac=function(T){return new(T||X)},X.\u0275mod=l.oAB({type:X}),X.\u0275inj=l.cJS({imports:[[r.ez,t.UX,$e.ot,F.p9,Xe.Ps,We,qe.AV]]}),X})();var m=a(6451),y=a(5026);const A=["matSelectInfiniteScroll"];function V(X,me){if(1&X&&(l.TgZ(0,"mat-option",5),l._uU(1),l.qZA()),2&X){const T=me.$implicit,re=l.oxw();l.Q6J("value",T[re.bindValue]),l.xp6(1),l.hij(" ",T[re.bindLabel]," ")}}let pe=(()=>{class X{constructor(){this.batchSize=50,this.optionCtrl=new t.p4,this.searchCtrl=new t.p4,this.filteredData$=this.searchCtrl.valueChanges.pipe((0,de.O)(""),(0,xe.U)(T=>T?this.data.filter(re=>re[this.bindLabel].toLowerCase().indexOf(T.toLowerCase())>-1):this.data)),this.incrementBatchOffset$=new G.x,this.resetBatchOffset$=new G.x,this.minimumBatchOffset$=(0,ge.a)([this.filteredData$,this.searchCtrl.valueChanges]).pipe((0,xe.U)(([T,re])=>!this.searchCtrl.value&&this.optionCtrl.value?T.findIndex(Fe=>Fe[this.bindValue]===this.optionCtrl.value)+this.batchSize:0),(0,de.O)(0)),this.batchOffset$=(0,ge.a)([(0,m.T)(this.incrementBatchOffset$.pipe((0,Ce.h)(!0)),this.resetBatchOffset$.pipe((0,Ce.h)(!1))),this.minimumBatchOffset$]).pipe((0,y.R)((T,[re,De])=>re?Math.max(T+this.batchSize,De+this.batchSize):Math.max(De,this.batchSize),this.batchSize)),this.filteredBatchedData$=(0,ge.a)([this.filteredData$,this.batchOffset$]).pipe((0,xe.U)(([T,re])=>T.slice(0,re))),this.destroy$=new G.x,this.data=[],this.onSelect=new l.vpe}ngOnInit(){this.infiniteScrollSelect.openedChange.pipe((0,D.R)(this.destroy$)).subscribe(T=>{T&&this.resetBatchOffset$.next()}),this.onSelectData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSelectData(){this.optionCtrl.valueChanges.subscribe(T=>{T&&this.onSelect.emit(T)})}getNextBatch(){this.incrementBatchOffset$.next()}}return X.\u0275fac=function(T){return new(T||X)},X.\u0275cmp=l.Xpm({type:X,selectors:[["app-select-search"]],viewQuery:function(T,re){if(1&T&&l.Gf(A,7),2&T){let De;l.iGM(De=l.CRH())&&(re.infiniteScrollSelect=De.first)}},inputs:{appearance:"appearance",data:"data",bindValue:"bindValue",bindLabel:"bindLabel",placeholder:"placeholder",batchSize:"batchSize"},outputs:{onSelect:"onSelect"},decls:7,vars:8,consts:[[3,"appearance"],["msInfiniteScroll","",3,"formControl","placeholder","infiniteScroll"],["matSelectInfiniteScroll",""],["placeholderLabel","search","noEntriesFoundLabel","No entry matches",3,"formControl","disableScrollToActiveOnOptionsChanged"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(T,re){1&T&&(l.TgZ(0,"mat-form-field",0)(1,"mat-select",1,2),l.NdJ("infiniteScroll",function(){return re.getNextBatch()}),l.TgZ(3,"mat-option"),l._UZ(4,"ngx-mat-select-search",3),l.qZA(),l.YNc(5,V,2,2,"mat-option",4),l.ALo(6,"async"),l.qZA()()),2&T&&(l.Q6J("appearance",re.appearance),l.xp6(1),l.Q6J("formControl",re.optionCtrl)("placeholder",re.placeholder),l.xp6(3),l.Q6J("formControl",re.searchCtrl)("disableScrollToActiveOnOptionsChanged",!0),l.xp6(1),l.Q6J("ngForOf",l.lcZ(6,6,re.filteredBatchedData$)))},dependencies:[r.sg,t.JJ,t.oH,M.KE,ne.gD,j.ey,C,_,r.Ov],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),X})(),Pe=(()=>{class X{}return X.\u0275fac=function(T){return new(T||X)},X.\u0275mod=l.oAB({type:X}),X.\u0275inj=l.cJS({imports:[r.ez,t.UX,ne.LD,M.lN,S,R]}),X})()},4968:(ze,Me,a)=>{a.d(Me,{R:()=>L});var r=a(8421),l=a(8306),t=a(5577),M=a(1144),ne=a(576),D=a(3268);const _e=["addListener","removeListener"],se=["addEventListener","removeEventListener"],G=["on","off"];function L(j,z,Z,ge){if((0,ne.m)(Z)&&(ge=Z,Z=void 0),ge)return L(j,z,Z).pipe((0,D.Z)(ge));const[ke,xe]=function B(j){return(0,ne.m)(j.addEventListener)&&(0,ne.m)(j.removeEventListener)}(j)?se.map(de=>te=>j[de](z,te,Z)):function _(j){return(0,ne.m)(j.addListener)&&(0,ne.m)(j.removeListener)}(j)?_e.map(ee(j,z)):function R(j){return(0,ne.m)(j.on)&&(0,ne.m)(j.off)}(j)?G.map(ee(j,z)):[];if(!ke&&(0,M.z)(j))return(0,t.z)(de=>L(de,z,Z))((0,r.Xf)(j));if(!ke)throw new TypeError("Invalid event target");return new l.y(de=>{const te=(...b)=>de.next(1<b.length?b:b[0]);return ke(te),()=>xe(te)})}function ee(j,z){return Z=>ge=>j[Z](z,ge)}},3601:(ze,Me,a)=>{a.d(Me,{e:()=>_e});var r=a(4986),l=a(4482),t=a(8421),M=a(5403),D=a(2805);function _e(se,G=r.z){return function ne(se){return(0,l.e)((G,L)=>{let ee=!1,_=null,R=null,B=!1;const j=()=>{if(R?.unsubscribe(),R=null,ee){ee=!1;const Z=_;_=null,L.next(Z)}B&&L.complete()},z=()=>{R=null,B&&L.complete()};G.subscribe((0,M.x)(L,Z=>{ee=!0,_=Z,R||(0,t.Xf)(se(Z)).subscribe(R=(0,M.x)(L,j,z))},()=>{B=!0,(!ee||!R||R.closed)&&L.complete()}))})}(()=>(0,D.H)(se,G))}},8372:(ze,Me,a)=>{a.d(Me,{b:()=>M});var r=a(4986),l=a(4482),t=a(5403);function M(ne,D=r.z){return(0,l.e)((_e,se)=>{let G=null,L=null,ee=null;const _=()=>{if(G){G.unsubscribe(),G=null;const B=L;L=null,se.next(B)}};function R(){const B=ee+ne,j=D.now();if(j<B)return G=this.schedule(void 0,B-j),void se.add(G);_()}_e.subscribe((0,t.x)(se,B=>{L=B,ee=D.now(),G||(G=D.schedule(R,ne),se.add(G))},()=>{_(),se.complete()},void 0,()=>{L=G=null}))})}},5684:(ze,Me,a)=>{a.d(Me,{T:()=>l});var r=a(9300);function l(t){return(0,r.h)((M,ne)=>t<=ne)}},2722:(ze,Me,a)=>{a.d(Me,{R:()=>ne});var r=a(4482),l=a(5403),t=a(8421),M=a(5032);function ne(D){return(0,r.e)((_e,se)=>{(0,t.Xf)(D).subscribe((0,l.x)(se,()=>se.complete(),M.Z)),!se.closed&&_e.subscribe(se)})}},6406:(ze,Me,a)=>{a.d(Me,{Z:()=>_e});var r=a(4408),l=a(727);const t={schedule(G){let L=requestAnimationFrame,ee=cancelAnimationFrame;const{delegate:_}=t;_&&(L=_.requestAnimationFrame,ee=_.cancelAnimationFrame);const R=L(B=>{ee=void 0,G(B)});return new l.w0(()=>ee?.(R))},requestAnimationFrame(...G){const{delegate:L}=t;return(L?.requestAnimationFrame||requestAnimationFrame)(...G)},cancelAnimationFrame(...G){const{delegate:L}=t;return(L?.cancelAnimationFrame||cancelAnimationFrame)(...G)},delegate:void 0};var ne=a(7565);const _e=new class D extends ne.v{flush(L){this._active=!0;const ee=this._scheduled;this._scheduled=void 0;const{actions:_}=this;let R;L=L||_.shift();do{if(R=L.execute(L.state,L.delay))break}while((L=_[0])&&L.id===ee&&_.shift());if(this._active=!1,R){for(;(L=_[0])&&L.id===ee&&_.shift();)L.unsubscribe();throw R}}}(class M extends r.o{constructor(L,ee){super(L,ee),this.scheduler=L,this.work=ee}requestAsyncId(L,ee,_=0){return null!==_&&_>0?super.requestAsyncId(L,ee,_):(L.actions.push(this),L._scheduled||(L._scheduled=t.requestAnimationFrame(()=>L.flush(void 0))))}recycleAsyncId(L,ee,_=0){if(null!=_&&_>0||null==_&&this.delay>0)return super.recycleAsyncId(L,ee,_);L.actions.some(R=>R.id===ee)||(t.cancelAnimationFrame(ee),L._scheduled=void 0)}})},3101:(ze,Me,a)=>{a.d(Me,{E:()=>B});var r=a(4408);let t,l=1;const M={};function ne(z){return z in M&&(delete M[z],!0)}const D={setImmediate(z){const Z=l++;return M[Z]=!0,t||(t=Promise.resolve()),t.then(()=>ne(Z)&&z()),Z},clearImmediate(z){ne(z)}},{setImmediate:se,clearImmediate:G}=D,L={setImmediate(...z){const{delegate:Z}=L;return(Z?.setImmediate||se)(...z)},clearImmediate(z){const{delegate:Z}=L;return(Z?.clearImmediate||G)(z)},delegate:void 0};var _=a(7565);const B=new class R extends _.v{flush(Z){this._active=!0;const ge=this._scheduled;this._scheduled=void 0;const{actions:ke}=this;let xe;Z=Z||ke.shift();do{if(xe=Z.execute(Z.state,Z.delay))break}while((Z=ke[0])&&Z.id===ge&&ke.shift());if(this._active=!1,xe){for(;(Z=ke[0])&&Z.id===ge&&ke.shift();)Z.unsubscribe();throw xe}}}(class ee extends r.o{constructor(Z,ge){super(Z,ge),this.scheduler=Z,this.work=ge}requestAsyncId(Z,ge,ke=0){return null!==ke&&ke>0?super.requestAsyncId(Z,ge,ke):(Z.actions.push(this),Z._scheduled||(Z._scheduled=L.setImmediate(Z.flush.bind(Z,void 0))))}recycleAsyncId(Z,ge,ke=0){if(null!=ke&&ke>0||null==ke&&this.delay>0)return super.recycleAsyncId(Z,ge,ke);Z.actions.some(xe=>xe.id===ge)||(L.clearImmediate(ge),Z._scheduled=void 0)}})},2687:(ze,Me,a)=>{a.d(Me,{$s:()=>we,Em:()=>Ee,Kd:()=>Se,X6:()=>E,ic:()=>Q,kH:()=>Ve,mK:()=>We,qV:()=>Ue,qm:()=>C,rt:()=>Y,s1:()=>ye,tE:()=>je,yG:()=>f});var r=a(6895),l=a(4650),t=a(3353),M=a(7579),ne=a(727),D=a(1135),_e=a(9646),se=a(9521),G=a(8505),L=a(8372),ee=a(9300),_=a(4004),R=a(5698),B=a(5684),j=a(1884),z=a(2722),Z=a(1281),ge=a(9643),ke=a(2289);function b(S,m){return(S.getAttribute(m)||"").match(/\S+/g)||[]}const v="cdk-describedby-message",k="cdk-describedby-host";let ae=0,we=(()=>{class S{constructor(y,A){this._platform=A,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ae++,this._document=y,this._id=(0,l.f3M)(l.AFp)+"-"+ae++}describe(y,A,V){if(!this._canBeDescribed(y,A))return;const pe=Ce(A,V);"string"!=typeof A?(Ie(A,this._id),this._messageRegistry.set(pe,{messageElement:A,referenceCount:0})):this._messageRegistry.has(pe)||this._createMessageElement(A,V),this._isElementDescribedByMessage(y,pe)||this._addMessageReference(y,pe)}removeDescription(y,A,V){if(!A||!this._isElementNode(y))return;const pe=Ce(A,V);if(this._isElementDescribedByMessage(y,pe)&&this._removeMessageReference(y,pe),"string"==typeof A){const Pe=this._messageRegistry.get(pe);Pe&&0===Pe.referenceCount&&this._deleteMessageElement(pe)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const y=this._document.querySelectorAll(`[${k}="${this._id}"]`);for(let A=0;A<y.length;A++)this._removeCdkDescribedByReferenceIds(y[A]),y[A].removeAttribute(k);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(y,A){const V=this._document.createElement("div");Ie(V,this._id),V.textContent=y,A&&V.setAttribute("role",A),this._createMessagesContainer(),this._messagesContainer.appendChild(V),this._messageRegistry.set(Ce(y,A),{messageElement:V,referenceCount:0})}_deleteMessageElement(y){this._messageRegistry.get(y)?.messageElement?.remove(),this._messageRegistry.delete(y)}_createMessagesContainer(){if(this._messagesContainer)return;const y="cdk-describedby-message-container",A=this._document.querySelectorAll(`.${y}[platform="server"]`);for(let pe=0;pe<A.length;pe++)A[pe].remove();const V=this._document.createElement("div");V.style.visibility="hidden",V.classList.add(y),V.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&V.setAttribute("platform","server"),this._document.body.appendChild(V),this._messagesContainer=V}_removeCdkDescribedByReferenceIds(y){const A=b(y,"aria-describedby").filter(V=>0!=V.indexOf(v));y.setAttribute("aria-describedby",A.join(" "))}_addMessageReference(y,A){const V=this._messageRegistry.get(A);(function de(S,m,y){const A=b(S,m);A.some(V=>V.trim()==y.trim())||(A.push(y.trim()),S.setAttribute(m,A.join(" ")))})(y,"aria-describedby",V.messageElement.id),y.setAttribute(k,this._id),V.referenceCount++}_removeMessageReference(y,A){const V=this._messageRegistry.get(A);V.referenceCount--,function te(S,m,y){const V=b(S,m).filter(pe=>pe!=y.trim());V.length?S.setAttribute(m,V.join(" ")):S.removeAttribute(m)}(y,"aria-describedby",V.messageElement.id),y.removeAttribute(k)}_isElementDescribedByMessage(y,A){const V=b(y,"aria-describedby"),pe=this._messageRegistry.get(A),Pe=pe&&pe.messageElement.id;return!!Pe&&-1!=V.indexOf(Pe)}_canBeDescribed(y,A){if(!this._isElementNode(y))return!1;if(A&&"object"==typeof A)return!0;const V=null==A?"":`${A}`.trim(),pe=y.getAttribute("aria-label");return!(!V||pe&&pe.trim()===V)}_isElementNode(y){return y.nodeType===this._document.ELEMENT_NODE}}return S.\u0275fac=function(y){return new(y||S)(l.LFG(r.K0),l.LFG(t.t4))},S.\u0275prov=l.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();function Ce(S,m){return"string"==typeof S?`${m||""}/${S}`:S}function Ie(S,m){S.id||(S.id=`${v}-${m}-${ae++}`)}class Te{constructor(m){this._items=m,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=ne.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=y=>y.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,m instanceof l.n_E&&m.changes.subscribe(y=>{if(this._activeItem){const V=y.toArray().indexOf(this._activeItem);V>-1&&V!==this._activeItemIndex&&(this._activeItemIndex=V)}})}skipPredicate(m){return this._skipPredicateFn=m,this}withWrap(m=!0){return this._wrap=m,this}withVerticalOrientation(m=!0){return this._vertical=m,this}withHorizontalOrientation(m){return this._horizontal=m,this}withAllowedModifierKeys(m){return this._allowedModifierKeys=m,this}withTypeAhead(m=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,G.b)(y=>this._pressedLetters.push(y)),(0,L.b)(m),(0,ee.h)(()=>this._pressedLetters.length>0),(0,_.U)(()=>this._pressedLetters.join(""))).subscribe(y=>{const A=this._getItemsArray();for(let V=1;V<A.length+1;V++){const pe=(this._activeItemIndex+V)%A.length,Pe=A[pe];if(!this._skipPredicateFn(Pe)&&0===Pe.getLabel().toUpperCase().trim().indexOf(y)){this.setActiveItem(pe);break}}this._pressedLetters=[]}),this}withHomeAndEnd(m=!0){return this._homeAndEnd=m,this}setActiveItem(m){const y=this._activeItem;this.updateActiveItem(m),this._activeItem!==y&&this.change.next(this._activeItemIndex)}onKeydown(m){const y=m.keyCode,V=["altKey","ctrlKey","metaKey","shiftKey"].every(pe=>!m[pe]||this._allowedModifierKeys.indexOf(pe)>-1);switch(y){case se.Mf:return void this.tabOut.next();case se.JH:if(this._vertical&&V){this.setNextItemActive();break}return;case se.LH:if(this._vertical&&V){this.setPreviousItemActive();break}return;case se.SV:if(this._horizontal&&V){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case se.oh:if(this._horizontal&&V){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case se.Sd:if(this._homeAndEnd&&V){this.setFirstItemActive();break}return;case se.uR:if(this._homeAndEnd&&V){this.setLastItemActive();break}return;default:return void((V||(0,se.Vb)(m,"shiftKey"))&&(m.key&&1===m.key.length?this._letterKeyStream.next(m.key.toLocaleUpperCase()):(y>=se.A&&y<=se.Z||y>=se.xE&&y<=se.aO)&&this._letterKeyStream.next(String.fromCharCode(y))))}this._pressedLetters=[],m.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._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(m){const y=this._getItemsArray(),A="number"==typeof m?m:y.indexOf(m);this._activeItem=y[A]??null,this._activeItemIndex=A}_setActiveItemByDelta(m){this._wrap?this._setActiveInWrapMode(m):this._setActiveInDefaultMode(m)}_setActiveInWrapMode(m){const y=this._getItemsArray();for(let A=1;A<=y.length;A++){const V=(this._activeItemIndex+m*A+y.length)%y.length;if(!this._skipPredicateFn(y[V]))return void this.setActiveItem(V)}}_setActiveInDefaultMode(m){this._setActiveItemByIndex(this._activeItemIndex+m,m)}_setActiveItemByIndex(m,y){const A=this._getItemsArray();if(A[m]){for(;this._skipPredicateFn(A[m]);)if(!A[m+=y])return;this.setActiveItem(m)}}_getItemsArray(){return this._items instanceof l.n_E?this._items.toArray():this._items}}class ye extends Te{setActiveItem(m){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(m),this.activeItem&&this.activeItem.setActiveStyles()}}class Ee extends Te{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(m){return this._origin=m,this}setActiveItem(m){super.setActiveItem(m),this.activeItem&&this.activeItem.focus(this._origin)}}let Q=(()=>{class S{constructor(y){this._platform=y}isDisabled(y){return y.hasAttribute("disabled")}isVisible(y){return function F(S){return!!(S.offsetWidth||S.offsetHeight||"function"==typeof S.getClientRects&&S.getClientRects().length)}(y)&&"visible"===getComputedStyle(y).visibility}isTabbable(y){if(!this._platform.isBrowser)return!1;const A=function oe(S){try{return S.frameElement}catch{return null}}(function fe(S){return S.ownerDocument&&S.ownerDocument.defaultView||window}(y));if(A&&(-1===W(A)||!this.isVisible(A)))return!1;let V=y.nodeName.toLowerCase(),pe=W(y);return y.hasAttribute("contenteditable")?-1!==pe:!("iframe"===V||"object"===V||this._platform.WEBKIT&&this._platform.IOS&&!function le(S){let m=S.nodeName.toLowerCase(),y="input"===m&&S.type;return"text"===y||"password"===y||"select"===m||"textarea"===m}(y))&&("audio"===V?!!y.hasAttribute("controls")&&-1!==pe:"video"===V?-1!==pe&&(null!==pe||this._platform.FIREFOX||y.hasAttribute("controls")):y.tabIndex>=0)}isFocusable(y,A){return function ce(S){return!function ie(S){return function he(S){return"input"==S.nodeName.toLowerCase()}(S)&&"hidden"==S.type}(S)&&(function $(S){let m=S.nodeName.toLowerCase();return"input"===m||"select"===m||"button"===m||"textarea"===m}(S)||function Oe(S){return function ve(S){return"a"==S.nodeName.toLowerCase()}(S)&&S.hasAttribute("href")}(S)||S.hasAttribute("contenteditable")||P(S))}(y)&&!this.isDisabled(y)&&(A?.ignoreVisibility||this.isVisible(y))}}return S.\u0275fac=function(y){return new(y||S)(l.LFG(t.t4))},S.\u0275prov=l.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();function P(S){if(!S.hasAttribute("tabindex")||void 0===S.tabIndex)return!1;let m=S.getAttribute("tabindex");return!(!m||isNaN(parseInt(m,10)))}function W(S){if(!P(S))return null;const m=parseInt(S.getAttribute("tabindex")||"",10);return isNaN(m)?-1:m}class Be{constructor(m,y,A,V,pe=!1){this._element=m,this._checker=y,this._ngZone=A,this._document=V,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,pe||this.attachAnchors()}get enabled(){return this._enabled}set enabled(m){this._enabled=m,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(m,this._startAnchor),this._toggleAnchorTabIndex(m,this._endAnchor))}destroy(){const m=this._startAnchor,y=this._endAnchor;m&&(m.removeEventListener("focus",this.startAnchorListener),m.remove()),y&&(y.removeEventListener("focus",this.endAnchorListener),y.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(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(m){return new Promise(y=>{this._executeOnStable(()=>y(this.focusInitialElement(m)))})}focusFirstTabbableElementWhenReady(m){return new Promise(y=>{this._executeOnStable(()=>y(this.focusFirstTabbableElement(m)))})}focusLastTabbableElementWhenReady(m){return new Promise(y=>{this._executeOnStable(()=>y(this.focusLastTabbableElement(m)))})}_getRegionBoundary(m){const y=this._element.querySelectorAll(`[cdk-focus-region-${m}], [cdkFocusRegion${m}], [cdk-focus-${m}]`);return"start"==m?y.length?y[0]:this._getFirstTabbableElement(this._element):y.length?y[y.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(m){const y=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(y){if(!this._checker.isFocusable(y)){const A=this._getFirstTabbableElement(y);return A?.focus(m),!!A}return y.focus(m),!0}return this.focusFirstTabbableElement(m)}focusFirstTabbableElement(m){const y=this._getRegionBoundary("start");return y&&y.focus(m),!!y}focusLastTabbableElement(m){const y=this._getRegionBoundary("end");return y&&y.focus(m),!!y}hasAttached(){return this._hasAttached}_getFirstTabbableElement(m){if(this._checker.isFocusable(m)&&this._checker.isTabbable(m))return m;const y=m.children;for(let A=0;A<y.length;A++){const V=y[A].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(y[A]):null;if(V)return V}return null}_getLastTabbableElement(m){if(this._checker.isFocusable(m)&&this._checker.isTabbable(m))return m;const y=m.children;for(let A=y.length-1;A>=0;A--){const V=y[A].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(y[A]):null;if(V)return V}return null}_createAnchor(){const m=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,m),m.classList.add("cdk-visually-hidden"),m.classList.add("cdk-focus-trap-anchor"),m.setAttribute("aria-hidden","true"),m}_toggleAnchorTabIndex(m,y){m?y.setAttribute("tabindex","0"):y.removeAttribute("tabindex")}toggleAnchors(m){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(m,this._startAnchor),this._toggleAnchorTabIndex(m,this._endAnchor))}_executeOnStable(m){this._ngZone.isStable?m():this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(m)}}let Ue=(()=>{class S{constructor(y,A,V){this._checker=y,this._ngZone=A,this._document=V}create(y,A=!1){return new Be(y,this._checker,this._ngZone,this._document,A)}}return S.\u0275fac=function(y){return new(y||S)(l.LFG(Q),l.LFG(l.R0b),l.LFG(r.K0))},S.\u0275prov=l.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),We=(()=>{class S{constructor(y,A,V){this._elementRef=y,this._focusTrapFactory=A,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(y){this.focusTrap.enabled=(0,Z.Ig)(y)}get autoCapture(){return this._autoCapture}set autoCapture(y){this._autoCapture=(0,Z.Ig)(y)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(y){const A=y.autoCapture;A&&!A.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,t.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return S.\u0275fac=function(y){return new(y||S)(l.Y36(l.SBq),l.Y36(Ue),l.Y36(r.K0))},S.\u0275dir=l.lG2({type:S,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[l.TTD]}),S})();function E(S){return 0===S.buttons||0===S.offsetX&&0===S.offsetY}function f(S){const m=S.touches&&S.touches[0]||S.changedTouches&&S.changedTouches[0];return!(!m||-1!==m.identifier||null!=m.radiusX&&1!==m.radiusX||null!=m.radiusY&&1!==m.radiusY)}const i=new l.OlP("cdk-input-modality-detector-options"),e={ignoreKeys:[se.zL,se.jx,se.b2,se.MW,se.JU]},u=(0,t.i$)({passive:!0,capture:!0});let w=(()=>{class S{constructor(y,A,V,pe){this._platform=y,this._mostRecentTarget=null,this._modality=new D.X(null),this._lastTouchMs=0,this._onKeydown=Pe=>{this._options?.ignoreKeys?.some(X=>X===Pe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,t.sA)(Pe))},this._onMousedown=Pe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(E(Pe)?"keyboard":"mouse"),this._mostRecentTarget=(0,t.sA)(Pe))},this._onTouchstart=Pe=>{f(Pe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,t.sA)(Pe))},this._options={...e,...pe},this.modalityDetected=this._modality.pipe((0,B.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,j.x)()),y.isBrowser&&A.runOutsideAngular(()=>{V.addEventListener("keydown",this._onKeydown,u),V.addEventListener("mousedown",this._onMousedown,u),V.addEventListener("touchstart",this._onTouchstart,u)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,u),document.removeEventListener("mousedown",this._onMousedown,u),document.removeEventListener("touchstart",this._onTouchstart,u))}}return S.\u0275fac=function(y){return new(y||S)(l.LFG(t.t4),l.LFG(l.R0b),l.LFG(r.K0),l.LFG(i,8))},S.\u0275prov=l.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();const I=new l.OlP("liveAnnouncerElement",{providedIn:"root",factory:function q(){return null}}),be=new l.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Se=(()=>{class S{constructor(y,A,V,pe){this._ngZone=A,this._defaultOptions=pe,this._document=V,this._liveElement=y||this._createLiveElement()}announce(y,...A){const V=this._defaultOptions;let pe,Pe;return 1===A.length&&"number"==typeof A[0]?Pe=A[0]:[pe,Pe]=A,this.clear(),clearTimeout(this._previousTimeout),pe||(pe=V&&V.politeness?V.politeness:"polite"),null==Pe&&V&&(Pe=V.duration),this._liveElement.setAttribute("aria-live",pe),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(X=>this._currentResolve=X)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=y,"number"==typeof Pe&&(this._previousTimeout=setTimeout(()=>this.clear(),Pe)),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(){const y="cdk-live-announcer-element",A=this._document.getElementsByClassName(y),V=this._document.createElement("div");for(let pe=0;pe<A.length;pe++)A[pe].remove();return V.classList.add(y),V.classList.add("cdk-visually-hidden"),V.setAttribute("aria-atomic","true"),V.setAttribute("aria-live","polite"),this._document.body.appendChild(V),V}}return S.\u0275fac=function(y){return new(y||S)(l.LFG(I,8),l.LFG(l.R0b),l.LFG(r.K0),l.LFG(be,8))},S.\u0275prov=l.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();const Ae=new l.OlP("cdk-focus-monitor-default-options"),Ne=(0,t.i$)({passive:!0,capture:!0});let je=(()=>{class S{constructor(y,A,V,pe,Pe){this._ngZone=y,this._platform=A,this._inputModalityDetector=V,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 M.x,this._rootNodeFocusAndBlurListener=X=>{const me=(0,t.sA)(X),T="focus"===X.type?this._onFocus:this._onBlur;for(let re=me;re;re=re.parentElement)T.call(this,X,re)},this._document=pe,this._detectionMode=Pe?.detectionMode||0}monitor(y,A=!1){const V=(0,Z.fI)(y);if(!this._platform.isBrowser||1!==V.nodeType)return(0,_e.of)(null);const pe=(0,t.kV)(V)||this._getDocument(),Pe=this._elementInfo.get(V);if(Pe)return A&&(Pe.checkChildren=!0),Pe.subject;const X={checkChildren:A,subject:new M.x,rootNode:pe};return this._elementInfo.set(V,X),this._registerGlobalListeners(X),X.subject}stopMonitoring(y){const A=(0,Z.fI)(y),V=this._elementInfo.get(A);V&&(V.subject.complete(),this._setClasses(A),this._elementInfo.delete(A),this._removeGlobalListeners(V))}focusVia(y,A,V){const pe=(0,Z.fI)(y);pe===this._getDocument().activeElement?this._getClosestElementsInfo(pe).forEach(([X,me])=>this._originChanged(X,A,me)):(this._setOrigin(A),"function"==typeof pe.focus&&pe.focus(V))}ngOnDestroy(){this._elementInfo.forEach((y,A)=>this.stopMonitoring(A))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(y){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(y)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(y){return 1===this._detectionMode||!!y?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(y,A){y.classList.toggle("cdk-focused",!!A),y.classList.toggle("cdk-touch-focused","touch"===A),y.classList.toggle("cdk-keyboard-focused","keyboard"===A),y.classList.toggle("cdk-mouse-focused","mouse"===A),y.classList.toggle("cdk-program-focused","program"===A)}_setOrigin(y,A=!1){this._ngZone.runOutsideAngular(()=>{this._origin=y,this._originFromTouchInteraction="touch"===y&&A,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(y,A){const V=this._elementInfo.get(A),pe=(0,t.sA)(y);!V||!V.checkChildren&&A!==pe||this._originChanged(A,this._getFocusOrigin(pe),V)}_onBlur(y,A){const V=this._elementInfo.get(A);!V||V.checkChildren&&y.relatedTarget instanceof Node&&A.contains(y.relatedTarget)||(this._setClasses(A),this._emitOrigin(V,null))}_emitOrigin(y,A){y.subject.observers.length&&this._ngZone.run(()=>y.subject.next(A))}_registerGlobalListeners(y){if(!this._platform.isBrowser)return;const A=y.rootNode,V=this._rootNodeFocusListenerCount.get(A)||0;V||this._ngZone.runOutsideAngular(()=>{A.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ne),A.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ne)}),this._rootNodeFocusListenerCount.set(A,V+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,z.R)(this._stopInputModalityDetector)).subscribe(pe=>{this._setOrigin(pe,!0)}))}_removeGlobalListeners(y){const A=y.rootNode;if(this._rootNodeFocusListenerCount.has(A)){const V=this._rootNodeFocusListenerCount.get(A);V>1?this._rootNodeFocusListenerCount.set(A,V-1):(A.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ne),A.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ne),this._rootNodeFocusListenerCount.delete(A))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(y,A,V){this._setClasses(y,A),this._emitOrigin(V,A),this._lastFocusOrigin=A}_getClosestElementsInfo(y){const A=[];return this._elementInfo.forEach((V,pe)=>{(pe===y||V.checkChildren&&pe.contains(y))&&A.push([pe,V])}),A}}return S.\u0275fac=function(y){return new(y||S)(l.LFG(l.R0b),l.LFG(t.t4),l.LFG(w),l.LFG(r.K0,8),l.LFG(Ae,8))},S.\u0275prov=l.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),Ve=(()=>{class S{constructor(y,A){this._elementRef=y,this._focusMonitor=A,this.cdkFocusChange=new l.vpe}ngAfterViewInit(){const y=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(y,1===y.nodeType&&y.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(A=>this.cdkFocusChange.emit(A))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return S.\u0275fac=function(y){return new(y||S)(l.Y36(l.SBq),l.Y36(je))},S.\u0275dir=l.lG2({type:S,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),S})();const Ge="cdk-high-contrast-black-on-white",U="cdk-high-contrast-white-on-black",O="cdk-high-contrast-active";let C=(()=>{class S{constructor(y,A){this._platform=y,this._document=A,this._breakpointSubscription=(0,l.f3M)(ke.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const y=this._document.createElement("div");y.style.backgroundColor="rgb(1,2,3)",y.style.position="absolute",this._document.body.appendChild(y);const A=this._document.defaultView||window,V=A&&A.getComputedStyle?A.getComputedStyle(y):null,pe=(V&&V.backgroundColor||"").replace(/ /g,"");switch(y.remove(),pe){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const y=this._document.body.classList;y.remove(O,Ge,U),this._hasCheckedHighContrastMode=!0;const A=this.getHighContrastMode();1===A?y.add(O,Ge):2===A&&y.add(O,U)}}}return S.\u0275fac=function(y){return new(y||S)(l.LFG(t.t4),l.LFG(r.K0))},S.\u0275prov=l.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),Y=(()=>{class S{constructor(y){y._applyBodyHighContrastModeCssClasses()}}return S.\u0275fac=function(y){return new(y||S)(l.LFG(C))},S.\u0275mod=l.oAB({type:S}),S.\u0275inj=l.cJS({imports:[ge.Q8]}),S})()},445:(ze,Me,a)=>{a.d(Me,{Is:()=>_e,vT:()=>G});var r=a(4650),l=a(6895);const t=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,r.f3M)(l.K0)}}),ne=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let _e=(()=>{class L{constructor(_){if(this.value="ltr",this.change=new r.vpe,_){const B=_.documentElement?_.documentElement.dir:null;this.value=function D(L){const ee=L?.toLowerCase()||"";return"auto"===ee&&typeof navigator<"u"&&navigator?.language?ne.test(navigator.language)?"rtl":"ltr":"rtl"===ee?"rtl":"ltr"}((_.body?_.body.dir:null)||B||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(_){return new(_||L)(r.LFG(t,8))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),G=(()=>{class L{}return L.\u0275fac=function(_){return new(_||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({}),L})()},1281:(ze,Me,a)=>{a.d(Me,{Eq:()=>ne,HM:()=>D,Ig:()=>l,du:()=>se,fI:()=>_e,su:()=>t});var r=a(4650);function l(G){return null!=G&&"false"!=`${G}`}function t(G,L=0){return function M(G){return!isNaN(parseFloat(G))&&!isNaN(Number(G))}(G)?Number(G):L}function ne(G){return Array.isArray(G)?G:[G]}function D(G){return null==G?"":"string"==typeof G?G:`${G}px`}function _e(G){return G instanceof r.SBq?G.nativeElement:G}function se(G,L=/\s+/){const ee=[];if(null!=G){const _=Array.isArray(G)?G:`${G}`.split(L);for(const R of _){const B=`${R}`.trim();B&&ee.push(B)}}return ee}},5017:(ze,Me,a)=>{a.d(Me,{A8:()=>L,Ov:()=>se});var r=a(7579),l=a(4650);class se{constructor(R=!1,B,j=!0){this._multiple=R,this._emitChanges=j,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new r.x,B&&B.length&&(R?B.forEach(z=>this._markSelected(z)):this._markSelected(B[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...R){this._verifyValueAssignment(R),R.forEach(B=>this._markSelected(B)),this._emitChangeEvent()}deselect(...R){this._verifyValueAssignment(R),R.forEach(B=>this._unmarkSelected(B)),this._emitChangeEvent()}toggle(R){this.isSelected(R)?this.deselect(R):this.select(R)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(R){return this._selection.has(R)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(R){this._multiple&&this.selected&&this._selected.sort(R)}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(R){this.isSelected(R)||(this._multiple||this._unmarkAll(),this._selection.add(R),this._emitChanges&&this._selectedToEmit.push(R))}_unmarkSelected(R){this.isSelected(R)&&(this._selection.delete(R),this._emitChanges&&this._deselectedToEmit.push(R))}_unmarkAll(){this.isEmpty()||this._selection.forEach(R=>this._unmarkSelected(R))}_verifyValueAssignment(R){}}let L=(()=>{class _{constructor(){this._listeners=[]}notify(B,j){for(let z of this._listeners)z(B,j)}listen(B){return this._listeners.push(B),()=>{this._listeners=this._listeners.filter(j=>B!==j)}}ngOnDestroy(){this._listeners=[]}}return _.\u0275fac=function(B){return new(B||_)},_.\u0275prov=l.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()},9521:(ze,Me,a)=>{a.d(Me,{A:()=>ie,JH:()=>xe,JU:()=>D,K5:()=>ne,Ku:()=>R,LH:()=>ge,L_:()=>_,MW:()=>be,Mf:()=>t,SV:()=>ke,Sd:()=>z,VM:()=>B,Vb:()=>dt,Z:()=>q,ZH:()=>l,aO:()=>H,b2:()=>ct,hY:()=>ee,jx:()=>_e,oh:()=>Z,uR:()=>j,xE:()=>v,yY:()=>x,zL:()=>se});const l=8,t=9,ne=13,D=16,_e=17,se=18,ee=27,_=32,R=33,B=34,j=35,z=36,Z=37,ge=38,ke=39,xe=40,x=46,v=48,H=57,ie=65,q=90,be=91,ct=224;function dt(rt,...lt){return lt.length?lt.some(ht=>rt[ht]):rt.altKey||rt.shiftKey||rt.ctrlKey||rt.metaKey}},2289:(ze,Me,a)=>{a.d(Me,{Yg:()=>xe,u3:()=>te});var r=a(4650),l=a(1281),t=a(7579),M=a(9841),ne=a(7272),D=a(8306),_e=a(5698),se=a(5684),G=a(8372),L=a(4004),ee=a(8675),_=a(2722),R=a(3353);const j=new Set;let z,Z=(()=>{class b{constructor(v){this._platform=v,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ke}matchMedia(v){return(this._platform.WEBKIT||this._platform.BLINK)&&function ge(b){if(!j.has(b))try{z||(z=document.createElement("style"),z.setAttribute("type","text/css"),document.head.appendChild(z)),z.sheet&&(z.sheet.insertRule(`@media ${b} {body{ }}`,0),j.add(b))}catch(x){console.error(x)}}(v),this._matchMedia(v)}}return b.\u0275fac=function(v){return new(v||b)(r.LFG(R.t4))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();function ke(b){return{matches:"all"===b||""===b,media:b,addListener:()=>{},removeListener:()=>{}}}let xe=(()=>{class b{constructor(v,k){this._mediaMatcher=v,this._zone=k,this._queries=new Map,this._destroySubject=new t.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(v){return de((0,l.Eq)(v)).some(ae=>this._registerQuery(ae).mql.matches)}observe(v){const ae=de((0,l.Eq)(v)).map(Ce=>this._registerQuery(Ce).observable);let we=(0,M.a)(ae);return we=(0,ne.z)(we.pipe((0,_e.q)(1)),we.pipe((0,se.T)(1),(0,G.b)(0))),we.pipe((0,L.U)(Ce=>{const Ie={matches:!1,breakpoints:{}};return Ce.forEach(({matches:Te,query:ye})=>{Ie.matches=Ie.matches||Te,Ie.breakpoints[ye]=Te}),Ie}))}_registerQuery(v){if(this._queries.has(v))return this._queries.get(v);const k=this._mediaMatcher.matchMedia(v),we={observable:new D.y(Ce=>{const Ie=Te=>this._zone.run(()=>Ce.next(Te));return k.addListener(Ie),()=>{k.removeListener(Ie)}}).pipe((0,ee.O)(k),(0,L.U)(({matches:Ce})=>({query:v,matches:Ce})),(0,_.R)(this._destroySubject)),mql:k};return this._queries.set(v,we),we}}return b.\u0275fac=function(v){return new(v||b)(r.LFG(Z),r.LFG(r.R0b))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();function de(b){return b.map(x=>x.split(",")).reduce((x,v)=>x.concat(v)).map(x=>x.trim())}const te={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)"}},9643:(ze,Me,a)=>{a.d(Me,{Q8:()=>G,wD:()=>se});var r=a(1281),l=a(4650),t=a(8306),M=a(7579),ne=a(8372);let D=(()=>{class L{create(_){return typeof MutationObserver>"u"?null:new MutationObserver(_)}}return L.\u0275fac=function(_){return new(_||L)},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),_e=(()=>{class L{constructor(_){this._mutationObserverFactory=_,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((_,R)=>this._cleanupObserver(R))}observe(_){const R=(0,r.fI)(_);return new t.y(B=>{const z=this._observeElement(R).subscribe(B);return()=>{z.unsubscribe(),this._unobserveElement(R)}})}_observeElement(_){if(this._observedElements.has(_))this._observedElements.get(_).count++;else{const R=new M.x,B=this._mutationObserverFactory.create(j=>R.next(j));B&&B.observe(_,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(_,{observer:B,stream:R,count:1})}return this._observedElements.get(_).stream}_unobserveElement(_){this._observedElements.has(_)&&(this._observedElements.get(_).count--,this._observedElements.get(_).count||this._cleanupObserver(_))}_cleanupObserver(_){if(this._observedElements.has(_)){const{observer:R,stream:B}=this._observedElements.get(_);R&&R.disconnect(),B.complete(),this._observedElements.delete(_)}}}return L.\u0275fac=function(_){return new(_||L)(l.LFG(D))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),se=(()=>{class L{constructor(_,R,B){this._contentObserver=_,this._elementRef=R,this._ngZone=B,this.event=new l.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(_){this._disabled=(0,r.Ig)(_),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(_){this._debounce=(0,r.su)(_),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const _=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?_.pipe((0,ne.b)(this.debounce)):_).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return L.\u0275fac=function(_){return new(_||L)(l.Y36(_e),l.Y36(l.SBq),l.Y36(l.R0b))},L.\u0275dir=l.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),G=(()=>{class L{}return L.\u0275fac=function(_){return new(_||L)},L.\u0275mod=l.oAB({type:L}),L.\u0275inj=l.cJS({providers:[D]}),L})()},2561:(ze,Me,a)=>{a.d(Me,{pI:()=>Xe,xu:()=>$e,_G:()=>ie,aV:()=>Ue,X_:()=>k,Xj:()=>Q,U8:()=>E,Iu:()=>oe});var r=a(7376),l=a(6895),t=a(4650),M=a(1281),ne=a(3353),D=a(445),_e=a(4080),se=a(7579),G=a(727),L=a(6451),ee=a(4482),_=a(5403),B=a(5698),j=a(2722),z=a(9521);const Z=(0,ne.Mq)();class ge{constructor(e,s){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=(0,M.HM)(-this._previousScrollPosition.left),e.style.top=(0,M.HM)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,u=e.style,w=this._document.body.style,I=u.scrollBehavior||"",q=w.scrollBehavior||"";this._isEnabled=!1,u.left=this._previousHTMLStyles.left,u.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Z&&(u.scrollBehavior=w.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Z&&(u.scrollBehavior=I,w.scrollBehavior=q)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const s=this._document.body,u=this._viewportRuler.getViewportSize();return s.scrollHeight>u.height||s.scrollWidth>u.width}}class xe{constructor(e,s,u,w){this._scrollDispatcher=e,this._ngZone=s,this._viewportRuler=u,this._config=w,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-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}}class de{enable(){}disable(){}attach(){}}function te(i,e){return e.some(s=>i.bottom<s.top||i.top>s.bottom||i.right<s.left||i.left>s.right)}function b(i,e){return e.some(s=>i.top<s.top||i.bottom>s.bottom||i.left<s.left||i.right>s.right)}class x{constructor(e,s,u,w){this._scrollDispatcher=e,this._viewportRuler=s,this._ngZone=u,this._config=w,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:u,height:w}=this._viewportRuler.getViewportSize();te(s,[{width:u,height:w,bottom:w,right:u,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}}let v=(()=>{class i{constructor(s,u,w,I){this._scrollDispatcher=s,this._viewportRuler=u,this._ngZone=w,this.noop=()=>new de,this.close=q=>new xe(this._scrollDispatcher,this._ngZone,this._viewportRuler,q),this.block=()=>new ge(this._viewportRuler,this._document),this.reposition=q=>new x(this._scrollDispatcher,this._viewportRuler,this._ngZone,q),this._document=I}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(r.mF),t.LFG(r.rL),t.LFG(t.R0b),t.LFG(l.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class k{constructor(e){if(this.scrollStrategy=new de,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const s=Object.keys(e);for(const u of s)void 0!==e[u]&&(this[u]=e[u])}}}class Ce{constructor(e,s){this.connectionPair=e,this.scrollableViewProperties=s}}let ye=(()=>{class i{constructor(s){this._attachedOverlays=[],this._document=s}ngOnDestroy(){this.detach()}add(s){this.remove(s),this._attachedOverlays.push(s)}remove(s){const u=this._attachedOverlays.indexOf(s);u>-1&&this._attachedOverlays.splice(u,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(l.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ee=(()=>{class i extends ye{constructor(s,u){super(s),this._ngZone=u,this._keydownListener=w=>{const I=this._attachedOverlays;for(let q=I.length-1;q>-1;q--)if(I[q]._keydownEvents.observers.length>0){const be=I[q]._keydownEvents;this._ngZone?this._ngZone.run(()=>be.next(w)):be.next(w);break}}}add(s){super.add(s),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)}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(l.K0),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),H=(()=>{class i extends ye{constructor(s,u,w){super(s),this._platform=u,this._ngZone=w,this._cursorStyleIsSet=!1,this._pointerDownListener=I=>{this._pointerDownEventTarget=(0,ne.sA)(I)},this._clickListener=I=>{const q=(0,ne.sA)(I),be="click"===I.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:q;this._pointerDownEventTarget=null;const Se=this._attachedOverlays.slice();for(let Le=Se.length-1;Le>-1;Le--){const Ae=Se[Le];if(Ae._outsidePointerEvents.observers.length<1||!Ae.hasAttached())continue;if(Ae.overlayElement.contains(q)||Ae.overlayElement.contains(be))break;const Ne=Ae._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ne.next(I)):Ne.next(I)}}}add(s){if(super.add(s),!this._isAttached){const u=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(u)):this._addEventListeners(u),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=u.style.cursor,u.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const s=this._document.body;s.removeEventListener("pointerdown",this._pointerDownListener,!0),s.removeEventListener("click",this._clickListener,!0),s.removeEventListener("auxclick",this._clickListener,!0),s.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(s.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(s){s.addEventListener("pointerdown",this._pointerDownListener,!0),s.addEventListener("click",this._clickListener,!0),s.addEventListener("auxclick",this._clickListener,!0),s.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(l.K0),t.LFG(ne.t4),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Q=(()=>{class i{constructor(s,u){this._platform=u,this._document=s}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const s="cdk-overlay-container";if(this._platform.isBrowser||(0,ne.Oy)()){const w=this._document.querySelectorAll(`.${s}[platform="server"], .${s}[platform="test"]`);for(let I=0;I<w.length;I++)w[I].remove()}const u=this._document.createElement("div");u.classList.add(s),(0,ne.Oy)()?u.setAttribute("platform","test"):this._platform.isBrowser||u.setAttribute("platform","server"),this._document.body.appendChild(u),this._containerElement=u}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(l.K0),t.LFG(ne.t4))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class oe{constructor(e,s,u,w,I,q,be,Se,Le,Ae=!1){this._portalOutlet=e,this._host=s,this._pane=u,this._config=w,this._ngZone=I,this._keyboardDispatcher=q,this._document=be,this._location=Se,this._outsideClickDispatcher=Le,this._animationsDisabled=Ae,this._backdropElement=null,this._backdropClick=new se.x,this._attachments=new se.x,this._detachments=new se.x,this._locationChanges=G.w0.EMPTY,this._backdropClickHandler=Ne=>this._backdropClick.next(Ne),this._backdropTransitionendHandler=Ne=>{this._disposeBackdrop(Ne.target)},this._keydownEvents=new se.x,this._outsidePointerEvents=new se.x,w.scrollStrategy&&(this._scrollStrategy=w.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=w.positionStrategy}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);const s=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,B.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),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),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const 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()}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={...this._config,...e},this._updateElementSize()}setDirection(e){this._config={...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(){const e=this._config.direction;return e?"string"==typeof e?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;const e=this._pane.style;e.width=(0,M.HM)(this._config.width),e.height=(0,M.HM)(this._config.height),e.minWidth=(0,M.HM)(this._config.minWidth),e.minHeight=(0,M.HM)(this._config.minHeight),e.maxWidth=(0,M.HM)(this._config.maxWidth),e.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const 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(){const e=this._backdropElement;if(e){if(this._animationsDisabled)return void this._disposeBackdrop(e);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,s,u){const w=(0,M.Eq)(s||[]).filter(I=>!!I);w.length&&(u?e.classList.add(...w):e.classList.remove(...w))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe((0,j.R)((0,L.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(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(){const 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)}}const F="cdk-overlay-connected-position-bounding-box",$=/([A-Za-z%]+)$/;class ie{constructor(e,s,u,w,I){this._viewportRuler=s,this._document=u,this._platform=w,this._overlayContainer=I,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 se.x,this._resizeSubscription=G.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(F),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)return void this.reapplyLastPosition();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();const e=this._originRect,s=this._overlayRect,u=this._viewportRect,w=this._containerRect,I=[];let q;for(let be of this._preferredPositions){let Se=this._getOriginPoint(e,w,be),Le=this._getOverlayPoint(Se,s,be),Ae=this._getOverlayFit(Le,s,u,be);if(Ae.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(be,Se);this._canFitWithFlexibleDimensions(Ae,Le,u)?I.push({position:be,origin:Se,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(Se,be)}):(!q||q.overlayFit.visibleArea<Ae.visibleArea)&&(q={overlayFit:Ae,overlayPoint:Le,originPoint:Se,position:be,overlayRect:s})}if(I.length){let be=null,Se=-1;for(const Le of I){const Ae=Le.boundingBoxRect.width*Le.boundingBoxRect.height*(Le.position.weight||1);Ae>Se&&(Se=Ae,be=Le)}return this._isPushed=!1,void this._applyPosition(be.position,be.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(q.position,q.originPoint);this._applyPosition(q.position,q.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Oe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(F),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,s)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(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,s,u){let w,I;if("center"==u.originX)w=e.left+e.width/2;else{const q=this._isRtl()?e.right:e.left,be=this._isRtl()?e.left:e.right;w="start"==u.originX?q:be}return s.left<0&&(w-=s.left),I="center"==u.originY?e.top+e.height/2:"top"==u.originY?e.top:e.bottom,s.top<0&&(I-=s.top),{x:w,y:I}}_getOverlayPoint(e,s,u){let w,I;return w="center"==u.overlayX?-s.width/2:"start"===u.overlayX?this._isRtl()?-s.width:0:this._isRtl()?0:-s.width,I="center"==u.overlayY?-s.height/2:"top"==u.overlayY?0:-s.height,{x:e.x+w,y:e.y+I}}_getOverlayFit(e,s,u,w){const I=ve(s);let{x:q,y:be}=e,Se=this._getOffset(w,"x"),Le=this._getOffset(w,"y");Se&&(q+=Se),Le&&(be+=Le);let je=0-be,Ve=be+I.height-u.height,Ge=this._subtractOverflows(I.width,0-q,q+I.width-u.width),U=this._subtractOverflows(I.height,je,Ve),O=Ge*U;return{visibleArea:O,isCompletelyWithinViewport:I.width*I.height===O,fitsInViewportVertically:U===I.height,fitsInViewportHorizontally:Ge==I.width}}_canFitWithFlexibleDimensions(e,s,u){if(this._hasFlexibleDimensions){const w=u.bottom-s.y,I=u.right-s.x,q=he(this._overlayRef.getConfig().minHeight),be=he(this._overlayRef.getConfig().minWidth),Le=e.fitsInViewportHorizontally||null!=be&&be<=I;return(e.fitsInViewportVertically||null!=q&&q<=w)&&Le}return!1}_pushOverlayOnScreen(e,s,u){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const w=ve(s),I=this._viewportRect,q=Math.max(e.x+w.width-I.width,0),be=Math.max(e.y+w.height-I.height,0),Se=Math.max(I.top-u.top-e.y,0),Le=Math.max(I.left-u.left-e.x,0);let Ae=0,Ne=0;return Ae=w.width<=I.width?Le||-q:e.x<this._viewportMargin?I.left-u.left-e.x:0,Ne=w.height<=I.height?Se||-be:e.y<this._viewportMargin?I.top-u.top-e.y:0,this._previousPushAmount={x:Ae,y:Ne},{x:e.x+Ae,y:e.y+Ne}}_applyPosition(e,s){if(this._setTransformOrigin(e),this._setOverlayElementStyles(s,e),this._setBoundingBoxStyles(s,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const u=this._getScrollVisibility(),w=new Ce(e,u);this._positionChanges.next(w)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const s=this._boundingBox.querySelectorAll(this._transformOriginSelector);let u,w=e.overlayY;u="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let I=0;I<s.length;I++)s[I].style.transformOrigin=`${u} ${w}`}_calculateBoundingBoxRect(e,s){const u=this._viewportRect,w=this._isRtl();let I,q,be,Ae,Ne,je;if("top"===s.overlayY)q=e.y,I=u.height-q+this._viewportMargin;else if("bottom"===s.overlayY)be=u.height-e.y+2*this._viewportMargin,I=u.height-be+this._viewportMargin;else{const Ve=Math.min(u.bottom-e.y+u.top,e.y),Ge=this._lastBoundingBoxSize.height;I=2*Ve,q=e.y-Ve,I>Ge&&!this._isInitialRender&&!this._growAfterOpen&&(q=e.y-Ge/2)}if("end"===s.overlayX&&!w||"start"===s.overlayX&&w)je=u.width-e.x+this._viewportMargin,Ae=e.x-this._viewportMargin;else if("start"===s.overlayX&&!w||"end"===s.overlayX&&w)Ne=e.x,Ae=u.right-e.x;else{const Ve=Math.min(u.right-e.x+u.left,e.x),Ge=this._lastBoundingBoxSize.width;Ae=2*Ve,Ne=e.x-Ve,Ae>Ge&&!this._isInitialRender&&!this._growAfterOpen&&(Ne=e.x-Ge/2)}return{top:q,left:Ne,bottom:be,right:je,width:Ae,height:I}}_setBoundingBoxStyles(e,s){const u=this._calculateBoundingBoxRect(e,s);!this._isInitialRender&&!this._growAfterOpen&&(u.height=Math.min(u.height,this._lastBoundingBoxSize.height),u.width=Math.min(u.width,this._lastBoundingBoxSize.width));const w={};if(this._hasExactPosition())w.top=w.left="0",w.bottom=w.right=w.maxHeight=w.maxWidth="",w.width=w.height="100%";else{const I=this._overlayRef.getConfig().maxHeight,q=this._overlayRef.getConfig().maxWidth;w.height=(0,M.HM)(u.height),w.top=(0,M.HM)(u.top),w.bottom=(0,M.HM)(u.bottom),w.width=(0,M.HM)(u.width),w.left=(0,M.HM)(u.left),w.right=(0,M.HM)(u.right),w.alignItems="center"===s.overlayX?"center":"end"===s.overlayX?"flex-end":"flex-start",w.justifyContent="center"===s.overlayY?"center":"bottom"===s.overlayY?"flex-end":"flex-start",I&&(w.maxHeight=(0,M.HM)(I)),q&&(w.maxWidth=(0,M.HM)(q))}this._lastBoundingBoxSize=u,Oe(this._boundingBox.style,w)}_resetBoundingBoxStyles(){Oe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Oe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,s){const u={},w=this._hasExactPosition(),I=this._hasFlexibleDimensions,q=this._overlayRef.getConfig();if(w){const Ae=this._viewportRuler.getViewportScrollPosition();Oe(u,this._getExactOverlayY(s,e,Ae)),Oe(u,this._getExactOverlayX(s,e,Ae))}else u.position="static";let be="",Se=this._getOffset(s,"x"),Le=this._getOffset(s,"y");Se&&(be+=`translateX(${Se}px) `),Le&&(be+=`translateY(${Le}px)`),u.transform=be.trim(),q.maxHeight&&(w?u.maxHeight=(0,M.HM)(q.maxHeight):I&&(u.maxHeight="")),q.maxWidth&&(w?u.maxWidth=(0,M.HM)(q.maxWidth):I&&(u.maxWidth="")),Oe(this._pane.style,u)}_getExactOverlayY(e,s,u){let w={top:"",bottom:""},I=this._getOverlayPoint(s,this._overlayRect,e);return this._isPushed&&(I=this._pushOverlayOnScreen(I,this._overlayRect,u)),"bottom"===e.overlayY?w.bottom=this._document.documentElement.clientHeight-(I.y+this._overlayRect.height)+"px":w.top=(0,M.HM)(I.y),w}_getExactOverlayX(e,s,u){let q,w={left:"",right:""},I=this._getOverlayPoint(s,this._overlayRect,e);return this._isPushed&&(I=this._pushOverlayOnScreen(I,this._overlayRect,u)),q=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===q?w.right=this._document.documentElement.clientWidth-(I.x+this._overlayRect.width)+"px":w.left=(0,M.HM)(I.x),w}_getScrollVisibility(){const e=this._getOriginRect(),s=this._pane.getBoundingClientRect(),u=this._scrollables.map(w=>w.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:b(e,u),isOriginOutsideView:te(e,u),isOverlayClipped:b(s,u),isOverlayOutsideView:te(s,u)}}_subtractOverflows(e,...s){return s.reduce((u,w)=>u-Math.max(w,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,u=this._viewportRuler.getViewportScrollPosition();return{top:u.top+this._viewportMargin,left:u.left+this._viewportMargin,right:u.left+e-this._viewportMargin,bottom:u.top+s-this._viewportMargin,width:e-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,s){return"x"===s?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&(0,M.Eq)(e).forEach(s=>{""!==s&&-1===this._appliedPanelClasses.indexOf(s)&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof t.SBq)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const s=e.width||0,u=e.height||0;return{top:e.y,bottom:e.y+u,left:e.x,right:e.x+s,height:u,width:s}}}function Oe(i,e){for(let s in e)e.hasOwnProperty(s)&&(i[s]=e[s]);return i}function he(i){if("number"!=typeof i&&null!=i){const[e,s]=i.split($);return s&&"px"!==s?null:parseFloat(e)}return i||null}function ve(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)}}const le="cdk-global-overlay-wrapper";class ce{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const s=e.getConfig();this._overlayRef=e,this._width&&!s.width&&e.updateSize({width:this._width}),this._height&&!s.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(le),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;const e=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,u=this._overlayRef.getConfig(),{width:w,height:I,maxWidth:q,maxHeight:be}=u,Se=!("100%"!==w&&"100vw"!==w||q&&"100%"!==q&&"100vw"!==q),Le=!("100%"!==I&&"100vh"!==I||be&&"100%"!==be&&"100vh"!==be),Ae=this._xPosition,Ne=this._xOffset,je="rtl"===this._overlayRef.getConfig().direction;let Ve="",Ge="",U="";Se?U="flex-start":"center"===Ae?(U="center",je?Ge=Ne:Ve=Ne):je?"left"===Ae||"end"===Ae?(U="flex-end",Ve=Ne):("right"===Ae||"start"===Ae)&&(U="flex-start",Ge=Ne):"left"===Ae||"start"===Ae?(U="flex-start",Ve=Ne):("right"===Ae||"end"===Ae)&&(U="flex-end",Ge=Ne),e.position=this._cssPosition,e.marginLeft=Se?"0":Ve,e.marginTop=Le?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=Se?"0":Ge,s.justifyContent=U,s.alignItems=Le?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,u=s.style;s.classList.remove(le),u.justifyContent=u.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let fe=(()=>{class i{constructor(s,u,w,I){this._viewportRuler=s,this._document=u,this._platform=w,this._overlayContainer=I}global(){return new ce}flexibleConnectedTo(s){return new ie(s,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(r.rL),t.LFG(l.K0),t.LFG(ne.t4),t.LFG(Q))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Be=0,Ue=(()=>{class i{constructor(s,u,w,I,q,be,Se,Le,Ae,Ne,je,Ve){this.scrollStrategies=s,this._overlayContainer=u,this._componentFactoryResolver=w,this._positionBuilder=I,this._keyboardDispatcher=q,this._injector=be,this._ngZone=Se,this._document=Le,this._directionality=Ae,this._location=Ne,this._outsideClickDispatcher=je,this._animationsModuleType=Ve}create(s){const u=this._createHostElement(),w=this._createPaneElement(u),I=this._createPortalOutlet(w),q=new k(s);return q.direction=q.direction||this._directionality.value,new oe(I,u,w,q,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(s){const u=this._document.createElement("div");return u.id="cdk-overlay-"+Be++,u.classList.add("cdk-overlay-pane"),s.appendChild(u),u}_createHostElement(){const s=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(s),s}_createPortalOutlet(s){return this._appRef||(this._appRef=this._injector.get(t.z2F)),new _e.u0(s,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(s){return new(s||i)(t.LFG(v),t.LFG(Q),t.LFG(t._Vd),t.LFG(fe),t.LFG(Ee),t.LFG(t.zs3),t.LFG(t.R0b),t.LFG(l.K0),t.LFG(D.Is),t.LFG(l.Ye),t.LFG(H),t.LFG(t.QbO,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac}),i})();const We=[{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"}],Ze=new t.OlP("cdk-connected-overlay-scroll-strategy");let $e=(()=>{class i{constructor(s){this.elementRef=s}}return i.\u0275fac=function(s){return new(s||i)(t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),Xe=(()=>{class i{constructor(s,u,w,I,q){this._overlay=s,this._dir=q,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=G.w0.EMPTY,this._attachSubscription=G.w0.EMPTY,this._detachSubscription=G.w0.EMPTY,this._positionSubscription=G.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new t.vpe,this.positionChange=new t.vpe,this.attach=new t.vpe,this.detach=new t.vpe,this.overlayKeydown=new t.vpe,this.overlayOutsideClick=new t.vpe,this._templatePortal=new _e.UE(u,w),this._scrollStrategyFactory=I,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(s){this._offsetX=s,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(s){this._offsetY=s,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(s){this._hasBackdrop=(0,M.Ig)(s)}get lockPosition(){return this._lockPosition}set lockPosition(s){this._lockPosition=(0,M.Ig)(s)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(s){this._flexibleDimensions=(0,M.Ig)(s)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(s){this._growAfterOpen=(0,M.Ig)(s)}get push(){return this._push}set push(s){this._push=(0,M.Ig)(s)}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(s){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),s.origin&&this.open&&this._position.apply()),s.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=We);const s=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=s.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=s.detachments().subscribe(()=>this.detach.emit()),s.keydownEvents().subscribe(u=>{this.overlayKeydown.next(u),u.keyCode===z.hY&&!this.disableClose&&!(0,z.Vb)(u)&&(u.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(u=>{this.overlayOutsideClick.next(u)})}_buildConfig(){const s=this._position=this.positionStrategy||this._createPositionStrategy(),u=new k({direction:this._dir,positionStrategy:s,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(u.width=this.width),(this.height||0===this.height)&&(u.height=this.height),(this.minWidth||0===this.minWidth)&&(u.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(u.minHeight=this.minHeight),this.backdropClass&&(u.backdropClass=this.backdropClass),this.panelClass&&(u.panelClass=this.panelClass),u}_updatePositionStrategy(s){const u=this.positions.map(w=>({originX:w.originX,originY:w.originY,overlayX:w.overlayX,overlayY:w.overlayY,offsetX:w.offsetX||this.offsetX,offsetY:w.offsetY||this.offsetY,panelClass:w.panelClass||void 0}));return s.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(u).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const s=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(s),s}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof $e?this.origin.elementRef:this.origin}_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(s=>{this.backdropClick.emit(s)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function R(i,e=!1){return(0,ee.e)((s,u)=>{let w=0;s.subscribe((0,_.x)(u,I=>{const q=i(I,w++);(q||e)&&u.next(I),!q&&u.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(s=>{this.positionChange.emit(s),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(s){return new(s||i)(t.Y36(Ue),t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(Ze),t.Y36(D.Is,8))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[t.TTD]}),i})();const Re={provide:Ze,deps:[Ue],useFactory:function qe(i){return()=>i.scrollStrategies.reposition()}};let E=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Ue,Re],imports:[D.vT,_e.eL,r.Cl,r.Cl]}),i})()},3353:(ze,Me,a)=>{a.d(Me,{Mq:()=>B,Oy:()=>de,ht:()=>ke,i$:()=>ee,kV:()=>ge,qK:()=>se,sA:()=>xe,t4:()=>M});var r=a(4650),l=a(6895);let t;try{t=typeof Intl<"u"&&Intl.v8BreakIterator}catch{t=!1}let D,M=(()=>{class te{constructor(x){this._platformId=x,this.isBrowser=this._platformId?(0,l.NF)(this._platformId):"object"==typeof document&&!!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&&!t)&&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}}return te.\u0275fac=function(x){return new(x||te)(r.LFG(r.Lbi))},te.\u0275prov=r.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})();const _e=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function se(){if(D)return D;if("object"!=typeof document||!document)return D=new Set(_e),D;let te=document.createElement("input");return D=new Set(_e.filter(b=>(te.setAttribute("type",b),te.type===b))),D}let G,R,z;function ee(te){return function L(){if(null==G&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>G=!0}))}finally{G=G||!1}return G}()?te:!!te.capture}function B(){if(null==R){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return R=!1,R;if("scrollBehavior"in document.documentElement.style)R=!0;else{const te=Element.prototype.scrollTo;R=!!te&&!/\{\s*\[native code\]\s*\}/.test(te.toString())}}return R}function ge(te){if(function Z(){if(null==z){const te=typeof document<"u"?document.head:null;z=!(!te||!te.createShadowRoot&&!te.attachShadow)}return z}()){const b=te.getRootNode?te.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&b instanceof ShadowRoot)return b}return null}function ke(){let te=typeof document<"u"&&document?document.activeElement:null;for(;te&&te.shadowRoot;){const b=te.shadowRoot.activeElement;if(b===te)break;te=b}return te}function xe(te){return te.composedPath?te.composedPath()[0]:te.target}function de(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(ze,Me,a)=>{a.d(Me,{C5:()=>L,Pl:()=>ke,UE:()=>ee,eL:()=>de,en:()=>R,u0:()=>j});var r=a(4650),l=a(6895);class G{attach(x){return this._attachedHost=x,x.attach(this)}detach(){let x=this._attachedHost;null!=x&&(this._attachedHost=null,x.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(x){this._attachedHost=x}}class L extends G{constructor(x,v,k,ae){super(),this.component=x,this.viewContainerRef=v,this.injector=k,this.componentFactoryResolver=ae}}class ee extends G{constructor(x,v,k,ae){super(),this.templateRef=x,this.viewContainerRef=v,this.context=k,this.injector=ae}get origin(){return this.templateRef.elementRef}attach(x,v=this.context){return this.context=v,super.attach(x)}detach(){return this.context=void 0,super.detach()}}class _ extends G{constructor(x){super(),this.element=x instanceof r.SBq?x.nativeElement:x}}class R{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(x){return x instanceof L?(this._attachedPortal=x,this.attachComponentPortal(x)):x instanceof ee?(this._attachedPortal=x,this.attachTemplatePortal(x)):this.attachDomPortal&&x instanceof _?(this._attachedPortal=x,this.attachDomPortal(x)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(x){this._disposeFn=x}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class j extends R{constructor(x,v,k,ae,we){super(),this.outletElement=x,this._componentFactoryResolver=v,this._appRef=k,this._defaultInjector=ae,this.attachDomPortal=Ce=>{const Ie=Ce.element,Te=this._document.createComment("dom-portal");Ie.parentNode.insertBefore(Te,Ie),this.outletElement.appendChild(Ie),this._attachedPortal=Ce,super.setDisposeFn(()=>{Te.parentNode&&Te.parentNode.replaceChild(Ie,Te)})},this._document=we}attachComponentPortal(x){const k=(x.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(x.component);let ae;return x.viewContainerRef?(ae=x.viewContainerRef.createComponent(k,x.viewContainerRef.length,x.injector||x.viewContainerRef.injector),this.setDisposeFn(()=>ae.destroy())):(ae=k.create(x.injector||this._defaultInjector||r.zs3.NULL),this._appRef.attachView(ae.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ae.hostView),ae.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ae)),this._attachedPortal=x,ae}attachTemplatePortal(x){let v=x.viewContainerRef,k=v.createEmbeddedView(x.templateRef,x.context,{injector:x.injector});return k.rootNodes.forEach(ae=>this.outletElement.appendChild(ae)),k.detectChanges(),this.setDisposeFn(()=>{let ae=v.indexOf(k);-1!==ae&&v.remove(ae)}),this._attachedPortal=x,k}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(x){return x.hostView.rootNodes[0]}}let ke=(()=>{class b extends R{constructor(v,k,ae){super(),this._componentFactoryResolver=v,this._viewContainerRef=k,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=we=>{const Ce=we.element,Ie=this._document.createComment("dom-portal");we.setAttachedHost(this),Ce.parentNode.insertBefore(Ie,Ce),this._getRootNode().appendChild(Ce),this._attachedPortal=we,super.setDisposeFn(()=>{Ie.parentNode&&Ie.parentNode.replaceChild(Ce,Ie)})},this._document=ae}get portal(){return this._attachedPortal}set portal(v){this.hasAttached()&&!v&&!this._isInitialized||(this.hasAttached()&&super.detach(),v&&super.attach(v),this._attachedPortal=v||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(v){v.setAttachedHost(this);const k=null!=v.viewContainerRef?v.viewContainerRef:this._viewContainerRef,we=(v.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(v.component),Ce=k.createComponent(we,k.length,v.injector||k.injector);return k!==this._viewContainerRef&&this._getRootNode().appendChild(Ce.hostView.rootNodes[0]),super.setDisposeFn(()=>Ce.destroy()),this._attachedPortal=v,this._attachedRef=Ce,this.attached.emit(Ce),Ce}attachTemplatePortal(v){v.setAttachedHost(this);const k=this._viewContainerRef.createEmbeddedView(v.templateRef,v.context,{injector:v.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=v,this._attachedRef=k,this.attached.emit(k),k}_getRootNode(){const v=this._viewContainerRef.element.nativeElement;return v.nodeType===v.ELEMENT_NODE?v:v.parentNode}}return b.\u0275fac=function(v){return new(v||b)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(l.K0))},b.\u0275dir=r.lG2({type:b,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),b})(),de=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=r.oAB({type:b}),b.\u0275inj=r.cJS({}),b})()},7376:(ze,Me,a)=>{a.d(Me,{Cl:()=>Te,ZD:()=>Ie,mF:()=>de,rL:()=>x});var r=a(1281),l=a(4650),t=a(7579),M=a(9646),ne=a(8306),D=a(4968),G=(a(6406),a(3101),a(3601)),L=a(9300),ee=a(3353),_=a(6895),R=a(445);let de=(()=>{class ye{constructor(H,Q,oe){this._ngZone=H,this._platform=Q,this._scrolled=new t.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=oe}register(H){this.scrollContainers.has(H)||this.scrollContainers.set(H,H.elementScrolled().subscribe(()=>this._scrolled.next(H)))}deregister(H){const Q=this.scrollContainers.get(H);Q&&(Q.unsubscribe(),this.scrollContainers.delete(H))}scrolled(H=20){return this._platform.isBrowser?new ne.y(Q=>{this._globalSubscription||this._addGlobalListener();const oe=H>0?this._scrolled.pipe((0,G.e)(H)).subscribe(Q):this._scrolled.subscribe(Q);return this._scrolledCount++,()=>{oe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,M.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((H,Q)=>this.deregister(Q)),this._scrolled.complete()}ancestorScrolled(H,Q){const oe=this.getAncestorScrollContainers(H);return this.scrolled(Q).pipe((0,L.h)(F=>!F||oe.indexOf(F)>-1))}getAncestorScrollContainers(H){const Q=[];return this.scrollContainers.forEach((oe,F)=>{this._scrollableContainsElement(F,H)&&Q.push(F)}),Q}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(H,Q){let oe=(0,r.fI)(Q),F=H.getElementRef().nativeElement;do{if(oe==F)return!0}while(oe=oe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const H=this._getWindow();return(0,D.R)(H.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ye.\u0275fac=function(H){return new(H||ye)(l.LFG(l.R0b),l.LFG(ee.t4),l.LFG(_.K0,8))},ye.\u0275prov=l.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),x=(()=>{class ye{constructor(H,Q,oe){this._platform=H,this._change=new t.x,this._changeListener=F=>{this._change.next(F)},this._document=oe,Q.runOutsideAngular(()=>{if(H.isBrowser){const F=this._getWindow();F.addEventListener("resize",this._changeListener),F.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const H=this._getWindow();H.removeEventListener("resize",this._changeListener),H.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const H={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),H}getViewportRect(){const H=this.getViewportScrollPosition(),{width:Q,height:oe}=this.getViewportSize();return{top:H.top,left:H.left,bottom:H.top+oe,right:H.left+Q,height:oe,width:Q}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const H=this._document,Q=this._getWindow(),oe=H.documentElement,F=oe.getBoundingClientRect();return{top:-F.top||H.body.scrollTop||Q.scrollY||oe.scrollTop||0,left:-F.left||H.body.scrollLeft||Q.scrollX||oe.scrollLeft||0}}change(H=20){return H>0?this._change.pipe((0,G.e)(H)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const H=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:H.innerWidth,height:H.innerHeight}:{width:0,height:0}}}return ye.\u0275fac=function(H){return new(H||ye)(l.LFG(ee.t4),l.LFG(l.R0b),l.LFG(_.K0,8))},ye.\u0275prov=l.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),Ie=(()=>{class ye{}return ye.\u0275fac=function(H){return new(H||ye)},ye.\u0275mod=l.oAB({type:ye}),ye.\u0275inj=l.cJS({}),ye})(),Te=(()=>{class ye{}return ye.\u0275fac=function(H){return new(H||ye)},ye.\u0275mod=l.oAB({type:ye}),ye.\u0275inj=l.cJS({imports:[R.vT,Ie,R.vT,Ie]}),ye})()},4859:(ze,Me,a)=>{a.d(Me,{lW:()=>L,ot:()=>_});var r=a(4650),l=a(3238),t=a(2687);const M=["mat-button",""],ne=["*"],se=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],G=(0,l.pj)((0,l.Id)((0,l.Kr)(class{constructor(R){this._elementRef=R}})));let L=(()=>{class R extends G{constructor(j,z,Z){super(j),this._focusMonitor=z,this._animationMode=Z,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ge of se)this._hasHostAttributes(ge)&&this._getHostElement().classList.add(ge);j.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(j,z){j?this._focusMonitor.focusVia(this._getHostElement(),j,z):this._getHostElement().focus(z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...j){return j.some(z=>this._getHostElement().hasAttribute(z))}}return R.\u0275fac=function(j){return new(j||R)(r.Y36(r.SBq),r.Y36(t.tE),r.Y36(r.QbO,8))},R.\u0275cmp=r.Xpm({type:R,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(j,z){if(1&j&&r.Gf(l.wG,5),2&j){let Z;r.iGM(Z=r.CRH())&&(z.ripple=Z.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(j,z){2&j&&(r.uIk("disabled",z.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===z._animationMode)("mat-button-disabled",z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:M,ngContentSelectors:ne,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(j,z){1&j&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1)(3,"span",2)),2&j&&(r.xp6(2),r.ekj("mat-button-ripple-round",z.isRoundButton||z.isIconButton),r.Q6J("matRippleDisabled",z._isRippleDisabled())("matRippleCentered",z.isIconButton)("matRippleTrigger",z._getHostElement()))},dependencies:[l.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}"],encapsulation:2,changeDetection:0}),R})(),_=(()=>{class R{}return R.\u0275fac=function(j){return new(j||R)},R.\u0275mod=r.oAB({type:R}),R.\u0275inj=r.cJS({imports:[l.si,l.BQ,l.BQ]}),R})()},6709:(ze,Me,a)=>{a.d(Me,{oG:()=>ge,p9:()=>te});var r=a(2687),l=a(1281),t=a(4650),M=a(4006),ne=a(3238),D=a(9643);const _e=["input"],se=function(b){return{enterDuration:b}},G=["*"],L=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:ee});function ee(){return{color:"accent",clickAction:"check-indeterminate"}}let _=0;const R=ee(),B={provide:M.JU,useExisting:(0,t.Gpc)(()=>ge),multi:!0};class j{}const z=(0,ne.sb)((0,ne.pj)((0,ne.Kr)((0,ne.Id)(class{constructor(b){this._elementRef=b}}))));let Z=(()=>{class b extends z{constructor(v,k,ae,we,Ce,Ie,Te){super(k),this._changeDetectorRef=ae,this._ngZone=we,this._animationMode=Ie,this._options=Te,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||R,this.color=this.defaultColor=this._options.color||R.color,this.tabIndex=parseInt(Ce)||0,this.id=this._uniqueId=`${v}${++_}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(v){this._required=(0,l.Ig)(v)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(v){const k=(0,l.Ig)(v);k!=this.checked&&(this._checked=k,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(v){const k=(0,l.Ig)(v);k!==this.disabled&&(this._disabled=k,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(v){const k=v!=this._indeterminate;this._indeterminate=(0,l.Ig)(v),k&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(v){this.checked=!!v}registerOnChange(v){this._controlValueAccessorChangeFn=v}registerOnTouched(v){this._onTouched=v}setDisabledState(v){this.disabled=v}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(v){let k=this._currentCheckState,ae=this._getAnimationTargetElement();if(k!==v&&ae&&(this._currentAnimationClass.length>0&&ae.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(k,v),this._currentCheckState=v,this._currentAnimationClass.length>0)){ae.classList.add(this._currentAnimationClass);const we=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ae.classList.remove(we)},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(){const v=this._options?.clickAction;this.disabled||"noop"===v?!this.disabled&&"noop"===v&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==v&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(v){v.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(v,k){if("NoopAnimations"===this._animationMode)return"";switch(v){case 0:if(1===k)return this._animationClasses.uncheckedToChecked;if(3==k)return this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===k?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===k?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===k?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(v){const k=this._inputElement;k&&(k.nativeElement.indeterminate=v)}}return b.\u0275fac=function(v){t.$Z()},b.\u0275dir=t.lG2({type:b,viewQuery:function(v,k){if(1&v&&(t.Gf(_e,5),t.Gf(ne.wG,5)),2&v){let ae;t.iGM(ae=t.CRH())&&(k._inputElement=ae.first),t.iGM(ae=t.CRH())&&(k.ripple=ae.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[t.qOj]}),b})(),ge=(()=>{class b extends Z{constructor(v,k,ae,we,Ce,Ie,Te){super("mat-checkbox-",v,k,we,Ce,Ie,Te),this._focusMonitor=ae,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(v){const k=new j;return k.source=this,k.checked=v,k}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(v=>{v||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(v){v.stopPropagation(),super._handleInputClick()}focus(v,k){v?this._focusMonitor.focusVia(this._inputElement,v,k):this._inputElement.nativeElement.focus(k)}}return b.\u0275fac=function(v){return new(v||b)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(r.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(L,8))},b.\u0275cmp=t.Xpm({type:b,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(v,k){2&v&&(t.Ikx("id",k.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",k.indeterminate)("mat-checkbox-checked",k.checked)("mat-checkbox-disabled",k.disabled)("mat-checkbox-label-before","before"==k.labelPosition)("_mat-animation-noopable","NoopAnimations"===k._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([B]),t.qOj],ngContentSelectors:G,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(v,k){if(1&v&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(we){return k._onInteractionEvent(we)})("click",function(we){return k._onInputClick(we)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA()(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return k._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&v){const ae=t.MAs(1),we=t.MAs(13);t.uIk("for",k.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!we.textContent||!we.textContent.trim()),t.xp6(1),t.Q6J("id",k.inputId)("required",k.required)("checked",k.checked)("disabled",k.disabled)("tabIndex",k.tabIndex),t.uIk("value",k.value)("name",k.name)("aria-label",k.ariaLabel||null)("aria-labelledby",k.ariaLabelledby)("aria-checked",k._getAriaChecked())("aria-describedby",k.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",ae)("matRippleDisabled",k._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,se,"NoopAnimations"===k._animationMode?0:150))}},dependencies:[ne.wG,D.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-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 mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}"],encapsulation:2,changeDetection:0}),b})(),de=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({}),b})(),te=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[ne.si,ne.BQ,D.Q8,de,ne.BQ,de]}),b})()},3238:(ze,Me,a)=>{a.d(Me,{_A:()=>Ee,rD:()=>ve,sG:()=>H,Ad:()=>Te,K7:()=>q,HF:()=>s,Y2:()=>Re,BQ:()=>de,XK:()=>Oe,ey:()=>Ne,Ng:()=>Ge,wG:()=>E,si:()=>f,IR:()=>Xe,CB:()=>je,jH:()=>Ve,pj:()=>k,Kr:()=>ae,Id:()=>v,FD:()=>Ce,dB:()=>Ie,sb:()=>we});var r=a(4650),l=a(2687),t=a(445),ne=a(6895),D=a(3353),_e=a(1281),se=a(8306),G=a(7579),L=a(9521);function R(U,O){if(1&U&&r._UZ(0,"mat-pseudo-checkbox",4),2&U){const C=r.oxw();r.Q6J("state",C.selected?"checked":"unchecked")("disabled",C.disabled)}}function B(U,O){if(1&U&&(r.TgZ(0,"span",5),r._uU(1),r.qZA()),2&U){const C=r.oxw();r.xp6(1),r.hij("(",C.group.label,")")}}const j=["*"],xe=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function ke(){return!0}});let de=(()=>{class U{constructor(C,Y,S){this._sanityChecks=Y,this._document=S,this._hasDoneGlobalChecks=!1,C._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(C){return!(0,D.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[C])}}return U.\u0275fac=function(C){return new(C||U)(r.LFG(l.qm),r.LFG(xe,8),r.LFG(ne.K0))},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[t.vT,t.vT]}),U})();function v(U){return class extends U{constructor(...O){super(...O),this._disabled=!1}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,_e.Ig)(O)}}}function k(U,O){return class extends U{constructor(...C){super(...C),this.defaultColor=O,this.color=O}get color(){return this._color}set color(C){const Y=C||this.defaultColor;Y!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Y&&this._elementRef.nativeElement.classList.add(`mat-${Y}`),this._color=Y)}}}function ae(U){return class extends U{constructor(...O){super(...O),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(O){this._disableRipple=(0,_e.Ig)(O)}}}function we(U,O=0){return class extends U{constructor(...C){super(...C),this._tabIndex=O,this.defaultTabIndex=O}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(C){this._tabIndex=null!=C?(0,_e.su)(C):this.defaultTabIndex}}}function Ce(U){return class extends U{constructor(...O){super(...O),this.errorState=!1}updateErrorState(){const O=this.errorState,m=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);m!==O&&(this.errorState=m,this.stateChanges.next())}}}function Ie(U){return class extends U{constructor(...O){super(...O),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new se.y(C=>{this._isInitialized?this._notifySubscriber(C):this._pendingSubscribers.push(C)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(O){O.next(),O.complete()}}}const Te=new r.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function ye(){return(0,r.f3M)(r.soG)}});class Ee{constructor(){this._localeChanges=new G.x,this.localeChanges=this._localeChanges}getValidDateOrNull(O){return this.isDateInstance(O)&&this.isValid(O)?O:null}deserialize(O){return null==O||this.isDateInstance(O)&&this.isValid(O)?O:this.invalid()}setLocale(O){this.locale=O,this._localeChanges.next()}compareDate(O,C){return this.getYear(O)-this.getYear(C)||this.getMonth(O)-this.getMonth(C)||this.getDate(O)-this.getDate(C)}sameDate(O,C){if(O&&C){let Y=this.isValid(O),S=this.isValid(C);return Y&&S?!this.compareDate(O,C):Y==S}return O==C}clampDate(O,C,Y){return C&&this.compareDate(O,C)<0?C:Y&&this.compareDate(O,Y)>0?Y:O}}const H=new r.OlP("mat-date-formats"),Q=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function oe(U,O){const C=Array(U);for(let Y=0;Y<U;Y++)C[Y]=O(Y);return C}let F=(()=>{class U extends Ee{constructor(C,Y){super(),this.useUtcForDisplay=!1,super.setLocale(C)}getYear(C){return C.getFullYear()}getMonth(C){return C.getMonth()}getDate(C){return C.getDate()}getDayOfWeek(C){return C.getDay()}getMonthNames(C){const Y=new Intl.DateTimeFormat(this.locale,{month:C,timeZone:"utc"});return oe(12,S=>this._format(Y,new Date(2017,S,1)))}getDateNames(){const C=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return oe(31,Y=>this._format(C,new Date(2017,0,Y+1)))}getDayOfWeekNames(C){const Y=new Intl.DateTimeFormat(this.locale,{weekday:C,timeZone:"utc"});return oe(7,S=>this._format(Y,new Date(2017,0,S+1)))}getYearName(C){const Y=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Y,C)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(C){return this.getDate(this._createDateWithOverflow(this.getYear(C),this.getMonth(C)+1,0))}clone(C){return new Date(C.getTime())}createDate(C,Y,S){let m=this._createDateWithOverflow(C,Y,S);return m.getMonth(),m}today(){return new Date}parse(C){return"number"==typeof C?new Date(C):C?new Date(Date.parse(C)):null}format(C,Y){if(!this.isValid(C))throw Error("NativeDateAdapter: Cannot format invalid date.");const S=new Intl.DateTimeFormat(this.locale,{...Y,timeZone:"utc"});return this._format(S,C)}addCalendarYears(C,Y){return this.addCalendarMonths(C,12*Y)}addCalendarMonths(C,Y){let S=this._createDateWithOverflow(this.getYear(C),this.getMonth(C)+Y,this.getDate(C));return this.getMonth(S)!=((this.getMonth(C)+Y)%12+12)%12&&(S=this._createDateWithOverflow(this.getYear(S),this.getMonth(S),0)),S}addCalendarDays(C,Y){return this._createDateWithOverflow(this.getYear(C),this.getMonth(C),this.getDate(C)+Y)}toIso8601(C){return[C.getUTCFullYear(),this._2digit(C.getUTCMonth()+1),this._2digit(C.getUTCDate())].join("-")}deserialize(C){if("string"==typeof C){if(!C)return null;if(Q.test(C)){let Y=new Date(C);if(this.isValid(Y))return Y}}return super.deserialize(C)}isDateInstance(C){return C instanceof Date}isValid(C){return!isNaN(C.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(C,Y,S){const m=new Date;return m.setFullYear(C,Y,S),m.setHours(0,0,0,0),m}_2digit(C){return("00"+C).slice(-2)}_format(C,Y){const S=new Date;return S.setUTCFullYear(Y.getFullYear(),Y.getMonth(),Y.getDate()),S.setUTCHours(Y.getHours(),Y.getMinutes(),Y.getSeconds(),Y.getMilliseconds()),C.format(S)}}return U.\u0275fac=function(C){return new(C||U)(r.LFG(Te,8),r.LFG(D.t4))},U.\u0275prov=r.Yz7({token:U,factory:U.\u0275fac}),U})();const $={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"}}};let ie=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({providers:[{provide:Ee,useClass:F}]}),U})(),Oe=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({providers:[{provide:H,useValue:$}],imports:[ie]}),U})(),ve=(()=>{class U{isErrorState(C,Y){return!!(C&&C.invalid&&(C.touched||Y&&Y.submitted))}}return U.\u0275fac=function(C){return new(C||U)},U.\u0275prov=r.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();class fe{constructor(O,C,Y,S=!1){this._renderer=O,this.element=C,this.config=Y,this._animationForciblyDisabledThroughCss=S,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Be={enterDuration:225,exitDuration:150},We=(0,D.i$)({passive:!0}),Ze=["mousedown","touchstart"],$e=["mouseup","mouseleave","touchend","touchcancel"];class Xe{constructor(O,C,Y,S){this._target=O,this._ngZone=C,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,S.isBrowser&&(this._containerElement=(0,_e.fI)(Y))}fadeInRipple(O,C,Y={}){const S=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),m={...Be,...Y.animation};Y.centered&&(O=S.left+S.width/2,C=S.top+S.height/2);const y=Y.radius||function qe(U,O,C){const Y=Math.max(Math.abs(U-C.left),Math.abs(U-C.right)),S=Math.max(Math.abs(O-C.top),Math.abs(O-C.bottom));return Math.sqrt(Y*Y+S*S)}(O,C,S),A=O-S.left,V=C-S.top,pe=m.enterDuration,Pe=document.createElement("div");Pe.classList.add("mat-ripple-element"),Pe.style.left=A-y+"px",Pe.style.top=V-y+"px",Pe.style.height=2*y+"px",Pe.style.width=2*y+"px",null!=Y.color&&(Pe.style.backgroundColor=Y.color),Pe.style.transitionDuration=`${pe}ms`,this._containerElement.appendChild(Pe);const X=window.getComputedStyle(Pe),T=X.transitionDuration,re="none"===X.transitionProperty||"0s"===T||"0s, 0s"===T,De=new fe(this,Pe,Y,re);Pe.style.transform="scale3d(1, 1, 1)",De.state=0,Y.persistent||(this._mostRecentTransientRipple=De);let Fe=null;return!re&&(pe||m.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ke=()=>this._finishRippleTransition(De),Je=()=>this._destroyRipple(De);Pe.addEventListener("transitionend",Ke),Pe.addEventListener("transitioncancel",Je),Fe={onTransitionEnd:Ke,onTransitionCancel:Je}}),this._activeRipples.set(De,Fe),(re||!pe)&&this._finishRippleTransition(De),De}fadeOutRipple(O){if(2===O.state||3===O.state)return;const C=O.element,Y={...Be,...O.config.animation};C.style.transitionDuration=`${Y.exitDuration}ms`,C.style.opacity="0",O.state=2,(O._animationForciblyDisabledThroughCss||!Y.exitDuration)&&this._finishRippleTransition(O)}fadeOutAll(){this._getActiveRipples().forEach(O=>O.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(O=>{O.config.persistent||O.fadeOut()})}setupTriggerEvents(O){const C=(0,_e.fI)(O);!C||C===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=C,this._registerEvents(Ze))}handleEvent(O){"mousedown"===O.type?this._onMousedown(O):"touchstart"===O.type?this._onTouchStart(O):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents($e),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(O){0===O.state?this._startFadeOutTransition(O):2===O.state&&this._destroyRipple(O)}_startFadeOutTransition(O){const C=O===this._mostRecentTransientRipple,{persistent:Y}=O.config;O.state=1,!Y&&(!C||!this._isPointerDown)&&O.fadeOut()}_destroyRipple(O){const C=this._activeRipples.get(O)??null;this._activeRipples.delete(O),this._activeRipples.size||(this._containerRect=null),O===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),O.state=3,null!==C&&(O.element.removeEventListener("transitionend",C.onTransitionEnd),O.element.removeEventListener("transitioncancel",C.onTransitionCancel)),O.element.remove()}_onMousedown(O){const C=(0,l.X6)(O),Y=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!C&&!Y&&(this._isPointerDown=!0,this.fadeInRipple(O.clientX,O.clientY,this._target.rippleConfig))}_onTouchStart(O){if(!this._target.rippleDisabled&&!(0,l.yG)(O)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const C=O.changedTouches;for(let Y=0;Y<C.length;Y++)this.fadeInRipple(C[Y].clientX,C[Y].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(O=>{!O.config.persistent&&(1===O.state||O.config.terminateOnPointerUp&&0===O.state)&&O.fadeOut()}))}_registerEvents(O){this._ngZone.runOutsideAngular(()=>{O.forEach(C=>{this._triggerElement.addEventListener(C,this,We)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Ze.forEach(O=>{this._triggerElement.removeEventListener(O,this,We)}),this._pointerUpEventsRegistered&&$e.forEach(O=>{this._triggerElement.removeEventListener(O,this,We)}))}}const Re=new r.OlP("mat-ripple-global-options");let E=(()=>{class U{constructor(C,Y,S,m,y){this._elementRef=C,this._animationMode=y,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=m||{},this._rippleRenderer=new Xe(this,Y,C,S)}get disabled(){return this._disabled}set disabled(C){C&&this.fadeOutAllNonPersistent(),this._disabled=C,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(C){this._trigger=C,this._setupTriggerEventsIfEnabled()}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:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{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(C,Y=0,S){return"number"==typeof C?this._rippleRenderer.fadeInRipple(C,Y,{...this.rippleConfig,...S}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...C})}}return U.\u0275fac=function(C){return new(C||U)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(D.t4),r.Y36(Re,8),r.Y36(r.QbO,8))},U.\u0275dir=r.lG2({type:U,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(C,Y){2&C&&r.ekj("mat-ripple-unbounded",Y.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),U})(),f=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[de,de]}),U})(),i=(()=>{class U{constructor(C){this._animationMode=C,this.state="unchecked",this.disabled=!1}}return U.\u0275fac=function(C){return new(C||U)(r.Y36(r.QbO,8))},U.\u0275cmp=r.Xpm({type:U,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(C,Y){2&C&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Y.state)("mat-pseudo-checkbox-checked","checked"===Y.state)("mat-pseudo-checkbox-disabled",Y.disabled)("_mat-animation-noopable","NoopAnimations"===Y._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(C,Y){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;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-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.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{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),U})(),e=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[de]}),U})();const s=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),q=new r.OlP("MatOptgroup");let Se=0;class Le{constructor(O,C=!1){this.source=O,this.isUserInput=C}}let Ae=(()=>{class U{constructor(C,Y,S,m){this._element=C,this._changeDetectorRef=Y,this._parent=S,this.group=m,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Se++,this.onSelectionChange=new r.vpe,this._stateChanges=new G.x}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(C){this._disabled=(0,_e.Ig)(C)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(C,Y){const S=this._getHostElement();"function"==typeof S.focus&&S.focus(Y)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(C){(C.keyCode===L.K5||C.keyCode===L.L_)&&!(0,L.Vb)(C)&&(this._selectViaInteraction(),C.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const C=this.viewValue;C!==this._mostRecentViewValue&&(this._mostRecentViewValue=C,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(C=!1){this.onSelectionChange.emit(new Le(this,C))}}return U.\u0275fac=function(C){r.$Z()},U.\u0275dir=r.lG2({type:U,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),U})(),Ne=(()=>{class U extends Ae{constructor(C,Y,S,m){super(C,Y,S,m)}}return U.\u0275fac=function(C){return new(C||U)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(s,8),r.Y36(q,8))},U.\u0275cmp=r.Xpm({type:U,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(C,Y){1&C&&r.NdJ("click",function(){return Y._selectViaInteraction()})("keydown",function(m){return Y._handleKeydown(m)}),2&C&&(r.Ikx("id",Y.id),r.uIk("tabindex",Y._getTabIndex())("aria-selected",Y._getAriaSelected())("aria-disabled",Y.disabled.toString()),r.ekj("mat-selected",Y.selected)("mat-option-multiple",Y.multiple)("mat-active",Y.active)("mat-option-disabled",Y.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:j,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(C,Y){1&C&&(r.F$t(),r.YNc(0,R,1,2,"mat-pseudo-checkbox",0),r.TgZ(1,"span",1),r.Hsn(2),r.qZA(),r.YNc(3,B,2,1,"span",2),r._UZ(4,"div",3)),2&C&&(r.Q6J("ngIf",Y.multiple),r.xp6(3),r.Q6J("ngIf",Y.group&&Y.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",Y._getHostElement())("matRippleDisabled",Y.disabled||Y.disableRipple))},dependencies:[E,ne.O5,i],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],encapsulation:2,changeDetection:0}),U})();function je(U,O,C){if(C.length){let Y=O.toArray(),S=C.toArray(),m=0;for(let y=0;y<U+1;y++)Y[y].group&&Y[y].group===S[m]&&m++;return m}return 0}function Ve(U,O,C,Y){return U<C?U:U+O>C+Y?Math.max(0,U-Y+O):C}let Ge=(()=>{class U{}return U.\u0275fac=function(C){return new(C||U)},U.\u0275mod=r.oAB({type:U}),U.\u0275inj=r.cJS({imports:[f,ne.ez,de,e]}),U})()},5412:(ze,Me,a)=>{a.d(Me,{WI:()=>Oe,uw:()=>Be,H8:()=>Xe,xY:()=>$e,Is:()=>Re,so:()=>$,uh:()=>Ze});var r=a(2687),l=a(2561),t=a(3353),M=a(4080),ne=a(6895),D=a(4650),_e=a(9521),se=a(7579),G=a(9770),L=a(9646),ee=a(445),_=a(8675);function R(E,f){}class B{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}}let z=(()=>{class E extends M.en{constructor(i,e,s,u,w,I,q,be){super(),this._elementRef=i,this._focusTrapFactory=e,this._config=u,this._interactivityChecker=w,this._ngZone=I,this._overlayRef=q,this._focusMonitor=be,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Se=>{this._portalOutlet.hasAttached();const Le=this._portalOutlet.attachDomPortal(Se);return this._contentAttached(),Le},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=s}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();const e=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),e}attachTemplatePortal(i){this._portalOutlet.hasAttached();const e=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),e}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,e){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const s=()=>{i.removeEventListener("blur",s),i.removeEventListener("mousedown",s),i.removeAttribute("tabindex")};i.addEventListener("blur",s),i.addEventListener("mousedown",s)})),i.focus(e)}_focusByCssSelector(i,e){let s=this._elementRef.nativeElement.querySelector(i);s&&this._forceFocus(s,e)}_trapFocus(){const i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(e=>{e||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const i=this._config.restoreFocus;let e=null;if("string"==typeof i?e=this._document.querySelector(i):"boolean"==typeof i?e=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(e=i),this._config.restoreFocus&&e&&"function"==typeof e.focus){const s=(0,t.ht)(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const i=this._elementRef.nativeElement,e=(0,t.ht)();return i===e||i.contains(e)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,t.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return E.\u0275fac=function(i){return new(i||E)(D.Y36(D.SBq),D.Y36(r.qV),D.Y36(ne.K0,8),D.Y36(B),D.Y36(r.ic),D.Y36(D.R0b),D.Y36(l.Iu),D.Y36(r.tE))},E.\u0275cmp=D.Xpm({type:E,selectors:[["cdk-dialog-container"]],viewQuery:function(i,e){if(1&i&&D.Gf(M.Pl,7),2&i){let s;D.iGM(s=D.CRH())&&(e._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,e){2&i&&D.uIk("id",e._config.id||null)("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null)},features:[D.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&D.YNc(0,R,0,0,"ng-template",0)},dependencies:[M.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),E})();class Z{constructor(f,i){this.overlayRef=f,this.config=i,this.closed=new se.x,this.disableClose=i.disableClose,this.backdropClick=f.backdropClick(),this.keydownEvents=f.keydownEvents(),this.outsidePointerEvents=f.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(e=>{e.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(f,i){if(this.containerInstance){const e=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this.overlayRef.dispose(),e.next(f),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(f="",i=""){return this.overlayRef.updateSize({width:f,height:i}),this}addPanelClass(f){return this.overlayRef.addPanelClass(f),this}removePanelClass(f){return this.overlayRef.removePanelClass(f),this}}const ge=new D.OlP("DialogScrollStrategy"),ke=new D.OlP("DialogData"),xe=new D.OlP("DefaultDialogConfig"),te={provide:ge,deps:[l.aV],useFactory:function de(E){return()=>E.scrollStrategies.block()}};let b=0,x=(()=>{class E{constructor(i,e,s,u,w,I){this._overlay=i,this._injector=e,this._defaultOptions=s,this._parentDialog=u,this._overlayContainer=w,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new se.x,this._afterOpenedAtThisLevel=new se.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,G.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,_.O)(void 0))),this._scrollStrategy=I}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(i,e){(e={...this._defaultOptions||new B,...e}).id=e.id||"cdk-dialog-"+b++,e.id&&this.getDialogById(e.id);const u=this._getOverlayConfig(e),w=this._overlay.create(u),I=new Z(w,e),q=this._attachContainer(w,I,e);return I.containerInstance=q,this._attachDialogContent(i,I,q,e),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(I),I.closed.subscribe(()=>this._removeOpenDialog(I,!0)),this.afterOpened.next(I),I}closeAll(){v(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(e=>e.id===i)}ngOnDestroy(){v(this._openDialogsAtThisLevel,i=>{!1===i.config.closeOnDestroy&&this._removeOpenDialog(i,!1)}),v(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){const e=new l.X_({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(e.backdropClass=i.backdropClass),e}_attachContainer(i,e,s){const u=s.injector??s.viewContainerRef?.injector,w=[{provide:B,useValue:s},{provide:Z,useValue:e},{provide:l.Iu,useValue:i}];let I;s.container?"function"==typeof s.container?I=s.container:(I=s.container.type,w.push(...s.container.providers(s))):I=z;const q=new M.C5(I,s.viewContainerRef,D.zs3.create({parent:u||this._injector,providers:w}),s.componentFactoryResolver);return i.attach(q).instance}_attachDialogContent(i,e,s,u){const w=this._createInjector(u,e,s);if(i instanceof D.Rgc){let I={$implicit:u.data,dialogRef:e};u.templateContext&&(I={...I,..."function"==typeof u.templateContext?u.templateContext():u.templateContext}),s.attachTemplatePortal(new M.UE(i,null,I,w))}else{const I=s.attachComponentPortal(new M.C5(i,u.viewContainerRef,w,u.componentFactoryResolver));e.componentInstance=I.instance}}_createInjector(i,e,s){const u=i&&i.viewContainerRef&&i.viewContainerRef.injector,w=[{provide:ke,useValue:i.data},{provide:Z,useValue:e}];return i.providers&&("function"==typeof i.providers?w.push(...i.providers(e,i,s)):w.push(...i.providers)),i.direction&&(!u||!u.get(ee.Is,null,D.XFs.Optional))&&w.push({provide:ee.Is,useValue:{value:i.direction,change:(0,L.of)()}}),D.zs3.create({parent:u||this._injector,providers:w})}_removeOpenDialog(i,e){const s=this.openDialogs.indexOf(i);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((u,w)=>{u?w.setAttribute("aria-hidden",u):w.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const i=this._overlayContainer.getContainerElement();if(i.parentElement){const e=i.parentElement.children;for(let s=e.length-1;s>-1;s--){const u=e[s];u!==i&&"SCRIPT"!==u.nodeName&&"STYLE"!==u.nodeName&&!u.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(u,u.getAttribute("aria-hidden")),u.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return E.\u0275fac=function(i){return new(i||E)(D.LFG(l.aV),D.LFG(D.zs3),D.LFG(xe,8),D.LFG(E,12),D.LFG(l.Xj),D.LFG(ge))},E.\u0275prov=D.Yz7({token:E,factory:E.\u0275fac}),E})();function v(E,f){let i=E.length;for(;i--;)f(E[i])}let k=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275mod=D.oAB({type:E}),E.\u0275inj=D.cJS({providers:[x,te],imports:[l.U8,M.eL,r.rt,M.eL]}),E})();var ae=a(3238),we=a(6451),Ce=a(9300),Ie=a(5698),Te=a(7340);function ye(E,f){}const Ee={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},H={dialogContainer:(0,Te.X$)("dialogContainer",[(0,Te.SB)("void, exit",(0,Te.oB)({opacity:0,transform:"scale(0.7)"})),(0,Te.SB)("enter",(0,Te.oB)({transform:"none"})),(0,Te.eR)("* => enter",(0,Te.ru)([(0,Te.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Te.oB)({transform:"none",opacity:1})),(0,Te.IO)("@*",(0,Te.pV)(),{optional:!0})]),Ee),(0,Te.eR)("* => void, * => exit",(0,Te.ru)([(0,Te.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Te.oB)({opacity:0})),(0,Te.IO)("@*",(0,Te.pV)(),{optional:!0})]),Ee)])};class Q{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=Ee.params.enterAnimationDuration,this.exitAnimationDuration=Ee.params.exitAnimationDuration}}let oe=(()=>{class E extends z{constructor(i,e,s,u,w,I,q,be){super(i,e,s,u,w,I,q,be),this._animationStateChanged=new D.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})}}return E.\u0275fac=function(i){return new(i||E)(D.Y36(D.SBq),D.Y36(r.qV),D.Y36(ne.K0,8),D.Y36(Q),D.Y36(r.ic),D.Y36(D.R0b),D.Y36(l.Iu),D.Y36(r.tE))},E.\u0275cmp=D.Xpm({type:E,selectors:[["ng-component"]],features:[D.qOj],decls:0,vars:0,template:function(i,e){},encapsulation:2}),E})(),F=(()=>{class E extends oe{constructor(i,e,s,u,w,I,q,be,Se){super(i,e,s,u,w,I,q,Se),this._changeDetectorRef=be,this._state="enter"}_onAnimationDone({toState:i,totalTime:e}){"enter"===i?this._openAnimationDone(e):"exit"===i&&this._animationStateChanged.next({state:"closed",totalTime:e})}_onAnimationStart({toState:i,totalTime:e}){"enter"===i?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===i||"void"===i)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Ee.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Ee.params.exitAnimationDuration}}}}return E.\u0275fac=function(i){return new(i||E)(D.Y36(D.SBq),D.Y36(r.qV),D.Y36(ne.K0,8),D.Y36(Q),D.Y36(r.ic),D.Y36(D.R0b),D.Y36(l.Iu),D.Y36(D.sBO),D.Y36(r.tE))},E.\u0275cmp=D.Xpm({type:E,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(i,e){1&i&&D.WFA("@dialogContainer.start",function(u){return e._onAnimationStart(u)})("@dialogContainer.done",function(u){return e._onAnimationDone(u)}),2&i&&(D.Ikx("id",e._config.id),D.uIk("aria-modal",e._config.ariaModal)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),D.d8E("@dialogContainer",e._getAnimationState()))},features:[D.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&D.YNc(0,ye,0,0,"ng-template",0)},dependencies:[M.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[H.dialogContainer]}}),E})();class ${constructor(f,i,e){this._ref=f,this._containerInstance=e,this._afterOpened=new se.x,this._beforeClosed=new se.x,this._state=0,this.disableClose=i.disableClose,this.id=f.id,e._animationStateChanged.pipe((0,Ce.h)(s=>"opened"===s.state),(0,Ie.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,Ce.h)(s=>"closed"===s.state),(0,Ie.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),f.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,we.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ce.h)(s=>s.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(s)))).subscribe(s=>{this.disableClose||(s.preventDefault(),function ie(E,f,i){E._closeInteractionType=f,E.close(i)}(this,"keydown"===s.type?"keyboard":"mouse"))})}close(f){this._result=f,this._containerInstance._animationStateChanged.pipe((0,Ce.h)(i=>"closing"===i.state),(0,Ie.q)(1)).subscribe(i=>{this._beforeClosed.next(f),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=1,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(f){let i=this._ref.config.positionStrategy;return f&&(f.left||f.right)?f.left?i.left(f.left):i.right(f.right):i.centerHorizontally(),f&&(f.top||f.bottom)?f.top?i.top(f.top):i.bottom(f.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(f="",i=""){return this._ref.updateSize(f,i),this}addPanelClass(f){return this._ref.addPanelClass(f),this}removePanelClass(f){return this._ref.removePanelClass(f),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Oe=new D.OlP("MatDialogData"),he=new D.OlP("mat-dialog-default-options"),ve=new D.OlP("mat-dialog-scroll-strategy"),le={provide:ve,deps:[l.aV],useFactory:function W(E){return()=>E.scrollStrategies.block()}};let ce=0,fe=(()=>{class E{constructor(i,e,s,u,w,I,q,be,Se,Le){this._overlay=i,this._defaultOptions=s,this._parentDialog=u,this._dialogRefConstructor=q,this._dialogContainerType=be,this._dialogDataToken=Se,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new se.x,this._afterOpenedAtThisLevel=new se.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,G.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,_.O)(void 0))),this._scrollStrategy=I,this._dialog=e.get(x)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(i,e){let s;(e={...this._defaultOptions||new Q,...e}).id=e.id||`${this._idPrefix}${ce++}`,e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();const u=this._dialog.open(i,{...e,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Q,useValue:e},{provide:B,useValue:e}]},templateContext:()=>({dialogRef:s}),providers:(w,I,q)=>(s=new this._dialogRefConstructor(w,e,q),s.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:q},{provide:this._dialogDataToken,useValue:I.data},{provide:this._dialogRefConstructor,useValue:s}])});return s.componentInstance=u.componentInstance,this.openDialogs.push(s),this.afterOpened.next(s),s.afterClosed().subscribe(()=>{const w=this.openDialogs.indexOf(s);w>-1&&(this.openDialogs.splice(w,1),this.openDialogs.length||this._getAfterAllClosed().next())}),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(e=>e.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let e=i.length;for(;e--;)i[e].close()}}return E.\u0275fac=function(i){D.$Z()},E.\u0275prov=D.Yz7({token:E,factory:E.\u0275fac}),E})(),Be=(()=>{class E extends fe{constructor(i,e,s,u,w,I,q,be){super(i,e,u,I,q,w,$,F,Oe,be)}}return E.\u0275fac=function(i){return new(i||E)(D.LFG(l.aV),D.LFG(D.zs3),D.LFG(ne.Ye,8),D.LFG(he,8),D.LFG(ve),D.LFG(E,12),D.LFG(l.Xj),D.LFG(D.QbO,8))},E.\u0275prov=D.Yz7({token:E,factory:E.\u0275fac}),E})(),Ue=0,Ze=(()=>{class E{constructor(i,e,s){this._dialogRef=i,this._elementRef=e,this._dialog=s,this.id="mat-dialog-title-"+Ue++}ngOnInit(){this._dialogRef||(this._dialogRef=function qe(E,f){let i=E.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?f.find(e=>e.id===i.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const i=this._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=this.id)})}}return E.\u0275fac=function(i){return new(i||E)(D.Y36($,8),D.Y36(D.SBq),D.Y36(Be))},E.\u0275dir=D.lG2({type:E,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(i,e){2&i&&D.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),E})(),$e=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=D.lG2({type:E,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),E})(),Xe=(()=>{class E{constructor(){this.align="start"}}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=D.lG2({type:E,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(i,e){2&i&&D.ekj("mat-dialog-actions-align-center","center"===e.align)("mat-dialog-actions-align-end","end"===e.align)},inputs:{align:"align"}}),E})(),Re=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275mod=D.oAB({type:E}),E.\u0275inj=D.cJS({providers:[Be,le],imports:[k,l.U8,M.eL,ae.BQ,ae.BQ]}),E})()},9549:(ze,Me,a)=>{a.d(Me,{Eo:()=>Q,G_:()=>Xe,KE:()=>qe,R9:()=>fe,hX:()=>ve,lN:()=>Re,qo:()=>le});var r=a(9643),l=a(6895),t=a(4650),M=a(3238),ne=a(445),D=a(1281),_e=a(7579),se=a(6451),G=a(4968),L=a(8675),ee=a(2722),_=a(5698),R=a(7340),B=a(3353);const j=["connectionContainer"],z=["inputContainer"],Z=["label"];function ge(E,f){1&E&&(t.ynx(0),t.TgZ(1,"div",14),t._UZ(2,"div",15)(3,"div",16)(4,"div",17),t.qZA(),t.TgZ(5,"div",18),t._UZ(6,"div",15)(7,"div",16)(8,"div",17),t.qZA(),t.BQk())}function ke(E,f){if(1&E){const i=t.EpF();t.TgZ(0,"div",19),t.NdJ("cdkObserveContent",function(){t.CHM(i);const s=t.oxw();return t.KtG(s.updateOutlineGap())}),t.Hsn(1,1),t.qZA()}if(2&E){const i=t.oxw();t.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)}}function xe(E,f){if(1&E&&(t.ynx(0),t.Hsn(1,2),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.BQk()),2&E){const i=t.oxw(2);t.xp6(3),t.Oqu(i._control.placeholder)}}function de(E,f){1&E&&t.Hsn(0,3,["*ngSwitchCase","true"])}function te(E,f){1&E&&(t.TgZ(0,"span",23),t._uU(1," *"),t.qZA())}function b(E,f){if(1&E){const i=t.EpF();t.TgZ(0,"label",20,21),t.NdJ("cdkObserveContent",function(){t.CHM(i);const s=t.oxw();return t.KtG(s.updateOutlineGap())}),t.YNc(2,xe,4,1,"ng-container",12),t.YNc(3,de,1,0,"ng-content",12),t.YNc(4,te,2,0,"span",22),t.qZA()}if(2&E){const i=t.oxw();t.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),t.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),t.uIk("for",i._control.id)("aria-owns",i._control.id),t.xp6(2),t.Q6J("ngSwitchCase",!1),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function x(E,f){1&E&&(t.TgZ(0,"div",24),t.Hsn(1,4),t.qZA())}function v(E,f){if(1&E&&(t.TgZ(0,"div",25),t._UZ(1,"span",26),t.qZA()),2&E){const i=t.oxw();t.xp6(1),t.ekj("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function k(E,f){if(1&E&&(t.TgZ(0,"div"),t.Hsn(1,5),t.qZA()),2&E){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState)}}function ae(E,f){if(1&E&&(t.TgZ(0,"div",30),t._uU(1),t.qZA()),2&E){const i=t.oxw(2);t.Q6J("id",i._hintLabelId),t.xp6(1),t.Oqu(i.hintLabel)}}function we(E,f){if(1&E&&(t.TgZ(0,"div",27),t.YNc(1,ae,2,2,"div",28),t.Hsn(2,6),t._UZ(3,"div",29),t.Hsn(4,7),t.qZA()),2&E){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",i.hintLabel)}}const Ce=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ie=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],ye=new t.OlP("MatError"),H={transitionMessages:(0,R.X$)("transitionMessages",[(0,R.SB)("enter",(0,R.oB)({opacity:1,transform:"translateY(0%)"})),(0,R.eR)("void => enter",[(0,R.oB)({opacity:0,transform:"translateY(-5px)"}),(0,R.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Q=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E}),E})();const Oe=new t.OlP("MatHint");let ve=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["mat-label"]]}),E})(),P=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["mat-placeholder"]]}),E})();const W=new t.OlP("MatPrefix");let le=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["","matPrefix",""]],features:[t._Bn([{provide:W,useExisting:E}])]}),E})();const ce=new t.OlP("MatSuffix");let fe=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275dir=t.lG2({type:E,selectors:[["","matSuffix",""]],features:[t._Bn([{provide:ce,useExisting:E}])]}),E})(),Be=0;const Ze=(0,M.pj)(class{constructor(E){this._elementRef=E}},"primary"),$e=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Xe=new t.OlP("MatFormField");let qe=(()=>{class E extends Ze{constructor(i,e,s,u,w,I,q){super(i),this._changeDetectorRef=e,this._dir=s,this._defaults=u,this._platform=w,this._ngZone=I,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new _e.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Be++,this._labelId="mat-form-field-label-"+Be++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==q,this.appearance=u?.appearance||"legacy",u&&(this._hideRequiredMarker=Boolean(u.hideRequiredMarker),u.color&&(this.color=this.defaultColor=u.color))}get appearance(){return this._appearance}set appearance(i){const e=this._appearance;this._appearance=i||this._defaults?.appearance||"legacy","outline"===this._appearance&&e!==i&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(i){this._hideRequiredMarker=(0,D.Ig)(i)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(i){this._hintLabel=i,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(i){i!==this._floatLabel&&(this._floatLabel=i||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(i){this._explicitFormFieldControl=i}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const i=this._control;i.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${i.controlType}`),i.stateChanges.pipe((0,L.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe((0,ee.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ee.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,se.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,ee.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(i){const e=this._control?this._control.ngControl:null;return e&&e[i]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,G.R)(this._label.nativeElement,"transitionend").pipe((0,_.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let i=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&i.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(u=>"start"===u.align):null,s=this._hintChildren?this._hintChildren.find(u=>"end"===u.align):null;e?i.push(e.id):this._hintLabel&&i.push(this._hintLabelId),s&&i.push(s.id)}else this._errorChildren&&i.push(...this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(i)}}_validateControlChild(){}updateOutlineGap(){const i=this._label?this._label.nativeElement:null,e=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",u=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!i||!i.children.length||!i.textContent.trim()){const Se=e.querySelectorAll(`${s}, ${u}`);for(let Le=0;Le<Se.length;Le++)Se[Le].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let w=0,I=0;const q=e.querySelectorAll(s),be=e.querySelectorAll(u);if(this._label&&this._label.nativeElement.children.length){const Se=e.getBoundingClientRect();if(0===Se.width&&0===Se.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Le=this._getStartEnd(Se),Ae=i.children,Ne=this._getStartEnd(Ae[0].getBoundingClientRect());let je=0;for(let Ve=0;Ve<Ae.length;Ve++)je+=Ae[Ve].offsetWidth;w=Math.abs(Ne-Le)-5,I=je>0?.75*je+10:0}for(let Se=0;Se<q.length;Se++)q[Se].style.width=`${w}px`;for(let Se=0;Se<be.length;Se++)be[Se].style.width=`${I}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(i){return this._dir&&"rtl"===this._dir.value?i.right:i.left}_isAttachedToDOM(){const i=this._elementRef.nativeElement;if(i.getRootNode){const e=i.getRootNode();return e&&e!==i}return document.documentElement.contains(i)}}return E.\u0275fac=function(i){return new(i||E)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ne.Is,8),t.Y36($e,8),t.Y36(B.t4),t.Y36(t.R0b),t.Y36(t.QbO,8))},E.\u0275cmp=t.Xpm({type:E,selectors:[["mat-form-field"]],contentQueries:function(i,e,s){if(1&i&&(t.Suo(s,Q,5),t.Suo(s,Q,7),t.Suo(s,ve,5),t.Suo(s,ve,7),t.Suo(s,P,5),t.Suo(s,ye,5),t.Suo(s,Oe,5),t.Suo(s,W,5),t.Suo(s,ce,5)),2&i){let u;t.iGM(u=t.CRH())&&(e._controlNonStatic=u.first),t.iGM(u=t.CRH())&&(e._controlStatic=u.first),t.iGM(u=t.CRH())&&(e._labelChildNonStatic=u.first),t.iGM(u=t.CRH())&&(e._labelChildStatic=u.first),t.iGM(u=t.CRH())&&(e._placeholderChild=u.first),t.iGM(u=t.CRH())&&(e._errorChildren=u),t.iGM(u=t.CRH())&&(e._hintChildren=u),t.iGM(u=t.CRH())&&(e._prefixChildren=u),t.iGM(u=t.CRH())&&(e._suffixChildren=u)}},viewQuery:function(i,e){if(1&i&&(t.Gf(j,7),t.Gf(z,5),t.Gf(Z,5)),2&i){let s;t.iGM(s=t.CRH())&&(e._connectionContainerRef=s.first),t.iGM(s=t.CRH())&&(e._inputContainerRef=s.first),t.iGM(s=t.CRH())&&(e._label=s.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(i,e){2&i&&t.ekj("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[t._Bn([{provide:Xe,useExisting:E}]),t.qOj],ngContentSelectors:Ie,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(i,e){1&i&&(t.F$t(Ce),t.TgZ(0,"div",0)(1,"div",1,2),t.NdJ("click",function(u){return e._control.onContainerClick&&e._control.onContainerClick(u)}),t.YNc(3,ge,9,0,"ng-container",3),t.YNc(4,ke,2,1,"div",4),t.TgZ(5,"div",5,6),t.Hsn(7),t.TgZ(8,"span",7),t.YNc(9,b,5,16,"label",8),t.qZA()(),t.YNc(10,x,2,0,"div",9),t.qZA(),t.YNc(11,v,2,4,"div",10),t.TgZ(12,"div",11),t.YNc(13,k,2,1,"div",12),t.YNc(14,we,5,2,"div",13),t.qZA()()),2&i&&(t.xp6(3),t.Q6J("ngIf","outline"==e.appearance),t.xp6(1),t.Q6J("ngIf",e._prefixChildren.length),t.xp6(5),t.Q6J("ngIf",e._hasFloatingLabel()),t.xp6(1),t.Q6J("ngIf",e._suffixChildren.length),t.xp6(1),t.Q6J("ngIf","outline"!=e.appearance),t.xp6(1),t.Q6J("ngSwitch",e._getDisplayedMessages()),t.xp6(1),t.Q6J("ngSwitchCase","error"),t.xp6(1),t.Q6J("ngSwitchCase","hint"))},dependencies:[l.O5,l.RF,l.n9,r.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-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;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[H.transitionMessages]},changeDetection:0}),E})(),Re=(()=>{class E{}return E.\u0275fac=function(i){return new(i||E)},E.\u0275mod=t.oAB({type:E}),E.\u0275inj=t.cJS({imports:[l.ez,M.BQ,r.Q8,M.BQ]}),E})()},7392:(ze,Me,a)=>{a.d(Me,{Hw:()=>ie,Ps:()=>Oe});var r=a(4650),l=a(3238),t=a(1281),M=a(6895),ne=a(9646),D=a(2843),_e=a(4128),se=a(727),G=a(8505),L=a(4004),ee=a(262),_=a(8746),R=a(3099),B=a(5698),j=a(529),z=a(1481);const Z=["*"];let ge;function xe(he){return function ke(){if(void 0===ge&&(ge=null,typeof window<"u")){const he=window;void 0!==he.trustedTypes&&(ge=he.trustedTypes.createPolicy("angular#components",{createHTML:ve=>ve}))}return ge}()?.createHTML(he)||he}function de(he){return Error(`Unable to find icon with the name "${he}"`)}function b(he){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${he}".`)}function x(he){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${he}".`)}class v{constructor(ve,P,W){this.url=ve,this.svgText=P,this.options=W}}let k=(()=>{class he{constructor(P,W,le,ce){this._httpClient=P,this._sanitizer=W,this._errorHandler=ce,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"],this._document=le}addSvgIcon(P,W,le){return this.addSvgIconInNamespace("",P,W,le)}addSvgIconLiteral(P,W,le){return this.addSvgIconLiteralInNamespace("",P,W,le)}addSvgIconInNamespace(P,W,le,ce){return this._addSvgIconConfig(P,W,new v(le,null,ce))}addSvgIconResolver(P){return this._resolvers.push(P),this}addSvgIconLiteralInNamespace(P,W,le,ce){const fe=this._sanitizer.sanitize(r.q3G.HTML,le);if(!fe)throw x(le);const Be=xe(fe);return this._addSvgIconConfig(P,W,new v("",Be,ce))}addSvgIconSet(P,W){return this.addSvgIconSetInNamespace("",P,W)}addSvgIconSetLiteral(P,W){return this.addSvgIconSetLiteralInNamespace("",P,W)}addSvgIconSetInNamespace(P,W,le){return this._addSvgIconSetConfig(P,new v(W,null,le))}addSvgIconSetLiteralInNamespace(P,W,le){const ce=this._sanitizer.sanitize(r.q3G.HTML,W);if(!ce)throw x(W);const fe=xe(ce);return this._addSvgIconSetConfig(P,new v("",fe,le))}registerFontClassAlias(P,W=P){return this._fontCssClassesByAlias.set(P,W),this}classNameForFontAlias(P){return this._fontCssClassesByAlias.get(P)||P}setDefaultFontSetClass(...P){return this._defaultFontSetClass=P,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(P){const W=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,P);if(!W)throw b(P);const le=this._cachedIconsByUrl.get(W);return le?(0,ne.of)(Ce(le)):this._loadSvgIconFromConfig(new v(P,null)).pipe((0,G.b)(ce=>this._cachedIconsByUrl.set(W,ce)),(0,L.U)(ce=>Ce(ce)))}getNamedSvgIcon(P,W=""){const le=Ie(W,P);let ce=this._svgIconConfigs.get(le);if(ce)return this._getSvgFromConfig(ce);if(ce=this._getIconConfigFromResolvers(W,P),ce)return this._svgIconConfigs.set(le,ce),this._getSvgFromConfig(ce);const fe=this._iconSetConfigs.get(W);return fe?this._getSvgFromIconSetConfigs(P,fe):(0,D._)(de(le))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(P){return P.svgText?(0,ne.of)(Ce(this._svgElementFromConfig(P))):this._loadSvgIconFromConfig(P).pipe((0,L.U)(W=>Ce(W)))}_getSvgFromIconSetConfigs(P,W){const le=this._extractIconWithNameFromAnySet(P,W);if(le)return(0,ne.of)(le);const ce=W.filter(fe=>!fe.svgText).map(fe=>this._loadSvgIconSetFromConfig(fe).pipe((0,ee.K)(Be=>{const We=`Loading icon set URL: ${this._sanitizer.sanitize(r.q3G.RESOURCE_URL,fe.url)} failed: ${Be.message}`;return this._errorHandler.handleError(new Error(We)),(0,ne.of)(null)})));return(0,_e.D)(ce).pipe((0,L.U)(()=>{const fe=this._extractIconWithNameFromAnySet(P,W);if(!fe)throw de(P);return fe}))}_extractIconWithNameFromAnySet(P,W){for(let le=W.length-1;le>=0;le--){const ce=W[le];if(ce.svgText&&ce.svgText.toString().indexOf(P)>-1){const fe=this._svgElementFromConfig(ce),Be=this._extractSvgIconFromSet(fe,P,ce.options);if(Be)return Be}}return null}_loadSvgIconFromConfig(P){return this._fetchIcon(P).pipe((0,G.b)(W=>P.svgText=W),(0,L.U)(()=>this._svgElementFromConfig(P)))}_loadSvgIconSetFromConfig(P){return P.svgText?(0,ne.of)(null):this._fetchIcon(P).pipe((0,G.b)(W=>P.svgText=W))}_extractSvgIconFromSet(P,W,le){const ce=P.querySelector(`[id="${W}"]`);if(!ce)return null;const fe=ce.cloneNode(!0);if(fe.removeAttribute("id"),"svg"===fe.nodeName.toLowerCase())return this._setSvgAttributes(fe,le);if("symbol"===fe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(fe),le);const Be=this._svgElementFromString(xe("<svg></svg>"));return Be.appendChild(fe),this._setSvgAttributes(Be,le)}_svgElementFromString(P){const W=this._document.createElement("DIV");W.innerHTML=P;const le=W.querySelector("svg");if(!le)throw Error("<svg> tag not found");return le}_toSvgElement(P){const W=this._svgElementFromString(xe("<svg></svg>")),le=P.attributes;for(let ce=0;ce<le.length;ce++){const{name:fe,value:Be}=le[ce];"id"!==fe&&W.setAttribute(fe,Be)}for(let ce=0;ce<P.childNodes.length;ce++)P.childNodes[ce].nodeType===this._document.ELEMENT_NODE&&W.appendChild(P.childNodes[ce].cloneNode(!0));return W}_setSvgAttributes(P,W){return P.setAttribute("fit",""),P.setAttribute("height","100%"),P.setAttribute("width","100%"),P.setAttribute("preserveAspectRatio","xMidYMid meet"),P.setAttribute("focusable","false"),W&&W.viewBox&&P.setAttribute("viewBox",W.viewBox),P}_fetchIcon(P){const{url:W,options:le}=P,ce=le?.withCredentials??!1;if(!this._httpClient)throw function te(){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.")}();if(null==W)throw Error(`Cannot fetch icon from URL "${W}".`);const fe=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,W);if(!fe)throw b(W);const Be=this._inProgressUrlFetches.get(fe);if(Be)return Be;const Ue=this._httpClient.get(fe,{responseType:"text",withCredentials:ce}).pipe((0,L.U)(We=>xe(We)),(0,_.x)(()=>this._inProgressUrlFetches.delete(fe)),(0,R.B)());return this._inProgressUrlFetches.set(fe,Ue),Ue}_addSvgIconConfig(P,W,le){return this._svgIconConfigs.set(Ie(P,W),le),this}_addSvgIconSetConfig(P,W){const le=this._iconSetConfigs.get(P);return le?le.push(W):this._iconSetConfigs.set(P,[W]),this}_svgElementFromConfig(P){if(!P.svgElement){const W=this._svgElementFromString(P.svgText);this._setSvgAttributes(W,P.options),P.svgElement=W}return P.svgElement}_getIconConfigFromResolvers(P,W){for(let le=0;le<this._resolvers.length;le++){const ce=this._resolvers[le](W,P);if(ce)return Te(ce)?new v(ce.url,null,ce.options):new v(ce,null)}}}return he.\u0275fac=function(P){return new(P||he)(r.LFG(j.eN,8),r.LFG(z.H7),r.LFG(M.K0,8),r.LFG(r.qLn))},he.\u0275prov=r.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();function Ce(he){return he.cloneNode(!0)}function Ie(he,ve){return he+":"+ve}function Te(he){return!(!he.url||!he.options)}const ye=(0,l.pj)(class{constructor(he){this._elementRef=he}}),Ee=new r.OlP("MAT_ICON_DEFAULT_OPTIONS"),H=new r.OlP("mat-icon-location",{providedIn:"root",factory:function Q(){const he=(0,r.f3M)(M.K0),ve=he?he.location:null;return{getPathname:()=>ve?ve.pathname+ve.search:""}}}),oe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],F=oe.map(he=>`[${he}]`).join(", "),$=/^url\(['"]?#(.*?)['"]?\)$/;let ie=(()=>{class he extends ye{constructor(P,W,le,ce,fe,Be){super(P),this._iconRegistry=W,this._location=ce,this._errorHandler=fe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=se.w0.EMPTY,Be&&(Be.color&&(this.color=this.defaultColor=Be.color),Be.fontSet&&(this.fontSet=Be.fontSet)),le||P.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(P){this._inline=(0,t.Ig)(P)}get svgIcon(){return this._svgIcon}set svgIcon(P){P!==this._svgIcon&&(P?this._updateSvgIcon(P):this._svgIcon&&this._clearSvgElement(),this._svgIcon=P)}get fontSet(){return this._fontSet}set fontSet(P){const W=this._cleanupFontValue(P);W!==this._fontSet&&(this._fontSet=W,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(P){const W=this._cleanupFontValue(P);W!==this._fontIcon&&(this._fontIcon=W,this._updateFontIconClasses())}_splitIconName(P){if(!P)return["",""];const W=P.split(":");switch(W.length){case 1:return["",W[0]];case 2:return W;default:throw Error(`Invalid icon name: "${P}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const P=this._elementsWithExternalReferences;if(P&&P.size){const W=this._location.getPathname();W!==this._previousPath&&(this._previousPath=W,this._prependPathToReferences(W))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(P){this._clearSvgElement();const W=this._location.getPathname();this._previousPath=W,this._cacheChildrenWithExternalReferences(P),this._prependPathToReferences(W),this._elementRef.nativeElement.appendChild(P)}_clearSvgElement(){const P=this._elementRef.nativeElement;let W=P.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();W--;){const le=P.childNodes[W];(1!==le.nodeType||"svg"===le.nodeName.toLowerCase())&&le.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const P=this._elementRef.nativeElement,W=(this.fontSet?[this._iconRegistry.classNameForFontAlias(this.fontSet)]:this._iconRegistry.getDefaultFontSetClass()).filter(le=>le.length>0);this._previousFontSetClass.forEach(le=>P.classList.remove(le)),W.forEach(le=>P.classList.add(le)),this._previousFontSetClass=W,this.fontIcon!==this._previousFontIconClass&&(this._previousFontIconClass&&P.classList.remove(this._previousFontIconClass),this.fontIcon&&P.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(P){return"string"==typeof P?P.trim().split(" ")[0]:P}_prependPathToReferences(P){const W=this._elementsWithExternalReferences;W&&W.forEach((le,ce)=>{le.forEach(fe=>{ce.setAttribute(fe.name,`url('${P}#${fe.value}')`)})})}_cacheChildrenWithExternalReferences(P){const W=P.querySelectorAll(F),le=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ce=0;ce<W.length;ce++)oe.forEach(fe=>{const Be=W[ce],Ue=Be.getAttribute(fe),We=Ue?Ue.match($):null;if(We){let Ze=le.get(Be);Ze||(Ze=[],le.set(Be,Ze)),Ze.push({name:fe,value:We[1]})}})}_updateSvgIcon(P){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),P){const[W,le]=this._splitIconName(P);W&&(this._svgNamespace=W),le&&(this._svgName=le),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(le,W).pipe((0,B.q)(1)).subscribe(ce=>this._setSvgElement(ce),ce=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${W}:${le}! ${ce.message}`))})}}}return he.\u0275fac=function(P){return new(P||he)(r.Y36(r.SBq),r.Y36(k),r.$8M("aria-hidden"),r.Y36(H),r.Y36(r.qLn),r.Y36(Ee,8))},he.\u0275cmp=r.Xpm({type:he,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(P,W){2&P&&(r.uIk("data-mat-icon-type",W._usingFontIcon()?"font":"svg")("data-mat-icon-name",W._svgName||W.fontIcon)("data-mat-icon-namespace",W._svgNamespace||W.fontSet),r.ekj("mat-icon-inline",W.inline)("mat-icon-no-color","primary"!==W.color&&"accent"!==W.color&&"warn"!==W.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[r.qOj],ngContentSelectors:Z,decls:1,vars:0,template:function(P,W){1&P&&(r.F$t(),r.Hsn(0))},styles:[".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}[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}),he})(),Oe=(()=>{class he{}return he.\u0275fac=function(P){return new(P||he)},he.\u0275mod=r.oAB({type:he}),he.\u0275inj=r.cJS({imports:[l.BQ,l.BQ]}),he})()},4144:(ze,Me,a)=>{a.d(Me,{Jk:()=>j,Nt:()=>ke,c:()=>xe});var r=a(1281),l=a(3353),t=a(4650),M=a(515),ne=a(7579);const D=(0,l.i$)({passive:!0});let _e=(()=>{class de{constructor(b,x){this._platform=b,this._ngZone=x,this._monitoredElements=new Map}monitor(b){if(!this._platform.isBrowser)return M.E;const x=(0,r.fI)(b),v=this._monitoredElements.get(x);if(v)return v.subject;const k=new ne.x,ae="cdk-text-field-autofilled",we=Ce=>{"cdk-text-field-autofill-start"!==Ce.animationName||x.classList.contains(ae)?"cdk-text-field-autofill-end"===Ce.animationName&&x.classList.contains(ae)&&(x.classList.remove(ae),this._ngZone.run(()=>k.next({target:Ce.target,isAutofilled:!1}))):(x.classList.add(ae),this._ngZone.run(()=>k.next({target:Ce.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{x.addEventListener("animationstart",we,D),x.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(x,{subject:k,unlisten:()=>{x.removeEventListener("animationstart",we,D)}}),k}stopMonitoring(b){const x=(0,r.fI)(b),v=this._monitoredElements.get(x);v&&(v.unlisten(),v.subject.complete(),x.classList.remove("cdk-text-field-autofill-monitored"),x.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(x))}ngOnDestroy(){this._monitoredElements.forEach((b,x)=>this.stopMonitoring(x))}}return de.\u0275fac=function(b){return new(b||de)(t.LFG(l.t4),t.LFG(t.R0b))},de.\u0275prov=t.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),L=(()=>{class de{}return de.\u0275fac=function(b){return new(b||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({}),de})();var ee=a(4006),_=a(3238),R=a(9549);const j=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),z=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Z=0;const ge=(0,_.FD)(class{constructor(de,te,b,x){this._defaultErrorStateMatcher=de,this._parentForm=te,this._parentFormGroup=b,this.ngControl=x,this.stateChanges=new ne.x}});let ke=(()=>{class de extends ge{constructor(b,x,v,k,ae,we,Ce,Ie,Te,ye){super(we,k,ae,v),this._elementRef=b,this._platform=x,this._autofillMonitor=Ie,this._formField=ye,this._uid="mat-input-"+Z++,this.focused=!1,this.stateChanges=new ne.x,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(Q=>(0,l.qK)().has(Q)),this._iOSKeyupListener=Q=>{const oe=Q.target;!oe.value&&0===oe.selectionStart&&0===oe.selectionEnd&&(oe.setSelectionRange(1,1),oe.setSelectionRange(0,0))};const Ee=this._elementRef.nativeElement,H=Ee.nodeName.toLowerCase();this._inputValueAccessor=Ce||Ee,this._previousNativeValue=this.value,this.id=this.id,x.IOS&&Te.runOutsideAngular(()=>{b.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===H,this._isTextarea="textarea"===H,this._isInFormField=!!ye,this._isNativeSelect&&(this.controlType=Ee.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(b){this._disabled=(0,r.Ig)(b),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(b){this._id=b||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ee.kI.required)??!1}set required(b){this._required=(0,r.Ig)(b)}get type(){return this._type}set type(b){this._type=b||"text",this._validateType(),!this._isTextarea&&(0,l.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(b){b!==this.value&&(this._inputValueAccessor.value=b,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(b){this._readonly=(0,r.Ig)(b)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(b=>{this.autofilled=b.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._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(b){this._elementRef.nativeElement.focus(b)}_focusChanged(b){b!==this.focused&&(this.focused=b,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const b=this._formField,x=b&&"legacy"===b.appearance&&!b._hasLabel?.()?null:this.placeholder;if(x!==this._previousPlaceholder){const v=this._elementRef.nativeElement;this._previousPlaceholder=x,x?v.setAttribute("placeholder",x):v.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const b=this._elementRef.nativeElement.value;this._previousNativeValue!==b&&(this._previousNativeValue=b,this.stateChanges.next())}_validateType(){z.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let b=this._elementRef.nativeElement.validity;return b&&b.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const b=this._elementRef.nativeElement,x=b.options[0];return this.focused||b.multiple||!this.empty||!!(b.selectedIndex>-1&&x&&x.label)}return this.focused||!this.empty}setDescribedByIds(b){b.length?this._elementRef.nativeElement.setAttribute("aria-describedby",b.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const b=this._elementRef.nativeElement;return this._isNativeSelect&&(b.multiple||b.size>1)}}return de.\u0275fac=function(b){return new(b||de)(t.Y36(t.SBq),t.Y36(l.t4),t.Y36(ee.a5,10),t.Y36(ee.F,8),t.Y36(ee.sg,8),t.Y36(_.rD),t.Y36(j,10),t.Y36(_e),t.Y36(t.R0b),t.Y36(R.G_,8))},de.\u0275dir=t.lG2({type:de,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(b,x){1&b&&t.NdJ("focus",function(){return x._focusChanged(!0)})("blur",function(){return x._focusChanged(!1)})("input",function(){return x._onInput()}),2&b&&(t.Ikx("disabled",x.disabled)("required",x.required),t.uIk("id",x.id)("data-placeholder",x.placeholder)("name",x.name||null)("readonly",x.readonly&&!x._isNativeSelect||null)("aria-invalid",x.empty&&x.required?null:x.errorState)("aria-required",x.required),t.ekj("mat-input-server",x._isServer)("mat-native-select-inline",x._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[t._Bn([{provide:R.Eo,useExisting:de}]),t.qOj,t.TTD]}),de})(),xe=(()=>{class de{}return de.\u0275fac=function(b){return new(b||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({providers:[_.rD],imports:[L,R.lN,_.BQ,L,R.lN]}),de})()},1948:(ze,Me,a)=>{a.d(Me,{Fk:()=>te,U0:()=>de,VQ:()=>Z});var r=a(4650),l=a(3238),t=a(2687),M=a(1281),ne=a(5017),D=a(4006);const _e=["input"],se=function(b){return{enterDuration:b}},G=["*"],L=new r.OlP("mat-radio-default-options",{providedIn:"root",factory:function ee(){return{color:"accent"}}});let _=0;const R={provide:D.JU,useExisting:(0,r.Gpc)(()=>Z),multi:!0};class B{constructor(x,v){this.source=x,this.value=v}}const j=new r.OlP("MatRadioGroup");let z=(()=>{class b{constructor(v){this._changeDetector=v,this._value=null,this._name="mat-radio-group-"+_++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new r.vpe}get name(){return this._name}set name(v){this._name=v,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(v){this._labelPosition="before"===v?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(v){this._value!==v&&(this._value=v,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(v){this._selected=v,this.value=v?v.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(v){this._disabled=(0,M.Ig)(v),this._markRadiosForCheck()}get required(){return this._required}set required(v){this._required=(0,M.Ig)(v),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(v=>{v.name=this.name,v._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(k=>{k.checked=this.value===k.value,k.checked&&(this._selected=k)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new B(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(v=>v._markForCheck())}writeValue(v){this.value=v,this._changeDetector.markForCheck()}registerOnChange(v){this._controlValueAccessorChangeFn=v}registerOnTouched(v){this.onTouched=v}setDisabledState(v){this.disabled=v,this._changeDetector.markForCheck()}}return b.\u0275fac=function(v){return new(v||b)(r.Y36(r.sBO))},b.\u0275dir=r.lG2({type:b,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),b})(),Z=(()=>{class b extends z{}return b.\u0275fac=function(){let x;return function(k){return(x||(x=r.n5z(b)))(k||b)}}(),b.\u0275dir=r.lG2({type:b,selectors:[["mat-radio-group"]],contentQueries:function(v,k,ae){if(1&v&&r.Suo(ae,de,5),2&v){let we;r.iGM(we=r.CRH())&&(k._radios=we)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[r._Bn([R,{provide:j,useExisting:b}]),r.qOj]}),b})();class ge{constructor(x){this._elementRef=x}}const ke=(0,l.Kr)((0,l.sb)(ge));let xe=(()=>{class b extends ke{constructor(v,k,ae,we,Ce,Ie,Te,ye){super(k),this._changeDetector=ae,this._focusMonitor=we,this._radioDispatcher=Ce,this._providerOverride=Te,this._uniqueId="mat-radio-"+ ++_,this.id=this._uniqueId,this.change=new r.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=v,this._noopAnimations="NoopAnimations"===Ie,ye&&(this.tabIndex=(0,M.su)(ye,0)),this._removeUniqueSelectionListener=Ce.listen((Ee,H)=>{Ee!==this.id&&H===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(v){const k=(0,M.Ig)(v);this._checked!==k&&(this._checked=k,k&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!k&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),k&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(v){this._value!==v&&(this._value=v,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===v),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(v){this._labelPosition=v}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(v){this._setDisabled((0,M.Ig)(v))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(v){this._required=(0,M.Ig)(v)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(v){this._color=v}get inputId(){return`${this.id||this._uniqueId}-input`}focus(v,k){k?this._focusMonitor.focusVia(this._inputElement,k,v):this._inputElement.nativeElement.focus(v)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(v=>{!v&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new B(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(v){v.stopPropagation()}_onInputInteraction(v){if(v.stopPropagation(),!this.checked&&!this.disabled){const k=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),k&&this.radioGroup._emitChangeEvent())}}_setDisabled(v){this._disabled!==v&&(this._disabled=v,this._changeDetector.markForCheck())}_updateTabIndex(){const v=this.radioGroup;let k;if(k=v&&v.selected&&!this.disabled?v.selected===this?this.tabIndex:-1:this.tabIndex,k!==this._previousTabIndex){const ae=this._inputElement?.nativeElement;ae&&(ae.setAttribute("tabindex",k+""),this._previousTabIndex=k)}}}return b.\u0275fac=function(v){r.$Z()},b.\u0275dir=r.lG2({type:b,viewQuery:function(v,k){if(1&v&&r.Gf(_e,5),2&v){let ae;r.iGM(ae=r.CRH())&&(k._inputElement=ae.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[r.qOj]}),b})(),de=(()=>{class b extends xe{constructor(v,k,ae,we,Ce,Ie,Te,ye){super(v,k,ae,we,Ce,Ie,Te,ye)}}return b.\u0275fac=function(v){return new(v||b)(r.Y36(j,8),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(t.tE),r.Y36(ne.A8),r.Y36(r.QbO,8),r.Y36(L,8),r.$8M("tabindex"))},b.\u0275cmp=r.Xpm({type:b,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(v,k){1&v&&r.NdJ("focus",function(){return k._inputElement.nativeElement.focus()}),2&v&&(r.uIk("tabindex",null)("id",k.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),r.ekj("mat-radio-checked",k.checked)("mat-radio-disabled",k.disabled)("_mat-animation-noopable",k._noopAnimations)("mat-primary","primary"===k.color)("mat-accent","accent"===k.color)("mat-warn","warn"===k.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[r.qOj],ngContentSelectors:G,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(v,k){if(1&v&&(r.F$t(),r.TgZ(0,"label",0,1)(2,"span",2),r._UZ(3,"span",3)(4,"span",4),r.TgZ(5,"input",5,6),r.NdJ("change",function(we){return k._onInputInteraction(we)})("click",function(we){return k._onInputClick(we)}),r.qZA(),r.TgZ(7,"span",7),r._UZ(8,"span",8),r.qZA()(),r.TgZ(9,"span",9)(10,"span",10),r._uU(11,"\xa0"),r.qZA(),r.Hsn(12),r.qZA()()),2&v){const ae=r.MAs(1);r.uIk("for",k.inputId),r.xp6(5),r.Q6J("id",k.inputId)("checked",k.checked)("disabled",k.disabled)("required",k.required),r.uIk("name",k.name)("value",k.value)("aria-label",k.ariaLabel)("aria-labelledby",k.ariaLabelledby)("aria-describedby",k.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",ae)("matRippleDisabled",k._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,se,k._noopAnimations?0:150)),r.xp6(2),r.ekj("mat-radio-label-before","before"==k.labelPosition)}},dependencies:[l.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}"],encapsulation:2,changeDetection:0}),b})(),te=(()=>{class b{}return b.\u0275fac=function(v){return new(v||b)},b.\u0275mod=r.oAB({type:b}),b.\u0275inj=r.cJS({imports:[l.si,l.BQ,l.BQ]}),b})()},4385:(ze,Me,a)=>{a.d(Me,{LD:()=>qe,gD:()=>Xe});var r=a(2561),l=a(6895),t=a(4650),M=a(3238),ne=a(9549),D=a(7376),_e=a(2687),se=a(445),G=a(1281),L=a(5017),ee=a(9521),_=a(4006),R=a(7579),B=a(9770),j=a(6451),z=a(8675),Z=a(3900),ge=a(5698),ke=a(9300),xe=a(4004),de=a(1884),te=a(2722),b=a(7340);const x=["trigger"],v=["panel"];function k(Re,E){if(1&Re&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&Re){const f=t.oxw();t.xp6(1),t.Oqu(f.placeholder)}}function ae(Re,E){if(1&Re&&(t.TgZ(0,"span",12),t._uU(1),t.qZA()),2&Re){const f=t.oxw(2);t.xp6(1),t.Oqu(f.triggerValue)}}function we(Re,E){1&Re&&t.Hsn(0,0,["*ngSwitchCase","true"])}function Ce(Re,E){if(1&Re&&(t.TgZ(0,"span",9),t.YNc(1,ae,2,1,"span",10),t.YNc(2,we,1,0,"ng-content",11),t.qZA()),2&Re){const f=t.oxw();t.Q6J("ngSwitch",!!f.customTrigger),t.xp6(2),t.Q6J("ngSwitchCase",!0)}}function Ie(Re,E){if(1&Re){const f=t.EpF();t.TgZ(0,"div",13)(1,"div",14,15),t.NdJ("@transformPanel.done",function(e){t.CHM(f);const s=t.oxw();return t.KtG(s._panelDoneAnimatingStream.next(e.toState))})("keydown",function(e){t.CHM(f);const s=t.oxw();return t.KtG(s._handleKeydown(e))}),t.Hsn(3,1),t.qZA()()}if(2&Re){const f=t.oxw();t.Q6J("@transformPanelWrap",void 0),t.xp6(1),t.Gre("mat-select-panel ",f._getPanelTheme(),""),t.Udp("transform-origin",f._transformOrigin)("font-size",f._triggerFontSize,"px"),t.Q6J("ngClass",f.panelClass)("@transformPanel",f.multiple?"showing-multiple":"showing"),t.uIk("id",f.id+"-panel")("aria-multiselectable",f.multiple)("aria-label",f.ariaLabel||null)("aria-labelledby",f._getPanelAriaLabelledby())}}const Te=[[["mat-select-trigger"]],"*"],ye=["mat-select-trigger","*"],Ee={transformPanelWrap:(0,b.X$)("transformPanelWrap",[(0,b.eR)("* => void",(0,b.IO)("@transformPanel",[(0,b.pV)()],{optional:!0}))]),transformPanel:(0,b.X$)("transformPanel",[(0,b.SB)("void",(0,b.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,b.SB)("showing",(0,b.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,b.SB)("showing-multiple",(0,b.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,b.eR)("void => *",(0,b.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,b.eR)("* => void",(0,b.jt)("100ms 25ms linear",(0,b.oB)({opacity:0})))])};let F=0;const $=256,W=new t.OlP("mat-select-scroll-strategy"),ce=new t.OlP("MAT_SELECT_CONFIG"),fe={provide:W,deps:[r.aV],useFactory:function le(Re){return()=>Re.scrollStrategies.reposition()}};class Be{constructor(E,f){this.source=E,this.value=f}}const Ue=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(Re,E,f,i,e){this._elementRef=Re,this._defaultErrorStateMatcher=E,this._parentForm=f,this._parentFormGroup=i,this.ngControl=e,this.stateChanges=new R.x}})))),We=new t.OlP("MatSelectTrigger");let $e=(()=>{class Re extends Ue{constructor(f,i,e,s,u,w,I,q,be,Se,Le,Ae,Ne,je){super(u,s,I,q,Se),this._viewportRuler=f,this._changeDetectorRef=i,this._ngZone=e,this._dir=w,this._parentFormField=be,this._liveAnnouncer=Ne,this._defaultOptions=je,this._panelOpen=!1,this._compareWith=(Ve,Ge)=>Ve===Ge,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new R.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new R.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,B.P)(()=>{const Ve=this.options;return Ve?Ve.changes.pipe((0,z.O)(Ve),(0,Z.w)(()=>(0,j.T)(...Ve.map(Ge=>Ge.onSelectionChange)))):this._ngZone.onStable.pipe((0,ge.q)(1),(0,Z.w)(()=>this.optionSelectionChanges))}),this.openedChange=new t.vpe,this._openedStream=this.openedChange.pipe((0,ke.h)(Ve=>Ve),(0,xe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ke.h)(Ve=>!Ve),(0,xe.U)(()=>{})),this.selectionChange=new t.vpe,this.valueChange=new t.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=je?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=je.typeaheadDebounceInterval),this._scrollStrategyFactory=Ae,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Le)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(f){this._placeholder=f,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(_.kI.required)??!1}set required(f){this._required=(0,G.Ig)(f),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(f){this._multiple=(0,G.Ig)(f)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(f){this._disableOptionCentering=(0,G.Ig)(f)}get compareWith(){return this._compareWith}set compareWith(f){this._compareWith=f,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(f){this._assignValue(f)&&this._onChange(f)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(f){this._typeaheadDebounceInterval=(0,G.su)(f)}get id(){return this._id}set id(f){this._id=f||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new L.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,de.x)(),(0,te.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,te.R)(this._destroy)).subscribe(f=>{f.added.forEach(i=>i.select()),f.removed.forEach(i=>i.deselect())}),this.options.changes.pipe((0,z.O)(null),(0,te.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const f=this._getTriggerAriaLabelledby(),i=this.ngControl;if(f!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=f,f?e.setAttribute("aria-labelledby",f):e.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(f){(f.disabled||f.userAriaDescribedBy)&&this.stateChanges.next(),f.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(f){this._assignValue(f)}registerOnChange(f){this._onChange=f}registerOnTouched(f){this._onTouched=f}setDisabledState(f){this.disabled=f,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){const f=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&f.reverse(),f.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(f){this.disabled||(this.panelOpen?this._handleOpenKeydown(f):this._handleClosedKeydown(f))}_handleClosedKeydown(f){const i=f.keyCode,e=i===ee.JH||i===ee.LH||i===ee.oh||i===ee.SV,s=i===ee.K5||i===ee.L_,u=this._keyManager;if(!u.isTyping()&&s&&!(0,ee.Vb)(f)||(this.multiple||f.altKey)&&e)f.preventDefault(),this.open();else if(!this.multiple){const w=this.selected;u.onKeydown(f);const I=this.selected;I&&w!==I&&this._liveAnnouncer.announce(I.viewValue,1e4)}}_handleOpenKeydown(f){const i=this._keyManager,e=f.keyCode,s=e===ee.JH||e===ee.LH,u=i.isTyping();if(s&&f.altKey)f.preventDefault(),this.close();else if(u||e!==ee.K5&&e!==ee.L_||!i.activeItem||(0,ee.Vb)(f))if(!u&&this._multiple&&e===ee.A&&f.ctrlKey){f.preventDefault();const w=this.options.some(I=>!I.disabled&&!I.selected);this.options.forEach(I=>{I.disabled||(w?I.select():I.deselect())})}else{const w=i.activeItemIndex;i.onKeydown(f),this._multiple&&s&&f.shiftKey&&i.activeItem&&i.activeItemIndex!==w&&i.activeItem._selectViaInteraction()}else f.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,ge.q)(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(f){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&f)Array.isArray(f),f.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(f);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(f){const i=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,f)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(f){return!!(f!==this._value||this._multiple&&Array.isArray(f))&&(this.options&&this._setSelectionByValue(f),this._value=f,!0)}_initKeyManager(){this._keyManager=new _e.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,te.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,te.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const f=(0,j.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,te.R)(f)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,j.T)(...this.options.map(i=>i._stateChanges)).pipe((0,te.R)(f)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(f,i){const e=this._selectionModel.isSelected(f);null!=f.value||this._multiple?(e!==f.selected&&(f.selected?this._selectionModel.select(f):this._selectionModel.deselect(f)),i&&this._keyManager.setActiveItem(f),this.multiple&&(this._sortValues(),i&&this.focus())):(f.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(f.value)),e!==this._selectionModel.isSelected(f)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const f=this.options.toArray();this._selectionModel.sort((i,e)=>this.sortComparator?this.sortComparator(i,e,f):f.indexOf(i)-f.indexOf(e)),this.stateChanges.next()}}_propagateChanges(f){let i=null;i=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:f,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(f){this._elementRef.nativeElement.focus(f)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const f=this._parentFormField?.getLabelId();return this.ariaLabelledby?(f?f+" ":"")+this.ariaLabelledby:f}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const f=this._parentFormField?.getLabelId();let i=(f?f+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(f){this.openedChange.emit(f)}setDescribedByIds(f){f.length?this._elementRef.nativeElement.setAttribute("aria-describedby",f.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Re.\u0275fac=function(f){return new(f||Re)(t.Y36(D.rL),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(M.rD),t.Y36(t.SBq),t.Y36(se.Is,8),t.Y36(_.F,8),t.Y36(_.sg,8),t.Y36(ne.G_,8),t.Y36(_.a5,10),t.$8M("tabindex"),t.Y36(W),t.Y36(_e.Kd),t.Y36(ce,8))},Re.\u0275dir=t.lG2({type:Re,viewQuery:function(f,i){if(1&f&&(t.Gf(x,5),t.Gf(v,5),t.Gf(r.pI,5)),2&f){let e;t.iGM(e=t.CRH())&&(i.trigger=e.first),t.iGM(e=t.CRH())&&(i.panel=e.first),t.iGM(e=t.CRH())&&(i._overlayDir=e.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[t.qOj,t.TTD]}),Re})(),Xe=(()=>{class Re extends $e{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(f,i,e){const s=this._getItemHeight();return Math.min(Math.max(0,s*f-i+s/2),e)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,te.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,ge.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(f){const i=(0,M.CB)(f,this.options,this.optionGroups),e=this._getItemHeight();this.panel.nativeElement.scrollTop=0===f&&1===i?0:(0,M.jH)((f+i)*e,e,this.panel.nativeElement.scrollTop,$)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(f){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(f)}_getChangeEvent(f){return new Be(this,f)}_calculateOverlayOffsetX(){const f=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),e=this._isRtl(),s=this.multiple?56:32;let u;if(this.multiple)u=40;else if(this.disableOptionCentering)u=16;else{let q=this._selectionModel.selected[0]||this.options.first;u=q&&q.group?32:16}e||(u*=-1);const w=0-(f.left+u-(e?s:0)),I=f.right+u-i.width+(e?0:s);w>0?u+=w+8:I>0&&(u-=I+8),this._overlayDir.offsetX=Math.round(u),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(f,i,e){const s=this._getItemHeight(),u=(s-this._triggerRect.height)/2,w=Math.floor($/s);let I;return this.disableOptionCentering?0:(I=0===this._scrollTop?f*s:this._scrollTop===e?(f-(this._getItemCount()-w))*s+(s-(this._getItemCount()*s-$)%s):i-s/2,Math.round(-1*I-u))}_checkOverlayWithinViewport(f){const i=this._getItemHeight(),e=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,u=e.height-this._triggerRect.bottom-8,w=Math.abs(this._offsetY),q=Math.min(this._getItemCount()*i,$)-w-this._triggerRect.height;q>u?this._adjustPanelUp(q,u):w>s?this._adjustPanelDown(w,s,f):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(f,i){const e=Math.round(f-i);this._scrollTop-=e,this._offsetY-=e,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(f,i,e){const s=Math.round(f-i);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=e)return this._scrollTop=e,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const f=this._getItemHeight(),i=this._getItemCount(),e=Math.min(i*f,$),u=i*f-e;let w;w=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),w+=(0,M.CB)(w,this.options,this.optionGroups);const I=e/2;this._scrollTop=this._calculateOverlayScroll(w,I,u),this._offsetY=this._calculateOverlayOffsetY(w,I,u),this._checkOverlayWithinViewport(u)}_getOriginBasedOnOption(){const f=this._getItemHeight(),i=(f-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+f/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Re.\u0275fac=function(){let E;return function(i){return(E||(E=t.n5z(Re)))(i||Re)}}(),Re.\u0275cmp=t.Xpm({type:Re,selectors:[["mat-select"]],contentQueries:function(f,i,e){if(1&f&&(t.Suo(e,We,5),t.Suo(e,M.ey,5),t.Suo(e,M.K7,5)),2&f){let s;t.iGM(s=t.CRH())&&(i.customTrigger=s.first),t.iGM(s=t.CRH())&&(i.options=s),t.iGM(s=t.CRH())&&(i.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(f,i){1&f&&t.NdJ("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&f&&(t.uIk("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),t.ekj("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[t._Bn([{provide:ne.Eo,useExisting:Re},{provide:M.HF,useExisting:Re}]),t.qOj],ngContentSelectors:ye,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(f,i){if(1&f&&(t.F$t(Te),t.TgZ(0,"div",0,1),t.NdJ("click",function(){return i.toggle()}),t.TgZ(3,"div",2),t.YNc(4,k,2,1,"span",3),t.YNc(5,Ce,3,2,"span",4),t.qZA(),t.TgZ(6,"div",5),t._UZ(7,"div",6),t.qZA()(),t.YNc(8,Ie,4,14,"ng-template",7),t.NdJ("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&f){const e=t.MAs(1);t.uIk("aria-owns",i.panelOpen?i.id+"-panel":null),t.xp6(3),t.Q6J("ngSwitch",i.empty),t.uIk("id",i._valueId),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1),t.xp6(3),t.Q6J("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[l.mk,l.RF,l.n9,l.ED,r.pI,r.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{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;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ee.transformPanelWrap,Ee.transformPanel]},changeDetection:0}),Re})(),qe=(()=>{class Re{}return Re.\u0275fac=function(f){return new(f||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:[fe],imports:[l.ez,r.U8,M.Ng,M.BQ,D.ZD,ne.lN,M.Ng,M.BQ]}),Re})()},266:(ze,Me,a)=>{a.d(Me,{AV:()=>Ee,gM:()=>Ie});var r=a(2561),l=a(2687),t=a(6895),M=a(4650),ne=a(3238),D=a(7376),_e=a(445),se=a(1281),G=a(9521),L=a(2289),ee=a(3353),_=a(4080),R=a(7579),B=a(2722),j=a(5698);a(7340);const Z=["tooltip"],xe="tooltip-panel",de=(0,ee.i$)({passive:!0}),x=new M.OlP("mat-tooltip-scroll-strategy"),k={provide:x,deps:[r.aV],useFactory:function v(Q){return()=>Q.scrollStrategies.reposition({scrollThrottle:20})}},ae=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function we(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ce=(()=>{class Q{constructor(F,$,ie,Oe,he,ve,P,W,le,ce,fe,Be){this._overlay=F,this._elementRef=$,this._scrollDispatcher=ie,this._viewContainerRef=Oe,this._ngZone=he,this._platform=ve,this._ariaDescriber=P,this._focusMonitor=W,this._dir=ce,this._defaultOptions=fe,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new R.x,this._scrollStrategy=le,this._document=Be,fe&&(fe.position&&(this.position=fe.position),fe.touchGestures&&(this.touchGestures=fe.touchGestures)),ce.change.pipe((0,B.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(F){F!==this._position&&(this._position=F,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(F){this._disabled=(0,se.Ig)(F),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(F){this._showDelay=(0,se.su)(F)}get hideDelay(){return this._hideDelay}set hideDelay(F){this._hideDelay=(0,se.su)(F),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(F){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=F?String(F).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(F){this._tooltipClass=F,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,B.R)(this._destroyed)).subscribe(F=>{F?"keyboard"===F&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const F=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([$,ie])=>{F.removeEventListener($,ie,de)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(F,this.message,"tooltip"),this._focusMonitor.stopMonitoring(F)}show(F=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const $=this._createOverlay();this._detach(),this._portal=this._portal||new _.C5(this._tooltipComponent,this._viewContainerRef);const ie=this._tooltipInstance=$.attach(this._portal).instance;ie._triggerElement=this._elementRef.nativeElement,ie._mouseLeaveHideDelay=this._hideDelay,ie.afterHidden().pipe((0,B.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ie.show(F)}hide(F=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(F)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const F=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),$=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(F);return $.positionChanges.pipe((0,B.R)(this._destroyed)).subscribe(ie=>{this._updateCurrentPositionClass(ie.connectionPair),this._tooltipInstance&&ie.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:$,panelClass:`${this._cssClassPrefix}-${xe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,B.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,B.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,B.R)(this._destroyed)).subscribe(ie=>{this._isTooltipVisible()&&ie.keyCode===G.hY&&!(0,G.Vb)(ie)&&(ie.preventDefault(),ie.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(F){const $=F.getConfig().positionStrategy,ie=this._getOrigin(),Oe=this._getOverlayPosition();$.withPositions([this._addOffset({...ie.main,...Oe.main}),this._addOffset({...ie.fallback,...Oe.fallback})])}_addOffset(F){return F}_getOrigin(){const F=!this._dir||"ltr"==this._dir.value,$=this.position;let ie;"above"==$||"below"==$?ie={originX:"center",originY:"above"==$?"top":"bottom"}:"before"==$||"left"==$&&F||"right"==$&&!F?ie={originX:"start",originY:"center"}:("after"==$||"right"==$&&F||"left"==$&&!F)&&(ie={originX:"end",originY:"center"});const{x:Oe,y:he}=this._invertPosition(ie.originX,ie.originY);return{main:ie,fallback:{originX:Oe,originY:he}}}_getOverlayPosition(){const F=!this._dir||"ltr"==this._dir.value,$=this.position;let ie;"above"==$?ie={overlayX:"center",overlayY:"bottom"}:"below"==$?ie={overlayX:"center",overlayY:"top"}:"before"==$||"left"==$&&F||"right"==$&&!F?ie={overlayX:"end",overlayY:"center"}:("after"==$||"right"==$&&F||"left"==$&&!F)&&(ie={overlayX:"start",overlayY:"center"});const{x:Oe,y:he}=this._invertPosition(ie.overlayX,ie.overlayY);return{main:ie,fallback:{overlayX:Oe,overlayY:he}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,j.q)(1),(0,B.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(F){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=F,this._tooltipInstance._markForCheck())}_invertPosition(F,$){return"above"===this.position||"below"===this.position?"top"===$?$="bottom":"bottom"===$&&($="top"):"end"===F?F="start":"start"===F&&(F="end"),{x:F,y:$}}_updateCurrentPositionClass(F){const{overlayY:$,originX:ie,originY:Oe}=F;let he;if(he="center"===$?this._dir&&"rtl"===this._dir.value?"end"===ie?"left":"right":"start"===ie?"left":"right":"bottom"===$&&"top"===Oe?"above":"below",he!==this._currentPosition){const ve=this._overlayRef;if(ve){const P=`${this._cssClassPrefix}-${xe}-`;ve.removePanelClass(P+this._currentPosition),ve.addPanelClass(P+he)}this._currentPosition=he}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const F=[];if(this._platformSupportsMouseEvents())F.push(["mouseleave",$=>{const ie=$.relatedTarget;(!ie||!this._overlayRef?.overlayElement.contains(ie))&&this.hide()}],["wheel",$=>this._wheelListener($)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const $=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};F.push(["touchend",$],["touchcancel",$])}this._addListeners(F),this._passiveListeners.push(...F)}_addListeners(F){F.forEach(([$,ie])=>{this._elementRef.nativeElement.addEventListener($,ie,de)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(F){if(this._isTooltipVisible()){const $=this._document.elementFromPoint(F.clientX,F.clientY),ie=this._elementRef.nativeElement;$!==ie&&!ie.contains($)&&this.hide()}}_disableNativeGesturesIfNecessary(){const F=this.touchGestures;if("off"!==F){const $=this._elementRef.nativeElement,ie=$.style;("on"===F||"INPUT"!==$.nodeName&&"TEXTAREA"!==$.nodeName)&&(ie.userSelect=ie.msUserSelect=ie.webkitUserSelect=ie.MozUserSelect="none"),("on"===F||!$.draggable)&&(ie.webkitUserDrag="none"),ie.touchAction="none",ie.webkitTapHighlightColor="transparent"}}}return Q.\u0275fac=function(F){M.$Z()},Q.\u0275dir=M.lG2({type:Q,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Q})(),Ie=(()=>{class Q extends Ce{constructor(F,$,ie,Oe,he,ve,P,W,le,ce,fe,Be){super(F,$,ie,Oe,he,ve,P,W,le,ce,fe,Be),this._tooltipComponent=ye}}return Q.\u0275fac=function(F){return new(F||Q)(M.Y36(r.aV),M.Y36(M.SBq),M.Y36(D.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(ee.t4),M.Y36(l.$s),M.Y36(l.tE),M.Y36(x),M.Y36(_e.Is,8),M.Y36(ae,8),M.Y36(t.K0))},Q.\u0275dir=M.lG2({type:Q,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),Q})(),Te=(()=>{class Q{constructor(F,$){this._changeDetectorRef=F,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new R.x,this._animationsDisabled="NoopAnimations"===$}show(F){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},F)}hide(F){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},F)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:F}){(!F||!this._triggerElement.contains(F))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:F}){(F===this._showAnimation||F===this._hideAnimation)&&this._finalizeAnimation(F===this._showAnimation)}_finalizeAnimation(F){F?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(F){const $=this._tooltip.nativeElement,ie=this._showAnimation,Oe=this._hideAnimation;if($.classList.remove(F?Oe:ie),$.classList.add(F?ie:Oe),this._isVisible=F,F&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const he=getComputedStyle($);("0s"===he.getPropertyValue("animation-duration")||"none"===he.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}F&&this._onShow(),this._animationsDisabled&&($.classList.add("_mat-animation-noopable"),this._finalizeAnimation(F))}}return Q.\u0275fac=function(F){return new(F||Q)(M.Y36(M.sBO),M.Y36(M.QbO,8))},Q.\u0275dir=M.lG2({type:Q}),Q})(),ye=(()=>{class Q extends Te{constructor(F,$,ie){super(F,ie),this._breakpointObserver=$,this._isHandset=this._breakpointObserver.observe(L.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return Q.\u0275fac=function(F){return new(F||Q)(M.Y36(M.sBO),M.Y36(L.Yg),M.Y36(M.QbO,8))},Q.\u0275cmp=M.Xpm({type:Q,selectors:[["mat-tooltip-component"]],viewQuery:function(F,$){if(1&F&&M.Gf(Z,7),2&F){let ie;M.iGM(ie=M.CRH())&&($._tooltip=ie.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(F,$){1&F&&M.NdJ("mouseleave",function(Oe){return $._handleMouseLeave(Oe)}),2&F&&M.Udp("zoom",$.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(F,$){if(1&F&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(Oe){return $._handleAnimationEnd(Oe)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&F){let ie;M.ekj("mat-tooltip-handset",null==(ie=M.lcZ(2,4,$._isHandset))?null:ie.matches),M.Q6J("ngClass",$.tooltipClass),M.xp6(3),M.Oqu($.message)}},dependencies:[t.mk,t.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),Q})(),Ee=(()=>{class Q{}return Q.\u0275fac=function(F){return new(F||Q)},Q.\u0275mod=M.oAB({type:Q}),Q.\u0275inj=M.cJS({providers:[k],imports:[l.rt,t.ez,r.U8,ne.BQ,ne.BQ,D.ZD]}),Q})()}}]);