marketplacepos 2.4.5 → 2.4.6

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.
Files changed (40) hide show
  1. package/Marketplace/162.4f60927eda97cc16.js +1 -0
  2. package/Marketplace/171.9284c660e58d6f8c.js +1 -0
  3. package/Marketplace/174.981a3e729681507b.js +1 -0
  4. package/Marketplace/25.ba3606ad0ea92b4a.js +1 -0
  5. package/Marketplace/360.4fa1f449dc516500.js +1 -0
  6. package/Marketplace/369.d711344db7113e55.js +1 -0
  7. package/Marketplace/387.6e9471375d261f28.js +1 -0
  8. package/Marketplace/3rdpartylicenses.txt +28 -2
  9. package/Marketplace/463.e1b8208c6f571003.js +1 -0
  10. package/Marketplace/512.96a1a3c8c51a8727.js +1 -0
  11. package/Marketplace/516.57bcab321d07d544.js +1 -0
  12. package/Marketplace/716.8918af413ba6d384.js +1 -0
  13. package/Marketplace/717.03a2e00d3bca2d89.js +1 -0
  14. package/Marketplace/874.63ae9bf5eecf410e.js +1 -0
  15. package/Marketplace/983.e83c887fe86ec996.js +1 -0
  16. package/Marketplace/assets/stepper-custom.scss +33 -0
  17. package/Marketplace/assets/version-adjustment-v5.scss +1 -1
  18. package/Marketplace/common.3f5874655db24424.js +1 -0
  19. package/Marketplace/index.html +2 -2
  20. package/Marketplace/main.f2cf6124e7df7f02.js +1 -0
  21. package/Marketplace/runtime.ba9ecd190eb3a539.js +1 -0
  22. package/Marketplace/{styles.ab4c60b3cc2298c3.css → styles.dc183203b654c19c.css} +2 -2
  23. package/package.json +1 -1
  24. package/Marketplace/162.4ce4550bb805d5d4.js +0 -1
  25. package/Marketplace/171.9cd91ffa365b9491.js +0 -1
  26. package/Marketplace/174.e214431f31fd131d.js +0 -1
  27. package/Marketplace/25.ad4f583264f99556.js +0 -1
  28. package/Marketplace/334.fca544ca6d7e11d3.js +0 -1
  29. package/Marketplace/360.479b6dc19c3aedfd.js +0 -1
  30. package/Marketplace/387.ef404fc903278a1c.js +0 -1
  31. package/Marketplace/402.f385d64daee6049e.js +0 -1
  32. package/Marketplace/458.a9aae1853888dd58.js +0 -1
  33. package/Marketplace/466.2e9f76621dd59e88.js +0 -1
  34. package/Marketplace/512.84e77b4b4a7a1db7.js +0 -1
  35. package/Marketplace/516.71620076f01c2cd7.js +0 -1
  36. package/Marketplace/717.5259a4803cce95ab.js +0 -1
  37. package/Marketplace/874.d45d1026769d75d1.js +0 -1
  38. package/Marketplace/common.1acc3df88ef73d5d.js +0 -1
  39. package/Marketplace/main.2fa426747cc66a26.js +0 -1
  40. package/Marketplace/runtime.22e3909f138762cb.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[387],{7481:(Ue,be,a)=>{a.d(be,{R:()=>C,p:()=>P});var n=a(4650),s=a(6895),t=a(4006),M=a(8252),se=a(1589);function E(L,R){if(1&L){const N=n.EpF();n.ynx(0),n.TgZ(1,"div",18)(2,"input",19),n.NdJ("ngModelChange",function(Z){n.CHM(N);const J=n.oxw();return n.KtG(J.text=Z)})("keyup",function(){n.CHM(N);const Z=n.oxw();return n.KtG(Z.onTextChange())})("keyup.enter",function(){n.CHM(N);const Z=n.oxw();return n.KtG(Z.submit())}),n.qZA(),n.TgZ(3,"div")(4,"button",20),n.NdJ("click",function(){n.CHM(N);const Z=n.oxw();return n.KtG(Z.submit())}),n._UZ(5,"i",21),n.qZA()()(),n.BQk()}if(2&L){const N=n.oxw();n.xp6(2),n.Q6J("ngModel",N.text)("placeholder",N.searchBoxPlaceHolder)}}function de(L,R){if(1&L){const N=n.EpF();n.TgZ(0,"div",22)(1,"a",23)(2,"i",24),n._UZ(3,"i",25),n.qZA()(),n.TgZ(4,"form",26),n.Hsn(5,2),n.TgZ(6,"button",27),n.NdJ("click",function(){n.CHM(N);const Z=n.oxw();return n.KtG(Z.submit())}),n._UZ(7,"i",28),n._uU(8,"Search "),n.qZA()()()}}const oe=[[["actions"]],[["content"]],[["filters"]]],j=["actions","content","filters"];let P=(()=>{class L{constructor(N){this.sidebarService=N,this.onSubmit=new n.vpe,this.textChange=new n.vpe,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search.."}submit(){this.inputText=this.text,this.onSubmit.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}IsActive(N){return this.getMenuNameByUrl(window.location.href)==this.getMenuNameByUrl(N)}toggledropdown(N){N.stopPropagation()}getMenuNameByUrl(N){var U=N.split("#");if(U.length>1){var J=U[1].split("/");return""!=J[0]?J[0]:J[1]}return N}toggleMenu(){this.sidebarService.toggleSidebar()}}return L.\u0275fac=function(N){return new(N||L)(n.Y36(se.g))},L.\u0275cmp=n.Xpm({type:L,selectors:[["mainpanel"]],inputs:{text:"text",headerTitle:"headerTitle",textButton:"textButton",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceHolder:"searchBoxPlaceHolder",showBeside:"showBeside",description:"description"},outputs:{onSubmit:"onSubmit",textChange:"textChange"},ngContentSelectors:j,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(N,U){1&N&&(n.F$t(oe),n.TgZ(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4),n.qZA()(),n.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div")(9,"div"),n.YNc(10,E,6,2,"ng-container",7),n.qZA()(),n.YNc(11,de,9,0,"div",8),n.qZA()()(),n.TgZ(12,"div",9)(13,"button",10),n._UZ(14,"i",11),n.qZA(),n.TgZ(15,"button",12),n._UZ(16,"i",13),n.qZA(),n.TgZ(17,"button",14),n.NdJ("click",function(){return U.toggleMenu()}),n._UZ(18,"span",15)(19,"span",15)(20,"span",15),n.qZA()(),n.TgZ(21,"div",16),n.Hsn(22),n.qZA()()(),n.TgZ(23,"div",17)(24,"div"),n.Hsn(25,1),n.qZA()()),2&N&&(n.xp6(3),n.Q6J("title",U.description?U.description:""),n.xp6(1),n.hij(" ",U.headerTitle," "),n.xp6(6),n.Q6J("ngIf",!U.hideSearchBox),n.xp6(1),n.Q6J("ngIf",!U.hideSearchDropdown))},dependencies:[s.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}),L})(),C=(()=>{class L{}return L.\u0275fac=function(N){return new(N||L)},L.\u0275mod=n.oAB({type:L}),L.\u0275inj=n.cJS({imports:[s.ez,t.u5,M.Bz]}),L})()},2387:(Ue,be,a)=>{a.r(be),a.d(be,{MenuModule:()=>ut});var c,n=a(6895),s=a(8252),t=a(8063),M=(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var d in o)o.hasOwnProperty(d)&&(r[d]=o[d])},function(r,o){function d(){this.constructor=r}c(r,o),r.prototype=null===o?Object.create(o):(d.prototype=o.prototype,new d)}),se=function(c){function r(o,d){var h=this,H=this.constructor.prototype;return(h=c.call(this,o)||this).statusCode=d,h.__proto__=H,h}return M(r,c),r}(Error),E=function(c){function r(o){void 0===o&&(o="A timeout occurred.");var g=this,h=this.constructor.prototype;return(g=c.call(this,o)||this).__proto__=h,g}return M(r,c),r}(Error),de=function(c){function r(o){void 0===o&&(o="An abort occurred.");var g=this,h=this.constructor.prototype;return(g=c.call(this,o)||this).__proto__=h,g}return M(r,c),r}(Error),oe=Object.assign||function(c){for(var r,o=1,d=arguments.length;o<d;o++)for(var g in r=arguments[o])Object.prototype.hasOwnProperty.call(r,g)&&(c[g]=r[g]);return c},j=function c(r,o,d){this.statusCode=r,this.statusText=o,this.content=d},P=function(){function c(){}return c.prototype.get=function(r,o){return this.send(oe({},o,{method:"GET",url:r}))},c.prototype.post=function(r,o){return this.send(oe({},o,{method:"POST",url:r}))},c.prototype.delete=function(r,o){return this.send(oe({},o,{method:"DELETE",url:r}))},c.prototype.getCookieString=function(r){return""},c}(),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"}(C||(C={})),C))(),L=function(){function c(){}return c.prototype.log=function(r,o){},c.instance=new c,c}(),U=function(){function c(){}return c.isRequired=function(r,o){if(null==r)throw new Error("The '"+o+"' argument is required.")},c.isIn=function(r,o,d){if(!(r in o))throw new Error("Unknown "+d+" value: "+r+".")},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 J(c,r){var o="";return ce(c)?(o="Binary data of length "+c.byteLength,r&&(o+=". Content: '"+function _e(c){var r=new Uint8Array(c),o="";return r.forEach(function(d){o+="0x"+(d<16?"0":"")+d.toString(16)+" "}),o.substr(0,o.length-1)}(c)+"'")):"string"==typeof c&&(o="String data of length "+c.length,r&&(o+=". Content: '"+c+"'")),o}function ce(c){return c&&typeof ArrayBuffer<"u"&&(c instanceof ArrayBuffer||c.constructor&&"ArrayBuffer"===c.constructor.name)}function ve(c,r,o,d,g,h,H){return function(c,r,o,d){return new(o||(o=Promise))(function(g,h){function H(_){try{q(d.next(_))}catch(fe){h(fe)}}function ee(_){try{q(d.throw(_))}catch(fe){h(fe)}}function q(_){_.done?g(_.value):new o(function(fe){fe(_.value)}).then(H,ee)}q((d=d.apply(c,[])).next())})}(this,0,void 0,function(){var ee,q,_,fe,He;return function(c,r){var d,g,h,H,o={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function ee(_){return function(fe){return function q(_){if(d)throw new TypeError("Generator is already executing.");for(;o;)try{if(d=1,g&&(h=2&_[0]?g.return:_[0]?g.throw||((h=g.return)&&h.call(g),0):g.next)&&!(h=h.call(g,_[1])).done)return h;switch(g=0,h&&(_=[2&_[0],h.value]),_[0]){case 0:case 1:h=_;break;case 4:return o.label++,{value:_[1],done:!1};case 5:o.label++,g=_[1],_=[0];continue;case 7:_=o.ops.pop(),o.trys.pop();continue;default:if(!(h=(h=o.trys).length>0&&h[h.length-1])&&(6===_[0]||2===_[0])){o=0;continue}if(3===_[0]&&(!h||_[1]>h[0]&&_[1]<h[3])){o.label=_[1];break}if(6===_[0]&&o.label<h[1]){o.label=h[1],h=_;break}if(h&&o.label<h[2]){o.label=h[2],o.ops.push(_);break}h[2]&&o.ops.pop(),o.trys.pop();continue}_=r.call(c,o)}catch(fe){_=[6,fe],g=0}finally{d=h=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([_,fe])}}}(this,function(We){switch(We.label){case 0:return g?[4,g()]:[3,2];case 1:(_=We.sent())&&((ee={}).Authorization="Bearer "+_,q=ee),We.label=2;case 2:return c.log(C.Trace,"("+r+" transport) sending data. "+J(h,H)+"."),fe=ce(h)?"arraybuffer":"text",[4,o.post(d,{content:h,headers:q,responseType:fe})];case 3:return He=We.sent(),c.log(C.Trace,"("+r+" transport) request complete. Response status: "+He.statusCode+"."),[2]}})})}var D,$=function(){function c(r,o){this.subject=r,this.observer=o}return c.prototype.dispose=function(){var r=this.subject.observers.indexOf(this.observer);r>-1&&this.subject.observers.splice(r,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch(function(o){})},c}(),m=function(){function c(r){this.minimumLogLevel=r,this.outputConsole=console}return c.prototype.log=function(r,o){if(r>=this.minimumLogLevel)switch(r){case C.Critical:case C.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+C[r]+": "+o);break;case C.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+C[r]+": "+o);break;case C.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+C[r]+": "+o);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+C[r]+": "+o)}},c}(),x=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var d in o)o.hasOwnProperty(d)&&(r[d]=o[d])};return function(r,o){function d(){this.constructor=r}c(r,o),r.prototype=null===o?Object.create(o):(d.prototype=o.prototype,new d)}}(),v=Object.assign||function(c){for(var r,o=1,d=arguments.length;o<d;o++)for(var g in r=arguments[o])Object.prototype.hasOwnProperty.call(r,g)&&(c[g]=r[g]);return c};if(typeof XMLHttpRequest>"u"){var he=require;D=he("request")}var ke=function(c){function r(o){var d=c.call(this)||this;if(typeof D>"u")throw new Error("The 'request' module could not be loaded.");return d.logger=o,d.cookieJar=D.jar(),d.request=D.defaults({jar:d.cookieJar}),d}return x(r,c),r.prototype.send=function(o){var d=this;return o.abortSignal&&o.abortSignal.aborted?Promise.reject(new de):new Promise(function(g,h){var H;H=ce(o.content)?Buffer.from(o.content):o.content||"";var ee=d.request(o.url,{body:H,encoding:"arraybuffer"===o.responseType?null:"utf8",headers:v({"X-Requested-With":"XMLHttpRequest"},o.headers),method:o.method,timeout:o.timeout},function(q,_,fe){if(o.abortSignal&&(o.abortSignal.onabort=null),q)return"ETIMEDOUT"===q.code&&(d.logger.log(C.Warning,"Timeout from HTTP request."),h(new E)),d.logger.log(C.Warning,"Error from HTTP request. "+q),void h(q);_.statusCode>=200&&_.statusCode<300?g(new j(_.statusCode,_.statusMessage||"",fe)):h(new se(_.statusMessage||"",_.statusCode||0))});o.abortSignal&&(o.abortSignal.onabort=function(){ee.abort(),h(new de)})})},r.prototype.getCookieString=function(o){return this.cookieJar.getCookieString(o)},r}(P),Ee=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var d in o)o.hasOwnProperty(d)&&(r[d]=o[d])};return function(r,o){function d(){this.constructor=r}c(r,o),r.prototype=null===o?Object.create(o):(d.prototype=o.prototype,new d)}}(),Te=function(c){function r(o){var d=c.call(this)||this;return d.logger=o,d}return Ee(r,c),r.prototype.send=function(o){var d=this;return o.abortSignal&&o.abortSignal.aborted?Promise.reject(new de):o.method?o.url?new Promise(function(g,h){var H=new XMLHttpRequest;H.open(o.method,o.url,!0),H.withCredentials=!0,H.setRequestHeader("X-Requested-With","XMLHttpRequest"),H.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var ee=o.headers;ee&&Object.keys(ee).forEach(function(q){H.setRequestHeader(q,ee[q])}),o.responseType&&(H.responseType=o.responseType),o.abortSignal&&(o.abortSignal.onabort=function(){H.abort(),h(new de)}),o.timeout&&(H.timeout=o.timeout),H.onload=function(){o.abortSignal&&(o.abortSignal.onabort=null),H.status>=200&&H.status<300?g(new j(H.status,H.statusText,H.response||H.responseText)):h(new se(H.statusText,H.status))},H.onerror=function(){d.logger.log(C.Warning,"Error from HTTP request. "+H.status+": "+H.statusText+"."),h(new se(H.statusText,H.status))},H.ontimeout=function(){d.logger.log(C.Warning,"Timeout from HTTP request."),h(new E)},H.send(o.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},r}(P),De=function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var d in o)o.hasOwnProperty(d)&&(r[d]=o[d])};return function(r,o){function d(){this.constructor=r}c(r,o),r.prototype=null===o?Object.create(o):(d.prototype=o.prototype,new d)}}(),Me=function(c){function r(o){var d=c.call(this)||this;return d.httpClient=typeof XMLHttpRequest<"u"?new Te(o):new ke(o),d}return De(r,c),r.prototype.send=function(o){return o.abortSignal&&o.abortSignal.aborted?Promise.reject(new de):o.method?o.url?this.httpClient.send(o):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},r.prototype.getCookieString=function(o){return this.httpClient.getCookieString(o)},r}(P),ye=function(){function c(){}return c.write=function(r){return""+r+c.RecordSeparator},c.parse=function(r){if(r[r.length-1]!==c.RecordSeparator)throw new Error("Message is incomplete.");var o=r.split(c.RecordSeparator);return o.pop(),o},c.RecordSeparatorCode=30,c.RecordSeparator=String.fromCharCode(c.RecordSeparatorCode),c}(),W=function(){function c(){}return c.prototype.writeHandshakeRequest=function(r){return ye.write(JSON.stringify(r))},c.prototype.parseHandshakeResponse=function(r){var d,g;if(ce(r)||typeof Buffer<"u"&&r instanceof Buffer){var h=new Uint8Array(r);if(-1===(H=h.indexOf(ye.RecordSeparatorCode)))throw new Error("Message is incomplete.");var ee=H+1;d=String.fromCharCode.apply(null,h.slice(0,ee)),g=h.byteLength>ee?h.slice(ee).buffer:null}else{var H,q=r;if(-1===(H=q.indexOf(ye.RecordSeparator)))throw new Error("Message is incomplete.");d=q.substring(0,ee=H+1),g=q.length>ee?q.substring(ee):null}var _=ye.parse(d),fe=JSON.parse(_[0]);if(fe.type)throw new Error("Expected a handshake response from the server.");return[g,fe]},c}(),Y=(()=>(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"}(Y||(Y={})),Y))(),pe=function(){function c(){this.observers=[]}return c.prototype.next=function(r){for(var o=0,d=this.observers;o<d.length;o++)d[o].next(r)},c.prototype.error=function(r){for(var o=0,d=this.observers;o<d.length;o++){var g=d[o];g.error&&g.error(r)}},c.prototype.complete=function(){for(var r=0,o=this.observers;r<o.length;r++){var d=o[r];d.complete&&d.complete()}},c.prototype.subscribe=function(r){return this.observers.push(r),new $(this,r)},c}(),B=function(c,r,o,d){return new(o||(o=Promise))(function(g,h){function H(_){try{q(d.next(_))}catch(fe){h(fe)}}function ee(_){try{q(d.throw(_))}catch(fe){h(fe)}}function q(_){_.done?g(_.value):new o(function(fe){fe(_.value)}).then(H,ee)}q((d=d.apply(c,r||[])).next())})},Q=function(c,r){var d,g,h,H,o={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function ee(_){return function(fe){return function q(_){if(d)throw new TypeError("Generator is already executing.");for(;o;)try{if(d=1,g&&(h=2&_[0]?g.return:_[0]?g.throw||((h=g.return)&&h.call(g),0):g.next)&&!(h=h.call(g,_[1])).done)return h;switch(g=0,h&&(_=[2&_[0],h.value]),_[0]){case 0:case 1:h=_;break;case 4:return o.label++,{value:_[1],done:!1};case 5:o.label++,g=_[1],_=[0];continue;case 7:_=o.ops.pop(),o.trys.pop();continue;default:if(!(h=(h=o.trys).length>0&&h[h.length-1])&&(6===_[0]||2===_[0])){o=0;continue}if(3===_[0]&&(!h||_[1]>h[0]&&_[1]<h[3])){o.label=_[1];break}if(6===_[0]&&o.label<h[1]){o.label=h[1],h=_;break}if(h&&o.label<h[2]){o.label=h[2],o.ops.push(_);break}h[2]&&o.ops.pop(),o.trys.pop();continue}_=r.call(c,o)}catch(fe){_=[6,fe],g=0}finally{d=h=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([_,fe])}}},ie=(()=>(function(c){c.Disconnected="Disconnected",c.Connecting="Connecting",c.Connected="Connected",c.Disconnecting="Disconnecting",c.Reconnecting="Reconnecting"}(ie||(ie={})),ie))(),Fe=function(){function c(r,o,d,g){var h=this;this.nextKeepAlive=0,U.isRequired(r,"connection"),U.isRequired(o,"logger"),U.isRequired(d,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=o,this.protocol=d,this.connection=r,this.reconnectPolicy=g,this.handshakeProtocol=new W,this.connection.onreceive=function(H){return h.processIncomingData(H)},this.connection.onclose=function(H){return h.connectionClosed(H)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=ie.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:Y.Ping})}return c.create=function(r,o,d,g){return new c(r,o,d,g)},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(r){if(this.connectionState!==ie.Disconnected&&this.connectionState!==ie.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!r)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=r},enumerable:!0,configurable:!0}),c.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},c.prototype.startWithStateTransitions=function(){return B(this,void 0,void 0,function(){var r;return Q(this,function(o){switch(o.label){case 0:if(this.connectionState!==ie.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=ie.Connecting,this.logger.log(C.Debug,"Starting HubConnection."),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return o.sent(),this.connectionState=ie.Connected,this.connectionStarted=!0,this.logger.log(C.Debug,"HubConnection connected successfully."),[3,4];case 3:return r=o.sent(),this.connectionState=ie.Disconnected,this.logger.log(C.Debug,"HubConnection failed to start successfully because of error '"+r+"'."),[2,Promise.reject(r)];case 4:return[2]}})})},c.prototype.startInternal=function(){return B(this,void 0,void 0,function(){var r,o,d,g=this;return Q(this,function(h){switch(h.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,r=new Promise(function(H,ee){g.handshakeResolver=H,g.handshakeRejecter=ee}),[4,this.connection.start(this.protocol.transferFormat)];case 1:h.sent(),h.label=2;case 2:return h.trys.push([2,5,,7]),o={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(C.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(o))];case 3:return h.sent(),this.logger.log(C.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,r];case 4:if(h.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return d=h.sent(),this.logger.log(C.Debug,"Hub handshake failed with error '"+d+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(d)];case 6:throw h.sent(),d;case 7:return[2]}})})},c.prototype.stop=function(){return B(this,void 0,void 0,function(){var r;return Q(this,function(d){switch(d.label){case 0:return r=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:d.sent(),d.label=2;case 2:return d.trys.push([2,4,,5]),[4,r];case 3:case 4:return d.sent(),[3,5];case 5:return[2]}})})},c.prototype.stopInternal=function(r){return this.connectionState===ie.Disconnected?(this.logger.log(C.Debug,"Call to HubConnection.stop("+r+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===ie.Disconnecting?(this.logger.log(C.Debug,"Call to HttpConnection.stop("+r+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=ie.Disconnecting,this.logger.log(C.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(C.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=r||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(r)))},c.prototype.stream=function(r){for(var o=this,d=[],g=1;g<arguments.length;g++)d[g-1]=arguments[g];var _,h=this.replaceStreamingParams(d),H=h[0],ee=h[1],q=this.createStreamInvocation(r,d,ee),fe=new pe;return fe.cancelCallback=function(){var He=o.createCancelInvocation(q.invocationId);return delete o.callbacks[q.invocationId],_.then(function(){return o.sendWithProtocol(He)})},this.callbacks[q.invocationId]=function(He,We){We?fe.error(We):He&&(He.type===Y.Completion?He.error?fe.error(new Error(He.error)):fe.complete():fe.next(He.item))},_=this.sendWithProtocol(q).catch(function(He){fe.error(He),delete o.callbacks[q.invocationId]}),this.launchStreams(H,_),fe},c.prototype.sendMessage=function(r){return this.resetKeepAliveInterval(),this.connection.send(r)},c.prototype.sendWithProtocol=function(r){return this.sendMessage(this.protocol.writeMessage(r))},c.prototype.send=function(r){for(var o=[],d=1;d<arguments.length;d++)o[d-1]=arguments[d];var g=this.replaceStreamingParams(o),h=g[0],H=g[1],ee=this.sendWithProtocol(this.createInvocation(r,o,!0,H));return this.launchStreams(h,ee),ee},c.prototype.invoke=function(r){for(var o=this,d=[],g=1;g<arguments.length;g++)d[g-1]=arguments[g];var h=this.replaceStreamingParams(d),H=h[0],ee=h[1],q=this.createInvocation(r,d,!1,ee),_=new Promise(function(fe,He){o.callbacks[q.invocationId]=function(tt,ot){ot?He(ot):tt&&(tt.type===Y.Completion?tt.error?He(new Error(tt.error)):fe(tt.result):He(new Error("Unexpected message type: "+tt.type)))};var We=o.sendWithProtocol(q).catch(function(tt){He(tt),delete o.callbacks[q.invocationId]});o.launchStreams(H,We)});return _},c.prototype.on=function(r,o){!r||!o||(r=r.toLowerCase(),this.methods[r]||(this.methods[r]=[]),-1===this.methods[r].indexOf(o)&&this.methods[r].push(o))},c.prototype.off=function(r,o){if(r){r=r.toLowerCase();var d=this.methods[r];if(d)if(o){var g=d.indexOf(o);-1!==g&&(d.splice(g,1),0===d.length&&delete this.methods[r])}else delete this.methods[r]}},c.prototype.onclose=function(r){r&&this.closedCallbacks.push(r)},c.prototype.onreconnecting=function(r){r&&this.reconnectingCallbacks.push(r)},c.prototype.onreconnected=function(r){r&&this.reconnectedCallbacks.push(r)},c.prototype.processIncomingData=function(r){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(r=this.processHandshakeResponse(r),this.receivedHandshakeResponse=!0),r)for(var d=0,g=this.protocol.parseMessages(r,this.logger);d<g.length;d++){var h=g[d];switch(h.type){case Y.Invocation:this.invokeClientMethod(h);break;case Y.StreamItem:case Y.Completion:var H=this.callbacks[h.invocationId];H&&(h.type===Y.Completion&&delete this.callbacks[h.invocationId],H(h));break;case Y.Ping:break;case Y.Close:this.logger.log(C.Information,"Close message received from server.");var ee=h.error?new Error("Server returned an error on close: "+h.error):void 0;!0===h.allowReconnect?this.connection.stop(ee):this.stopPromise=this.stopInternal(ee);break;default:this.logger.log(C.Warning,"Invalid message type: "+h.type+".")}}this.resetTimeoutPeriod()},c.prototype.processHandshakeResponse=function(r){var o,d,g,h;try{g=(o=this.handshakeProtocol.parseHandshakeResponse(r))[0],d=o[1]}catch(ee){this.logger.log(C.Error,h="Error parsing handshake response: "+ee);var H=new Error(h);throw this.handshakeRejecter(H),H}if(d.error)throw this.logger.log(C.Error,h="Server returned handshake error: "+d.error),H=new Error(h),this.handshakeRejecter(H),H;return this.logger.log(C.Debug,"Server handshake complete."),this.handshakeResolver(),g},c.prototype.resetKeepAliveInterval=function(){this.connection.features.inherentKeepAlive||(this.nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this.cleanupPingTimer())},c.prototype.resetTimeoutPeriod=function(){var r=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout(function(){return r.serverTimeout()},this.serverTimeoutInMilliseconds),void 0!==this.pingServerHandle))){var o=this.nextKeepAlive-(new Date).getTime();o<0&&(o=0),this.pingServerHandle=setTimeout(function(){return B(r,void 0,void 0,function(){return Q(this,function(g){switch(g.label){case 0:if(this.connectionState!==ie.Connected)return[3,4];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return g.sent(),[3,4];case 3:return g.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}})})},o)}},c.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},c.prototype.invokeClientMethod=function(r){var o=this,d=this.methods[r.target.toLowerCase()];if(d){try{d.forEach(function(h){return h.apply(o,r.arguments)})}catch(h){this.logger.log(C.Error,"A callback for the method "+r.target.toLowerCase()+" threw error '"+h+"'.")}if(r.invocationId){var g="Server requested a response, which is not supported in this version of the client.";this.logger.log(C.Error,g),this.stopPromise=this.stopInternal(new Error(g))}}else this.logger.log(C.Warning,"No client method with the name '"+r.target+"' found.")},c.prototype.connectionClosed=function(r){this.logger.log(C.Debug,"HubConnection.connectionClosed("+r+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||r||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(r||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===ie.Disconnecting?this.completeClose(r):this.connectionState===ie.Connected&&this.reconnectPolicy?this.reconnect(r):this.connectionState===ie.Connected&&this.completeClose(r)},c.prototype.completeClose=function(r){var o=this;if(this.connectionStarted){this.connectionState=ie.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach(function(d){return d.apply(o,[r])})}catch(d){this.logger.log(C.Error,"An onclose callback called with error '"+r+"' threw error '"+d+"'.")}}},c.prototype.reconnect=function(r){return B(this,void 0,void 0,function(){var o,d,g,h,H,ee=this;return Q(this,function(q){switch(q.label){case 0:if(o=Date.now(),d=0,g=void 0!==r?r:new Error("Attempting to reconnect due to a unknown error."),null===(h=this.getNextRetryDelay(d++,0,g)))return this.logger.log(C.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(r),[2];if(this.connectionState=ie.Reconnecting,this.logger.log(C.Information,r?"Connection reconnecting because of error '"+r+"'.":"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach(function(_){return _.apply(ee,[r])})}catch(_){this.logger.log(C.Error,"An onreconnecting callback called with error '"+r+"' threw error '"+_+"'.")}if(this.connectionState!==ie.Reconnecting)return this.logger.log(C.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}q.label=1;case 1:return null===h?[3,7]:(this.logger.log(C.Information,"Reconnect attempt number "+d+" will start in "+h+" ms."),[4,new Promise(function(_){ee.reconnectDelayHandle=setTimeout(_,h)})]);case 2:if(q.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==ie.Reconnecting)return this.logger.log(C.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];q.label=3;case 3:return q.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(q.sent(),this.connectionState=ie.Connected,this.logger.log(C.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach(function(_){return _.apply(ee,[ee.connection.connectionId])})}catch(_){this.logger.log(C.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+_+"'.")}return[2];case 5:return H=q.sent(),this.logger.log(C.Information,"Reconnect attempt failed because of error '"+H+"'."),this.connectionState!==ie.Reconnecting?(this.logger.log(C.Debug,"Connection moved to the '"+this.connectionState+"' from the reconnecting state during reconnect attempt. Done reconnecting."),this.connectionState===ie.Disconnecting&&this.completeClose(),[2]):(g=H instanceof Error?H:new Error(H.toString()),h=this.getNextRetryDelay(d++,Date.now()-o,g),[3,6]);case 6:return[3,1];case 7:return this.logger.log(C.Information,"Reconnect retries have been exhausted after "+(Date.now()-o)+" ms and "+d+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}})})},c.prototype.getNextRetryDelay=function(r,o,d){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:o,previousRetryCount:r,retryReason:d})}catch(g){return this.logger.log(C.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+r+", "+o+") threw error '"+g+"'."),null}},c.prototype.cancelCallbacksWithError=function(r){var o=this.callbacks;this.callbacks={},Object.keys(o).forEach(function(d){(0,o[d])(null,r)})},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(r,o,d,g){if(d)return{arguments:o,streamIds:g,target:r,type:Y.Invocation};var h=this.invocationId;return this.invocationId++,{arguments:o,invocationId:h.toString(),streamIds:g,target:r,type:Y.Invocation}},c.prototype.launchStreams=function(r,o){var d=this;if(0!==r.length){o||(o=Promise.resolve());var g=function(H){r[H].subscribe({complete:function(){o=o.then(function(){return d.sendWithProtocol(d.createCompletionMessage(H))})},error:function(ee){var q;q=ee instanceof Error?ee.message:ee&&ee.toString?ee.toString():"Unknown error",o=o.then(function(){return d.sendWithProtocol(d.createCompletionMessage(H,q))})},next:function(ee){o=o.then(function(){return d.sendWithProtocol(d.createStreamItemMessage(H,ee))})}})};for(var h in r)g(h)}},c.prototype.replaceStreamingParams=function(r){for(var o=[],d=[],g=0;g<r.length;g++){var h=r[g];if(this.isObservable(h)){var H=this.invocationId;this.invocationId++,o[H]=h,d.push(H.toString()),r.splice(g,1)}}return[o,d]},c.prototype.isObservable=function(r){return r&&r.subscribe&&"function"==typeof r.subscribe},c.prototype.createStreamInvocation=function(r,o,d){var g=this.invocationId;return this.invocationId++,{arguments:o,invocationId:g.toString(),streamIds:d,target:r,type:Y.StreamInvocation}},c.prototype.createCancelInvocation=function(r){return{invocationId:r,type:Y.CancelInvocation}},c.prototype.createStreamItemMessage=function(r,o){return{invocationId:r,item:o,type:Y.StreamItem}},c.prototype.createCompletionMessage=function(r,o,d){return o?{error:o,invocationId:r,type:Y.Completion}:{invocationId:r,result:d,type:Y.Completion}},c}(),F=[0,2e3,1e4,3e4,null],G=function(){function c(r){this.retryDelays=void 0!==r?r.concat([null]):F}return c.prototype.nextRetryDelayInMilliseconds=function(r){return this.retryDelays[r.previousRetryCount]},c}(),ne=(()=>(function(c){c[c.None=0]="None",c[c.WebSockets=1]="WebSockets",c[c.ServerSentEvents=2]="ServerSentEvents",c[c.LongPolling=4]="LongPolling"}(ne||(ne={})),ne))(),ue=(()=>(function(c){c[c.Text=1]="Text",c[c.Binary=2]="Binary"}(ue||(ue={})),ue))(),xe=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}(),Le=function(c,r,o,d){return new(o||(o=Promise))(function(g,h){function H(_){try{q(d.next(_))}catch(fe){h(fe)}}function ee(_){try{q(d.throw(_))}catch(fe){h(fe)}}function q(_){_.done?g(_.value):new o(function(fe){fe(_.value)}).then(H,ee)}q((d=d.apply(c,r||[])).next())})},Ve=function(c,r){var d,g,h,H,o={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function ee(_){return function(fe){return function q(_){if(d)throw new TypeError("Generator is already executing.");for(;o;)try{if(d=1,g&&(h=2&_[0]?g.return:_[0]?g.throw||((h=g.return)&&h.call(g),0):g.next)&&!(h=h.call(g,_[1])).done)return h;switch(g=0,h&&(_=[2&_[0],h.value]),_[0]){case 0:case 1:h=_;break;case 4:return o.label++,{value:_[1],done:!1};case 5:o.label++,g=_[1],_=[0];continue;case 7:_=o.ops.pop(),o.trys.pop();continue;default:if(!(h=(h=o.trys).length>0&&h[h.length-1])&&(6===_[0]||2===_[0])){o=0;continue}if(3===_[0]&&(!h||_[1]>h[0]&&_[1]<h[3])){o.label=_[1];break}if(6===_[0]&&o.label<h[1]){o.label=h[1],h=_;break}if(h&&o.label<h[2]){o.label=h[2],o.ops.push(_);break}h[2]&&o.ops.pop(),o.trys.pop();continue}_=r.call(c,o)}catch(fe){_=[6,fe],g=0}finally{d=h=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([_,fe])}}},je=function(){function c(r,o,d,g){this.httpClient=r,this.accessTokenFactory=o,this.logger=d,this.pollAbort=new xe,this.logMessageContent=g,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(r,o){return Le(this,void 0,void 0,function(){var d,g,h,H;return Ve(this,function(ee){switch(ee.label){case 0:if(U.isRequired(r,"url"),U.isRequired(o,"transferFormat"),U.isIn(o,ue,"transferFormat"),this.url=r,this.logger.log(C.Trace,"(LongPolling transport) Connecting."),o===ue.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return d={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},o===ue.Binary&&(d.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return g=ee.sent(),this.updateHeaderToken(d,g),h=r+"&_="+Date.now(),this.logger.log(C.Trace,"(LongPolling transport) polling: "+h+"."),[4,this.httpClient.get(h,d)];case 2:return 200!==(H=ee.sent()).statusCode?(this.logger.log(C.Error,"(LongPolling transport) Unexpected response code: "+H.statusCode+"."),this.closeError=new se(H.statusText||"",H.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,d),[2]}})})},c.prototype.getAccessToken=function(){return Le(this,void 0,void 0,function(){return Ve(this,function(r){switch(r.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,r.sent()];case 2:return[2,null]}})})},c.prototype.updateHeaderToken=function(r,o){r.headers||(r.headers={}),o?r.headers.Authorization="Bearer "+o:r.headers.Authorization&&delete r.headers.Authorization},c.prototype.poll=function(r,o){return Le(this,void 0,void 0,function(){var d,g,h,H;return Ve(this,function(ee){switch(ee.label){case 0:ee.trys.push([0,,8,9]),ee.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:d=ee.sent(),this.updateHeaderToken(o,d),ee.label=3;case 3:return ee.trys.push([3,5,,6]),g=r+"&_="+Date.now(),this.logger.log(C.Trace,"(LongPolling transport) polling: "+g+"."),[4,this.httpClient.get(g,o)];case 4:return 204===(h=ee.sent()).statusCode?(this.logger.log(C.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==h.statusCode?(this.logger.log(C.Error,"(LongPolling transport) Unexpected response code: "+h.statusCode+"."),this.closeError=new se(h.statusText||"",h.statusCode),this.running=!1):h.content?(this.logger.log(C.Trace,"(LongPolling transport) data received. "+J(h.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(h.content)):this.logger.log(C.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return H=ee.sent(),this.running?H instanceof E?this.logger.log(C.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=H,this.running=!1):this.logger.log(C.Trace,"(LongPolling transport) Poll errored after shutdown: "+H.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(C.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}})})},c.prototype.send=function(r){return Le(this,void 0,void 0,function(){return Ve(this,function(o){return this.running?[2,ve(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,r,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},c.prototype.stop=function(){return Le(this,void 0,void 0,function(){var r,o;return Ve(this,function(d){switch(d.label){case 0:this.logger.log(C.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),d.label=1;case 1:return d.trys.push([1,,5,6]),[4,this.receiving];case 2:return d.sent(),this.logger.log(C.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),r={headers:{}},[4,this.getAccessToken()];case 3:return o=d.sent(),this.updateHeaderToken(r,o),[4,this.httpClient.delete(this.url,r)];case 4:return d.sent(),this.logger.log(C.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(C.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}})})},c.prototype.raiseOnClose=function(){if(this.onclose){var r="(LongPolling transport) Firing onclose event.";this.closeError&&(r+=" Error: "+this.closeError),this.logger.log(C.Trace,r),this.onclose(this.closeError)}},c}(),$e=function(c,r,o,d){return new(o||(o=Promise))(function(g,h){function H(_){try{q(d.next(_))}catch(fe){h(fe)}}function ee(_){try{q(d.throw(_))}catch(fe){h(fe)}}function q(_){_.done?g(_.value):new o(function(fe){fe(_.value)}).then(H,ee)}q((d=d.apply(c,r||[])).next())})},Xe=function(c,r){var d,g,h,H,o={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function ee(_){return function(fe){return function q(_){if(d)throw new TypeError("Generator is already executing.");for(;o;)try{if(d=1,g&&(h=2&_[0]?g.return:_[0]?g.throw||((h=g.return)&&h.call(g),0):g.next)&&!(h=h.call(g,_[1])).done)return h;switch(g=0,h&&(_=[2&_[0],h.value]),_[0]){case 0:case 1:h=_;break;case 4:return o.label++,{value:_[1],done:!1};case 5:o.label++,g=_[1],_=[0];continue;case 7:_=o.ops.pop(),o.trys.pop();continue;default:if(!(h=(h=o.trys).length>0&&h[h.length-1])&&(6===_[0]||2===_[0])){o=0;continue}if(3===_[0]&&(!h||_[1]>h[0]&&_[1]<h[3])){o.label=_[1];break}if(6===_[0]&&o.label<h[1]){o.label=h[1],h=_;break}if(h&&o.label<h[2]){o.label=h[2],o.ops.push(_);break}h[2]&&o.ops.pop(),o.trys.pop();continue}_=r.call(c,o)}catch(fe){_=[6,fe],g=0}finally{d=h=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([_,fe])}}},Qe=function(){function c(r,o,d,g,h){this.httpClient=r,this.accessTokenFactory=o,this.logger=d,this.logMessageContent=g,this.eventSourceConstructor=h,this.onreceive=null,this.onclose=null}return c.prototype.connect=function(r,o){return $e(this,void 0,void 0,function(){var d,g=this;return Xe(this,function(h){switch(h.label){case 0:return U.isRequired(r,"url"),U.isRequired(o,"transferFormat"),U.isIn(o,ue,"transferFormat"),this.logger.log(C.Trace,"(SSE transport) Connecting."),this.url=r,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(d=h.sent())&&(r+=(r.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(d)),h.label=2;case 2:return[2,new Promise(function(H,ee){var q=!1;if(o===ue.Text){var _;if(Z.isBrowser||Z.isWebWorker)_=new g.eventSourceConstructor(r,{withCredentials:!0});else{var fe=g.httpClient.getCookieString(r);_=new g.eventSourceConstructor(r,{withCredentials:!0,headers:{Cookie:fe}})}try{_.onmessage=function(He){if(g.onreceive)try{g.logger.log(C.Trace,"(SSE transport) data received. "+J(He.data,g.logMessageContent)+"."),g.onreceive(He.data)}catch(We){return void g.close(We)}},_.onerror=function(He){var We=new Error(He.data||"Error occurred");q?g.close(We):ee(We)},_.onopen=function(){g.logger.log(C.Information,"SSE connected to "+g.url),g.eventSource=_,q=!0,H()}}catch(He){return void ee(He)}}else ee(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})]}})})},c.prototype.send=function(r){return $e(this,void 0,void 0,function(){return Xe(this,function(o){return this.eventSource?[2,ve(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,r,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(r){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(r))},c}(),O=function(){function c(r,o,d,g,h){this.logger=d,this.accessTokenFactory=o,this.logMessageContent=g,this.webSocketConstructor=h,this.httpClient=r,this.onreceive=null,this.onclose=null}return c.prototype.connect=function(r,o){return function(c,r,o,d){return new(o||(o=Promise))(function(g,h){function H(_){try{q(d.next(_))}catch(fe){h(fe)}}function ee(_){try{q(d.throw(_))}catch(fe){h(fe)}}function q(_){_.done?g(_.value):new o(function(fe){fe(_.value)}).then(H,ee)}q((d=d.apply(c,[])).next())})}(this,0,void 0,function(){var d,g=this;return function(c,r){var d,g,h,H,o={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function ee(_){return function(fe){return function q(_){if(d)throw new TypeError("Generator is already executing.");for(;o;)try{if(d=1,g&&(h=2&_[0]?g.return:_[0]?g.throw||((h=g.return)&&h.call(g),0):g.next)&&!(h=h.call(g,_[1])).done)return h;switch(g=0,h&&(_=[2&_[0],h.value]),_[0]){case 0:case 1:h=_;break;case 4:return o.label++,{value:_[1],done:!1};case 5:o.label++,g=_[1],_=[0];continue;case 7:_=o.ops.pop(),o.trys.pop();continue;default:if(!(h=(h=o.trys).length>0&&h[h.length-1])&&(6===_[0]||2===_[0])){o=0;continue}if(3===_[0]&&(!h||_[1]>h[0]&&_[1]<h[3])){o.label=_[1];break}if(6===_[0]&&o.label<h[1]){o.label=h[1],h=_;break}if(h&&o.label<h[2]){o.label=h[2],o.ops.push(_);break}h[2]&&o.ops.pop(),o.trys.pop();continue}_=r.call(c,o)}catch(fe){_=[6,fe],g=0}finally{d=h=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([_,fe])}}}(this,function(h){switch(h.label){case 0:return U.isRequired(r,"url"),U.isRequired(o,"transferFormat"),U.isIn(o,ue,"transferFormat"),this.logger.log(C.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(d=h.sent())&&(r+=(r.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(d)),h.label=2;case 2:return[2,new Promise(function(H,ee){r=r.replace(/^http/,"ws");var q,_=g.httpClient.getCookieString(r),fe=!1;Z.isNode&&_&&(q=new g.webSocketConstructor(r,void 0,{headers:{Cookie:""+_}})),q||(q=new g.webSocketConstructor(r)),o===ue.Binary&&(q.binaryType="arraybuffer"),q.onopen=function(He){g.logger.log(C.Information,"WebSocket connected to "+r+"."),g.webSocket=q,fe=!0,H()},q.onerror=function(He){var We;We=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.error:new Error("There was an error with the transport."),ee(We)},q.onmessage=function(He){g.logger.log(C.Trace,"(WebSockets transport) data received. "+J(He.data,g.logMessageContent)+"."),g.onreceive&&g.onreceive(He.data)},q.onclose=function(He){if(fe)g.close(He);else{var We;We=typeof ErrorEvent<"u"&&He instanceof ErrorEvent?He.error:new Error("There was an error with the transport."),ee(We)}}})]}})})},c.prototype.send=function(r){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(C.Trace,"(WebSockets transport) sending data. "+J(r,this.logMessageContent)+"."),this.webSocket.send(r),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(r){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(C.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!r||!1!==r.wasClean&&1e3===r.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+r.code+" ("+r.reason+").")))},c}(),u=function(c,r,o,d){return new(o||(o=Promise))(function(g,h){function H(_){try{q(d.next(_))}catch(fe){h(fe)}}function ee(_){try{q(d.throw(_))}catch(fe){h(fe)}}function q(_){_.done?g(_.value):new o(function(fe){fe(_.value)}).then(H,ee)}q((d=d.apply(c,r||[])).next())})},i=function(c,r){var d,g,h,H,o={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return H={next:ee(0),throw:ee(1),return:ee(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function ee(_){return function(fe){return function q(_){if(d)throw new TypeError("Generator is already executing.");for(;o;)try{if(d=1,g&&(h=2&_[0]?g.return:_[0]?g.throw||((h=g.return)&&h.call(g),0):g.next)&&!(h=h.call(g,_[1])).done)return h;switch(g=0,h&&(_=[2&_[0],h.value]),_[0]){case 0:case 1:h=_;break;case 4:return o.label++,{value:_[1],done:!1};case 5:o.label++,g=_[1],_=[0];continue;case 7:_=o.ops.pop(),o.trys.pop();continue;default:if(!(h=(h=o.trys).length>0&&h[h.length-1])&&(6===_[0]||2===_[0])){o=0;continue}if(3===_[0]&&(!h||_[1]>h[0]&&_[1]<h[3])){o.label=_[1];break}if(6===_[0]&&o.label<h[1]){o.label=h[1],h=_;break}if(h&&o.label<h[2]){o.label=h[2],o.ops.push(_);break}h[2]&&o.ops.pop(),o.trys.pop();continue}_=r.call(c,o)}catch(fe){_=[6,fe],g=0}finally{d=h=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([_,fe])}}},l=null,f=null;if(Z.isNode){var S=require;l=S("ws"),f=S("eventsource")}var I=function(){function c(r,o){void 0===o&&(o={}),this.stopPromiseResolver=function(){},this.features={},this.negotiateVersion=1,U.isRequired(r,"url"),this.logger=function X(c){return void 0===c?new m(C.Information):null===c?L.instance:c.log?c:new m(c)}(o.logger),this.baseUrl=this.resolveUrl(r),(o=o||{}).logMessageContent=o.logMessageContent||!1,!Z.isNode&&typeof WebSocket<"u"&&!o.WebSocket?o.WebSocket=WebSocket:Z.isNode&&!o.WebSocket&&l&&(o.WebSocket=l),!Z.isNode&&typeof EventSource<"u"&&!o.EventSource?o.EventSource=EventSource:Z.isNode&&!o.EventSource&&typeof f<"u"&&(o.EventSource=f),this.httpClient=o.httpClient||new Me(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=o,this.onreceive=null,this.onclose=null}return c.prototype.start=function(r){return u(this,void 0,void 0,function(){var o;return i(this,function(d){switch(d.label){case 0:return U.isIn(r=r||ue.Binary,ue,"transferFormat"),this.logger.log(C.Debug,"Starting connection with transfer format '"+ue[r]+"'."),"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(r),[4,this.startInternalPromise]);case 1:return d.sent(),"Disconnecting"!==this.connectionState?[3,3]:(this.logger.log(C.Error,o="Failed to start the HttpConnection before stop() was called."),[4,this.stopPromise]);case 2:return d.sent(),[2,Promise.reject(new Error(o))];case 3:if("Connected"!==this.connectionState)return this.logger.log(C.Error,o="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!"),[2,Promise.reject(new Error(o))];d.label=4;case 4:return this.connectionStarted=!0,[2]}})})},c.prototype.send=function(r){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 Ce(this.transport)),this.sendQueue.send(r))},c.prototype.stop=function(r){return u(this,void 0,void 0,function(){var o=this;return i(this,function(d){switch(d.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(C.Debug,"Call to HttpConnection.stop("+r+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(C.Debug,"Call to HttpConnection.stop("+r+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise(function(g){o.stopPromiseResolver=g}),[4,this.stopInternal(r)]);case 1:return d.sent(),[4,this.stopPromise];case 2:return d.sent(),[2]}})})},c.prototype.stopInternal=function(r){return u(this,void 0,void 0,function(){var d;return i(this,function(g){switch(g.label){case 0:this.stopError=r,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:case 3:return g.sent(),[3,4];case 4:if(!this.transport)return[3,9];g.label=5;case 5:return g.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return g.sent(),[3,8];case 7:return d=g.sent(),this.logger.log(C.Error,"HttpConnection.transport.stop() threw error '"+d+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(C.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),g.label=10;case 10:return[2]}})})},c.prototype.startInternal=function(r){return u(this,void 0,void 0,function(){var o,d,g,h,H,ee;return i(this,function(q){switch(q.label){case 0:o=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,q.label=1;case 1:return q.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==ne.WebSockets?[3,3]:(this.transport=this.constructTransport(ne.WebSockets),[4,this.startTransport(o,r)]):[3,5];case 2:return q.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:d=null,g=0,h=function(){var _;return i(this,function(fe){switch(fe.label){case 0:return[4,H.getNegotiationResponse(o)];case 1:if(d=fe.sent(),"Disconnecting"===H.connectionState||"Disconnected"===H.connectionState)throw new Error("The connection was stopped during negotiation.");if(d.error)throw new Error(d.error);if(d.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 d.url&&(o=d.url),d.accessToken&&(_=d.accessToken,H.accessTokenFactory=function(){return _}),g++,[2]}})},H=this,q.label=6;case 6:return[5,h()];case 7:q.sent(),q.label=8;case 8:if(d.url&&g<100)return[3,6];q.label=9;case 9:if(100===g&&d.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(o,this.options.transport,d,r)];case 10:q.sent(),q.label=11;case 11:return this.transport instanceof je&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(C.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return ee=q.sent(),this.logger.log(C.Error,"Failed to start the connection: "+ee),this.connectionState="Disconnected",this.transport=void 0,this.stopPromiseResolver(),[2,Promise.reject(ee)];case 13:return[2]}})})},c.prototype.getNegotiationResponse=function(r){return u(this,void 0,void 0,function(){var o,d,g,h,H,ee,q;return i(this,function(_){switch(_.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(g=_.sent())&&((o={}).Authorization="Bearer "+g,d=o),_.label=2;case 2:h=this.resolveNegotiateUrl(r),this.logger.log(C.Debug,"Sending negotiation request: "+h+"."),_.label=3;case 3:return _.trys.push([3,5,,6]),[4,this.httpClient.post(h,{content:"",headers:d})];case 4:return 200!==(H=_.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+H.statusCode))]:((!(ee=JSON.parse(H.content)).negotiateVersion||ee.negotiateVersion<1)&&(ee.connectionToken=ee.connectionId),[2,ee]);case 5:return q=_.sent(),this.logger.log(C.Error,"Failed to complete negotiation with the server: "+q),[2,Promise.reject(q)];case 6:return[2]}})})},c.prototype.createConnectUrl=function(r,o){return o?r+(-1===r.indexOf("?")?"?":"&")+"id="+o:r},c.prototype.createTransport=function(r,o,d,g){return u(this,void 0,void 0,function(){var h,H,q,_,fe,He,We,tt,ot;return i(this,function(it){switch(it.label){case 0:return h=this.createConnectUrl(r,d.connectionToken),this.isITransport(o)?(this.logger.log(C.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=o,[4,this.startTransport(h,g)]):[3,2];case 1:return it.sent(),this.connectionId=d.connectionId,[2];case 2:H=[],q=d,_=0,fe=d.availableTransports||[],it.label=3;case 3:return _<fe.length?(We=this.resolveTransportOrError(He=fe[_],o,g))instanceof Error?(H.push(He.transport+" failed: "+We),[3,12]):[3,4]:[3,13];case 4:if(!this.isITransport(We))return[3,12];if(this.transport=We,q)return[3,9];it.label=5;case 5:return it.trys.push([5,7,,8]),[4,this.getNegotiationResponse(r)];case 6:return q=it.sent(),[3,8];case 7:return tt=it.sent(),[2,Promise.reject(tt)];case 8:h=this.createConnectUrl(r,q.connectionToken),it.label=9;case 9:return it.trys.push([9,11,,12]),[4,this.startTransport(h,g)];case 10:return it.sent(),this.connectionId=q.connectionId,[2];case 11:return ot=it.sent(),this.logger.log(C.Error,"Failed to start the transport '"+He.transport+"': "+ot),q=void 0,H.push(He.transport+" failed: "+ot),"Connecting "!==this.connectionState?(this.logger.log(C.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 _++,[3,3];case 13:return H.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+H.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}})})},c.prototype.constructTransport=function(r){switch(r){case ne.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new O(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case ne.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 ne.LongPolling:return new je(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+r+".")}},c.prototype.startTransport=function(r,o){var d=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(g){return d.stopConnection(g)},this.transport.connect(r,o)},c.prototype.resolveTransportOrError=function(r,o,d){var g=ne[r.transport];if(null==g)return this.logger.log(C.Debug,"Skipping transport '"+r.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+r.transport+"' because it is not supported by this client.");if(!function te(c,r){return!c||0!=(r&c)}(o,g))return this.logger.log(C.Debug,"Skipping transport '"+ne[g]+"' because it was disabled by the client."),new Error("'"+ne[g]+"' is disabled by the client.");if(!(r.transferFormats.map(function(H){return ue[H]}).indexOf(d)>=0))return this.logger.log(C.Debug,"Skipping transport '"+ne[g]+"' because it does not support the requested transfer format '"+ue[d]+"'."),new Error("'"+ne[g]+"' does not support "+ue[d]+".");if(g===ne.WebSockets&&!this.options.WebSocket||g===ne.ServerSentEvents&&!this.options.EventSource)return this.logger.log(C.Debug,"Skipping transport '"+ne[g]+"' because it is not supported in your environment.'"),new Error("'"+ne[g]+"' is not supported in your environment.");this.logger.log(C.Debug,"Selecting transport '"+ne[g]+"'.");try{return this.constructTransport(g)}catch(H){return H}},c.prototype.isITransport=function(r){return r&&"object"==typeof r&&"connect"in r},c.prototype.stopConnection=function(r){var o=this;if(this.logger.log(C.Debug,"HttpConnection.stopConnection("+r+") called while in state "+this.connectionState+"."),this.transport=void 0,r=this.stopError||r,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),r?this.logger.log(C.Error,"Connection disconnected with error '"+r+"'."):this.logger.log(C.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch(function(d){o.logger.log(C.Error,"TransportSendQueue.stop() threw error '"+d+"'.")}),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(r)}catch(d){this.logger.log(C.Error,"HttpConnection.onclose("+r+") threw error '"+d+"'.")}}}else this.logger.log(C.Warning,"Call to HttpConnection.stopConnection("+r+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(C.Debug,"Call to HttpConnection.stopConnection("+r+") was ignored because the connection is already in the disconnected state.")},c.prototype.resolveUrl=function(r){if(0===r.lastIndexOf("https://",0)||0===r.lastIndexOf("http://",0))return r;if(!Z.isBrowser||!window.document)throw new Error("Cannot resolve '"+r+"'.");var o=window.document.createElement("a");return o.href=r,this.logger.log(C.Information,"Normalizing '"+r+"' to '"+o.href+"'."),o.href},c.prototype.resolveNegotiateUrl=function(r){var o=r.indexOf("?"),d=r.substring(0,-1===o?r.length:o);return"/"!==d[d.length-1]&&(d+="/"),d+="negotiate",-1===(d+=-1===o?"":r.substring(o)).indexOf("negotiateVersion")&&(d+=-1===o?"?":"&",d+="negotiateVersion="+this.negotiateVersion),d},c}(),Ce=function(){function c(r){this.transport=r,this.buffer=[],this.executing=!0,this.sendBufferedData=new we,this.transportResult=new we,this.sendLoopPromise=this.sendLoop()}return c.prototype.send=function(r){return this.bufferData(r),this.transportResult||(this.transportResult=new we),this.transportResult.promise},c.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},c.prototype.bufferData=function(r){if(this.buffer.length&&typeof this.buffer[0]!=typeof r)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof r);this.buffer.push(r),this.sendBufferedData.resolve()},c.prototype.sendLoop=function(){return u(this,void 0,void 0,function(){var r,o,d;return i(this,function(g){switch(g.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(g.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new we,r=this.transportResult,this.transportResult=void 0,o="string"==typeof this.buffer[0]?this.buffer.join(""):c.concatBuffers(this.buffer),this.buffer.length=0,g.label=2;case 2:return g.trys.push([2,4,,5]),[4,this.transport.send(o)];case 3:return g.sent(),r.resolve(),[3,5];case 4:return d=g.sent(),r.reject(d),[3,5];case 5:return[3,0];case 6:return[2]}})})},c.concatBuffers=function(r){for(var o=r.map(function(q){return q.byteLength}).reduce(function(q,_){return q+_}),d=new Uint8Array(o),g=0,h=0,H=r;h<H.length;h++){var ee=H[h];d.set(new Uint8Array(ee),g),g+=ee.byteLength}return d},c}(),we=function(){function c(){var r=this;this.promise=new Promise(function(o,d){var g;return r.resolver=(g=[o,d])[0],r.rejecter=g[1],g})}return c.prototype.resolve=function(){this.resolver()},c.prototype.reject=function(r){this.rejecter(r)},c}(),Oe=function(){function c(){this.name="json",this.version=1,this.transferFormat=ue.Text}return c.prototype.parseMessages=function(r,o){if("string"!=typeof r)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!r)return[];null===o&&(o=L.instance);for(var g=[],h=0,H=ye.parse(r);h<H.length;h++){var q=JSON.parse(H[h]);if("number"!=typeof q.type)throw new Error("Invalid payload.");switch(q.type){case Y.Invocation:this.isInvocationMessage(q);break;case Y.StreamItem:this.isStreamItemMessage(q);break;case Y.Completion:this.isCompletionMessage(q);break;case Y.Ping:case Y.Close:break;default:o.log(C.Information,"Unknown message type '"+q.type+"' ignored.");continue}g.push(q)}return g},c.prototype.writeMessage=function(r){return ye.write(JSON.stringify(r))},c.prototype.isInvocationMessage=function(r){this.assertNotEmptyString(r.target,"Invalid payload for Invocation message."),void 0!==r.invocationId&&this.assertNotEmptyString(r.invocationId,"Invalid payload for Invocation message.")},c.prototype.isStreamItemMessage=function(r){if(this.assertNotEmptyString(r.invocationId,"Invalid payload for StreamItem message."),void 0===r.item)throw new Error("Invalid payload for StreamItem message.")},c.prototype.isCompletionMessage=function(r){if(r.result&&r.error)throw new Error("Invalid payload for Completion message.");!r.result&&r.error&&this.assertNotEmptyString(r.error,"Invalid payload for Completion message."),this.assertNotEmptyString(r.invocationId,"Invalid payload for Completion message.")},c.prototype.assertNotEmptyString=function(r,o){if("string"!=typeof r||""===r)throw new Error(o)},c}(),Ne=Object.assign||function(c){for(var r,o=1,d=arguments.length;o<d;o++)for(var g in r=arguments[o])Object.prototype.hasOwnProperty.call(r,g)&&(c[g]=r[g]);return c},Ye={trace:C.Trace,debug:C.Debug,info:C.Information,information:C.Information,warn:C.Warning,warning:C.Warning,error:C.Error,critical:C.Critical,none:C.None},Ge=function(){function c(){}return c.prototype.configureLogging=function(r){if(U.isRequired(r,"logging"),function V(c){return void 0!==c.log}(r))this.logger=r;else if("string"==typeof r){var o=function ze(c){var r=Ye[c.toLowerCase()];if(typeof r<"u")return r;throw new Error("Unknown log level: "+c)}(r);this.logger=new m(o)}else this.logger=new m(r);return this},c.prototype.withUrl=function(r,o){return U.isRequired(r,"url"),this.url=r,this.httpConnectionOptions=Ne({},this.httpConnectionOptions,"object"==typeof o?o:{transport:o}),this},c.prototype.withHubProtocol=function(r){return U.isRequired(r,"protocol"),this.protocol=r,this},c.prototype.withAutomaticReconnect=function(r){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=r?Array.isArray(r)?new G(r):r:new G,this},c.prototype.build=function(){var r=this.httpConnectionOptions||{};if(void 0===r.logger&&(r.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var o=new I(this.url,r);return Fe.create(o,this.logger||L.instance,this.protocol||new Oe,this.reconnectPolicy)},c}(),y=a(2722),K=a(7579);class k{constructor(){this.menus=[{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products"},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory"},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price"},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/Order"},{Icon:"fas fa-clipboard-list",Title:"Report",Url:"/menu/report"},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic"},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel"},{Icon:"fas fa-file-alt",Title:"Logs",Url:"/menu/log"},{Icon:"fas fa-bell",Title:"Notification",Url:"/menu/Notification"}]}get getMenu(){return this.menus}}var p=a(4650),b=a(8002),A=a(7185),z=a(9568),me=a(1589),Ie=a(266);function Ke(c,r){if(1&c&&(p.TgZ(0,"li",17)(1,"a",18),p._UZ(2,"i"),p.TgZ(3,"p"),p._uU(4),p.qZA()()()),2&c){const o=r.$implicit,d=p.oxw();p.xp6(1),p.Q6J("matTooltip",d.isCollapseSidebar?o.Title:"")("routerLink",o.Url),p.xp6(1),p.Tol(o.Icon),p.xp6(2),p.Oqu(o.Title)}}function re(c,r){if(1&c){const o=p.EpF();p.TgZ(0,"div",19)(1,"span"),p._uU(2),p.TgZ(3,"a",20),p._uU(4,"this Article"),p.qZA(),p._uU(5," to renew your ShopID! "),p.qZA(),p.TgZ(6,"a",21),p.NdJ("click",function(){p.CHM(o);const g=p.oxw();return p.KtG(g.CloseWarning())}),p._UZ(7,"i",22),p.qZA()()}if(2&c){const o=p.oxw();p.xp6(2),p.AsE(" Your Shopee Channel ShopID ",o.ShopID," is expired in (",o.Difference_In_Days,") days, please refer to ")}}const w=[{path:"",component:(()=>{class c{constructor(o,d,g,h,H){this._router=o,this.tokendecode=d,this.toastr=g,this.LocalData=h,this.toggleSidebarService=H,this.Menu={},this.connection=!1,this.Difference_In_Days=0,this.IsExpired=!1,this.destroy$=new K.x,this.isCollapseSidebar=!1,this.initIntercom(),this.token=this.tokendecode.GetNamePOS(),this.storeName=this.token.StoreName,this.Menu=(new k).getMenu,this.CheckExpired()}ngOnInit(){this.startConnection(),this.subscribeToSidebarChange()}initIntercom(){var o=localStorage.getItem("Intercom"),d=JSON.parse(o);null==d?window.Intercom("boot",{app_id:"xv1oomgl"}):window.Intercom("boot",{app_id:"xv1oomgl",name:d.Name,email:d.Email,created_at:d.Created,user_hash:d.Hash})}subscribeToSidebarChange(){this.toggleSidebarService.toggleState$.pipe((0,y.R)(this.destroy$)).subscribe(o=>{this.isNavOpen=o})}CloseWarning(){localStorage.removeItem("channel"),this.IsExpired=!1}CheckExpired(){let o=JSON.parse(window.localStorage.getItem("user"));if(o)if(null!=o.expiredAt)this.LogOut();else{let g=o.Channel;if(g.length>0)for(let h of g)if(null!=h.ExpiredTime&&0==h.TypeID){let H=new Date(h.ExpiredTime),ee=new Date;var d=H.getTime()-ee.getTime();this.Difference_In_Days=Math.round(d/864e5),this.Difference_In_Days<=10&&(this.IsExpired=!0,this.ShopID=h.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.clearDatabase(),this._router.navigate([""])}startConnection(){this.hubConnection=(new Ge).withUrl("/MarketplaceHub").withAutomaticReconnect([0,1e4,1e4,1e4,1e4,null]).configureLogging(C.Information).build(),this.hubConnection.start().then(()=>{this.connection=!0,this.connectToRegister()}).catch(o=>console.log("Error while starting connection: "+o)),this.hubConnection.onclose(()=>{this.startConnection(),this.connection=!1}),this.hubConnection.on("Notification",o=>{let d=JSON.parse(o);d.ID==this.token.POSAccountID&&(200!=d.StatusCode?this.toastr.error(d.Message,d.Title,{enableHtml:!0}):this.toastr.success(d.Message,d.Title,{enableHtml:!0}))})}connectToRegister(){this.hubConnection.invoke("SubscribeGroup",this.token.POSAccountID)}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(o){if(o){let d;const g=o.split(" ");return d=1==g.length?g[0].substring(0,2):g.shift().charAt(0)+g.pop().charAt(0),d}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return c.\u0275fac=function(o){return new(o||c)(p.Y36(s.F0),p.Y36(b.e),p.Y36(A._W),p.Y36(z.T),p.Y36(me.g))},c.\u0275cmp=p.Xpm({type:c,selectors:[["app-menu"]],decls:23,vars:9,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[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","cursor-pointer",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"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["routerLinkActive","active"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","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(o,d){1&o&&(p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return d.onCallapseSidebar()}),p._UZ(3,"i",3),p.qZA(),p.TgZ(4,"div",4)(5,"div",5)(6,"a",6),p._uU(7),p.qZA(),p.TgZ(8,"div",7)(9,"div",8),p._uU(10),p.qZA(),p._UZ(11,"div",9),p.TgZ(12,"a",10),p.NdJ("click",function(){return d.LogOut()}),p._UZ(13,"i",11),p._uU(14,"\xa0 "),p.TgZ(15,"span"),p._uU(16," Log Out"),p.qZA()()()()(),p.TgZ(17,"div",12)(18,"ul",13),p.YNc(19,Ke,5,5,"li",14),p.qZA()()(),p.TgZ(20,"div",15),p.YNc(21,re,8,2,"div",16),p._UZ(22,"router-outlet"),p.qZA()()),2&o&&(p.ekj("nav-open",d.isNavOpen),p.xp6(1),p.Q6J("ngClass",d.isCollapseSidebar?"collapses":""),p.xp6(2),p.Q6J("ngClass",d.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),p.xp6(3),p.s9C("title",d.token.StoreName),p.xp6(1),p.hij(" ",d.storeName," "),p.xp6(3),p.hij("",d.token.UserName," "),p.xp6(9),p.Q6J("ngForOf",d.Menu),p.xp6(2),p.Q6J("ngIf",d.IsExpired))},dependencies:[n.mk,n.sg,n.O5,s.lC,s.yS,s.Od,Ie.gM],styles:[".top-initial[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:initial!important}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}}"]}),c})(),children:[{path:"",redirectTo:"products",pathMatch:"full"},{path:"products",loadChildren:()=>Promise.all([a.e(796),a.e(516),a.e(739),a.e(592),a.e(983)]).then(a.bind(a,1983)).then(c=>c.ProductModule),canActivate:[t.a],data:{title:"Products"}},{path:"inventory",loadChildren:()=>Promise.all([a.e(796),a.e(516),a.e(61),a.e(171),a.e(162)]).then(a.bind(a,9162)).then(c=>c.InventoryModule),canActivate:[t.a],data:{title:"Inventory"}},{path:"price",loadChildren:()=>Promise.all([a.e(796),a.e(516),a.e(61),a.e(171),a.e(592),a.e(874)]).then(a.bind(a,1874)).then(c=>c.PriceModule),canActivate:[t.a],data:{title:"Price"}},{path:"Order",loadChildren:()=>Promise.all([a.e(796),a.e(616),a.e(739),a.e(592),a.e(716)]).then(a.bind(a,1716)).then(c=>c.OrdersModule),canActivate:[t.a],data:{title:"Order"}},{path:"report",loadChildren:()=>Promise.all([a.e(616),a.e(585),a.e(360)]).then(a.bind(a,4360)).then(c=>c.ReportModule),canActivate:[t.a],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>a.e(512).then(a.bind(a,5512)).then(c=>c.LogisticModule),canActivate:[t.a],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>Promise.all([a.e(796),a.e(61),a.e(463)]).then(a.bind(a,6463)).then(c=>c.ChannelsModule),canActivate:[t.a],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>Promise.all([a.e(796),a.e(616),a.e(739),a.e(585),a.e(832)]).then(a.bind(a,1832)).then(c=>c.LogsModule),canActivate:[t.a],data:{title:"Orders"}},{path:"Notification",loadChildren:()=>Promise.all([a.e(796),a.e(592),a.e(717)]).then(a.bind(a,6717)).then(c=>c.NotificationModule),canActivate:[t.a],data:{title:"Push Notification"}}]}];let ae=(()=>{class c{}return c.\u0275fac=function(o){return new(o||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({imports:[s.Bz.forChild(w),s.Bz]}),c})();var Pe=a(7481),Re=a(4006),Ze=a(5412),et=a(1948),nt=a(4144),Je=a(9549),rt=a(4385),lt=a(5960),ct=a(6709),dt=a(6401);let ht=(()=>{class c{}return c.\u0275fac=function(o){return new(o||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({imports:[n.ez,Re.u5,Ze.Is,et.Fk,nt.c,Je.lN,rt.LD,ct.p9,Ie.AV,lt.n,dt.d]}),c})(),ut=(()=>{class c{}return c.\u0275fac=function(o){return new(o||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({providers:[n.uU],imports:[n.ez,ae,Pe.R,Ie.AV,ht]}),c})()},3154:(Ue,be,a)=>{a.d(be,{g:()=>t});var n=(()=>{return(M=n||(n={})).SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",M.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",M.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",M.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",M.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",n;var M})(),s=a(9694);let t=(()=>{class M{static IsNotEmpty(E){return""!=E&&E!=M.GuidEMpty&&null!=E&&null!=E}static IsEmpty(E){return""==E||null==E||null==E||E==M.GuidEMpty}static getChannelLogoByTypeId(E){let de;switch(E){case s.x.Tokopedia:de=n.TOKOPEDIA;break;case s.x.ShopeeV2:de=n.SHOOPE;break;case s.x.WooCommerce:de=n.WOOCOMMERCE;break;case s.x.Lazada:de=n.LAZADA;break;case s.x.Tiktok:de=n.TIKTOK}return de}static getDaysDiff(E,de){return(de.getTime()-E.getTime())/864e5}static addDays(E,de){const oe=new Date(Number(E));return oe.setDate(E.getDate()-de),oe}static isValidDate(E){return E instanceof Date&&!isNaN(E)}static getImageInfo(E){return new Promise((de,oe)=>{let j=new Image;j.src=E,j.decode().then(()=>{de({img:E,height:j.height,width:j.width})}).catch(()=>{oe(new Error(`Image load error for ${E}`))})})}static formatTitleForFromDate(E,de){let oe="dd MMM";return E.getMonth()==de.getMonth()&&(oe="dd"),E.getFullYear()!=de.getFullYear()&&(oe="dd MMM yyyy"),oe}}return M.GuidEMpty="00000000-0000-0000-0000-000000000000",M})()},9694:(Ue,be,a)=>{a.d(be,{x:()=>n});var n=(()=>{return(s=n||(n={}))[s.Shopee=0]="Shopee",s[s.Tokopedia=1]="Tokopedia",s[s.WooCommerce=2]="WooCommerce",s[s.None=3]="None",s[s.KalCare=4]="KalCare",s[s.ShopeeV2=5]="ShopeeV2",s[s.Tiktok=6]="Tiktok",s[s.Lazada=7]="Lazada",n;var s})()},8063:(Ue,be,a)=>{a.d(be,{a:()=>t});var n=a(4650),s=a(8252);let t=(()=>{class M{constructor(E){this.router=E}canActivate(E,de){let oe=JSON.parse(window.localStorage.getItem("user")),j=new Date;return null!=oe&&j<new Date(oe.Token.expiredAt)||(this.router.navigate([""]),!1)}}return M.\u0275fac=function(E){return new(E||M)(n.LFG(s.F0))},M.\u0275prov=n.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},9568:(Ue,be,a)=>{a.d(be,{T:()=>E});var n=a(4004),s=a(3154),t=a(9694),M=a(4650),se=a(5421);let E=(()=>{class de{constructor(j){this.db=j,this.DATABASE="Categories"}saveCategoriesByChannelType(j,P){let C=this.getKey(P);return this.db.add(this.DATABASE,j,C).pipe((0,n.U)(L=>j))}getCategoriesByChannelType(j){let P=this.getKey(j);return this.db.getByKey(this.DATABASE,P)}getKey(j){let P="";switch(j){case t.x.Lazada:P="Lazada";break;case t.x.Tokopedia:P="Tokopedia"}return P}clearDatabase(){this.db.clear(this.DATABASE)}getHostName(){if(s.g.IsEmpty(this.hostName)){const j=localStorage.getItem("Authorization");this.hostName=JSON.parse(j)?.Host}return this.hostName}}return de.\u0275fac=function(j){return new(j||de)(M.LFG(se.ys))},de.\u0275prov=M.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})()},1589:(Ue,be,a)=>{a.d(be,{g:()=>t});var n=a(1135),s=a(4650);let t=(()=>{class M{constructor(){this._toggleState=new n.X(!1),this.toggleState$=this._toggleState.asObservable()}toggleSidebar(){this._toggleState.next(!this._toggleState.value)}}return M.\u0275fac=function(E){return new(E||M)},M.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},494:(Ue,be,a)=>{a.d(be,{n:()=>n});var n=(()=>{return(s=n||(n={})).Success="Success",s.Info="Info",s.Warning="Warning",s.Error="Error",n;var s})()},6779:(Ue,be,a)=>{a.d(be,{O:()=>s});var n=a(494);class s{constructor(){this.title="New Modal",this.titleExtra="",this.okText="OK",this.cancelText="CANCEL",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=n.n.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}}},6401:(Ue,be,a)=>{a.d(be,{M:()=>J,d:()=>_e});var n=a(4650),s=a(6895),t=a(6779),M=a(494);function se(ce,ve){if(1&ce){const X=n.EpF();n.TgZ(0,"div",9),n.NdJ("click",function(){n.CHM(X);const m=n.oxw();return n.KtG(m.onBack.emit())}),n.TgZ(1,"a",10),n._UZ(2,"i",11),n.qZA()()}}function E(ce,ve){if(1&ce){const X=n.EpF();n.TgZ(0,"div",12)(1,"a",13),n.NdJ("click",function(){n.CHM(X);const m=n.oxw();return n.KtG(m.onCancel.emit())}),n._UZ(2,"i",14),n.qZA()()}}function de(ce,ve){1&ce&&n.Hsn(0,2,["*ngIf","more"])}function oe(ce,ve){if(1&ce){const X=n.EpF();n.TgZ(0,"a",19),n.NdJ("click",function(){n.CHM(X);const m=n.oxw(2);return n.KtG(m.more=!m.more)}),n._uU(1,"More"),n.qZA()}}function j(ce,ve){if(1&ce){const X=n.EpF();n.TgZ(0,"a",20),n.NdJ("click",function(){n.CHM(X);const m=n.oxw(2);return n.KtG(m.onCancel.emit())}),n._uU(1),n.qZA()}if(2&ce){const X=n.oxw(2);n.xp6(1),n.hij(" ",X.config.cancelText?X.config.cancelText:"CANCEL","")}}function P(ce,ve){if(1&ce){const X=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(X);const m=n.oxw(2);return n.KtG(m.onOk.emit())})("keyup.F2",function(){n.CHM(X);const m=n.oxw(2);return n.KtG(m.onOk.emit())}),n.qZA()}if(2&ce){const X=n.oxw(2);n.Q6J("disabled",!X.config.validated||!X.dynamicValidated)("innerHTML",X.config.okText?X.config.okText:"OK",n.oJD)}}function C(ce,ve){if(1&ce&&(n.TgZ(0,"mat-dialog-actions",15),n.YNc(1,oe,2,0,"a",16),n.Hsn(2,3),n.YNc(3,j,2,1,"a",17),n.YNc(4,P,1,2,"button",18),n.qZA()),2&ce){const X=n.oxw();n.xp6(1),n.Q6J("ngIf",X.config.showMoreButton),n.xp6(2),n.Q6J("ngIf",!X.config.hideCancel),n.xp6(1),n.Q6J("ngIf",!X.config.hideOk)}}const L=[[["","header",""]],[["","content",""]],[["","more-content",""]],[["","footer",""]]],R=function(ce,ve){return{bodyScrollable:ce,hideScrollbar:ve}},N=function(ce){return{"mx-auto":ce}},U=function(ce,ve){return{"show-footer":ce,"p-0":ve}},Z=["[header]","[content]","[more-content]","[footer]"];let J=(()=>{class ce{constructor(){this.dynamicValidated=!0,this.onOk=new n.vpe,this.onCancel=new n.vpe,this.onClose=new n.vpe,this.onBack=new n.vpe,this.term="",this.more=!1}ngOnInit(){switch(null==this.config&&(this.config=new t.O),this.config.headerType){case M.n.Success:this.background="bg-success";break;case M.n.Warning:case M.n.Info:this.background="bg-warning";break;case M.n.Error:this.background="bg-danger";break;default:this.background=""}}onKeyup(X){this.config.disableKeyup||("F2"==X.code&&this.onOk.emit("F2"),("Enter"==X.code||"NumpadEnter"==X.code)&&this.onOk.emit("Enter"))}}return ce.\u0275fac=function(X){return new(X||ce)},ce.\u0275cmp=n.Xpm({type:ce,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:Z,decls:12,vars:21,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"ngClass","keyup"],["mat-dialog-title",""],["class","back-button position-absolute pointer d-print-none",3,"click",4,"ngIf"],[1,"d-flex","flex-row","d-print-none",3,"ngClass"],[1,"fw-normal"],["class","ps-3",4,"ngIf"],[1,"modal-body","w-100","pb-3",3,"ngClass"],[4,"ngIf"],["class","w-100 py-7 border-top d-flex justify-content-end d-print-none",4,"ngIf"],[1,"back-button","position-absolute","pointer","d-print-none",3,"click"],[1,"btn","back-button"],[1,"fa-solid","fa-arrow-left"],[1,"ps-3"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fas","fa-times","fa-md","text-primary"],[1,"w-100","py-7","border-top","d-flex","justify-content-end","d-print-none"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3",3,"click",4,"ngIf"],["style","width: 70px;","class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3","data-cy","ConfirmOk",3,"disabled","innerHTML","click","keyup.F2",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",2,"width","70px",3,"disabled","innerHTML","click","keyup.F2"]],template:function(X,$){1&X&&(n.F$t(L),n.TgZ(0,"div",0),n.NdJ("keyup",function(x){return $.onKeyup(x)}),n.TgZ(1,"div",1),n.YNc(2,se,3,0,"div",2),n.TgZ(3,"div",3)(4,"h4",4),n._uU(5),n.qZA(),n.Hsn(6),n.qZA(),n.YNc(7,E,3,0,"div",5),n.qZA(),n.TgZ(8,"mat-dialog-content",6),n.Hsn(9,1),n.YNc(10,de,1,0,"ng-content",7),n.qZA(),n.YNc(11,C,5,3,"mat-dialog-actions",8),n.qZA()),2&X&&(n.Udp("width",$.config.customWidth),n.Q6J("ngClass",n.WLB(13,R,$.config.bodyScrollable,$.config.hideScrollbar)),n.xp6(1),n.Gre("d-flex w-100 justify-content-between modal-header position-relative ",$.background,""),n.xp6(1),n.Q6J("ngIf",$.config.eMoney),n.xp6(1),n.Q6J("ngClass",n.VKq(16,N,$.config.eMoney)),n.xp6(2),n.Oqu($.config.title),n.xp6(2),n.Q6J("ngIf",!$.config.hideClose),n.xp6(1),n.Q6J("ngClass",n.WLB(18,U,!$.config.hideFooter,$.config.noPadding)),n.xp6(2),n.Q6J("ngIf",$.more),n.xp6(1),n.Q6J("ngIf",!$.config.hideFooter))},dependencies:[s.mk,s.O5],styles:[".mat-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:100%!important}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px!important;overflow-y:auto}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0px}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border:1px solid #c8d3df;padding:5px 7px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]}),ce})(),_e=(()=>{class ce{}return ce.\u0275fac=function(X){return new(X||ce)},ce.\u0275mod=n.oAB({type:ce}),ce.\u0275inj=n.cJS({imports:[s.ez]}),ce})()},5960:(Ue,be,a)=>{a.d(be,{h:()=>Ie,n:()=>Ke});var n=a(6895),s=a(4650),t=a(4006),M=a(9549),se=a(4385),E=a(2722),de=a(8372),oe=a(8505),j=a(7579),P=a(4968);let L=(()=>{class re{constructor(w,ae){this.matSelect=w,this.ngZone=ae,this.threshold="15%",this.debounceTime=150,this.infiniteScroll=new s.vpe,this.thrPx=0,this.thrPc=0,this.singleOptionHeight=3,this.destroyed$=new j.x}ngOnInit(){this.evaluateThreshold()}ngAfterViewInit(){this.matSelect.openedChange.pipe((0,E.R)(this.destroyed$)).subscribe(w=>{w&&(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,P.R)(this.panel,"scroll").pipe((0,E.R)(this.destroyed$),(0,de.b)(this.debounceTime),(0,oe.b)(w=>{this.handleScrollEvent(w)})).subscribe()}handleScrollEvent(w){this.ngZone.runOutsideAngular(()=>{if(this.complete)return;const Pe=this.singleOptionHeight*this.matSelect.options.length;this.panel.clientHeight+w.target.scrollTop+(0!==this.thrPc?Pe*this.thrPc:this.thrPx)>=Pe&&this.ngZone.run(()=>this.infiniteScroll.emit())})}getSelectItemHeightPx(){return 3*parseFloat(getComputedStyle(this.panel).fontSize)}}return re.\u0275fac=function(w){return new(w||re)(s.Y36(se.gD),s.Y36(s.R0b))},re.\u0275dir=s.lG2({type:re,selectors:[["","msInfiniteScroll",""]],inputs:{threshold:"threshold",debounceTime:"debounceTime",complete:"complete"},outputs:{infiniteScroll:"infiniteScroll"}}),re})(),R=(()=>{class re{}return re.\u0275fac=function(w){return new(w||re)},re.\u0275mod=s.oAB({type:re}),re.\u0275inj=s.cJS({imports:[se.LD]}),re})();var N=a(9521),U=a(3238),Z=a(1135),J=a(9646),_e=a(9841),ce=a(3900),ve=a(4004),X=a(8675),$=a(4986),m=a(7272),x=a(5698),v=a(4482),D=a(5403),he=a(5032),Ee=a(9718),Te=a(5577);function De(re,ge){return ge?w=>(0,m.z)(ge.pipe((0,x.q)(1),function ke(){return(0,v.e)((re,ge)=>{re.subscribe((0,D.x)(ge,he.Z))})}()),w.pipe(De(re))):(0,Te.z)((w,ae)=>re(w,ae).pipe((0,x.q)(1),(0,Ee.h)(w)))}var Me=a(2805),W=a(9300),Y=a(7376),pe=a(2687),B=a(6709),Q=a(1281),le=a(3353),Se=a(727);function ie(re,ge){if(1&re&&(s.O4$(),s._UZ(0,"circle",4)),2&re){const w=s.oxw(),ae=s.MAs(1);s.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+w._spinnerAnimationLabel)("stroke-dashoffset",w._getStrokeDashOffset(),"px")("stroke-dasharray",w._getStrokeCircumference(),"px")("stroke-width",w._getCircleStrokeWidth(),"%")("transform-origin",w._getCircleTransformOrigin(ae)),s.uIk("r",w._getCircleRadius())}}function Fe(re,ge){if(1&re&&(s.O4$(),s._UZ(0,"circle",4)),2&re){const w=s.oxw(),ae=s.MAs(1);s.Udp("stroke-dashoffset",w._getStrokeDashOffset(),"px")("stroke-dasharray",w._getStrokeCircumference(),"px")("stroke-width",w._getCircleStrokeWidth(),"%")("transform-origin",w._getCircleTransformOrigin(ae)),s.uIk("r",w._getCircleRadius())}}const ne=(0,U.pj)(class{constructor(re){this._elementRef=re}},"primary"),ue=new s.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function xe(){return{diameter:100}}});class Ve extends ne{constructor(ge,w,ae,Pe,Re,Ze,et,nt){super(ge),this._document=ae,this._diameter=100,this._value=0,this._resizeSubscription=Se.w0.EMPTY,this.mode="determinate";const Je=Ve._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Je.has(ae.head)||Je.set(ae.head,new Set([100])),this._noopAnimations="NoopAnimations"===Pe&&!!Re&&!Re._forceAnimations,"mat-spinner"===ge.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Re&&(Re.color&&(this.color=this.defaultColor=Re.color),Re.diameter&&(this.diameter=Re.diameter),Re.strokeWidth&&(this.strokeWidth=Re.strokeWidth)),w.isBrowser&&w.SAFARI&&et&&Ze&&nt&&(this._resizeSubscription=et.change(150).subscribe(()=>{"indeterminate"===this.mode&&nt.run(()=>Ze.markForCheck())}))}get diameter(){return this._diameter}set diameter(ge){this._diameter=(0,Q.su)(ge),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ge){this._strokeWidth=(0,Q.su)(ge)}get value(){return"determinate"===this.mode?this._value:0}set value(ge){this._value=Math.max(0,Math.min(100,(0,Q.su)(ge)))}ngOnInit(){const ge=this._elementRef.nativeElement;this._styleRoot=(0,le.kV)(ge)||this._document.head,this._attachStyleNode(),ge.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ge=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ge} ${ge}`}_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(ge){const w=50*(ge.currentScale??1);return`${w}% ${w}%`}_attachStyleNode(){const ge=this._styleRoot,w=this._diameter,ae=Ve._diameters;let Pe=ae.get(ge);if(!Pe||!Pe.has(w)){const Re=this._document.createElement("style");Re.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Re.textContent=this._getAnimationText(),ge.appendChild(Re),Pe||(Pe=new Set,ae.set(ge,Pe)),Pe.add(w)}}_getAnimationText(){const ge=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*ge).replace(/END_VALUE/g,""+.2*ge).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ve._diameters=new WeakMap,Ve.\u0275fac=function(ge){return new(ge||Ve)(s.Y36(s.SBq),s.Y36(le.t4),s.Y36(n.K0,8),s.Y36(s.QbO,8),s.Y36(ue),s.Y36(s.sBO),s.Y36(Y.rL),s.Y36(s.R0b))},Ve.\u0275cmp=s.Xpm({type:Ve,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(ge,w){2&ge&&(s.uIk("aria-valuemin","determinate"===w.mode?0:null)("aria-valuemax","determinate"===w.mode?100:null)("aria-valuenow","determinate"===w.mode?w.value:null)("mode",w.mode),s.Udp("width",w.diameter,"px")("height",w.diameter,"px"),s.ekj("_mat-animation-noopable",w._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[s.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(ge,w){1&ge&&(s.O4$(),s.TgZ(0,"svg",0,1),s.YNc(2,ie,1,11,"circle",2),s.YNc(3,Fe,1,9,"circle",3),s.qZA()),2&ge&&(s.Udp("width",w.diameter,"px")("height",w.diameter,"px"),s.Q6J("ngSwitch","indeterminate"===w.mode),s.uIk("viewBox",w._getViewBox()),s.xp6(2),s.Q6J("ngSwitchCase",!0),s.xp6(1),s.Q6J("ngSwitchCase",!1))},dependencies:[n.RF,n.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 je=(()=>{class re{}return re.\u0275fac=function(w){return new(w||re)},re.\u0275mod=s.oAB({type:re}),re.\u0275inj=s.cJS({imports:[U.BQ,n.ez,U.BQ]}),re})();var Xe=a(4859),Qe=a(7392),qe=a(266);const Ae=["searchSelectInput"],O=["innerSelectSearch"];function u(re,ge){if(1&re){const w=s.EpF();s.TgZ(0,"mat-checkbox",9),s.NdJ("change",function(Pe){s.CHM(w);const Re=s.oxw();return s.KtG(Re._emitSelectAllBooleanToParent(Pe.checked))}),s.qZA()}if(2&re){const w=s.oxw();s.Q6J("color",null==w.matFormField?null:w.matFormField.color)("checked",w.toggleAllCheckboxChecked)("indeterminate",w.toggleAllCheckboxIndeterminate)("matTooltip",w.toggleAllCheckboxTooltipMessage)("matTooltipPosition",w.toogleAllCheckboxTooltipPosition)}}function i(re,ge){1&re&&s._UZ(0,"mat-spinner",10)}function e(re,ge){1&re&&s.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function l(re,ge){if(1&re&&(s.TgZ(0,"mat-icon",14),s._uU(1),s.qZA()),2&re){const w=s.oxw(2);s.Q6J("svgIcon",w.closeSvgIcon),s.xp6(1),s.hij(" ",w.closeSvgIcon?null:w.closeIcon," ")}}function f(re,ge){if(1&re){const w=s.EpF();s.TgZ(0,"button",11),s.NdJ("click",function(){s.CHM(w);const Pe=s.oxw();return s.KtG(Pe._reset(!0))}),s.YNc(1,e,1,0,"ng-content",12),s.YNc(2,l,2,2,"ng-template",null,13,s.W1O),s.qZA()}if(2&re){const w=s.MAs(3),ae=s.oxw();s.xp6(1),s.Q6J("ngIf",ae.clearIcon)("ngIfElse",w)}}function S(re,ge){1&re&&s.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function I(re,ge){if(1&re&&s._uU(0),2&re){const w=s.oxw(2);s.Oqu(w.noEntriesFoundLabel)}}function te(re,ge){if(1&re&&(s.TgZ(0,"div",15),s.YNc(1,S,1,0,"ng-content",12),s.YNc(2,I,1,1,"ng-template",null,16,s.W1O),s.qZA()),2&re){const w=s.MAs(3),ae=s.oxw();s.xp6(1),s.Q6J("ngIf",ae.noEntriesFound)("ngIfElse",w)}}const Ce=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],we=function(re,ge){return{"mat-select-search-inner-multiple":re,"mat-select-search-inner-toggle-all":ge}},Be=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let Oe=(()=>{class re{}return re.\u0275fac=function(w){return new(w||re)},re.\u0275dir=s.lG2({type:re,selectors:[["","ngxMatSelectSearchClear",""]]}),re})();const Ne=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],Ye=new s.OlP("mat-selectsearch-default-options");let V=(()=>{class re{}return re.\u0275fac=function(w){return new(w||re)},re.\u0275dir=s.lG2({type:re,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),re})(),y=(()=>{class re{constructor(w,ae,Pe,Re=null,Ze,et=null,nt){this.matSelect=w,this.changeDetectorRef=ae,this._viewportRuler=Pe,this.matOption=Re,this.liveAnnouncer=Ze,this.matFormField=et,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 s.vpe,this.onTouched=Je=>{},this._options$=new Z.X(null),this.optionsList$=this._options$.pipe((0,ce.w)(Je=>Je?Je.changes.pipe((0,ve.U)(rt=>rt.toArray()),(0,X.O)(Je.toArray())):(0,J.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,ve.U)(Je=>Je?Je.length:0)),this._formControl=new t.NI(""),this._showNoEntriesFound$=(0,_e.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,ve.U)(([Je,rt])=>this.noEntriesFoundLabel&&Je&&rt===this.getOptionsLengthOffset())),this._onDestroy=new j.x,this.applyDefaultOptions(nt)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(w){this._options$.next(w)}get _options(){return this._options$.getValue()}applyDefaultOptions(w){if(w)for(const ae of Ne)w.hasOwnProperty(ae)&&(this[ae]=w[ae])}ngOnInit(){const w="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(w):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,w]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[w]=!0):this.matSelect.panelClass=w,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 ye(re,ge=$.z){const w=(0,Me.H)(re,ge);return De(()=>w)}(1),(0,E.R)(this._onDestroy)).subscribe(ae=>{ae?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,x.q)(1)).pipe((0,E.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,E.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let ae=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,E.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Pe=this._options.toArray(),Re=Pe[this.getOptionsLengthOffset()],Ze=this.matSelect._keyManager;Ze&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(ae,Re)||!Ze.activeItem||!Pe.find(nt=>this.matSelect.compareWith(nt,Ze.activeItem)))&&Ze.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),ae=Re})})}),this._showNoEntriesFound$.pipe((0,E.R)(this._onDestroy)).subscribe(ae=>{this.matOption&&(ae?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,E.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,E.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(w){this.toggleAll.emit(w)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(w){(w.key&&1===w.key.length||w.keyCode>=N.A&&w.keyCode<=N.Z||w.keyCode>=N.xE&&w.keyCode<=N.aO||w.keyCode===N.L_||this.preventHomeEndKeyPropagation&&(w.keyCode===N.Sd||w.keyCode===N.uR))&&w.stopPropagation(),this.matSelect.multiple&&w.key&&w.keyCode===N.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&w.keyCode===N.hY&&this.value&&(this._reset(!0),w.stopPropagation())}_handleKeyup(w){if(w.keyCode===N.LH||w.keyCode===N.JH){const ae=this.matSelect._getAriaActiveDescendant(),Pe=this._options.toArray().findIndex(Re=>Re.id===ae);if(-1!==Pe){const Re=this._options.toArray()[Pe];this.liveAnnouncer.announce(Re.viewValue+" "+this.getAriaIndex(Pe)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(w){return 0===this.getOptionsLengthOffset()?w+1:w}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(w){this._lastExternalInputValue=w,this._formControl.setValue(w),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(w){this._formControl.valueChanges.pipe((0,W.h)(ae=>ae!==this._lastExternalInputValue),(0,oe.b)(()=>this._lastExternalInputValue=void 0),(0,E.R)(this._onDestroy)).subscribe(w)}registerOnTouched(w){this.onTouched=w}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const w=this.matSelect.panel.nativeElement,ae=w.scrollTop;this.searchSelectInput.nativeElement.focus(),w.scrollTop=ae}_reset(w){this._formControl.setValue(""),w&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,E.R)(this._onDestroy)).subscribe(w=>{let ae=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!w||!Array.isArray(w))&&(w=[]);const Pe=this.matSelect.options.map(Re=>Re.value);this.previousSelectedValues.forEach(Re=>{!w.some(Ze=>this.matSelect.compareWith(Ze,Re))&&!Pe.some(Ze=>this.matSelect.compareWith(Ze,Re))&&(w.push(Re),ae=!0)})}this.previousSelectedValues=w,ae&&this.matSelect._onChange(w)})):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 w=this.getMatOptionHeight(),ae=this.matSelect._keyManager.activeItemIndex||0,Pe=(0,U.CB)(ae,this.matSelect.options,this.matSelect.optionGroups),Re=(this.matOption?-1:0)+Pe+ae,Ze=this.matSelect.panel.nativeElement.scrollTop,et=this.innerSelectSearch.nativeElement.offsetHeight,nt=Math.floor((256-et)/w),Je=Math.round((Ze+et)/w)-1;Je>=Re?this.matSelect.panel.nativeElement.scrollTop=Re*w:Je+nt<=Re&&(this.matSelect.panel.nativeElement.scrollTop=(Re+1)*w-(256-et))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let ae,w=this.innerSelectSearch.nativeElement;for(;w=w.parentElement;)if(w.classList.contains("mat-select-panel")){ae=w;break}ae&&(this.innerSelectSearch.nativeElement.style.width=ae.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return re.\u0275fac=function(w){return new(w||re)(s.Y36(se.gD),s.Y36(s.sBO),s.Y36(Y.rL),s.Y36(U.ey,8),s.Y36(pe.Kd),s.Y36(M.KE,8),s.Y36(Ye,8))},re.\u0275cmp=s.Xpm({type:re,selectors:[["ngx-mat-select-search"]],contentQueries:function(w,ae,Pe){if(1&w&&(s.Suo(Pe,Oe,5),s.Suo(Pe,V,5)),2&w){let Re;s.iGM(Re=s.CRH())&&(ae.clearIcon=Re.first),s.iGM(Re=s.CRH())&&(ae.noEntriesFound=Re.first)}},viewQuery:function(w,ae){if(1&w&&(s.Gf(Ae,7,s.SBq),s.Gf(O,7,s.SBq)),2&w){let Pe;s.iGM(Pe=s.CRH())&&(ae.searchSelectInput=Pe.first),s.iGM(Pe=s.CRH())&&(ae.innerSelectSearch=Pe.first)}},hostVars:2,hostBindings:function(w,ae){2&w&&s.ekj("mat-select-search-inside-mat-option",ae.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:[s._Bn([{provide:t.JU,useExisting:(0,s.Gpc)(()=>re),multi:!0}])],ngContentSelectors:Be,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(w,ae){1&w&&(s.F$t(Ce),s._UZ(0,"input",0),s.TgZ(1,"div",1,2),s.YNc(3,u,1,5,"mat-checkbox",3),s.TgZ(4,"input",4,5),s.NdJ("keydown",function(Re){return ae._handleKeydown(Re)})("keyup",function(Re){return ae._handleKeyup(Re)})("blur",function(){return ae.onBlur()}),s.qZA(),s.YNc(6,i,1,0,"mat-spinner",6),s.YNc(7,f,4,2,"button",7),s.Hsn(8),s.qZA(),s.YNc(9,te,4,2,"div",8),s.ALo(10,"async")),2&w&&(s.xp6(1),s.Q6J("ngClass",s.WLB(11,we,ae.matSelect.multiple,ae._isToggleAllCheckboxVisible())),s.xp6(2),s.Q6J("ngIf",ae._isToggleAllCheckboxVisible()),s.xp6(1),s.Q6J("type",ae.type)("formControl",ae._formControl)("placeholder",ae.placeholderLabel),s.uIk("aria-label",ae.ariaLabel),s.xp6(2),s.Q6J("ngIf",ae.searching),s.xp6(1),s.Q6J("ngIf",!ae.hideClearSearchButton&&ae.value&&!ae.searching),s.xp6(2),s.Q6J("ngIf",s.lcZ(10,9,ae._showNoEntriesFound$)))},dependencies:[B.oG,Ve,Xe.lW,Qe.Hw,n.mk,n.O5,qe.gM,t.Fj,t.JJ,t.oH,n.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}),re})(),k=(()=>{class re{}return re.\u0275fac=function(w){return new(w||re)},re.\u0275mod=s.oAB({type:re}),re.\u0275inj=s.cJS({imports:[[n.ez,t.UX,Xe.ot,B.p9,Qe.Ps,je,qe.AV]]}),re})();var p=a(6451),b=a(5026);const A=["matSelectInfiniteScroll"];function z(re,ge){if(1&re&&(s.ynx(0),s._UZ(1,"img",7),s.BQk()),2&re){const w=s.oxw().$implicit;s.xp6(1),s.Q6J("src",w.Img,s.LSH)}}function me(re,ge){if(1&re&&(s.TgZ(0,"mat-option",5),s.YNc(1,z,2,1,"ng-container",6),s._uU(2),s.qZA()),2&re){const w=ge.$implicit,ae=s.oxw();s.Q6J("value",w[ae.bindValue]),s.xp6(1),s.Q6J("ngIf",null==w?null:w.Img),s.xp6(1),s.hij(" ",w[ae.bindLabel]," ")}}let Ie=(()=>{class re{constructor(){this.disabled=!1,this.batchSize=50,this.optionCtrl=new t.p4,this.searchCtrl=new t.p4,this.filteredData$=this.searchCtrl.valueChanges.pipe((0,X.O)(""),(0,ve.U)(w=>w?this.data.filter(ae=>ae[this.bindLabel].toLowerCase().indexOf(w.toLowerCase())>-1):this.data)),this.incrementBatchOffset$=new j.x,this.resetBatchOffset$=new j.x,this.minimumBatchOffset$=(0,_e.a)([this.filteredData$,this.searchCtrl.valueChanges]).pipe((0,ve.U)(([w,ae])=>!this.searchCtrl.value&&this.optionCtrl.value?w.findIndex(Re=>Re[this.bindValue]===this.optionCtrl.value)+this.batchSize:0),(0,X.O)(0)),this.batchOffset$=(0,_e.a)([(0,p.T)(this.incrementBatchOffset$.pipe((0,Ee.h)(!0)),this.resetBatchOffset$.pipe((0,Ee.h)(!1))),this.minimumBatchOffset$]).pipe((0,b.R)((w,[ae,Pe])=>ae?Math.max(w+this.batchSize,Pe+this.batchSize):Math.max(Pe,this.batchSize),this.batchSize)),this.filteredBatchedData$=(0,_e.a)([this.filteredData$,this.batchOffset$]).pipe((0,ve.U)(([w,ae])=>w.slice(0,ae))),this.destroy$=new j.x,this.data=[],this.onSelect=new s.vpe}ngOnInit(){this.infiniteScrollSelect.openedChange.pipe((0,E.R)(this.destroy$)).subscribe(w=>{w&&this.resetBatchOffset$.next()}),this.onSelectData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSelectData(){this.optionCtrl.valueChanges.subscribe(w=>{w&&this.onSelect.emit(w)})}getNextBatch(){this.incrementBatchOffset$.next()}}return re.\u0275fac=function(w){return new(w||re)},re.\u0275cmp=s.Xpm({type:re,selectors:[["app-select-search"]],viewQuery:function(w,ae){if(1&w&&s.Gf(A,7),2&w){let Pe;s.iGM(Pe=s.CRH())&&(ae.infiniteScrollSelect=Pe.first)}},inputs:{appearance:"appearance",data:"data",bindValue:"bindValue",bindLabel:"bindLabel",placeholder:"placeholder",disabled:"disabled",batchSize:"batchSize"},outputs:{onSelect:"onSelect"},decls:7,vars:9,consts:[[1,"select-search",3,"appearance"],["msInfiniteScroll","",3,"disabled","formControl","placeholder","infiniteScroll"],["matSelectInfiniteScroll",""],["placeholderLabel","search","noEntriesFoundLabel","No entry matches",3,"formControl","disableScrollToActiveOnOptionsChanged"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[4,"ngIf"],["alt","",2,"width","18px","margin-right","10px",3,"src"]],template:function(w,ae){1&w&&(s.TgZ(0,"mat-form-field",0)(1,"mat-select",1,2),s.NdJ("infiniteScroll",function(){return ae.getNextBatch()}),s.TgZ(3,"mat-option"),s._UZ(4,"ngx-mat-select-search",3),s.qZA(),s.YNc(5,me,3,3,"mat-option",4),s.ALo(6,"async"),s.qZA()()),2&w&&(s.Q6J("appearance",ae.appearance),s.xp6(1),s.Q6J("disabled",ae.disabled)("formControl",ae.optionCtrl)("placeholder",ae.placeholder),s.xp6(3),s.Q6J("formControl",ae.searchCtrl)("disableScrollToActiveOnOptionsChanged",!0),s.xp6(1),s.Q6J("ngForOf",s.lcZ(6,7,ae.filteredBatchedData$)))},dependencies:[n.sg,n.O5,t.JJ,t.oH,M.KE,se.gD,U.ey,y,L,n.Ov],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} mat-form-field.select-search>div.mat-form-field-wrapper{padding-bottom:0}"]}),re})(),Ke=(()=>{class re{}return re.\u0275fac=function(w){return new(w||re)},re.\u0275mod=s.oAB({type:re}),re.\u0275inj=s.cJS({imports:[n.ez,t.UX,se.LD,M.lN,k,R]}),re})()},4968:(Ue,be,a)=>{a.d(be,{R:()=>P});var n=a(8421),s=a(8306),t=a(5577),M=a(1144),se=a(576),E=a(3268);const de=["addListener","removeListener"],oe=["addEventListener","removeEventListener"],j=["on","off"];function P(U,Z,J,_e){if((0,se.m)(J)&&(_e=J,J=void 0),_e)return P(U,Z,J).pipe((0,E.Z)(_e));const[ce,ve]=function N(U){return(0,se.m)(U.addEventListener)&&(0,se.m)(U.removeEventListener)}(U)?oe.map(X=>$=>U[X](Z,$,J)):function L(U){return(0,se.m)(U.addListener)&&(0,se.m)(U.removeListener)}(U)?de.map(C(U,Z)):function R(U){return(0,se.m)(U.on)&&(0,se.m)(U.off)}(U)?j.map(C(U,Z)):[];if(!ce&&(0,M.z)(U))return(0,t.z)(X=>P(X,Z,J))((0,n.Xf)(U));if(!ce)throw new TypeError("Invalid event target");return new s.y(X=>{const $=(...m)=>X.next(1<m.length?m:m[0]);return ce($),()=>ve($)})}function C(U,Z){return J=>_e=>U[J](Z,_e)}},3601:(Ue,be,a)=>{a.d(be,{e:()=>de});var n=a(4986),s=a(4482),t=a(8421),M=a(5403),E=a(2805);function de(oe,j=n.z){return function se(oe){return(0,s.e)((j,P)=>{let C=!1,L=null,R=null,N=!1;const U=()=>{if(R?.unsubscribe(),R=null,C){C=!1;const J=L;L=null,P.next(J)}N&&P.complete()},Z=()=>{R=null,N&&P.complete()};j.subscribe((0,M.x)(P,J=>{C=!0,L=J,R||(0,t.Xf)(oe(J)).subscribe(R=(0,M.x)(P,U,Z))},()=>{N=!0,(!C||!R||R.closed)&&P.complete()}))})}(()=>(0,E.H)(oe,j))}},8372:(Ue,be,a)=>{a.d(be,{b:()=>M});var n=a(4986),s=a(4482),t=a(5403);function M(se,E=n.z){return(0,s.e)((de,oe)=>{let j=null,P=null,C=null;const L=()=>{if(j){j.unsubscribe(),j=null;const N=P;P=null,oe.next(N)}};function R(){const N=C+se,U=E.now();if(U<N)return j=this.schedule(void 0,N-U),void oe.add(j);L()}de.subscribe((0,t.x)(oe,N=>{P=N,C=E.now(),j||(j=E.schedule(R,se),oe.add(j))},()=>{L(),oe.complete()},void 0,()=>{P=j=null}))})}},5684:(Ue,be,a)=>{a.d(be,{T:()=>s});var n=a(9300);function s(t){return(0,n.h)((M,se)=>t<=se)}},2722:(Ue,be,a)=>{a.d(be,{R:()=>se});var n=a(4482),s=a(5403),t=a(8421),M=a(5032);function se(E){return(0,n.e)((de,oe)=>{(0,t.Xf)(E).subscribe((0,s.x)(oe,()=>oe.complete(),M.Z)),!oe.closed&&de.subscribe(oe)})}},6406:(Ue,be,a)=>{a.d(be,{Z:()=>de});var n=a(4408),s=a(727);const t={schedule(j){let P=requestAnimationFrame,C=cancelAnimationFrame;const{delegate:L}=t;L&&(P=L.requestAnimationFrame,C=L.cancelAnimationFrame);const R=P(N=>{C=void 0,j(N)});return new s.w0(()=>C?.(R))},requestAnimationFrame(...j){const{delegate:P}=t;return(P?.requestAnimationFrame||requestAnimationFrame)(...j)},cancelAnimationFrame(...j){const{delegate:P}=t;return(P?.cancelAnimationFrame||cancelAnimationFrame)(...j)},delegate:void 0};var se=a(7565);const de=new class E extends se.v{flush(P){this._active=!0;const C=this._scheduled;this._scheduled=void 0;const{actions:L}=this;let R;P=P||L.shift();do{if(R=P.execute(P.state,P.delay))break}while((P=L[0])&&P.id===C&&L.shift());if(this._active=!1,R){for(;(P=L[0])&&P.id===C&&L.shift();)P.unsubscribe();throw R}}}(class M extends n.o{constructor(P,C){super(P,C),this.scheduler=P,this.work=C}requestAsyncId(P,C,L=0){return null!==L&&L>0?super.requestAsyncId(P,C,L):(P.actions.push(this),P._scheduled||(P._scheduled=t.requestAnimationFrame(()=>P.flush(void 0))))}recycleAsyncId(P,C,L=0){if(null!=L&&L>0||null==L&&this.delay>0)return super.recycleAsyncId(P,C,L);P.actions.some(R=>R.id===C)||(t.cancelAnimationFrame(C),P._scheduled=void 0)}})},3101:(Ue,be,a)=>{a.d(be,{E:()=>N});var n=a(4408);let t,s=1;const M={};function se(Z){return Z in M&&(delete M[Z],!0)}const E={setImmediate(Z){const J=s++;return M[J]=!0,t||(t=Promise.resolve()),t.then(()=>se(J)&&Z()),J},clearImmediate(Z){se(Z)}},{setImmediate:oe,clearImmediate:j}=E,P={setImmediate(...Z){const{delegate:J}=P;return(J?.setImmediate||oe)(...Z)},clearImmediate(Z){const{delegate:J}=P;return(J?.clearImmediate||j)(Z)},delegate:void 0};var L=a(7565);const N=new class R extends L.v{flush(J){this._active=!0;const _e=this._scheduled;this._scheduled=void 0;const{actions:ce}=this;let ve;J=J||ce.shift();do{if(ve=J.execute(J.state,J.delay))break}while((J=ce[0])&&J.id===_e&&ce.shift());if(this._active=!1,ve){for(;(J=ce[0])&&J.id===_e&&ce.shift();)J.unsubscribe();throw ve}}}(class C extends n.o{constructor(J,_e){super(J,_e),this.scheduler=J,this.work=_e}requestAsyncId(J,_e,ce=0){return null!==ce&&ce>0?super.requestAsyncId(J,_e,ce):(J.actions.push(this),J._scheduled||(J._scheduled=P.setImmediate(J.flush.bind(J,void 0))))}recycleAsyncId(J,_e,ce=0){if(null!=ce&&ce>0||null==ce&&this.delay>0)return super.recycleAsyncId(J,_e,ce);J.actions.some(ve=>ve.id===_e)||(P.clearImmediate(_e),J._scheduled=void 0)}})},2687:(Ue,be,a)=>{a.d(be,{$s:()=>ke,Em:()=>ye,Kd:()=>we,X6:()=>O,ic:()=>Y,kH:()=>ze,mK:()=>je,qV:()=>Ve,qm:()=>y,rt:()=>K,s1:()=>Me,tE:()=>Ye,yG:()=>u});var n=a(6895),s=a(4650),t=a(3353),M=a(7579),se=a(727),E=a(1135),de=a(9646),oe=a(9521),j=a(8505),P=a(8372),C=a(9300),L=a(4004),R=a(5698),N=a(5684),U=a(1884),Z=a(2722),J=a(1281),_e=a(9643),ce=a(2289);function m(k,p){return(k.getAttribute(p)||"").match(/\S+/g)||[]}const v="cdk-describedby-message",D="cdk-describedby-host";let he=0,ke=(()=>{class k{constructor(b,A){this._platform=A,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+he++,this._document=b,this._id=(0,s.f3M)(s.AFp)+"-"+he++}describe(b,A,z){if(!this._canBeDescribed(b,A))return;const me=Ee(A,z);"string"!=typeof A?(Te(A,this._id),this._messageRegistry.set(me,{messageElement:A,referenceCount:0})):this._messageRegistry.has(me)||this._createMessageElement(A,z),this._isElementDescribedByMessage(b,me)||this._addMessageReference(b,me)}removeDescription(b,A,z){if(!A||!this._isElementNode(b))return;const me=Ee(A,z);if(this._isElementDescribedByMessage(b,me)&&this._removeMessageReference(b,me),"string"==typeof A){const Ie=this._messageRegistry.get(me);Ie&&0===Ie.referenceCount&&this._deleteMessageElement(me)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const b=this._document.querySelectorAll(`[${D}="${this._id}"]`);for(let A=0;A<b.length;A++)this._removeCdkDescribedByReferenceIds(b[A]),b[A].removeAttribute(D);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(b,A){const z=this._document.createElement("div");Te(z,this._id),z.textContent=b,A&&z.setAttribute("role",A),this._createMessagesContainer(),this._messagesContainer.appendChild(z),this._messageRegistry.set(Ee(b,A),{messageElement:z,referenceCount:0})}_deleteMessageElement(b){this._messageRegistry.get(b)?.messageElement?.remove(),this._messageRegistry.delete(b)}_createMessagesContainer(){if(this._messagesContainer)return;const b="cdk-describedby-message-container",A=this._document.querySelectorAll(`.${b}[platform="server"]`);for(let me=0;me<A.length;me++)A[me].remove();const z=this._document.createElement("div");z.style.visibility="hidden",z.classList.add(b),z.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&z.setAttribute("platform","server"),this._document.body.appendChild(z),this._messagesContainer=z}_removeCdkDescribedByReferenceIds(b){const A=m(b,"aria-describedby").filter(z=>0!=z.indexOf(v));b.setAttribute("aria-describedby",A.join(" "))}_addMessageReference(b,A){const z=this._messageRegistry.get(A);(function X(k,p,b){const A=m(k,p);A.some(z=>z.trim()==b.trim())||(A.push(b.trim()),k.setAttribute(p,A.join(" ")))})(b,"aria-describedby",z.messageElement.id),b.setAttribute(D,this._id),z.referenceCount++}_removeMessageReference(b,A){const z=this._messageRegistry.get(A);z.referenceCount--,function $(k,p,b){const z=m(k,p).filter(me=>me!=b.trim());z.length?k.setAttribute(p,z.join(" ")):k.removeAttribute(p)}(b,"aria-describedby",z.messageElement.id),b.removeAttribute(D)}_isElementDescribedByMessage(b,A){const z=m(b,"aria-describedby"),me=this._messageRegistry.get(A),Ie=me&&me.messageElement.id;return!!Ie&&-1!=z.indexOf(Ie)}_canBeDescribed(b,A){if(!this._isElementNode(b))return!1;if(A&&"object"==typeof A)return!0;const z=null==A?"":`${A}`.trim(),me=b.getAttribute("aria-label");return!(!z||me&&me.trim()===z)}_isElementNode(b){return b.nodeType===this._document.ELEMENT_NODE}}return k.\u0275fac=function(b){return new(b||k)(s.LFG(n.K0),s.LFG(t.t4))},k.\u0275prov=s.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function Ee(k,p){return"string"==typeof k?`${p||""}/${k}`:k}function Te(k,p){k.id||(k.id=`${v}-${p}-${he++}`)}class De{constructor(p){this._items=p,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=se.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=b=>b.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,p instanceof s.n_E&&p.changes.subscribe(b=>{if(this._activeItem){const z=b.toArray().indexOf(this._activeItem);z>-1&&z!==this._activeItemIndex&&(this._activeItemIndex=z)}})}skipPredicate(p){return this._skipPredicateFn=p,this}withWrap(p=!0){return this._wrap=p,this}withVerticalOrientation(p=!0){return this._vertical=p,this}withHorizontalOrientation(p){return this._horizontal=p,this}withAllowedModifierKeys(p){return this._allowedModifierKeys=p,this}withTypeAhead(p=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,j.b)(b=>this._pressedLetters.push(b)),(0,P.b)(p),(0,C.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(b=>{const A=this._getItemsArray();for(let z=1;z<A.length+1;z++){const me=(this._activeItemIndex+z)%A.length,Ie=A[me];if(!this._skipPredicateFn(Ie)&&0===Ie.getLabel().toUpperCase().trim().indexOf(b)){this.setActiveItem(me);break}}this._pressedLetters=[]}),this}withHomeAndEnd(p=!0){return this._homeAndEnd=p,this}setActiveItem(p){const b=this._activeItem;this.updateActiveItem(p),this._activeItem!==b&&this.change.next(this._activeItemIndex)}onKeydown(p){const b=p.keyCode,z=["altKey","ctrlKey","metaKey","shiftKey"].every(me=>!p[me]||this._allowedModifierKeys.indexOf(me)>-1);switch(b){case oe.Mf:return void this.tabOut.next();case oe.JH:if(this._vertical&&z){this.setNextItemActive();break}return;case oe.LH:if(this._vertical&&z){this.setPreviousItemActive();break}return;case oe.SV:if(this._horizontal&&z){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case oe.oh:if(this._horizontal&&z){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case oe.Sd:if(this._homeAndEnd&&z){this.setFirstItemActive();break}return;case oe.uR:if(this._homeAndEnd&&z){this.setLastItemActive();break}return;default:return void((z||(0,oe.Vb)(p,"shiftKey"))&&(p.key&&1===p.key.length?this._letterKeyStream.next(p.key.toLocaleUpperCase()):(b>=oe.A&&b<=oe.Z||b>=oe.xE&&b<=oe.aO)&&this._letterKeyStream.next(String.fromCharCode(b))))}this._pressedLetters=[],p.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(p){const b=this._getItemsArray(),A="number"==typeof p?p:b.indexOf(p);this._activeItem=b[A]??null,this._activeItemIndex=A}_setActiveItemByDelta(p){this._wrap?this._setActiveInWrapMode(p):this._setActiveInDefaultMode(p)}_setActiveInWrapMode(p){const b=this._getItemsArray();for(let A=1;A<=b.length;A++){const z=(this._activeItemIndex+p*A+b.length)%b.length;if(!this._skipPredicateFn(b[z]))return void this.setActiveItem(z)}}_setActiveInDefaultMode(p){this._setActiveItemByIndex(this._activeItemIndex+p,p)}_setActiveItemByIndex(p,b){const A=this._getItemsArray();if(A[p]){for(;this._skipPredicateFn(A[p]);)if(!A[p+=b])return;this.setActiveItem(p)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class Me extends De{setActiveItem(p){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(p),this.activeItem&&this.activeItem.setActiveStyles()}}class ye extends De{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(p){return this._origin=p,this}setActiveItem(p){super.setActiveItem(p),this.activeItem&&this.activeItem.focus(this._origin)}}let Y=(()=>{class k{constructor(b){this._platform=b}isDisabled(b){return b.hasAttribute("disabled")}isVisible(b){return function B(k){return!!(k.offsetWidth||k.offsetHeight||"function"==typeof k.getClientRects&&k.getClientRects().length)}(b)&&"visible"===getComputedStyle(b).visibility}isTabbable(b){if(!this._platform.isBrowser)return!1;const A=function pe(k){try{return k.frameElement}catch{return null}}(function xe(k){return k.ownerDocument&&k.ownerDocument.defaultView||window}(b));if(A&&(-1===G(A)||!this.isVisible(A)))return!1;let z=b.nodeName.toLowerCase(),me=G(b);return b.hasAttribute("contenteditable")?-1!==me:!("iframe"===z||"object"===z||this._platform.WEBKIT&&this._platform.IOS&&!function ne(k){let p=k.nodeName.toLowerCase(),b="input"===p&&k.type;return"text"===b||"password"===b||"select"===p||"textarea"===p}(b))&&("audio"===z?!!b.hasAttribute("controls")&&-1!==me:"video"===z?-1!==me&&(null!==me||this._platform.FIREFOX||b.hasAttribute("controls")):b.tabIndex>=0)}isFocusable(b,A){return function ue(k){return!function le(k){return function ie(k){return"input"==k.nodeName.toLowerCase()}(k)&&"hidden"==k.type}(k)&&(function Q(k){let p=k.nodeName.toLowerCase();return"input"===p||"select"===p||"button"===p||"textarea"===p}(k)||function Se(k){return function Fe(k){return"a"==k.nodeName.toLowerCase()}(k)&&k.hasAttribute("href")}(k)||k.hasAttribute("contenteditable")||F(k))}(b)&&!this.isDisabled(b)&&(A?.ignoreVisibility||this.isVisible(b))}}return k.\u0275fac=function(b){return new(b||k)(s.LFG(t.t4))},k.\u0275prov=s.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function F(k){if(!k.hasAttribute("tabindex")||void 0===k.tabIndex)return!1;let p=k.getAttribute("tabindex");return!(!p||isNaN(parseInt(p,10)))}function G(k){if(!F(k))return null;const p=parseInt(k.getAttribute("tabindex")||"",10);return isNaN(p)?-1:p}class Le{constructor(p,b,A,z,me=!1){this._element=p,this._checker=b,this._ngZone=A,this._document=z,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,me||this.attachAnchors()}get enabled(){return this._enabled}set enabled(p){this._enabled=p,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(p,this._startAnchor),this._toggleAnchorTabIndex(p,this._endAnchor))}destroy(){const p=this._startAnchor,b=this._endAnchor;p&&(p.removeEventListener("focus",this.startAnchorListener),p.remove()),b&&(b.removeEventListener("focus",this.endAnchorListener),b.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(p){return new Promise(b=>{this._executeOnStable(()=>b(this.focusInitialElement(p)))})}focusFirstTabbableElementWhenReady(p){return new Promise(b=>{this._executeOnStable(()=>b(this.focusFirstTabbableElement(p)))})}focusLastTabbableElementWhenReady(p){return new Promise(b=>{this._executeOnStable(()=>b(this.focusLastTabbableElement(p)))})}_getRegionBoundary(p){const b=this._element.querySelectorAll(`[cdk-focus-region-${p}], [cdkFocusRegion${p}], [cdk-focus-${p}]`);return"start"==p?b.length?b[0]:this._getFirstTabbableElement(this._element):b.length?b[b.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(p){const b=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(b){if(!this._checker.isFocusable(b)){const A=this._getFirstTabbableElement(b);return A?.focus(p),!!A}return b.focus(p),!0}return this.focusFirstTabbableElement(p)}focusFirstTabbableElement(p){const b=this._getRegionBoundary("start");return b&&b.focus(p),!!b}focusLastTabbableElement(p){const b=this._getRegionBoundary("end");return b&&b.focus(p),!!b}hasAttached(){return this._hasAttached}_getFirstTabbableElement(p){if(this._checker.isFocusable(p)&&this._checker.isTabbable(p))return p;const b=p.children;for(let A=0;A<b.length;A++){const z=b[A].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(b[A]):null;if(z)return z}return null}_getLastTabbableElement(p){if(this._checker.isFocusable(p)&&this._checker.isTabbable(p))return p;const b=p.children;for(let A=b.length-1;A>=0;A--){const z=b[A].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(b[A]):null;if(z)return z}return null}_createAnchor(){const p=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,p),p.classList.add("cdk-visually-hidden"),p.classList.add("cdk-focus-trap-anchor"),p.setAttribute("aria-hidden","true"),p}_toggleAnchorTabIndex(p,b){p?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")}toggleAnchors(p){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(p,this._startAnchor),this._toggleAnchorTabIndex(p,this._endAnchor))}_executeOnStable(p){this._ngZone.isStable?p():this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(p)}}let Ve=(()=>{class k{constructor(b,A,z){this._checker=b,this._ngZone=A,this._document=z}create(b,A=!1){return new Le(b,this._checker,this._ngZone,this._document,A)}}return k.\u0275fac=function(b){return new(b||k)(s.LFG(Y),s.LFG(s.R0b),s.LFG(n.K0))},k.\u0275prov=s.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),je=(()=>{class k{constructor(b,A,z){this._elementRef=b,this._focusTrapFactory=A,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(b){this.focusTrap.enabled=(0,J.Ig)(b)}get autoCapture(){return this._autoCapture}set autoCapture(b){this._autoCapture=(0,J.Ig)(b)}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(b){const A=b.autoCapture;A&&!A.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,t.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return k.\u0275fac=function(b){return new(b||k)(s.Y36(s.SBq),s.Y36(Ve),s.Y36(n.K0))},k.\u0275dir=s.lG2({type:k,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.TTD]}),k})();function O(k){return 0===k.buttons||0===k.offsetX&&0===k.offsetY}function u(k){const p=k.touches&&k.touches[0]||k.changedTouches&&k.changedTouches[0];return!(!p||-1!==p.identifier||null!=p.radiusX&&1!==p.radiusX||null!=p.radiusY&&1!==p.radiusY)}const i=new s.OlP("cdk-input-modality-detector-options"),e={ignoreKeys:[oe.zL,oe.jx,oe.b2,oe.MW,oe.JU]},f=(0,t.i$)({passive:!0,capture:!0});let S=(()=>{class k{constructor(b,A,z,me){this._platform=b,this._mostRecentTarget=null,this._modality=new E.X(null),this._lastTouchMs=0,this._onKeydown=Ie=>{this._options?.ignoreKeys?.some(Ke=>Ke===Ie.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,t.sA)(Ie))},this._onMousedown=Ie=>{Date.now()-this._lastTouchMs<650||(this._modality.next(O(Ie)?"keyboard":"mouse"),this._mostRecentTarget=(0,t.sA)(Ie))},this._onTouchstart=Ie=>{u(Ie)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,t.sA)(Ie))},this._options={...e,...me},this.modalityDetected=this._modality.pipe((0,N.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,U.x)()),b.isBrowser&&A.runOutsideAngular(()=>{z.addEventListener("keydown",this._onKeydown,f),z.addEventListener("mousedown",this._onMousedown,f),z.addEventListener("touchstart",this._onTouchstart,f)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,f),document.removeEventListener("mousedown",this._onMousedown,f),document.removeEventListener("touchstart",this._onTouchstart,f))}}return k.\u0275fac=function(b){return new(b||k)(s.LFG(t.t4),s.LFG(s.R0b),s.LFG(n.K0),s.LFG(i,8))},k.\u0275prov=s.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();const I=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function te(){return null}}),Ce=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let we=(()=>{class k{constructor(b,A,z,me){this._ngZone=A,this._defaultOptions=me,this._document=z,this._liveElement=b||this._createLiveElement()}announce(b,...A){const z=this._defaultOptions;let me,Ie;return 1===A.length&&"number"==typeof A[0]?Ie=A[0]:[me,Ie]=A,this.clear(),clearTimeout(this._previousTimeout),me||(me=z&&z.politeness?z.politeness:"polite"),null==Ie&&z&&(Ie=z.duration),this._liveElement.setAttribute("aria-live",me),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Ke=>this._currentResolve=Ke)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=b,"number"==typeof Ie&&(this._previousTimeout=setTimeout(()=>this.clear(),Ie)),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 b="cdk-live-announcer-element",A=this._document.getElementsByClassName(b),z=this._document.createElement("div");for(let me=0;me<A.length;me++)A[me].remove();return z.classList.add(b),z.classList.add("cdk-visually-hidden"),z.setAttribute("aria-atomic","true"),z.setAttribute("aria-live","polite"),this._document.body.appendChild(z),z}}return k.\u0275fac=function(b){return new(b||k)(s.LFG(I,8),s.LFG(s.R0b),s.LFG(n.K0),s.LFG(Ce,8))},k.\u0275prov=s.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();const Oe=new s.OlP("cdk-focus-monitor-default-options"),Ne=(0,t.i$)({passive:!0,capture:!0});let Ye=(()=>{class k{constructor(b,A,z,me,Ie){this._ngZone=b,this._platform=A,this._inputModalityDetector=z,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=Ke=>{const re=(0,t.sA)(Ke),ge="focus"===Ke.type?this._onFocus:this._onBlur;for(let w=re;w;w=w.parentElement)ge.call(this,Ke,w)},this._document=me,this._detectionMode=Ie?.detectionMode||0}monitor(b,A=!1){const z=(0,J.fI)(b);if(!this._platform.isBrowser||1!==z.nodeType)return(0,de.of)(null);const me=(0,t.kV)(z)||this._getDocument(),Ie=this._elementInfo.get(z);if(Ie)return A&&(Ie.checkChildren=!0),Ie.subject;const Ke={checkChildren:A,subject:new M.x,rootNode:me};return this._elementInfo.set(z,Ke),this._registerGlobalListeners(Ke),Ke.subject}stopMonitoring(b){const A=(0,J.fI)(b),z=this._elementInfo.get(A);z&&(z.subject.complete(),this._setClasses(A),this._elementInfo.delete(A),this._removeGlobalListeners(z))}focusVia(b,A,z){const me=(0,J.fI)(b);me===this._getDocument().activeElement?this._getClosestElementsInfo(me).forEach(([Ke,re])=>this._originChanged(Ke,A,re)):(this._setOrigin(A),"function"==typeof me.focus&&me.focus(z))}ngOnDestroy(){this._elementInfo.forEach((b,A)=>this.stopMonitoring(A))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(b){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(b)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(b){return 1===this._detectionMode||!!b?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(b,A){b.classList.toggle("cdk-focused",!!A),b.classList.toggle("cdk-touch-focused","touch"===A),b.classList.toggle("cdk-keyboard-focused","keyboard"===A),b.classList.toggle("cdk-mouse-focused","mouse"===A),b.classList.toggle("cdk-program-focused","program"===A)}_setOrigin(b,A=!1){this._ngZone.runOutsideAngular(()=>{this._origin=b,this._originFromTouchInteraction="touch"===b&&A,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(b,A){const z=this._elementInfo.get(A),me=(0,t.sA)(b);!z||!z.checkChildren&&A!==me||this._originChanged(A,this._getFocusOrigin(me),z)}_onBlur(b,A){const z=this._elementInfo.get(A);!z||z.checkChildren&&b.relatedTarget instanceof Node&&A.contains(b.relatedTarget)||(this._setClasses(A),this._emitOrigin(z,null))}_emitOrigin(b,A){b.subject.observers.length&&this._ngZone.run(()=>b.subject.next(A))}_registerGlobalListeners(b){if(!this._platform.isBrowser)return;const A=b.rootNode,z=this._rootNodeFocusListenerCount.get(A)||0;z||this._ngZone.runOutsideAngular(()=>{A.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ne),A.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ne)}),this._rootNodeFocusListenerCount.set(A,z+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Z.R)(this._stopInputModalityDetector)).subscribe(me=>{this._setOrigin(me,!0)}))}_removeGlobalListeners(b){const A=b.rootNode;if(this._rootNodeFocusListenerCount.has(A)){const z=this._rootNodeFocusListenerCount.get(A);z>1?this._rootNodeFocusListenerCount.set(A,z-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(b,A,z){this._setClasses(b,A),this._emitOrigin(z,A),this._lastFocusOrigin=A}_getClosestElementsInfo(b){const A=[];return this._elementInfo.forEach((z,me)=>{(me===b||z.checkChildren&&me.contains(b))&&A.push([me,z])}),A}}return k.\u0275fac=function(b){return new(b||k)(s.LFG(s.R0b),s.LFG(t.t4),s.LFG(S),s.LFG(n.K0,8),s.LFG(Oe,8))},k.\u0275prov=s.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),ze=(()=>{class k{constructor(b,A){this._elementRef=b,this._focusMonitor=A,this.cdkFocusChange=new s.vpe}ngAfterViewInit(){const b=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(b,1===b.nodeType&&b.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(A=>this.cdkFocusChange.emit(A))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return k.\u0275fac=function(b){return new(b||k)(s.Y36(s.SBq),s.Y36(Ye))},k.\u0275dir=s.lG2({type:k,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),k})();const Ge="cdk-high-contrast-black-on-white",V="cdk-high-contrast-white-on-black",T="cdk-high-contrast-active";let y=(()=>{class k{constructor(b,A){this._platform=b,this._document=A,this._breakpointSubscription=(0,s.f3M)(ce.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const b=this._document.createElement("div");b.style.backgroundColor="rgb(1,2,3)",b.style.position="absolute",this._document.body.appendChild(b);const A=this._document.defaultView||window,z=A&&A.getComputedStyle?A.getComputedStyle(b):null,me=(z&&z.backgroundColor||"").replace(/ /g,"");switch(b.remove(),me){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 b=this._document.body.classList;b.remove(T,Ge,V),this._hasCheckedHighContrastMode=!0;const A=this.getHighContrastMode();1===A?b.add(T,Ge):2===A&&b.add(T,V)}}}return k.\u0275fac=function(b){return new(b||k)(s.LFG(t.t4),s.LFG(n.K0))},k.\u0275prov=s.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),K=(()=>{class k{constructor(b){b._applyBodyHighContrastModeCssClasses()}}return k.\u0275fac=function(b){return new(b||k)(s.LFG(y))},k.\u0275mod=s.oAB({type:k}),k.\u0275inj=s.cJS({imports:[_e.Q8]}),k})()},445:(Ue,be,a)=>{a.d(be,{Is:()=>de,vT:()=>j});var n=a(4650),s=a(6895);const t=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,n.f3M)(s.K0)}}),se=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let de=(()=>{class P{constructor(L){if(this.value="ltr",this.change=new n.vpe,L){const N=L.documentElement?L.documentElement.dir:null;this.value=function E(P){const C=P?.toLowerCase()||"";return"auto"===C&&typeof navigator<"u"&&navigator?.language?se.test(navigator.language)?"rtl":"ltr":"rtl"===C?"rtl":"ltr"}((L.body?L.body.dir:null)||N||"ltr")}}ngOnDestroy(){this.change.complete()}}return P.\u0275fac=function(L){return new(L||P)(n.LFG(t,8))},P.\u0275prov=n.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),j=(()=>{class P{}return P.\u0275fac=function(L){return new(L||P)},P.\u0275mod=n.oAB({type:P}),P.\u0275inj=n.cJS({}),P})()},1281:(Ue,be,a)=>{a.d(be,{Eq:()=>se,HM:()=>E,Ig:()=>s,du:()=>oe,fI:()=>de,su:()=>t});var n=a(4650);function s(j){return null!=j&&"false"!=`${j}`}function t(j,P=0){return function M(j){return!isNaN(parseFloat(j))&&!isNaN(Number(j))}(j)?Number(j):P}function se(j){return Array.isArray(j)?j:[j]}function E(j){return null==j?"":"string"==typeof j?j:`${j}px`}function de(j){return j instanceof n.SBq?j.nativeElement:j}function oe(j,P=/\s+/){const C=[];if(null!=j){const L=Array.isArray(j)?j:`${j}`.split(P);for(const R of L){const N=`${R}`.trim();N&&C.push(N)}}return C}},5017:(Ue,be,a)=>{a.d(be,{A8:()=>P,Ov:()=>oe});var n=a(7579),s=a(4650);class oe{constructor(R=!1,N,U=!0){this._multiple=R,this._emitChanges=U,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new n.x,N&&N.length&&(R?N.forEach(Z=>this._markSelected(Z)):this._markSelected(N[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(N=>this._markSelected(N)),this._emitChangeEvent()}deselect(...R){this._verifyValueAssignment(R),R.forEach(N=>this._unmarkSelected(N)),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 P=(()=>{class L{constructor(){this._listeners=[]}notify(N,U){for(let Z of this._listeners)Z(N,U)}listen(N){return this._listeners.push(N),()=>{this._listeners=this._listeners.filter(U=>N!==U)}}ngOnDestroy(){this._listeners=[]}}return L.\u0275fac=function(N){return new(N||L)},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},9521:(Ue,be,a)=>{a.d(be,{A:()=>le,JH:()=>ve,JU:()=>E,K5:()=>se,Ku:()=>R,LH:()=>_e,L_:()=>L,MW:()=>Ce,Mf:()=>t,SV:()=>ce,Sd:()=>Z,VM:()=>N,Vb:()=>mt,Z:()=>te,ZH:()=>s,aO:()=>W,b2:()=>pt,hY:()=>C,jx:()=>de,oh:()=>J,uR:()=>U,xE:()=>v,yY:()=>x,zL:()=>oe});const s=8,t=9,se=13,E=16,de=17,oe=18,C=27,L=32,R=33,N=34,U=35,Z=36,J=37,_e=38,ce=39,ve=40,x=46,v=48,W=57,le=65,te=90,Ce=91,pt=224;function mt(st,...ft){return ft.length?ft.some(gt=>st[gt]):st.altKey||st.shiftKey||st.ctrlKey||st.metaKey}},2289:(Ue,be,a)=>{a.d(be,{Yg:()=>ve,u3:()=>$});var n=a(4650),s=a(1281),t=a(7579),M=a(9841),se=a(7272),E=a(8306),de=a(5698),oe=a(5684),j=a(8372),P=a(4004),C=a(8675),L=a(2722),R=a(3353);const U=new Set;let Z,J=(()=>{class m{constructor(v){this._platform=v,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ce}matchMedia(v){return(this._platform.WEBKIT||this._platform.BLINK)&&function _e(m){if(!U.has(m))try{Z||(Z=document.createElement("style"),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${m} {body{ }}`,0),U.add(m))}catch(x){console.error(x)}}(v),this._matchMedia(v)}}return m.\u0275fac=function(v){return new(v||m)(n.LFG(R.t4))},m.\u0275prov=n.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function ce(m){return{matches:"all"===m||""===m,media:m,addListener:()=>{},removeListener:()=>{}}}let ve=(()=>{class m{constructor(v,D){this._mediaMatcher=v,this._zone=D,this._queries=new Map,this._destroySubject=new t.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(v){return X((0,s.Eq)(v)).some(he=>this._registerQuery(he).mql.matches)}observe(v){const he=X((0,s.Eq)(v)).map(Ee=>this._registerQuery(Ee).observable);let ke=(0,M.a)(he);return ke=(0,se.z)(ke.pipe((0,de.q)(1)),ke.pipe((0,oe.T)(1),(0,j.b)(0))),ke.pipe((0,P.U)(Ee=>{const Te={matches:!1,breakpoints:{}};return Ee.forEach(({matches:De,query:Me})=>{Te.matches=Te.matches||De,Te.breakpoints[Me]=De}),Te}))}_registerQuery(v){if(this._queries.has(v))return this._queries.get(v);const D=this._mediaMatcher.matchMedia(v),ke={observable:new E.y(Ee=>{const Te=De=>this._zone.run(()=>Ee.next(De));return D.addListener(Te),()=>{D.removeListener(Te)}}).pipe((0,C.O)(D),(0,P.U)(({matches:Ee})=>({query:v,matches:Ee})),(0,L.R)(this._destroySubject)),mql:D};return this._queries.set(v,ke),ke}}return m.\u0275fac=function(v){return new(v||m)(n.LFG(J),n.LFG(n.R0b))},m.\u0275prov=n.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function X(m){return m.map(x=>x.split(",")).reduce((x,v)=>x.concat(v)).map(x=>x.trim())}const $={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:(Ue,be,a)=>{a.d(be,{Q8:()=>j,wD:()=>oe});var n=a(1281),s=a(4650),t=a(8306),M=a(7579),se=a(8372);let E=(()=>{class P{create(L){return typeof MutationObserver>"u"?null:new MutationObserver(L)}}return P.\u0275fac=function(L){return new(L||P)},P.\u0275prov=s.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),de=(()=>{class P{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,R)=>this._cleanupObserver(R))}observe(L){const R=(0,n.fI)(L);return new t.y(N=>{const Z=this._observeElement(R).subscribe(N);return()=>{Z.unsubscribe(),this._unobserveElement(R)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const R=new M.x,N=this._mutationObserverFactory.create(U=>R.next(U));N&&N.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:N,stream:R,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:R,stream:N}=this._observedElements.get(L);R&&R.disconnect(),N.complete(),this._observedElements.delete(L)}}}return P.\u0275fac=function(L){return new(L||P)(s.LFG(E))},P.\u0275prov=s.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),oe=(()=>{class P{constructor(L,R,N){this._contentObserver=L,this._elementRef=R,this._ngZone=N,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(L){this._disabled=(0,n.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,n.su)(L),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,se.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return P.\u0275fac=function(L){return new(L||P)(s.Y36(de),s.Y36(s.SBq),s.Y36(s.R0b))},P.\u0275dir=s.lG2({type:P,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),P})(),j=(()=>{class P{}return P.\u0275fac=function(L){return new(L||P)},P.\u0275mod=s.oAB({type:P}),P.\u0275inj=s.cJS({providers:[E]}),P})()},2561:(Ue,be,a)=>{a.d(be,{pI:()=>Qe,xu:()=>Xe,_G:()=>le,aV:()=>Ve,X_:()=>D,Xj:()=>Y,U8:()=>O,Iu:()=>pe});var n=a(7376),s=a(6895),t=a(4650),M=a(1281),se=a(3353),E=a(445),de=a(4080),oe=a(7579),j=a(727),P=a(6451),C=a(4482),L=a(5403),N=a(5698),U=a(2722),Z=a(9521);const J=(0,se.Mq)();class _e{constructor(e,l){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=l}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,f=e.style,S=this._document.body.style,I=f.scrollBehavior||"",te=S.scrollBehavior||"";this._isEnabled=!1,f.left=this._previousHTMLStyles.left,f.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),J&&(f.scrollBehavior=S.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),J&&(f.scrollBehavior=I,S.scrollBehavior=te)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const l=this._document.body,f=this._viewportRuler.getViewportSize();return l.scrollHeight>f.height||l.scrollWidth>f.width}}class ve{constructor(e,l,f,S){this._scrollDispatcher=e,this._ngZone=l,this._viewportRuler=f,this._config=S,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 l=this._viewportRuler.getViewportScrollPosition().top;Math.abs(l-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 X{enable(){}disable(){}attach(){}}function $(i,e){return e.some(l=>i.bottom<l.top||i.top>l.bottom||i.right<l.left||i.left>l.right)}function m(i,e){return e.some(l=>i.top<l.top||i.bottom>l.bottom||i.left<l.left||i.right>l.right)}class x{constructor(e,l,f,S){this._scrollDispatcher=e,this._viewportRuler=l,this._ngZone=f,this._config=S,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 l=this._overlayRef.overlayElement.getBoundingClientRect(),{width:f,height:S}=this._viewportRuler.getViewportSize();$(l,[{width:f,height:S,bottom:S,right:f,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(l,f,S,I){this._scrollDispatcher=l,this._viewportRuler=f,this._ngZone=S,this.noop=()=>new X,this.close=te=>new ve(this._scrollDispatcher,this._ngZone,this._viewportRuler,te),this.block=()=>new _e(this._viewportRuler,this._document),this.reposition=te=>new x(this._scrollDispatcher,this._viewportRuler,this._ngZone,te),this._document=I}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(n.mF),t.LFG(n.rL),t.LFG(t.R0b),t.LFG(s.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class D{constructor(e){if(this.scrollStrategy=new X,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const l=Object.keys(e);for(const f of l)void 0!==e[f]&&(this[f]=e[f])}}}class Ee{constructor(e,l){this.connectionPair=e,this.scrollableViewProperties=l}}let Me=(()=>{class i{constructor(l){this._attachedOverlays=[],this._document=l}ngOnDestroy(){this.detach()}add(l){this.remove(l),this._attachedOverlays.push(l)}remove(l){const f=this._attachedOverlays.indexOf(l);f>-1&&this._attachedOverlays.splice(f,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(s.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ye=(()=>{class i extends Me{constructor(l,f){super(l),this._ngZone=f,this._keydownListener=S=>{const I=this._attachedOverlays;for(let te=I.length-1;te>-1;te--)if(I[te]._keydownEvents.observers.length>0){const Ce=I[te]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ce.next(S)):Ce.next(S);break}}}add(l){super.add(l),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(l){return new(l||i)(t.LFG(s.K0),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),W=(()=>{class i extends Me{constructor(l,f,S){super(l),this._platform=f,this._ngZone=S,this._cursorStyleIsSet=!1,this._pointerDownListener=I=>{this._pointerDownEventTarget=(0,se.sA)(I)},this._clickListener=I=>{const te=(0,se.sA)(I),Ce="click"===I.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:te;this._pointerDownEventTarget=null;const we=this._attachedOverlays.slice();for(let Be=we.length-1;Be>-1;Be--){const Oe=we[Be];if(Oe._outsidePointerEvents.observers.length<1||!Oe.hasAttached())continue;if(Oe.overlayElement.contains(te)||Oe.overlayElement.contains(Ce))break;const Ne=Oe._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ne.next(I)):Ne.next(I)}}}add(l){if(super.add(l),!this._isAttached){const f=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(f)):this._addEventListeners(f),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=f.style.cursor,f.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const l=this._document.body;l.removeEventListener("pointerdown",this._pointerDownListener,!0),l.removeEventListener("click",this._clickListener,!0),l.removeEventListener("auxclick",this._clickListener,!0),l.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(l.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(l){l.addEventListener("pointerdown",this._pointerDownListener,!0),l.addEventListener("click",this._clickListener,!0),l.addEventListener("auxclick",this._clickListener,!0),l.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(s.K0),t.LFG(se.t4),t.LFG(t.R0b,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Y=(()=>{class i{constructor(l,f){this._platform=f,this._document=l}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const l="cdk-overlay-container";if(this._platform.isBrowser||(0,se.Oy)()){const S=this._document.querySelectorAll(`.${l}[platform="server"], .${l}[platform="test"]`);for(let I=0;I<S.length;I++)S[I].remove()}const f=this._document.createElement("div");f.classList.add(l),(0,se.Oy)()?f.setAttribute("platform","test"):this._platform.isBrowser||f.setAttribute("platform","server"),this._document.body.appendChild(f),this._containerElement=f}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(s.K0),t.LFG(se.t4))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class pe{constructor(e,l,f,S,I,te,Ce,we,Be,Oe=!1){this._portalOutlet=e,this._host=l,this._pane=f,this._config=S,this._ngZone=I,this._keyboardDispatcher=te,this._document=Ce,this._location=we,this._outsideClickDispatcher=Be,this._animationsDisabled=Oe,this._backdropElement=null,this._backdropClick=new oe.x,this._attachments=new oe.x,this._detachments=new oe.x,this._locationChanges=j.w0.EMPTY,this._backdropClickHandler=Ne=>this._backdropClick.next(Ne),this._backdropTransitionendHandler=Ne=>{this._disposeBackdrop(Ne.target)},this._keydownEvents=new oe.x,this._outsidePointerEvents=new oe.x,S.scrollStrategy&&(this._scrollStrategy=S.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=S.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 l=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,N.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),l}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,l,f){const S=(0,M.Eq)(l||[]).filter(I=>!!I);S.length&&(f?e.classList.add(...S):e.classList.remove(...S))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe((0,U.R)((0,P.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 B="cdk-overlay-connected-position-bounding-box",Q=/([A-Za-z%]+)$/;class le{constructor(e,l,f,S,I){this._viewportRuler=l,this._document=f,this._platform=S,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 oe.x,this._resizeSubscription=j.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(B),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,l=this._overlayRect,f=this._viewportRect,S=this._containerRect,I=[];let te;for(let Ce of this._preferredPositions){let we=this._getOriginPoint(e,S,Ce),Be=this._getOverlayPoint(we,l,Ce),Oe=this._getOverlayFit(Be,l,f,Ce);if(Oe.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ce,we);this._canFitWithFlexibleDimensions(Oe,Be,f)?I.push({position:Ce,origin:we,overlayRect:l,boundingBoxRect:this._calculateBoundingBoxRect(we,Ce)}):(!te||te.overlayFit.visibleArea<Oe.visibleArea)&&(te={overlayFit:Oe,overlayPoint:Be,originPoint:we,position:Ce,overlayRect:l})}if(I.length){let Ce=null,we=-1;for(const Be of I){const Oe=Be.boundingBoxRect.width*Be.boundingBoxRect.height*(Be.position.weight||1);Oe>we&&(we=Oe,Ce=Be)}return this._isPushed=!1,void this._applyPosition(Ce.position,Ce.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(te.position,te.originPoint);this._applyPosition(te.position,te.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Se(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(B),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 l=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,l)}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,l,f){let S,I;if("center"==f.originX)S=e.left+e.width/2;else{const te=this._isRtl()?e.right:e.left,Ce=this._isRtl()?e.left:e.right;S="start"==f.originX?te:Ce}return l.left<0&&(S-=l.left),I="center"==f.originY?e.top+e.height/2:"top"==f.originY?e.top:e.bottom,l.top<0&&(I-=l.top),{x:S,y:I}}_getOverlayPoint(e,l,f){let S,I;return S="center"==f.overlayX?-l.width/2:"start"===f.overlayX?this._isRtl()?-l.width:0:this._isRtl()?0:-l.width,I="center"==f.overlayY?-l.height/2:"top"==f.overlayY?0:-l.height,{x:e.x+S,y:e.y+I}}_getOverlayFit(e,l,f,S){const I=Fe(l);let{x:te,y:Ce}=e,we=this._getOffset(S,"x"),Be=this._getOffset(S,"y");we&&(te+=we),Be&&(Ce+=Be);let Ye=0-Ce,ze=Ce+I.height-f.height,Ge=this._subtractOverflows(I.width,0-te,te+I.width-f.width),V=this._subtractOverflows(I.height,Ye,ze),T=Ge*V;return{visibleArea:T,isCompletelyWithinViewport:I.width*I.height===T,fitsInViewportVertically:V===I.height,fitsInViewportHorizontally:Ge==I.width}}_canFitWithFlexibleDimensions(e,l,f){if(this._hasFlexibleDimensions){const S=f.bottom-l.y,I=f.right-l.x,te=ie(this._overlayRef.getConfig().minHeight),Ce=ie(this._overlayRef.getConfig().minWidth),Be=e.fitsInViewportHorizontally||null!=Ce&&Ce<=I;return(e.fitsInViewportVertically||null!=te&&te<=S)&&Be}return!1}_pushOverlayOnScreen(e,l,f){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const S=Fe(l),I=this._viewportRect,te=Math.max(e.x+S.width-I.width,0),Ce=Math.max(e.y+S.height-I.height,0),we=Math.max(I.top-f.top-e.y,0),Be=Math.max(I.left-f.left-e.x,0);let Oe=0,Ne=0;return Oe=S.width<=I.width?Be||-te:e.x<this._viewportMargin?I.left-f.left-e.x:0,Ne=S.height<=I.height?we||-Ce:e.y<this._viewportMargin?I.top-f.top-e.y:0,this._previousPushAmount={x:Oe,y:Ne},{x:e.x+Oe,y:e.y+Ne}}_applyPosition(e,l){if(this._setTransformOrigin(e),this._setOverlayElementStyles(l,e),this._setBoundingBoxStyles(l,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const f=this._getScrollVisibility(),S=new Ee(e,f);this._positionChanges.next(S)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const l=this._boundingBox.querySelectorAll(this._transformOriginSelector);let f,S=e.overlayY;f="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let I=0;I<l.length;I++)l[I].style.transformOrigin=`${f} ${S}`}_calculateBoundingBoxRect(e,l){const f=this._viewportRect,S=this._isRtl();let I,te,Ce,Oe,Ne,Ye;if("top"===l.overlayY)te=e.y,I=f.height-te+this._viewportMargin;else if("bottom"===l.overlayY)Ce=f.height-e.y+2*this._viewportMargin,I=f.height-Ce+this._viewportMargin;else{const ze=Math.min(f.bottom-e.y+f.top,e.y),Ge=this._lastBoundingBoxSize.height;I=2*ze,te=e.y-ze,I>Ge&&!this._isInitialRender&&!this._growAfterOpen&&(te=e.y-Ge/2)}if("end"===l.overlayX&&!S||"start"===l.overlayX&&S)Ye=f.width-e.x+this._viewportMargin,Oe=e.x-this._viewportMargin;else if("start"===l.overlayX&&!S||"end"===l.overlayX&&S)Ne=e.x,Oe=f.right-e.x;else{const ze=Math.min(f.right-e.x+f.left,e.x),Ge=this._lastBoundingBoxSize.width;Oe=2*ze,Ne=e.x-ze,Oe>Ge&&!this._isInitialRender&&!this._growAfterOpen&&(Ne=e.x-Ge/2)}return{top:te,left:Ne,bottom:Ce,right:Ye,width:Oe,height:I}}_setBoundingBoxStyles(e,l){const f=this._calculateBoundingBoxRect(e,l);!this._isInitialRender&&!this._growAfterOpen&&(f.height=Math.min(f.height,this._lastBoundingBoxSize.height),f.width=Math.min(f.width,this._lastBoundingBoxSize.width));const S={};if(this._hasExactPosition())S.top=S.left="0",S.bottom=S.right=S.maxHeight=S.maxWidth="",S.width=S.height="100%";else{const I=this._overlayRef.getConfig().maxHeight,te=this._overlayRef.getConfig().maxWidth;S.height=(0,M.HM)(f.height),S.top=(0,M.HM)(f.top),S.bottom=(0,M.HM)(f.bottom),S.width=(0,M.HM)(f.width),S.left=(0,M.HM)(f.left),S.right=(0,M.HM)(f.right),S.alignItems="center"===l.overlayX?"center":"end"===l.overlayX?"flex-end":"flex-start",S.justifyContent="center"===l.overlayY?"center":"bottom"===l.overlayY?"flex-end":"flex-start",I&&(S.maxHeight=(0,M.HM)(I)),te&&(S.maxWidth=(0,M.HM)(te))}this._lastBoundingBoxSize=f,Se(this._boundingBox.style,S)}_resetBoundingBoxStyles(){Se(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Se(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,l){const f={},S=this._hasExactPosition(),I=this._hasFlexibleDimensions,te=this._overlayRef.getConfig();if(S){const Oe=this._viewportRuler.getViewportScrollPosition();Se(f,this._getExactOverlayY(l,e,Oe)),Se(f,this._getExactOverlayX(l,e,Oe))}else f.position="static";let Ce="",we=this._getOffset(l,"x"),Be=this._getOffset(l,"y");we&&(Ce+=`translateX(${we}px) `),Be&&(Ce+=`translateY(${Be}px)`),f.transform=Ce.trim(),te.maxHeight&&(S?f.maxHeight=(0,M.HM)(te.maxHeight):I&&(f.maxHeight="")),te.maxWidth&&(S?f.maxWidth=(0,M.HM)(te.maxWidth):I&&(f.maxWidth="")),Se(this._pane.style,f)}_getExactOverlayY(e,l,f){let S={top:"",bottom:""},I=this._getOverlayPoint(l,this._overlayRect,e);return this._isPushed&&(I=this._pushOverlayOnScreen(I,this._overlayRect,f)),"bottom"===e.overlayY?S.bottom=this._document.documentElement.clientHeight-(I.y+this._overlayRect.height)+"px":S.top=(0,M.HM)(I.y),S}_getExactOverlayX(e,l,f){let te,S={left:"",right:""},I=this._getOverlayPoint(l,this._overlayRect,e);return this._isPushed&&(I=this._pushOverlayOnScreen(I,this._overlayRect,f)),te=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===te?S.right=this._document.documentElement.clientWidth-(I.x+this._overlayRect.width)+"px":S.left=(0,M.HM)(I.x),S}_getScrollVisibility(){const e=this._getOriginRect(),l=this._pane.getBoundingClientRect(),f=this._scrollables.map(S=>S.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:m(e,f),isOriginOutsideView:$(e,f),isOverlayClipped:m(l,f),isOverlayOutsideView:$(l,f)}}_subtractOverflows(e,...l){return l.reduce((f,S)=>f-Math.max(S,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,l=this._document.documentElement.clientHeight,f=this._viewportRuler.getViewportScrollPosition();return{top:f.top+this._viewportMargin,left:f.left+this._viewportMargin,right:f.left+e-this._viewportMargin,bottom:f.top+l-this._viewportMargin,width:e-2*this._viewportMargin,height:l-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,l){return"x"===l?e.offsetX??this._offsetX:e.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&(0,M.Eq)(e).forEach(l=>{""!==l&&-1===this._appliedPanelClasses.indexOf(l)&&(this._appliedPanelClasses.push(l),this._pane.classList.add(l))})}_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 l=e.width||0,f=e.height||0;return{top:e.y,bottom:e.y+f,left:e.x,right:e.x+l,height:f,width:l}}}function Se(i,e){for(let l in e)e.hasOwnProperty(l)&&(i[l]=e[l]);return i}function ie(i){if("number"!=typeof i&&null!=i){const[e,l]=i.split(Q);return l&&"px"!==l?null:parseFloat(e)}return i||null}function Fe(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 ne="cdk-global-overlay-wrapper";class ue{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){const l=e.getConfig();this._overlayRef=e,this._width&&!l.width&&e.updateSize({width:this._width}),this._height&&!l.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(ne),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,l=this._overlayRef.hostElement.style,f=this._overlayRef.getConfig(),{width:S,height:I,maxWidth:te,maxHeight:Ce}=f,we=!("100%"!==S&&"100vw"!==S||te&&"100%"!==te&&"100vw"!==te),Be=!("100%"!==I&&"100vh"!==I||Ce&&"100%"!==Ce&&"100vh"!==Ce),Oe=this._xPosition,Ne=this._xOffset,Ye="rtl"===this._overlayRef.getConfig().direction;let ze="",Ge="",V="";we?V="flex-start":"center"===Oe?(V="center",Ye?Ge=Ne:ze=Ne):Ye?"left"===Oe||"end"===Oe?(V="flex-end",ze=Ne):("right"===Oe||"start"===Oe)&&(V="flex-start",Ge=Ne):"left"===Oe||"start"===Oe?(V="flex-start",ze=Ne):("right"===Oe||"end"===Oe)&&(V="flex-end",Ge=Ne),e.position=this._cssPosition,e.marginLeft=we?"0":ze,e.marginTop=Be?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=we?"0":Ge,l.justifyContent=V,l.alignItems=Be?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,l=this._overlayRef.hostElement,f=l.style;l.classList.remove(ne),f.justifyContent=f.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let xe=(()=>{class i{constructor(l,f,S,I){this._viewportRuler=l,this._document=f,this._platform=S,this._overlayContainer=I}global(){return new ue}flexibleConnectedTo(l){return new le(l,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(n.rL),t.LFG(s.K0),t.LFG(se.t4),t.LFG(Y))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Le=0,Ve=(()=>{class i{constructor(l,f,S,I,te,Ce,we,Be,Oe,Ne,Ye,ze){this.scrollStrategies=l,this._overlayContainer=f,this._componentFactoryResolver=S,this._positionBuilder=I,this._keyboardDispatcher=te,this._injector=Ce,this._ngZone=we,this._document=Be,this._directionality=Oe,this._location=Ne,this._outsideClickDispatcher=Ye,this._animationsModuleType=ze}create(l){const f=this._createHostElement(),S=this._createPaneElement(f),I=this._createPortalOutlet(S),te=new D(l);return te.direction=te.direction||this._directionality.value,new pe(I,f,S,te,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(l){const f=this._document.createElement("div");return f.id="cdk-overlay-"+Le++,f.classList.add("cdk-overlay-pane"),l.appendChild(f),f}_createHostElement(){const l=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(l),l}_createPortalOutlet(l){return this._appRef||(this._appRef=this._injector.get(t.z2F)),new de.u0(l,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(l){return new(l||i)(t.LFG(v),t.LFG(Y),t.LFG(t._Vd),t.LFG(xe),t.LFG(ye),t.LFG(t.zs3),t.LFG(t.R0b),t.LFG(s.K0),t.LFG(E.Is),t.LFG(s.Ye),t.LFG(W),t.LFG(t.QbO,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac}),i})();const je=[{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"}],$e=new t.OlP("cdk-connected-overlay-scroll-strategy");let Xe=(()=>{class i{constructor(l){this.elementRef=l}}return i.\u0275fac=function(l){return new(l||i)(t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),Qe=(()=>{class i{constructor(l,f,S,I,te){this._overlay=l,this._dir=te,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=j.w0.EMPTY,this._attachSubscription=j.w0.EMPTY,this._detachSubscription=j.w0.EMPTY,this._positionSubscription=j.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 de.UE(f,S),this._scrollStrategyFactory=I,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(l){this._offsetX=l,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(l){this._offsetY=l,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(l){this._hasBackdrop=(0,M.Ig)(l)}get lockPosition(){return this._lockPosition}set lockPosition(l){this._lockPosition=(0,M.Ig)(l)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(l){this._flexibleDimensions=(0,M.Ig)(l)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(l){this._growAfterOpen=(0,M.Ig)(l)}get push(){return this._push}set push(l){this._push=(0,M.Ig)(l)}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(l){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),l.origin&&this.open&&this._position.apply()),l.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=je);const l=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=l.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=l.detachments().subscribe(()=>this.detach.emit()),l.keydownEvents().subscribe(f=>{this.overlayKeydown.next(f),f.keyCode===Z.hY&&!this.disableClose&&!(0,Z.Vb)(f)&&(f.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(f=>{this.overlayOutsideClick.next(f)})}_buildConfig(){const l=this._position=this.positionStrategy||this._createPositionStrategy(),f=new D({direction:this._dir,positionStrategy:l,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(f.width=this.width),(this.height||0===this.height)&&(f.height=this.height),(this.minWidth||0===this.minWidth)&&(f.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(f.minHeight=this.minHeight),this.backdropClass&&(f.backdropClass=this.backdropClass),this.panelClass&&(f.panelClass=this.panelClass),f}_updatePositionStrategy(l){const f=this.positions.map(S=>({originX:S.originX,originY:S.originY,overlayX:S.overlayX,overlayY:S.overlayY,offsetX:S.offsetX||this.offsetX,offsetY:S.offsetY||this.offsetY,panelClass:S.panelClass||void 0}));return l.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(f).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const l=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(l),l}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Xe?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(l=>{this.backdropClick.emit(l)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function R(i,e=!1){return(0,C.e)((l,f)=>{let S=0;l.subscribe((0,L.x)(f,I=>{const te=i(I,S++);(te||e)&&f.next(I),!te&&f.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(l=>{this.positionChange.emit(l),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(l){return new(l||i)(t.Y36(Ve),t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36($e),t.Y36(E.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 Ae={provide:$e,deps:[Ve],useFactory:function qe(i){return()=>i.scrollStrategies.reposition()}};let O=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Ve,Ae],imports:[E.vT,de.eL,n.Cl,n.Cl]}),i})()},3353:(Ue,be,a)=>{a.d(be,{Mq:()=>N,Oy:()=>X,ht:()=>ce,i$:()=>C,kV:()=>_e,qK:()=>oe,sA:()=>ve,t4:()=>M});var n=a(4650),s=a(6895);let t;try{t=typeof Intl<"u"&&Intl.v8BreakIterator}catch{t=!1}let E,M=(()=>{class ${constructor(x){this._platformId=x,this.isBrowser=this._platformId?(0,s.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 $.\u0275fac=function(x){return new(x||$)(n.LFG(n.Lbi))},$.\u0275prov=n.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();const de=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function oe(){if(E)return E;if("object"!=typeof document||!document)return E=new Set(de),E;let $=document.createElement("input");return E=new Set(de.filter(m=>($.setAttribute("type",m),$.type===m))),E}let j,R,Z;function C($){return function P(){if(null==j&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>j=!0}))}finally{j=j||!1}return j}()?$:!!$.capture}function N(){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 $=Element.prototype.scrollTo;R=!!$&&!/\{\s*\[native code\]\s*\}/.test($.toString())}}return R}function _e($){if(function J(){if(null==Z){const $=typeof document<"u"?document.head:null;Z=!(!$||!$.createShadowRoot&&!$.attachShadow)}return Z}()){const m=$.getRootNode?$.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&m instanceof ShadowRoot)return m}return null}function ce(){let $=typeof document<"u"&&document?document.activeElement:null;for(;$&&$.shadowRoot;){const m=$.shadowRoot.activeElement;if(m===$)break;$=m}return $}function ve($){return $.composedPath?$.composedPath()[0]:$.target}function X(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(Ue,be,a)=>{a.d(be,{C5:()=>P,Pl:()=>ce,UE:()=>C,eL:()=>X,en:()=>R,u0:()=>U});var n=a(4650),s=a(6895);class j{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 P extends j{constructor(x,v,D,he){super(),this.component=x,this.viewContainerRef=v,this.injector=D,this.componentFactoryResolver=he}}class C extends j{constructor(x,v,D,he){super(),this.templateRef=x,this.viewContainerRef=v,this.context=D,this.injector=he}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 L extends j{constructor(x){super(),this.element=x instanceof n.SBq?x.nativeElement:x}}class R{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(x){return x instanceof P?(this._attachedPortal=x,this.attachComponentPortal(x)):x instanceof C?(this._attachedPortal=x,this.attachTemplatePortal(x)):this.attachDomPortal&&x instanceof L?(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 U extends R{constructor(x,v,D,he,ke){super(),this.outletElement=x,this._componentFactoryResolver=v,this._appRef=D,this._defaultInjector=he,this.attachDomPortal=Ee=>{const Te=Ee.element,De=this._document.createComment("dom-portal");Te.parentNode.insertBefore(De,Te),this.outletElement.appendChild(Te),this._attachedPortal=Ee,super.setDisposeFn(()=>{De.parentNode&&De.parentNode.replaceChild(Te,De)})},this._document=ke}attachComponentPortal(x){const D=(x.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(x.component);let he;return x.viewContainerRef?(he=x.viewContainerRef.createComponent(D,x.viewContainerRef.length,x.injector||x.viewContainerRef.injector),this.setDisposeFn(()=>he.destroy())):(he=D.create(x.injector||this._defaultInjector||n.zs3.NULL),this._appRef.attachView(he.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(he.hostView),he.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(he)),this._attachedPortal=x,he}attachTemplatePortal(x){let v=x.viewContainerRef,D=v.createEmbeddedView(x.templateRef,x.context,{injector:x.injector});return D.rootNodes.forEach(he=>this.outletElement.appendChild(he)),D.detectChanges(),this.setDisposeFn(()=>{let he=v.indexOf(D);-1!==he&&v.remove(he)}),this._attachedPortal=x,D}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(x){return x.hostView.rootNodes[0]}}let ce=(()=>{class m extends R{constructor(v,D,he){super(),this._componentFactoryResolver=v,this._viewContainerRef=D,this._isInitialized=!1,this.attached=new n.vpe,this.attachDomPortal=ke=>{const Ee=ke.element,Te=this._document.createComment("dom-portal");ke.setAttachedHost(this),Ee.parentNode.insertBefore(Te,Ee),this._getRootNode().appendChild(Ee),this._attachedPortal=ke,super.setDisposeFn(()=>{Te.parentNode&&Te.parentNode.replaceChild(Ee,Te)})},this._document=he}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 D=null!=v.viewContainerRef?v.viewContainerRef:this._viewContainerRef,ke=(v.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(v.component),Ee=D.createComponent(ke,D.length,v.injector||D.injector);return D!==this._viewContainerRef&&this._getRootNode().appendChild(Ee.hostView.rootNodes[0]),super.setDisposeFn(()=>Ee.destroy()),this._attachedPortal=v,this._attachedRef=Ee,this.attached.emit(Ee),Ee}attachTemplatePortal(v){v.setAttachedHost(this);const D=this._viewContainerRef.createEmbeddedView(v.templateRef,v.context,{injector:v.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=v,this._attachedRef=D,this.attached.emit(D),D}_getRootNode(){const v=this._viewContainerRef.element.nativeElement;return v.nodeType===v.ELEMENT_NODE?v:v.parentNode}}return m.\u0275fac=function(v){return new(v||m)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36(s.K0))},m.\u0275dir=n.lG2({type:m,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.qOj]}),m})(),X=(()=>{class m{}return m.\u0275fac=function(v){return new(v||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({}),m})()},7376:(Ue,be,a)=>{a.d(be,{Cl:()=>De,ZD:()=>Te,mF:()=>X,rL:()=>x});var n=a(1281),s=a(4650),t=a(7579),M=a(9646),se=a(8306),E=a(4968),j=(a(6406),a(3101),a(3601)),P=a(9300),C=a(3353),L=a(6895),R=a(445);let X=(()=>{class Me{constructor(W,Y,pe){this._ngZone=W,this._platform=Y,this._scrolled=new t.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=pe}register(W){this.scrollContainers.has(W)||this.scrollContainers.set(W,W.elementScrolled().subscribe(()=>this._scrolled.next(W)))}deregister(W){const Y=this.scrollContainers.get(W);Y&&(Y.unsubscribe(),this.scrollContainers.delete(W))}scrolled(W=20){return this._platform.isBrowser?new se.y(Y=>{this._globalSubscription||this._addGlobalListener();const pe=W>0?this._scrolled.pipe((0,j.e)(W)).subscribe(Y):this._scrolled.subscribe(Y);return this._scrolledCount++,()=>{pe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,M.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((W,Y)=>this.deregister(Y)),this._scrolled.complete()}ancestorScrolled(W,Y){const pe=this.getAncestorScrollContainers(W);return this.scrolled(Y).pipe((0,P.h)(B=>!B||pe.indexOf(B)>-1))}getAncestorScrollContainers(W){const Y=[];return this.scrollContainers.forEach((pe,B)=>{this._scrollableContainsElement(B,W)&&Y.push(B)}),Y}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(W,Y){let pe=(0,n.fI)(Y),B=W.getElementRef().nativeElement;do{if(pe==B)return!0}while(pe=pe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const W=this._getWindow();return(0,E.R)(W.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Me.\u0275fac=function(W){return new(W||Me)(s.LFG(s.R0b),s.LFG(C.t4),s.LFG(L.K0,8))},Me.\u0275prov=s.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})(),x=(()=>{class Me{constructor(W,Y,pe){this._platform=W,this._change=new t.x,this._changeListener=B=>{this._change.next(B)},this._document=pe,Y.runOutsideAngular(()=>{if(W.isBrowser){const B=this._getWindow();B.addEventListener("resize",this._changeListener),B.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const W=this._getWindow();W.removeEventListener("resize",this._changeListener),W.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const W={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),W}getViewportRect(){const W=this.getViewportScrollPosition(),{width:Y,height:pe}=this.getViewportSize();return{top:W.top,left:W.left,bottom:W.top+pe,right:W.left+Y,height:pe,width:Y}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const W=this._document,Y=this._getWindow(),pe=W.documentElement,B=pe.getBoundingClientRect();return{top:-B.top||W.body.scrollTop||Y.scrollY||pe.scrollTop||0,left:-B.left||W.body.scrollLeft||Y.scrollX||pe.scrollLeft||0}}change(W=20){return W>0?this._change.pipe((0,j.e)(W)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const W=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:W.innerWidth,height:W.innerHeight}:{width:0,height:0}}}return Me.\u0275fac=function(W){return new(W||Me)(s.LFG(C.t4),s.LFG(s.R0b),s.LFG(L.K0,8))},Me.\u0275prov=s.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})(),Te=(()=>{class Me{}return Me.\u0275fac=function(W){return new(W||Me)},Me.\u0275mod=s.oAB({type:Me}),Me.\u0275inj=s.cJS({}),Me})(),De=(()=>{class Me{}return Me.\u0275fac=function(W){return new(W||Me)},Me.\u0275mod=s.oAB({type:Me}),Me.\u0275inj=s.cJS({imports:[R.vT,Te,R.vT,Te]}),Me})()},4859:(Ue,be,a)=>{a.d(be,{lW:()=>P,ot:()=>L});var n=a(4650),s=a(3238),t=a(2687);const M=["mat-button",""],se=["*"],oe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],j=(0,s.pj)((0,s.Id)((0,s.Kr)(class{constructor(R){this._elementRef=R}})));let P=(()=>{class R extends j{constructor(U,Z,J){super(U),this._focusMonitor=Z,this._animationMode=J,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const _e of oe)this._hasHostAttributes(_e)&&this._getHostElement().classList.add(_e);U.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(U,Z){U?this._focusMonitor.focusVia(this._getHostElement(),U,Z):this._getHostElement().focus(Z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...U){return U.some(Z=>this._getHostElement().hasAttribute(Z))}}return R.\u0275fac=function(U){return new(U||R)(n.Y36(n.SBq),n.Y36(t.tE),n.Y36(n.QbO,8))},R.\u0275cmp=n.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(U,Z){if(1&U&&n.Gf(s.wG,5),2&U){let J;n.iGM(J=n.CRH())&&(Z.ripple=J.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(U,Z){2&U&&(n.uIk("disabled",Z.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:M,ngContentSelectors:se,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(U,Z){1&U&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&U&&(n.xp6(2),n.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),n.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},dependencies:[s.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})(),L=(()=>{class R{}return R.\u0275fac=function(U){return new(U||R)},R.\u0275mod=n.oAB({type:R}),R.\u0275inj=n.cJS({imports:[s.si,s.BQ,s.BQ]}),R})()},6709:(Ue,be,a)=>{a.d(be,{oG:()=>_e,p9:()=>$});var n=a(2687),s=a(1281),t=a(4650),M=a(4006),se=a(3238),E=a(9643);const de=["input"],oe=function(m){return{enterDuration:m}},j=["*"],P=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:C});function C(){return{color:"accent",clickAction:"check-indeterminate"}}let L=0;const R=C(),N={provide:M.JU,useExisting:(0,t.Gpc)(()=>_e),multi:!0};class U{}const Z=(0,se.sb)((0,se.pj)((0,se.Kr)((0,se.Id)(class{constructor(m){this._elementRef=m}}))));let J=(()=>{class m extends Z{constructor(v,D,he,ke,Ee,Te,De){super(D),this._changeDetectorRef=he,this._ngZone=ke,this._animationMode=Te,this._options=De,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(Ee)||0,this.id=this._uniqueId=`${v}${++L}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(v){this._required=(0,s.Ig)(v)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(v){const D=(0,s.Ig)(v);D!=this.checked&&(this._checked=D,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(v){const D=(0,s.Ig)(v);D!==this.disabled&&(this._disabled=D,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(v){const D=v!=this._indeterminate;this._indeterminate=(0,s.Ig)(v),D&&(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 D=this._currentCheckState,he=this._getAnimationTargetElement();if(D!==v&&he&&(this._currentAnimationClass.length>0&&he.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(D,v),this._currentCheckState=v,this._currentAnimationClass.length>0)){he.classList.add(this._currentAnimationClass);const ke=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{he.classList.remove(ke)},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,D){if("NoopAnimations"===this._animationMode)return"";switch(v){case 0:if(1===D)return this._animationClasses.uncheckedToChecked;if(3==D)return this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===D?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===D?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===D?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(v){const D=this._inputElement;D&&(D.nativeElement.indeterminate=v)}}return m.\u0275fac=function(v){t.$Z()},m.\u0275dir=t.lG2({type:m,viewQuery:function(v,D){if(1&v&&(t.Gf(de,5),t.Gf(se.wG,5)),2&v){let he;t.iGM(he=t.CRH())&&(D._inputElement=he.first),t.iGM(he=t.CRH())&&(D.ripple=he.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]}),m})(),_e=(()=>{class m extends J{constructor(v,D,he,ke,Ee,Te,De){super("mat-checkbox-",v,D,ke,Ee,Te,De),this._focusMonitor=he,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 D=new U;return D.source=this,D.checked=v,D}_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,D){v?this._focusMonitor.focusVia(this._inputElement,v,D):this._inputElement.nativeElement.focus(D)}}return m.\u0275fac=function(v){return new(v||m)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(n.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(P,8))},m.\u0275cmp=t.Xpm({type:m,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(v,D){2&v&&(t.Ikx("id",D.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",D.indeterminate)("mat-checkbox-checked",D.checked)("mat-checkbox-disabled",D.disabled)("mat-checkbox-label-before","before"==D.labelPosition)("_mat-animation-noopable","NoopAnimations"===D._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([N]),t.qOj],ngContentSelectors:j,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,D){if(1&v&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(ke){return D._onInteractionEvent(ke)})("click",function(ke){return D._onInputClick(ke)}),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 D._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&v){const he=t.MAs(1),ke=t.MAs(13);t.uIk("for",D.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!ke.textContent||!ke.textContent.trim()),t.xp6(1),t.Q6J("id",D.inputId)("required",D.required)("checked",D.checked)("disabled",D.disabled)("tabIndex",D.tabIndex),t.uIk("value",D.value)("name",D.name)("aria-label",D.ariaLabel||null)("aria-labelledby",D.ariaLabelledby)("aria-checked",D._getAriaChecked())("aria-describedby",D.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",he)("matRippleDisabled",D._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,oe,"NoopAnimations"===D._animationMode?0:150))}},dependencies:[se.wG,E.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}),m})(),X=(()=>{class m{}return m.\u0275fac=function(v){return new(v||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({}),m})(),$=(()=>{class m{}return m.\u0275fac=function(v){return new(v||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[se.si,se.BQ,E.Q8,X,se.BQ,X]}),m})()},3238:(Ue,be,a)=>{a.d(be,{_A:()=>ye,rD:()=>Fe,sG:()=>W,Ad:()=>De,K7:()=>te,HF:()=>l,Y2:()=>Ae,BQ:()=>X,XK:()=>Se,ey:()=>Ne,Ng:()=>Ge,wG:()=>O,si:()=>u,IR:()=>Qe,CB:()=>Ye,jH:()=>ze,pj:()=>D,Kr:()=>he,Id:()=>v,FD:()=>Ee,dB:()=>Te,sb:()=>ke});var n=a(4650),s=a(2687),t=a(445),se=a(6895),E=a(3353),de=a(1281),oe=a(8306),j=a(7579),P=a(9521);function R(V,T){if(1&V&&n._UZ(0,"mat-pseudo-checkbox",4),2&V){const y=n.oxw();n.Q6J("state",y.selected?"checked":"unchecked")("disabled",y.disabled)}}function N(V,T){if(1&V&&(n.TgZ(0,"span",5),n._uU(1),n.qZA()),2&V){const y=n.oxw();n.xp6(1),n.hij("(",y.group.label,")")}}const U=["*"],ve=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function ce(){return!0}});let X=(()=>{class V{constructor(y,K,k){this._sanityChecks=K,this._document=k,this._hasDoneGlobalChecks=!1,y._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(y){return!(0,E.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[y])}}return V.\u0275fac=function(y){return new(y||V)(n.LFG(s.qm),n.LFG(ve,8),n.LFG(se.K0))},V.\u0275mod=n.oAB({type:V}),V.\u0275inj=n.cJS({imports:[t.vT,t.vT]}),V})();function v(V){return class extends V{constructor(...T){super(...T),this._disabled=!1}get disabled(){return this._disabled}set disabled(T){this._disabled=(0,de.Ig)(T)}}}function D(V,T){return class extends V{constructor(...y){super(...y),this.defaultColor=T,this.color=T}get color(){return this._color}set color(y){const K=y||this.defaultColor;K!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),K&&this._elementRef.nativeElement.classList.add(`mat-${K}`),this._color=K)}}}function he(V){return class extends V{constructor(...T){super(...T),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(T){this._disableRipple=(0,de.Ig)(T)}}}function ke(V,T=0){return class extends V{constructor(...y){super(...y),this._tabIndex=T,this.defaultTabIndex=T}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(y){this._tabIndex=null!=y?(0,de.su)(y):this.defaultTabIndex}}}function Ee(V){return class extends V{constructor(...T){super(...T),this.errorState=!1}updateErrorState(){const T=this.errorState,p=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);p!==T&&(this.errorState=p,this.stateChanges.next())}}}function Te(V){return class extends V{constructor(...T){super(...T),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new oe.y(y=>{this._isInitialized?this._notifySubscriber(y):this._pendingSubscribers.push(y)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(T){T.next(),T.complete()}}}const De=new n.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Me(){return(0,n.f3M)(n.soG)}});class ye{constructor(){this._localeChanges=new j.x,this.localeChanges=this._localeChanges}getValidDateOrNull(T){return this.isDateInstance(T)&&this.isValid(T)?T:null}deserialize(T){return null==T||this.isDateInstance(T)&&this.isValid(T)?T:this.invalid()}setLocale(T){this.locale=T,this._localeChanges.next()}compareDate(T,y){return this.getYear(T)-this.getYear(y)||this.getMonth(T)-this.getMonth(y)||this.getDate(T)-this.getDate(y)}sameDate(T,y){if(T&&y){let K=this.isValid(T),k=this.isValid(y);return K&&k?!this.compareDate(T,y):K==k}return T==y}clampDate(T,y,K){return y&&this.compareDate(T,y)<0?y:K&&this.compareDate(T,K)>0?K:T}}const W=new n.OlP("mat-date-formats"),Y=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function pe(V,T){const y=Array(V);for(let K=0;K<V;K++)y[K]=T(K);return y}let B=(()=>{class V extends ye{constructor(y,K){super(),this.useUtcForDisplay=!1,super.setLocale(y)}getYear(y){return y.getFullYear()}getMonth(y){return y.getMonth()}getDate(y){return y.getDate()}getDayOfWeek(y){return y.getDay()}getMonthNames(y){const K=new Intl.DateTimeFormat(this.locale,{month:y,timeZone:"utc"});return pe(12,k=>this._format(K,new Date(2017,k,1)))}getDateNames(){const y=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return pe(31,K=>this._format(y,new Date(2017,0,K+1)))}getDayOfWeekNames(y){const K=new Intl.DateTimeFormat(this.locale,{weekday:y,timeZone:"utc"});return pe(7,k=>this._format(K,new Date(2017,0,k+1)))}getYearName(y){const K=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(K,y)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(y){return this.getDate(this._createDateWithOverflow(this.getYear(y),this.getMonth(y)+1,0))}clone(y){return new Date(y.getTime())}createDate(y,K,k){let p=this._createDateWithOverflow(y,K,k);return p.getMonth(),p}today(){return new Date}parse(y){return"number"==typeof y?new Date(y):y?new Date(Date.parse(y)):null}format(y,K){if(!this.isValid(y))throw Error("NativeDateAdapter: Cannot format invalid date.");const k=new Intl.DateTimeFormat(this.locale,{...K,timeZone:"utc"});return this._format(k,y)}addCalendarYears(y,K){return this.addCalendarMonths(y,12*K)}addCalendarMonths(y,K){let k=this._createDateWithOverflow(this.getYear(y),this.getMonth(y)+K,this.getDate(y));return this.getMonth(k)!=((this.getMonth(y)+K)%12+12)%12&&(k=this._createDateWithOverflow(this.getYear(k),this.getMonth(k),0)),k}addCalendarDays(y,K){return this._createDateWithOverflow(this.getYear(y),this.getMonth(y),this.getDate(y)+K)}toIso8601(y){return[y.getUTCFullYear(),this._2digit(y.getUTCMonth()+1),this._2digit(y.getUTCDate())].join("-")}deserialize(y){if("string"==typeof y){if(!y)return null;if(Y.test(y)){let K=new Date(y);if(this.isValid(K))return K}}return super.deserialize(y)}isDateInstance(y){return y instanceof Date}isValid(y){return!isNaN(y.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(y,K,k){const p=new Date;return p.setFullYear(y,K,k),p.setHours(0,0,0,0),p}_2digit(y){return("00"+y).slice(-2)}_format(y,K){const k=new Date;return k.setUTCFullYear(K.getFullYear(),K.getMonth(),K.getDate()),k.setUTCHours(K.getHours(),K.getMinutes(),K.getSeconds(),K.getMilliseconds()),y.format(k)}}return V.\u0275fac=function(y){return new(y||V)(n.LFG(De,8),n.LFG(E.t4))},V.\u0275prov=n.Yz7({token:V,factory:V.\u0275fac}),V})();const Q={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 le=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=n.oAB({type:V}),V.\u0275inj=n.cJS({providers:[{provide:ye,useClass:B}]}),V})(),Se=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=n.oAB({type:V}),V.\u0275inj=n.cJS({providers:[{provide:W,useValue:Q}],imports:[le]}),V})(),Fe=(()=>{class V{isErrorState(y,K){return!!(y&&y.invalid&&(y.touched||K&&K.submitted))}}return V.\u0275fac=function(y){return new(y||V)},V.\u0275prov=n.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();class xe{constructor(T,y,K,k=!1){this._renderer=T,this.element=y,this.config=K,this._animationForciblyDisabledThroughCss=k,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Le={enterDuration:225,exitDuration:150},je=(0,E.i$)({passive:!0}),$e=["mousedown","touchstart"],Xe=["mouseup","mouseleave","touchend","touchcancel"];class Qe{constructor(T,y,K,k){this._target=T,this._ngZone=y,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,k.isBrowser&&(this._containerElement=(0,de.fI)(K))}fadeInRipple(T,y,K={}){const k=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),p={...Le,...K.animation};K.centered&&(T=k.left+k.width/2,y=k.top+k.height/2);const b=K.radius||function qe(V,T,y){const K=Math.max(Math.abs(V-y.left),Math.abs(V-y.right)),k=Math.max(Math.abs(T-y.top),Math.abs(T-y.bottom));return Math.sqrt(K*K+k*k)}(T,y,k),A=T-k.left,z=y-k.top,me=p.enterDuration,Ie=document.createElement("div");Ie.classList.add("mat-ripple-element"),Ie.style.left=A-b+"px",Ie.style.top=z-b+"px",Ie.style.height=2*b+"px",Ie.style.width=2*b+"px",null!=K.color&&(Ie.style.backgroundColor=K.color),Ie.style.transitionDuration=`${me}ms`,this._containerElement.appendChild(Ie);const Ke=window.getComputedStyle(Ie),ge=Ke.transitionDuration,w="none"===Ke.transitionProperty||"0s"===ge||"0s, 0s"===ge,ae=new xe(this,Ie,K,w);Ie.style.transform="scale3d(1, 1, 1)",ae.state=0,K.persistent||(this._mostRecentTransientRipple=ae);let Pe=null;return!w&&(me||p.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Re=()=>this._finishRippleTransition(ae),Ze=()=>this._destroyRipple(ae);Ie.addEventListener("transitionend",Re),Ie.addEventListener("transitioncancel",Ze),Pe={onTransitionEnd:Re,onTransitionCancel:Ze}}),this._activeRipples.set(ae,Pe),(w||!me)&&this._finishRippleTransition(ae),ae}fadeOutRipple(T){if(2===T.state||3===T.state)return;const y=T.element,K={...Le,...T.config.animation};y.style.transitionDuration=`${K.exitDuration}ms`,y.style.opacity="0",T.state=2,(T._animationForciblyDisabledThroughCss||!K.exitDuration)&&this._finishRippleTransition(T)}fadeOutAll(){this._getActiveRipples().forEach(T=>T.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(T=>{T.config.persistent||T.fadeOut()})}setupTriggerEvents(T){const y=(0,de.fI)(T);!y||y===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=y,this._registerEvents($e))}handleEvent(T){"mousedown"===T.type?this._onMousedown(T):"touchstart"===T.type?this._onTouchStart(T):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Xe),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(T){0===T.state?this._startFadeOutTransition(T):2===T.state&&this._destroyRipple(T)}_startFadeOutTransition(T){const y=T===this._mostRecentTransientRipple,{persistent:K}=T.config;T.state=1,!K&&(!y||!this._isPointerDown)&&T.fadeOut()}_destroyRipple(T){const y=this._activeRipples.get(T)??null;this._activeRipples.delete(T),this._activeRipples.size||(this._containerRect=null),T===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),T.state=3,null!==y&&(T.element.removeEventListener("transitionend",y.onTransitionEnd),T.element.removeEventListener("transitioncancel",y.onTransitionCancel)),T.element.remove()}_onMousedown(T){const y=(0,s.X6)(T),K=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!y&&!K&&(this._isPointerDown=!0,this.fadeInRipple(T.clientX,T.clientY,this._target.rippleConfig))}_onTouchStart(T){if(!this._target.rippleDisabled&&!(0,s.yG)(T)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const y=T.changedTouches;for(let K=0;K<y.length;K++)this.fadeInRipple(y[K].clientX,y[K].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(T=>{!T.config.persistent&&(1===T.state||T.config.terminateOnPointerUp&&0===T.state)&&T.fadeOut()}))}_registerEvents(T){this._ngZone.runOutsideAngular(()=>{T.forEach(y=>{this._triggerElement.addEventListener(y,this,je)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&($e.forEach(T=>{this._triggerElement.removeEventListener(T,this,je)}),this._pointerUpEventsRegistered&&Xe.forEach(T=>{this._triggerElement.removeEventListener(T,this,je)}))}}const Ae=new n.OlP("mat-ripple-global-options");let O=(()=>{class V{constructor(y,K,k,p,b){this._elementRef=y,this._animationMode=b,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=p||{},this._rippleRenderer=new Qe(this,K,y,k)}get disabled(){return this._disabled}set disabled(y){y&&this.fadeOutAllNonPersistent(),this._disabled=y,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(y){this._trigger=y,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(y,K=0,k){return"number"==typeof y?this._rippleRenderer.fadeInRipple(y,K,{...this.rippleConfig,...k}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...y})}}return V.\u0275fac=function(y){return new(y||V)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(E.t4),n.Y36(Ae,8),n.Y36(n.QbO,8))},V.\u0275dir=n.lG2({type:V,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(y,K){2&y&&n.ekj("mat-ripple-unbounded",K.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"]}),V})(),u=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=n.oAB({type:V}),V.\u0275inj=n.cJS({imports:[X,X]}),V})(),i=(()=>{class V{constructor(y){this._animationMode=y,this.state="unchecked",this.disabled=!1}}return V.\u0275fac=function(y){return new(y||V)(n.Y36(n.QbO,8))},V.\u0275cmp=n.Xpm({type:V,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(y,K){2&y&&n.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===K.state)("mat-pseudo-checkbox-checked","checked"===K.state)("mat-pseudo-checkbox-disabled",K.disabled)("_mat-animation-noopable","NoopAnimations"===K._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(y,K){},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}),V})(),e=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=n.oAB({type:V}),V.\u0275inj=n.cJS({imports:[X]}),V})();const l=new n.OlP("MAT_OPTION_PARENT_COMPONENT"),te=new n.OlP("MatOptgroup");let we=0;class Be{constructor(T,y=!1){this.source=T,this.isUserInput=y}}let Oe=(()=>{class V{constructor(y,K,k,p){this._element=y,this._changeDetectorRef=K,this._parent=k,this.group=p,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+we++,this.onSelectionChange=new n.vpe,this._stateChanges=new j.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(y){this._disabled=(0,de.Ig)(y)}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(y,K){const k=this._getHostElement();"function"==typeof k.focus&&k.focus(K)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(y){(y.keyCode===P.K5||y.keyCode===P.L_)&&!(0,P.Vb)(y)&&(this._selectViaInteraction(),y.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 y=this.viewValue;y!==this._mostRecentViewValue&&(this._mostRecentViewValue=y,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(y=!1){this.onSelectionChange.emit(new Be(this,y))}}return V.\u0275fac=function(y){n.$Z()},V.\u0275dir=n.lG2({type:V,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),V})(),Ne=(()=>{class V extends Oe{constructor(y,K,k,p){super(y,K,k,p)}}return V.\u0275fac=function(y){return new(y||V)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(l,8),n.Y36(te,8))},V.\u0275cmp=n.Xpm({type:V,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(y,K){1&y&&n.NdJ("click",function(){return K._selectViaInteraction()})("keydown",function(p){return K._handleKeydown(p)}),2&y&&(n.Ikx("id",K.id),n.uIk("tabindex",K._getTabIndex())("aria-selected",K._getAriaSelected())("aria-disabled",K.disabled.toString()),n.ekj("mat-selected",K.selected)("mat-option-multiple",K.multiple)("mat-active",K.active)("mat-option-disabled",K.disabled))},exportAs:["matOption"],features:[n.qOj],ngContentSelectors:U,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(y,K){1&y&&(n.F$t(),n.YNc(0,R,1,2,"mat-pseudo-checkbox",0),n.TgZ(1,"span",1),n.Hsn(2),n.qZA(),n.YNc(3,N,2,1,"span",2),n._UZ(4,"div",3)),2&y&&(n.Q6J("ngIf",K.multiple),n.xp6(3),n.Q6J("ngIf",K.group&&K.group._inert),n.xp6(1),n.Q6J("matRippleTrigger",K._getHostElement())("matRippleDisabled",K.disabled||K.disableRipple))},dependencies:[O,se.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}),V})();function Ye(V,T,y){if(y.length){let K=T.toArray(),k=y.toArray(),p=0;for(let b=0;b<V+1;b++)K[b].group&&K[b].group===k[p]&&p++;return p}return 0}function ze(V,T,y,K){return V<y?V:V+T>y+K?Math.max(0,V-K+T):y}let Ge=(()=>{class V{}return V.\u0275fac=function(y){return new(y||V)},V.\u0275mod=n.oAB({type:V}),V.\u0275inj=n.cJS({imports:[u,se.ez,X,e]}),V})()},5412:(Ue,be,a)=>{a.d(be,{WI:()=>Se,uw:()=>Le,Is:()=>Ae,so:()=>Q});var n=a(2687),s=a(2561),t=a(3353),M=a(4080),se=a(6895),E=a(4650),de=a(9521),oe=a(7579),j=a(9770),P=a(9646),C=a(445),L=a(8675);function R(O,u){}class N{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 O extends M.en{constructor(i,e,l,f,S,I,te,Ce){super(),this._elementRef=i,this._focusTrapFactory=e,this._config=f,this._interactivityChecker=S,this._ngZone=I,this._overlayRef=te,this._focusMonitor=Ce,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=we=>{this._portalOutlet.hasAttached();const Be=this._portalOutlet.attachDomPortal(we);return this._contentAttached(),Be},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=l}_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 l=()=>{i.removeEventListener("blur",l),i.removeEventListener("mousedown",l),i.removeAttribute("tabindex")};i.addEventListener("blur",l),i.addEventListener("mousedown",l)})),i.focus(e)}_focusByCssSelector(i,e){let l=this._elementRef.nativeElement.querySelector(i);l&&this._forceFocus(l,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 l=(0,t.ht)(),f=this._elementRef.nativeElement;(!l||l===this._document.body||l===f||f.contains(l))&&(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 O.\u0275fac=function(i){return new(i||O)(E.Y36(E.SBq),E.Y36(n.qV),E.Y36(se.K0,8),E.Y36(N),E.Y36(n.ic),E.Y36(E.R0b),E.Y36(s.Iu),E.Y36(n.tE))},O.\u0275cmp=E.Xpm({type:O,selectors:[["cdk-dialog-container"]],viewQuery:function(i,e){if(1&i&&E.Gf(M.Pl,7),2&i){let l;E.iGM(l=E.CRH())&&(e._portalOutlet=l.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,e){2&i&&E.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:[E.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&E.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}),O})();class J{constructor(u,i){this.overlayRef=u,this.config=i,this.closed=new oe.x,this.disableClose=i.disableClose,this.backdropClick=u.backdropClick(),this.keydownEvents=u.keydownEvents(),this.outsidePointerEvents=u.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(e=>{e.keyCode===de.hY&&!this.disableClose&&!(0,de.Vb)(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(u,i){if(this.containerInstance){const e=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this.overlayRef.dispose(),e.next(u),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(u="",i=""){return this.overlayRef.updateSize({width:u,height:i}),this}addPanelClass(u){return this.overlayRef.addPanelClass(u),this}removePanelClass(u){return this.overlayRef.removePanelClass(u),this}}const _e=new E.OlP("DialogScrollStrategy"),ce=new E.OlP("DialogData"),ve=new E.OlP("DefaultDialogConfig"),$={provide:_e,deps:[s.aV],useFactory:function X(O){return()=>O.scrollStrategies.block()}};let m=0,x=(()=>{class O{constructor(i,e,l,f,S,I){this._overlay=i,this._injector=e,this._defaultOptions=l,this._parentDialog=f,this._overlayContainer=S,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new oe.x,this._afterOpenedAtThisLevel=new oe.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,j.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.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 N,...e}).id=e.id||"cdk-dialog-"+m++,e.id&&this.getDialogById(e.id);const f=this._getOverlayConfig(e),S=this._overlay.create(f),I=new J(S,e),te=this._attachContainer(S,I,e);return I.containerInstance=te,this._attachDialogContent(i,I,te,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 s.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,l){const f=l.injector??l.viewContainerRef?.injector,S=[{provide:N,useValue:l},{provide:J,useValue:e},{provide:s.Iu,useValue:i}];let I;l.container?"function"==typeof l.container?I=l.container:(I=l.container.type,S.push(...l.container.providers(l))):I=Z;const te=new M.C5(I,l.viewContainerRef,E.zs3.create({parent:f||this._injector,providers:S}),l.componentFactoryResolver);return i.attach(te).instance}_attachDialogContent(i,e,l,f){const S=this._createInjector(f,e,l);if(i instanceof E.Rgc){let I={$implicit:f.data,dialogRef:e};f.templateContext&&(I={...I,..."function"==typeof f.templateContext?f.templateContext():f.templateContext}),l.attachTemplatePortal(new M.UE(i,null,I,S))}else{const I=l.attachComponentPortal(new M.C5(i,f.viewContainerRef,S,f.componentFactoryResolver));e.componentInstance=I.instance}}_createInjector(i,e,l){const f=i&&i.viewContainerRef&&i.viewContainerRef.injector,S=[{provide:ce,useValue:i.data},{provide:J,useValue:e}];return i.providers&&("function"==typeof i.providers?S.push(...i.providers(e,i,l)):S.push(...i.providers)),i.direction&&(!f||!f.get(C.Is,null,E.XFs.Optional))&&S.push({provide:C.Is,useValue:{value:i.direction,change:(0,P.of)()}}),E.zs3.create({parent:f||this._injector,providers:S})}_removeOpenDialog(i,e){const l=this.openDialogs.indexOf(i);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((f,S)=>{f?S.setAttribute("aria-hidden",f):S.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 l=e.length-1;l>-1;l--){const f=e[l];f!==i&&"SCRIPT"!==f.nodeName&&"STYLE"!==f.nodeName&&!f.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(f,f.getAttribute("aria-hidden")),f.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return O.\u0275fac=function(i){return new(i||O)(E.LFG(s.aV),E.LFG(E.zs3),E.LFG(ve,8),E.LFG(O,12),E.LFG(s.Xj),E.LFG(_e))},O.\u0275prov=E.Yz7({token:O,factory:O.\u0275fac}),O})();function v(O,u){let i=O.length;for(;i--;)u(O[i])}let D=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275mod=E.oAB({type:O}),O.\u0275inj=E.cJS({providers:[x,$],imports:[s.U8,M.eL,n.rt,M.eL]}),O})();var he=a(3238),ke=a(6451),Ee=a(9300),Te=a(5698),De=a(7340);function Me(O,u){}const ye={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},W={dialogContainer:(0,De.X$)("dialogContainer",[(0,De.SB)("void, exit",(0,De.oB)({opacity:0,transform:"scale(0.7)"})),(0,De.SB)("enter",(0,De.oB)({transform:"none"})),(0,De.eR)("* => enter",(0,De.ru)([(0,De.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,De.oB)({transform:"none",opacity:1})),(0,De.IO)("@*",(0,De.pV)(),{optional:!0})]),ye),(0,De.eR)("* => void, * => exit",(0,De.ru)([(0,De.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,De.oB)({opacity:0})),(0,De.IO)("@*",(0,De.pV)(),{optional:!0})]),ye)])};class Y{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=ye.params.enterAnimationDuration,this.exitAnimationDuration=ye.params.exitAnimationDuration}}let pe=(()=>{class O extends Z{constructor(i,e,l,f,S,I,te,Ce){super(i,e,l,f,S,I,te,Ce),this._animationStateChanged=new E.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})}}return O.\u0275fac=function(i){return new(i||O)(E.Y36(E.SBq),E.Y36(n.qV),E.Y36(se.K0,8),E.Y36(Y),E.Y36(n.ic),E.Y36(E.R0b),E.Y36(s.Iu),E.Y36(n.tE))},O.\u0275cmp=E.Xpm({type:O,selectors:[["ng-component"]],features:[E.qOj],decls:0,vars:0,template:function(i,e){},encapsulation:2}),O})(),B=(()=>{class O extends pe{constructor(i,e,l,f,S,I,te,Ce,we){super(i,e,l,f,S,I,te,we),this._changeDetectorRef=Ce,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||ye.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ye.params.exitAnimationDuration}}}}return O.\u0275fac=function(i){return new(i||O)(E.Y36(E.SBq),E.Y36(n.qV),E.Y36(se.K0,8),E.Y36(Y),E.Y36(n.ic),E.Y36(E.R0b),E.Y36(s.Iu),E.Y36(E.sBO),E.Y36(n.tE))},O.\u0275cmp=E.Xpm({type:O,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(i,e){1&i&&E.WFA("@dialogContainer.start",function(f){return e._onAnimationStart(f)})("@dialogContainer.done",function(f){return e._onAnimationDone(f)}),2&i&&(E.Ikx("id",e._config.id),E.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),E.d8E("@dialogContainer",e._getAnimationState()))},features:[E.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,e){1&i&&E.YNc(0,Me,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:[W.dialogContainer]}}),O})();class Q{constructor(u,i,e){this._ref=u,this._containerInstance=e,this._afterOpened=new oe.x,this._beforeClosed=new oe.x,this._state=0,this.disableClose=i.disableClose,this.id=u.id,e._animationStateChanged.pipe((0,Ee.h)(l=>"opened"===l.state),(0,Te.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,Ee.h)(l=>"closed"===l.state),(0,Te.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),u.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ke.T)(this.backdropClick(),this.keydownEvents().pipe((0,Ee.h)(l=>l.keyCode===de.hY&&!this.disableClose&&!(0,de.Vb)(l)))).subscribe(l=>{this.disableClose||(l.preventDefault(),function le(O,u,i){O._closeInteractionType=u,O.close(i)}(this,"keydown"===l.type?"keyboard":"mouse"))})}close(u){this._result=u,this._containerInstance._animationStateChanged.pipe((0,Ee.h)(i=>"closing"===i.state),(0,Te.q)(1)).subscribe(i=>{this._beforeClosed.next(u),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(u){let i=this._ref.config.positionStrategy;return u&&(u.left||u.right)?u.left?i.left(u.left):i.right(u.right):i.centerHorizontally(),u&&(u.top||u.bottom)?u.top?i.top(u.top):i.bottom(u.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(u="",i=""){return this._ref.updateSize(u,i),this}addPanelClass(u){return this._ref.addPanelClass(u),this}removePanelClass(u){return this._ref.removePanelClass(u),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Se=new E.OlP("MatDialogData"),ie=new E.OlP("mat-dialog-default-options"),Fe=new E.OlP("mat-dialog-scroll-strategy"),ne={provide:Fe,deps:[s.aV],useFactory:function G(O){return()=>O.scrollStrategies.block()}};let ue=0,xe=(()=>{class O{constructor(i,e,l,f,S,I,te,Ce,we,Be){this._overlay=i,this._defaultOptions=l,this._parentDialog=f,this._dialogRefConstructor=te,this._dialogContainerType=Ce,this._dialogDataToken=we,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new oe.x,this._afterOpenedAtThisLevel=new oe.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,j.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.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 l;(e={...this._defaultOptions||new Y,...e}).id=e.id||`${this._idPrefix}${ue++}`,e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();const f=this._dialog.open(i,{...e,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Y,useValue:e},{provide:N,useValue:e}]},templateContext:()=>({dialogRef:l}),providers:(S,I,te)=>(l=new this._dialogRefConstructor(S,e,te),l.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:te},{provide:this._dialogDataToken,useValue:I.data},{provide:this._dialogRefConstructor,useValue:l}])});return l.componentInstance=f.componentInstance,this.openDialogs.push(l),this.afterOpened.next(l),l.afterClosed().subscribe(()=>{const S=this.openDialogs.indexOf(l);S>-1&&(this.openDialogs.splice(S,1),this.openDialogs.length||this._getAfterAllClosed().next())}),l}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 O.\u0275fac=function(i){E.$Z()},O.\u0275prov=E.Yz7({token:O,factory:O.\u0275fac}),O})(),Le=(()=>{class O extends xe{constructor(i,e,l,f,S,I,te,Ce){super(i,e,f,I,te,S,Q,B,Se,Ce)}}return O.\u0275fac=function(i){return new(i||O)(E.LFG(s.aV),E.LFG(E.zs3),E.LFG(se.Ye,8),E.LFG(ie,8),E.LFG(Fe),E.LFG(O,12),E.LFG(s.Xj),E.LFG(E.QbO,8))},O.\u0275prov=E.Yz7({token:O,factory:O.\u0275fac}),O})(),Ae=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275mod=E.oAB({type:O}),O.\u0275inj=E.cJS({providers:[Le,ne],imports:[D,s.U8,M.eL,he.BQ,he.BQ]}),O})()},9549:(Ue,be,a)=>{a.d(be,{Eo:()=>Y,G_:()=>Qe,KE:()=>qe,R9:()=>xe,hX:()=>Fe,lN:()=>Ae,qo:()=>ne});var n=a(9643),s=a(6895),t=a(4650),M=a(3238),se=a(445),E=a(1281),de=a(7579),oe=a(6451),j=a(4968),P=a(8675),C=a(2722),L=a(5698),R=a(7340),N=a(3353);const U=["connectionContainer"],Z=["inputContainer"],J=["label"];function _e(O,u){1&O&&(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 ce(O,u){if(1&O){const i=t.EpF();t.TgZ(0,"div",19),t.NdJ("cdkObserveContent",function(){t.CHM(i);const l=t.oxw();return t.KtG(l.updateOutlineGap())}),t.Hsn(1,1),t.qZA()}if(2&O){const i=t.oxw();t.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)}}function ve(O,u){if(1&O&&(t.ynx(0),t.Hsn(1,2),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.BQk()),2&O){const i=t.oxw(2);t.xp6(3),t.Oqu(i._control.placeholder)}}function X(O,u){1&O&&t.Hsn(0,3,["*ngSwitchCase","true"])}function $(O,u){1&O&&(t.TgZ(0,"span",23),t._uU(1," *"),t.qZA())}function m(O,u){if(1&O){const i=t.EpF();t.TgZ(0,"label",20,21),t.NdJ("cdkObserveContent",function(){t.CHM(i);const l=t.oxw();return t.KtG(l.updateOutlineGap())}),t.YNc(2,ve,4,1,"ng-container",12),t.YNc(3,X,1,0,"ng-content",12),t.YNc(4,$,2,0,"span",22),t.qZA()}if(2&O){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(O,u){1&O&&(t.TgZ(0,"div",24),t.Hsn(1,4),t.qZA())}function v(O,u){if(1&O&&(t.TgZ(0,"div",25),t._UZ(1,"span",26),t.qZA()),2&O){const i=t.oxw();t.xp6(1),t.ekj("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function D(O,u){if(1&O&&(t.TgZ(0,"div"),t.Hsn(1,5),t.qZA()),2&O){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState)}}function he(O,u){if(1&O&&(t.TgZ(0,"div",30),t._uU(1),t.qZA()),2&O){const i=t.oxw(2);t.Q6J("id",i._hintLabelId),t.xp6(1),t.Oqu(i.hintLabel)}}function ke(O,u){if(1&O&&(t.TgZ(0,"div",27),t.YNc(1,he,2,2,"div",28),t.Hsn(2,6),t._UZ(3,"div",29),t.Hsn(4,7),t.qZA()),2&O){const i=t.oxw();t.Q6J("@transitionMessages",i._subscriptAnimationState),t.xp6(1),t.Q6J("ngIf",i.hintLabel)}}const Ee=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Te=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Me=new t.OlP("MatError"),W={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 Y=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O}),O})();const Se=new t.OlP("MatHint");let Fe=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O,selectors:[["mat-label"]]}),O})(),F=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O,selectors:[["mat-placeholder"]]}),O})();const G=new t.OlP("MatPrefix");let ne=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O,selectors:[["","matPrefix",""]],features:[t._Bn([{provide:G,useExisting:O}])]}),O})();const ue=new t.OlP("MatSuffix");let xe=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275dir=t.lG2({type:O,selectors:[["","matSuffix",""]],features:[t._Bn([{provide:ue,useExisting:O}])]}),O})(),Le=0;const $e=(0,M.pj)(class{constructor(O){this._elementRef=O}},"primary"),Xe=new t.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Qe=new t.OlP("MatFormField");let qe=(()=>{class O extends $e{constructor(i,e,l,f,S,I,te){super(i),this._changeDetectorRef=e,this._dir=l,this._defaults=f,this._platform=S,this._ngZone=I,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new de.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Le++,this._labelId="mat-form-field-label-"+Le++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==te,this.appearance=f?.appearance||"legacy",f&&(this._hideRequiredMarker=Boolean(f.hideRequiredMarker),f.color&&(this.color=this.defaultColor=f.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,E.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,P.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),i.ngControl&&i.ngControl.valueChanges&&i.ngControl.valueChanges.pipe((0,C.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,C.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,oe.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,P.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,P.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,C.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,j.R)(this._label.nativeElement,"transitionend").pipe((0,L.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(f=>"start"===f.align):null,l=this._hintChildren?this._hintChildren.find(f=>"end"===f.align):null;e?i.push(e.id):this._hintLabel&&i.push(this._hintLabelId),l&&i.push(l.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,l=".mat-form-field-outline-start",f=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!i||!i.children.length||!i.textContent.trim()){const we=e.querySelectorAll(`${l}, ${f}`);for(let Be=0;Be<we.length;Be++)we[Be].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let S=0,I=0;const te=e.querySelectorAll(l),Ce=e.querySelectorAll(f);if(this._label&&this._label.nativeElement.children.length){const we=e.getBoundingClientRect();if(0===we.width&&0===we.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Be=this._getStartEnd(we),Oe=i.children,Ne=this._getStartEnd(Oe[0].getBoundingClientRect());let Ye=0;for(let ze=0;ze<Oe.length;ze++)Ye+=Oe[ze].offsetWidth;S=Math.abs(Ne-Be)-5,I=Ye>0?.75*Ye+10:0}for(let we=0;we<te.length;we++)te[we].style.width=`${S}px`;for(let we=0;we<Ce.length;we++)Ce[we].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 O.\u0275fac=function(i){return new(i||O)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(se.Is,8),t.Y36(Xe,8),t.Y36(N.t4),t.Y36(t.R0b),t.Y36(t.QbO,8))},O.\u0275cmp=t.Xpm({type:O,selectors:[["mat-form-field"]],contentQueries:function(i,e,l){if(1&i&&(t.Suo(l,Y,5),t.Suo(l,Y,7),t.Suo(l,Fe,5),t.Suo(l,Fe,7),t.Suo(l,F,5),t.Suo(l,Me,5),t.Suo(l,Se,5),t.Suo(l,G,5),t.Suo(l,ue,5)),2&i){let f;t.iGM(f=t.CRH())&&(e._controlNonStatic=f.first),t.iGM(f=t.CRH())&&(e._controlStatic=f.first),t.iGM(f=t.CRH())&&(e._labelChildNonStatic=f.first),t.iGM(f=t.CRH())&&(e._labelChildStatic=f.first),t.iGM(f=t.CRH())&&(e._placeholderChild=f.first),t.iGM(f=t.CRH())&&(e._errorChildren=f),t.iGM(f=t.CRH())&&(e._hintChildren=f),t.iGM(f=t.CRH())&&(e._prefixChildren=f),t.iGM(f=t.CRH())&&(e._suffixChildren=f)}},viewQuery:function(i,e){if(1&i&&(t.Gf(U,7),t.Gf(Z,5),t.Gf(J,5)),2&i){let l;t.iGM(l=t.CRH())&&(e._connectionContainerRef=l.first),t.iGM(l=t.CRH())&&(e._inputContainerRef=l.first),t.iGM(l=t.CRH())&&(e._label=l.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:Qe,useExisting:O}]),t.qOj],ngContentSelectors:Te,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(Ee),t.TgZ(0,"div",0)(1,"div",1,2),t.NdJ("click",function(f){return e._control.onContainerClick&&e._control.onContainerClick(f)}),t.YNc(3,_e,9,0,"ng-container",3),t.YNc(4,ce,2,1,"div",4),t.TgZ(5,"div",5,6),t.Hsn(7),t.TgZ(8,"span",7),t.YNc(9,m,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,D,2,1,"div",12),t.YNc(14,ke,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:[s.O5,s.RF,s.n9,n.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:[W.transitionMessages]},changeDetection:0}),O})(),Ae=(()=>{class O{}return O.\u0275fac=function(i){return new(i||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[s.ez,M.BQ,n.Q8,M.BQ]}),O})()},7392:(Ue,be,a)=>{a.d(be,{Hw:()=>le,Ps:()=>Se});var n=a(4650),s=a(3238),t=a(1281),M=a(6895),se=a(9646),E=a(2843),de=a(4128),oe=a(727),j=a(8505),P=a(4004),C=a(262),L=a(8746),R=a(3099),N=a(5698),U=a(529),Z=a(1481);const J=["*"];let _e;function ve(ie){return function ce(){if(void 0===_e&&(_e=null,typeof window<"u")){const ie=window;void 0!==ie.trustedTypes&&(_e=ie.trustedTypes.createPolicy("angular#components",{createHTML:Fe=>Fe}))}return _e}()?.createHTML(ie)||ie}function X(ie){return Error(`Unable to find icon with the name "${ie}"`)}function m(ie){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ie}".`)}function x(ie){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ie}".`)}class v{constructor(Fe,F,G){this.url=Fe,this.svgText=F,this.options=G}}let D=(()=>{class ie{constructor(F,G,ne,ue){this._httpClient=F,this._sanitizer=G,this._errorHandler=ue,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=ne}addSvgIcon(F,G,ne){return this.addSvgIconInNamespace("",F,G,ne)}addSvgIconLiteral(F,G,ne){return this.addSvgIconLiteralInNamespace("",F,G,ne)}addSvgIconInNamespace(F,G,ne,ue){return this._addSvgIconConfig(F,G,new v(ne,null,ue))}addSvgIconResolver(F){return this._resolvers.push(F),this}addSvgIconLiteralInNamespace(F,G,ne,ue){const xe=this._sanitizer.sanitize(n.q3G.HTML,ne);if(!xe)throw x(ne);const Le=ve(xe);return this._addSvgIconConfig(F,G,new v("",Le,ue))}addSvgIconSet(F,G){return this.addSvgIconSetInNamespace("",F,G)}addSvgIconSetLiteral(F,G){return this.addSvgIconSetLiteralInNamespace("",F,G)}addSvgIconSetInNamespace(F,G,ne){return this._addSvgIconSetConfig(F,new v(G,null,ne))}addSvgIconSetLiteralInNamespace(F,G,ne){const ue=this._sanitizer.sanitize(n.q3G.HTML,G);if(!ue)throw x(G);const xe=ve(ue);return this._addSvgIconSetConfig(F,new v("",xe,ne))}registerFontClassAlias(F,G=F){return this._fontCssClassesByAlias.set(F,G),this}classNameForFontAlias(F){return this._fontCssClassesByAlias.get(F)||F}setDefaultFontSetClass(...F){return this._defaultFontSetClass=F,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(F){const G=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,F);if(!G)throw m(F);const ne=this._cachedIconsByUrl.get(G);return ne?(0,se.of)(Ee(ne)):this._loadSvgIconFromConfig(new v(F,null)).pipe((0,j.b)(ue=>this._cachedIconsByUrl.set(G,ue)),(0,P.U)(ue=>Ee(ue)))}getNamedSvgIcon(F,G=""){const ne=Te(G,F);let ue=this._svgIconConfigs.get(ne);if(ue)return this._getSvgFromConfig(ue);if(ue=this._getIconConfigFromResolvers(G,F),ue)return this._svgIconConfigs.set(ne,ue),this._getSvgFromConfig(ue);const xe=this._iconSetConfigs.get(G);return xe?this._getSvgFromIconSetConfigs(F,xe):(0,E._)(X(ne))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(F){return F.svgText?(0,se.of)(Ee(this._svgElementFromConfig(F))):this._loadSvgIconFromConfig(F).pipe((0,P.U)(G=>Ee(G)))}_getSvgFromIconSetConfigs(F,G){const ne=this._extractIconWithNameFromAnySet(F,G);if(ne)return(0,se.of)(ne);const ue=G.filter(xe=>!xe.svgText).map(xe=>this._loadSvgIconSetFromConfig(xe).pipe((0,C.K)(Le=>{const je=`Loading icon set URL: ${this._sanitizer.sanitize(n.q3G.RESOURCE_URL,xe.url)} failed: ${Le.message}`;return this._errorHandler.handleError(new Error(je)),(0,se.of)(null)})));return(0,de.D)(ue).pipe((0,P.U)(()=>{const xe=this._extractIconWithNameFromAnySet(F,G);if(!xe)throw X(F);return xe}))}_extractIconWithNameFromAnySet(F,G){for(let ne=G.length-1;ne>=0;ne--){const ue=G[ne];if(ue.svgText&&ue.svgText.toString().indexOf(F)>-1){const xe=this._svgElementFromConfig(ue),Le=this._extractSvgIconFromSet(xe,F,ue.options);if(Le)return Le}}return null}_loadSvgIconFromConfig(F){return this._fetchIcon(F).pipe((0,j.b)(G=>F.svgText=G),(0,P.U)(()=>this._svgElementFromConfig(F)))}_loadSvgIconSetFromConfig(F){return F.svgText?(0,se.of)(null):this._fetchIcon(F).pipe((0,j.b)(G=>F.svgText=G))}_extractSvgIconFromSet(F,G,ne){const ue=F.querySelector(`[id="${G}"]`);if(!ue)return null;const xe=ue.cloneNode(!0);if(xe.removeAttribute("id"),"svg"===xe.nodeName.toLowerCase())return this._setSvgAttributes(xe,ne);if("symbol"===xe.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(xe),ne);const Le=this._svgElementFromString(ve("<svg></svg>"));return Le.appendChild(xe),this._setSvgAttributes(Le,ne)}_svgElementFromString(F){const G=this._document.createElement("DIV");G.innerHTML=F;const ne=G.querySelector("svg");if(!ne)throw Error("<svg> tag not found");return ne}_toSvgElement(F){const G=this._svgElementFromString(ve("<svg></svg>")),ne=F.attributes;for(let ue=0;ue<ne.length;ue++){const{name:xe,value:Le}=ne[ue];"id"!==xe&&G.setAttribute(xe,Le)}for(let ue=0;ue<F.childNodes.length;ue++)F.childNodes[ue].nodeType===this._document.ELEMENT_NODE&&G.appendChild(F.childNodes[ue].cloneNode(!0));return G}_setSvgAttributes(F,G){return F.setAttribute("fit",""),F.setAttribute("height","100%"),F.setAttribute("width","100%"),F.setAttribute("preserveAspectRatio","xMidYMid meet"),F.setAttribute("focusable","false"),G&&G.viewBox&&F.setAttribute("viewBox",G.viewBox),F}_fetchIcon(F){const{url:G,options:ne}=F,ue=ne?.withCredentials??!1;if(!this._httpClient)throw function $(){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==G)throw Error(`Cannot fetch icon from URL "${G}".`);const xe=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,G);if(!xe)throw m(G);const Le=this._inProgressUrlFetches.get(xe);if(Le)return Le;const Ve=this._httpClient.get(xe,{responseType:"text",withCredentials:ue}).pipe((0,P.U)(je=>ve(je)),(0,L.x)(()=>this._inProgressUrlFetches.delete(xe)),(0,R.B)());return this._inProgressUrlFetches.set(xe,Ve),Ve}_addSvgIconConfig(F,G,ne){return this._svgIconConfigs.set(Te(F,G),ne),this}_addSvgIconSetConfig(F,G){const ne=this._iconSetConfigs.get(F);return ne?ne.push(G):this._iconSetConfigs.set(F,[G]),this}_svgElementFromConfig(F){if(!F.svgElement){const G=this._svgElementFromString(F.svgText);this._setSvgAttributes(G,F.options),F.svgElement=G}return F.svgElement}_getIconConfigFromResolvers(F,G){for(let ne=0;ne<this._resolvers.length;ne++){const ue=this._resolvers[ne](G,F);if(ue)return De(ue)?new v(ue.url,null,ue.options):new v(ue,null)}}}return ie.\u0275fac=function(F){return new(F||ie)(n.LFG(U.eN,8),n.LFG(Z.H7),n.LFG(M.K0,8),n.LFG(n.qLn))},ie.\u0275prov=n.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();function Ee(ie){return ie.cloneNode(!0)}function Te(ie,Fe){return ie+":"+Fe}function De(ie){return!(!ie.url||!ie.options)}const Me=(0,s.pj)(class{constructor(ie){this._elementRef=ie}}),ye=new n.OlP("MAT_ICON_DEFAULT_OPTIONS"),W=new n.OlP("mat-icon-location",{providedIn:"root",factory:function Y(){const ie=(0,n.f3M)(M.K0),Fe=ie?ie.location:null;return{getPathname:()=>Fe?Fe.pathname+Fe.search:""}}}),pe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],B=pe.map(ie=>`[${ie}]`).join(", "),Q=/^url\(['"]?#(.*?)['"]?\)$/;let le=(()=>{class ie extends Me{constructor(F,G,ne,ue,xe,Le){super(F),this._iconRegistry=G,this._location=ue,this._errorHandler=xe,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=oe.w0.EMPTY,Le&&(Le.color&&(this.color=this.defaultColor=Le.color),Le.fontSet&&(this.fontSet=Le.fontSet)),ne||F.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(F){this._inline=(0,t.Ig)(F)}get svgIcon(){return this._svgIcon}set svgIcon(F){F!==this._svgIcon&&(F?this._updateSvgIcon(F):this._svgIcon&&this._clearSvgElement(),this._svgIcon=F)}get fontSet(){return this._fontSet}set fontSet(F){const G=this._cleanupFontValue(F);G!==this._fontSet&&(this._fontSet=G,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(F){const G=this._cleanupFontValue(F);G!==this._fontIcon&&(this._fontIcon=G,this._updateFontIconClasses())}_splitIconName(F){if(!F)return["",""];const G=F.split(":");switch(G.length){case 1:return["",G[0]];case 2:return G;default:throw Error(`Invalid icon name: "${F}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const F=this._elementsWithExternalReferences;if(F&&F.size){const G=this._location.getPathname();G!==this._previousPath&&(this._previousPath=G,this._prependPathToReferences(G))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(F){this._clearSvgElement();const G=this._location.getPathname();this._previousPath=G,this._cacheChildrenWithExternalReferences(F),this._prependPathToReferences(G),this._elementRef.nativeElement.appendChild(F)}_clearSvgElement(){const F=this._elementRef.nativeElement;let G=F.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();G--;){const ne=F.childNodes[G];(1!==ne.nodeType||"svg"===ne.nodeName.toLowerCase())&&ne.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const F=this._elementRef.nativeElement,G=(this.fontSet?[this._iconRegistry.classNameForFontAlias(this.fontSet)]:this._iconRegistry.getDefaultFontSetClass()).filter(ne=>ne.length>0);this._previousFontSetClass.forEach(ne=>F.classList.remove(ne)),G.forEach(ne=>F.classList.add(ne)),this._previousFontSetClass=G,this.fontIcon!==this._previousFontIconClass&&(this._previousFontIconClass&&F.classList.remove(this._previousFontIconClass),this.fontIcon&&F.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(F){return"string"==typeof F?F.trim().split(" ")[0]:F}_prependPathToReferences(F){const G=this._elementsWithExternalReferences;G&&G.forEach((ne,ue)=>{ne.forEach(xe=>{ue.setAttribute(xe.name,`url('${F}#${xe.value}')`)})})}_cacheChildrenWithExternalReferences(F){const G=F.querySelectorAll(B),ne=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ue=0;ue<G.length;ue++)pe.forEach(xe=>{const Le=G[ue],Ve=Le.getAttribute(xe),je=Ve?Ve.match(Q):null;if(je){let $e=ne.get(Le);$e||($e=[],ne.set(Le,$e)),$e.push({name:xe,value:je[1]})}})}_updateSvgIcon(F){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),F){const[G,ne]=this._splitIconName(F);G&&(this._svgNamespace=G),ne&&(this._svgName=ne),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ne,G).pipe((0,N.q)(1)).subscribe(ue=>this._setSvgElement(ue),ue=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${G}:${ne}! ${ue.message}`))})}}}return ie.\u0275fac=function(F){return new(F||ie)(n.Y36(n.SBq),n.Y36(D),n.$8M("aria-hidden"),n.Y36(W),n.Y36(n.qLn),n.Y36(ye,8))},ie.\u0275cmp=n.Xpm({type:ie,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(F,G){2&F&&(n.uIk("data-mat-icon-type",G._usingFontIcon()?"font":"svg")("data-mat-icon-name",G._svgName||G.fontIcon)("data-mat-icon-namespace",G._svgNamespace||G.fontSet),n.ekj("mat-icon-inline",G.inline)("mat-icon-no-color","primary"!==G.color&&"accent"!==G.color&&"warn"!==G.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.qOj],ngContentSelectors:J,decls:1,vars:0,template:function(F,G){1&F&&(n.F$t(),n.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}),ie})(),Se=(()=>{class ie{}return ie.\u0275fac=function(F){return new(F||ie)},ie.\u0275mod=n.oAB({type:ie}),ie.\u0275inj=n.cJS({imports:[s.BQ,s.BQ]}),ie})()},4144:(Ue,be,a)=>{a.d(be,{Jk:()=>U,Nt:()=>ce,c:()=>ve});var n=a(1281),s=a(3353),t=a(4650),M=a(515),se=a(7579);const E=(0,s.i$)({passive:!0});let de=(()=>{class X{constructor(m,x){this._platform=m,this._ngZone=x,this._monitoredElements=new Map}monitor(m){if(!this._platform.isBrowser)return M.E;const x=(0,n.fI)(m),v=this._monitoredElements.get(x);if(v)return v.subject;const D=new se.x,he="cdk-text-field-autofilled",ke=Ee=>{"cdk-text-field-autofill-start"!==Ee.animationName||x.classList.contains(he)?"cdk-text-field-autofill-end"===Ee.animationName&&x.classList.contains(he)&&(x.classList.remove(he),this._ngZone.run(()=>D.next({target:Ee.target,isAutofilled:!1}))):(x.classList.add(he),this._ngZone.run(()=>D.next({target:Ee.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{x.addEventListener("animationstart",ke,E),x.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(x,{subject:D,unlisten:()=>{x.removeEventListener("animationstart",ke,E)}}),D}stopMonitoring(m){const x=(0,n.fI)(m),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((m,x)=>this.stopMonitoring(x))}}return X.\u0275fac=function(m){return new(m||X)(t.LFG(s.t4),t.LFG(t.R0b))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),P=(()=>{class X{}return X.\u0275fac=function(m){return new(m||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({}),X})();var C=a(4006),L=a(3238),R=a(9549);const U=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),Z=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let J=0;const _e=(0,L.FD)(class{constructor(X,$,m,x){this._defaultErrorStateMatcher=X,this._parentForm=$,this._parentFormGroup=m,this.ngControl=x,this.stateChanges=new se.x}});let ce=(()=>{class X extends _e{constructor(m,x,v,D,he,ke,Ee,Te,De,Me){super(ke,D,he,v),this._elementRef=m,this._platform=x,this._autofillMonitor=Te,this._formField=Me,this._uid="mat-input-"+J++,this.focused=!1,this.stateChanges=new se.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(Y=>(0,s.qK)().has(Y)),this._iOSKeyupListener=Y=>{const pe=Y.target;!pe.value&&0===pe.selectionStart&&0===pe.selectionEnd&&(pe.setSelectionRange(1,1),pe.setSelectionRange(0,0))};const ye=this._elementRef.nativeElement,W=ye.nodeName.toLowerCase();this._inputValueAccessor=Ee||ye,this._previousNativeValue=this.value,this.id=this.id,x.IOS&&De.runOutsideAngular(()=>{m.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===W,this._isTextarea="textarea"===W,this._isInFormField=!!Me,this._isNativeSelect&&(this.controlType=ye.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(m){this._disabled=(0,n.Ig)(m),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(m){this._id=m||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(C.kI.required)??!1}set required(m){this._required=(0,n.Ig)(m)}get type(){return this._type}set type(m){this._type=m||"text",this._validateType(),!this._isTextarea&&(0,s.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(m){m!==this.value&&(this._inputValueAccessor.value=m,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(m){this._readonly=(0,n.Ig)(m)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(m=>{this.autofilled=m.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(m){this._elementRef.nativeElement.focus(m)}_focusChanged(m){m!==this.focused&&(this.focused=m,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const m=this._formField,x=m&&"legacy"===m.appearance&&!m._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 m=this._elementRef.nativeElement.value;this._previousNativeValue!==m&&(this._previousNativeValue=m,this.stateChanges.next())}_validateType(){Z.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let m=this._elementRef.nativeElement.validity;return m&&m.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const m=this._elementRef.nativeElement,x=m.options[0];return this.focused||m.multiple||!this.empty||!!(m.selectedIndex>-1&&x&&x.label)}return this.focused||!this.empty}setDescribedByIds(m){m.length?this._elementRef.nativeElement.setAttribute("aria-describedby",m.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const m=this._elementRef.nativeElement;return this._isNativeSelect&&(m.multiple||m.size>1)}}return X.\u0275fac=function(m){return new(m||X)(t.Y36(t.SBq),t.Y36(s.t4),t.Y36(C.a5,10),t.Y36(C.F,8),t.Y36(C.sg,8),t.Y36(L.rD),t.Y36(U,10),t.Y36(de),t.Y36(t.R0b),t.Y36(R.G_,8))},X.\u0275dir=t.lG2({type:X,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(m,x){1&m&&t.NdJ("focus",function(){return x._focusChanged(!0)})("blur",function(){return x._focusChanged(!1)})("input",function(){return x._onInput()}),2&m&&(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:X}]),t.qOj,t.TTD]}),X})(),ve=(()=>{class X{}return X.\u0275fac=function(m){return new(m||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({providers:[L.rD],imports:[P,R.lN,L.BQ,P,R.lN]}),X})()},1948:(Ue,be,a)=>{a.d(be,{Fk:()=>$,U0:()=>X,VQ:()=>J});var n=a(4650),s=a(3238),t=a(2687),M=a(1281),se=a(5017),E=a(4006);const de=["input"],oe=function(m){return{enterDuration:m}},j=["*"],P=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function C(){return{color:"accent"}}});let L=0;const R={provide:E.JU,useExisting:(0,n.Gpc)(()=>J),multi:!0};class N{constructor(x,v){this.source=x,this.value=v}}const U=new n.OlP("MatRadioGroup");let Z=(()=>{class m{constructor(v){this._changeDetector=v,this._value=null,this._name="mat-radio-group-"+L++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.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(D=>{D.checked=this.value===D.value,D.checked&&(this._selected=D)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new N(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 m.\u0275fac=function(v){return new(v||m)(n.Y36(n.sBO))},m.\u0275dir=n.lG2({type:m,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),m})(),J=(()=>{class m extends Z{}return m.\u0275fac=function(){let x;return function(D){return(x||(x=n.n5z(m)))(D||m)}}(),m.\u0275dir=n.lG2({type:m,selectors:[["mat-radio-group"]],contentQueries:function(v,D,he){if(1&v&&n.Suo(he,X,5),2&v){let ke;n.iGM(ke=n.CRH())&&(D._radios=ke)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([R,{provide:U,useExisting:m}]),n.qOj]}),m})();class _e{constructor(x){this._elementRef=x}}const ce=(0,s.Kr)((0,s.sb)(_e));let ve=(()=>{class m extends ce{constructor(v,D,he,ke,Ee,Te,De,Me){super(D),this._changeDetector=he,this._focusMonitor=ke,this._radioDispatcher=Ee,this._providerOverride=De,this._uniqueId="mat-radio-"+ ++L,this.id=this._uniqueId,this.change=new n.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=v,this._noopAnimations="NoopAnimations"===Te,Me&&(this.tabIndex=(0,M.su)(Me,0)),this._removeUniqueSelectionListener=Ee.listen((ye,W)=>{ye!==this.id&&W===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(v){const D=(0,M.Ig)(v);this._checked!==D&&(this._checked=D,D&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!D&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),D&&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,D){D?this._focusMonitor.focusVia(this._inputElement,D,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 N(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(v){v.stopPropagation()}_onInputInteraction(v){if(v.stopPropagation(),!this.checked&&!this.disabled){const D=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),D&&this.radioGroup._emitChangeEvent())}}_setDisabled(v){this._disabled!==v&&(this._disabled=v,this._changeDetector.markForCheck())}_updateTabIndex(){const v=this.radioGroup;let D;if(D=v&&v.selected&&!this.disabled?v.selected===this?this.tabIndex:-1:this.tabIndex,D!==this._previousTabIndex){const he=this._inputElement?.nativeElement;he&&(he.setAttribute("tabindex",D+""),this._previousTabIndex=D)}}}return m.\u0275fac=function(v){n.$Z()},m.\u0275dir=n.lG2({type:m,viewQuery:function(v,D){if(1&v&&n.Gf(de,5),2&v){let he;n.iGM(he=n.CRH())&&(D._inputElement=he.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:[n.qOj]}),m})(),X=(()=>{class m extends ve{constructor(v,D,he,ke,Ee,Te,De,Me){super(v,D,he,ke,Ee,Te,De,Me)}}return m.\u0275fac=function(v){return new(v||m)(n.Y36(U,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(t.tE),n.Y36(se.A8),n.Y36(n.QbO,8),n.Y36(P,8),n.$8M("tabindex"))},m.\u0275cmp=n.Xpm({type:m,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(v,D){1&v&&n.NdJ("focus",function(){return D._inputElement.nativeElement.focus()}),2&v&&(n.uIk("tabindex",null)("id",D.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.ekj("mat-radio-checked",D.checked)("mat-radio-disabled",D.disabled)("_mat-animation-noopable",D._noopAnimations)("mat-primary","primary"===D.color)("mat-accent","accent"===D.color)("mat-warn","warn"===D.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.qOj],ngContentSelectors:j,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,D){if(1&v&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2),n._UZ(3,"span",3)(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(ke){return D._onInputInteraction(ke)})("click",function(ke){return D._onInputClick(ke)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()(),n.TgZ(9,"span",9)(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA()()),2&v){const he=n.MAs(1);n.uIk("for",D.inputId),n.xp6(5),n.Q6J("id",D.inputId)("checked",D.checked)("disabled",D.disabled)("required",D.required),n.uIk("name",D.name)("value",D.value)("aria-label",D.ariaLabel)("aria-labelledby",D.ariaLabelledby)("aria-describedby",D.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",he)("matRippleDisabled",D._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(17,oe,D._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==D.labelPosition)}},dependencies:[s.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}),m})(),$=(()=>{class m{}return m.\u0275fac=function(v){return new(v||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[s.si,s.BQ,s.BQ]}),m})()},4385:(Ue,be,a)=>{a.d(be,{LD:()=>qe,gD:()=>Qe});var n=a(2561),s=a(6895),t=a(4650),M=a(3238),se=a(9549),E=a(7376),de=a(2687),oe=a(445),j=a(1281),P=a(5017),C=a(9521),L=a(4006),R=a(7579),N=a(9770),U=a(6451),Z=a(8675),J=a(3900),_e=a(5698),ce=a(9300),ve=a(4004),X=a(1884),$=a(2722),m=a(7340);const x=["trigger"],v=["panel"];function D(Ae,O){if(1&Ae&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&Ae){const u=t.oxw();t.xp6(1),t.Oqu(u.placeholder)}}function he(Ae,O){if(1&Ae&&(t.TgZ(0,"span",12),t._uU(1),t.qZA()),2&Ae){const u=t.oxw(2);t.xp6(1),t.Oqu(u.triggerValue)}}function ke(Ae,O){1&Ae&&t.Hsn(0,0,["*ngSwitchCase","true"])}function Ee(Ae,O){if(1&Ae&&(t.TgZ(0,"span",9),t.YNc(1,he,2,1,"span",10),t.YNc(2,ke,1,0,"ng-content",11),t.qZA()),2&Ae){const u=t.oxw();t.Q6J("ngSwitch",!!u.customTrigger),t.xp6(2),t.Q6J("ngSwitchCase",!0)}}function Te(Ae,O){if(1&Ae){const u=t.EpF();t.TgZ(0,"div",13)(1,"div",14,15),t.NdJ("@transformPanel.done",function(e){t.CHM(u);const l=t.oxw();return t.KtG(l._panelDoneAnimatingStream.next(e.toState))})("keydown",function(e){t.CHM(u);const l=t.oxw();return t.KtG(l._handleKeydown(e))}),t.Hsn(3,1),t.qZA()()}if(2&Ae){const u=t.oxw();t.Q6J("@transformPanelWrap",void 0),t.xp6(1),t.Gre("mat-select-panel ",u._getPanelTheme(),""),t.Udp("transform-origin",u._transformOrigin)("font-size",u._triggerFontSize,"px"),t.Q6J("ngClass",u.panelClass)("@transformPanel",u.multiple?"showing-multiple":"showing"),t.uIk("id",u.id+"-panel")("aria-multiselectable",u.multiple)("aria-label",u.ariaLabel||null)("aria-labelledby",u._getPanelAriaLabelledby())}}const De=[[["mat-select-trigger"]],"*"],Me=["mat-select-trigger","*"],ye={transformPanelWrap:(0,m.X$)("transformPanelWrap",[(0,m.eR)("* => void",(0,m.IO)("@transformPanel",[(0,m.pV)()],{optional:!0}))]),transformPanel:(0,m.X$)("transformPanel",[(0,m.SB)("void",(0,m.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,m.SB)("showing",(0,m.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,m.SB)("showing-multiple",(0,m.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,m.eR)("void => *",(0,m.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,m.eR)("* => void",(0,m.jt)("100ms 25ms linear",(0,m.oB)({opacity:0})))])};let B=0;const Q=256,G=new t.OlP("mat-select-scroll-strategy"),ue=new t.OlP("MAT_SELECT_CONFIG"),xe={provide:G,deps:[n.aV],useFactory:function ne(Ae){return()=>Ae.scrollStrategies.reposition()}};class Le{constructor(O,u){this.source=O,this.value=u}}const Ve=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(Ae,O,u,i,e){this._elementRef=Ae,this._defaultErrorStateMatcher=O,this._parentForm=u,this._parentFormGroup=i,this.ngControl=e,this.stateChanges=new R.x}})))),je=new t.OlP("MatSelectTrigger");let Xe=(()=>{class Ae extends Ve{constructor(u,i,e,l,f,S,I,te,Ce,we,Be,Oe,Ne,Ye){super(f,l,I,te,we),this._viewportRuler=u,this._changeDetectorRef=i,this._ngZone=e,this._dir=S,this._parentFormField=Ce,this._liveAnnouncer=Ne,this._defaultOptions=Ye,this._panelOpen=!1,this._compareWith=(ze,Ge)=>ze===Ge,this._uid="mat-select-"+B++,this._triggerAriaLabelledBy=null,this._destroy=new R.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+B++,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,N.P)(()=>{const ze=this.options;return ze?ze.changes.pipe((0,Z.O)(ze),(0,J.w)(()=>(0,U.T)(...ze.map(Ge=>Ge.onSelectionChange)))):this._ngZone.onStable.pipe((0,_e.q)(1),(0,J.w)(()=>this.optionSelectionChanges))}),this.openedChange=new t.vpe,this._openedStream=this.openedChange.pipe((0,ce.h)(ze=>ze),(0,ve.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ce.h)(ze=>!ze),(0,ve.U)(()=>{})),this.selectionChange=new t.vpe,this.valueChange=new t.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Ye?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Ye.typeaheadDebounceInterval),this._scrollStrategyFactory=Oe,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Be)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(u){this._placeholder=u,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(L.kI.required)??!1}set required(u){this._required=(0,j.Ig)(u),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(u){this._multiple=(0,j.Ig)(u)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(u){this._disableOptionCentering=(0,j.Ig)(u)}get compareWith(){return this._compareWith}set compareWith(u){this._compareWith=u,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(u){this._assignValue(u)&&this._onChange(u)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(u){this._typeaheadDebounceInterval=(0,j.su)(u)}get id(){return this._id}set id(u){this._id=u||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new P.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,X.x)(),(0,$.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,$.R)(this._destroy)).subscribe(u=>{u.added.forEach(i=>i.select()),u.removed.forEach(i=>i.deselect())}),this.options.changes.pipe((0,Z.O)(null),(0,$.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const u=this._getTriggerAriaLabelledby(),i=this.ngControl;if(u!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=u,u?e.setAttribute("aria-labelledby",u):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(u){(u.disabled||u.userAriaDescribedBy)&&this.stateChanges.next(),u.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(u){this._assignValue(u)}registerOnChange(u){this._onChange=u}registerOnTouched(u){this._onTouched=u}setDisabledState(u){this.disabled=u,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 u=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&u.reverse(),u.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(u){this.disabled||(this.panelOpen?this._handleOpenKeydown(u):this._handleClosedKeydown(u))}_handleClosedKeydown(u){const i=u.keyCode,e=i===C.JH||i===C.LH||i===C.oh||i===C.SV,l=i===C.K5||i===C.L_,f=this._keyManager;if(!f.isTyping()&&l&&!(0,C.Vb)(u)||(this.multiple||u.altKey)&&e)u.preventDefault(),this.open();else if(!this.multiple){const S=this.selected;f.onKeydown(u);const I=this.selected;I&&S!==I&&this._liveAnnouncer.announce(I.viewValue,1e4)}}_handleOpenKeydown(u){const i=this._keyManager,e=u.keyCode,l=e===C.JH||e===C.LH,f=i.isTyping();if(l&&u.altKey)u.preventDefault(),this.close();else if(f||e!==C.K5&&e!==C.L_||!i.activeItem||(0,C.Vb)(u))if(!f&&this._multiple&&e===C.A&&u.ctrlKey){u.preventDefault();const S=this.options.some(I=>!I.disabled&&!I.selected);this.options.forEach(I=>{I.disabled||(S?I.select():I.deselect())})}else{const S=i.activeItemIndex;i.onKeydown(u),this._multiple&&l&&u.shiftKey&&i.activeItem&&i.activeItemIndex!==S&&i.activeItem._selectViaInteraction()}else u.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,_e.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(u){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&u)Array.isArray(u),u.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(u);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(u){const i=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,u)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(u){return!!(u!==this._value||this._multiple&&Array.isArray(u))&&(this.options&&this._setSelectionByValue(u),this._value=u,!0)}_initKeyManager(){this._keyManager=new de.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,$.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,$.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 u=(0,U.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,$.R)(u)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,U.T)(...this.options.map(i=>i._stateChanges)).pipe((0,$.R)(u)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(u,i){const e=this._selectionModel.isSelected(u);null!=u.value||this._multiple?(e!==u.selected&&(u.selected?this._selectionModel.select(u):this._selectionModel.deselect(u)),i&&this._keyManager.setActiveItem(u),this.multiple&&(this._sortValues(),i&&this.focus())):(u.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(u.value)),e!==this._selectionModel.isSelected(u)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const u=this.options.toArray();this._selectionModel.sort((i,e)=>this.sortComparator?this.sortComparator(i,e,u):u.indexOf(i)-u.indexOf(e)),this.stateChanges.next()}}_propagateChanges(u){let i=null;i=this.multiple?this.selected.map(e=>e.value):this.selected?this.selected.value:u,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(u){this._elementRef.nativeElement.focus(u)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const u=this._parentFormField?.getLabelId();return this.ariaLabelledby?(u?u+" ":"")+this.ariaLabelledby:u}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const u=this._parentFormField?.getLabelId();let i=(u?u+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(u){this.openedChange.emit(u)}setDescribedByIds(u){u.length?this._elementRef.nativeElement.setAttribute("aria-describedby",u.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ae.\u0275fac=function(u){return new(u||Ae)(t.Y36(E.rL),t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(M.rD),t.Y36(t.SBq),t.Y36(oe.Is,8),t.Y36(L.F,8),t.Y36(L.sg,8),t.Y36(se.G_,8),t.Y36(L.a5,10),t.$8M("tabindex"),t.Y36(G),t.Y36(de.Kd),t.Y36(ue,8))},Ae.\u0275dir=t.lG2({type:Ae,viewQuery:function(u,i){if(1&u&&(t.Gf(x,5),t.Gf(v,5),t.Gf(n.pI,5)),2&u){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]}),Ae})(),Qe=(()=>{class Ae extends Xe{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(u,i,e){const l=this._getItemHeight();return Math.min(Math.max(0,l*u-i+l/2),e)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,$.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,_e.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(u){const i=(0,M.CB)(u,this.options,this.optionGroups),e=this._getItemHeight();this.panel.nativeElement.scrollTop=0===u&&1===i?0:(0,M.jH)((u+i)*e,e,this.panel.nativeElement.scrollTop,Q)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(u){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(u)}_getChangeEvent(u){return new Le(this,u)}_calculateOverlayOffsetX(){const u=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),e=this._isRtl(),l=this.multiple?56:32;let f;if(this.multiple)f=40;else if(this.disableOptionCentering)f=16;else{let te=this._selectionModel.selected[0]||this.options.first;f=te&&te.group?32:16}e||(f*=-1);const S=0-(u.left+f-(e?l:0)),I=u.right+f-i.width+(e?0:l);S>0?f+=S+8:I>0&&(f-=I+8),this._overlayDir.offsetX=Math.round(f),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(u,i,e){const l=this._getItemHeight(),f=(l-this._triggerRect.height)/2,S=Math.floor(Q/l);let I;return this.disableOptionCentering?0:(I=0===this._scrollTop?u*l:this._scrollTop===e?(u-(this._getItemCount()-S))*l+(l-(this._getItemCount()*l-Q)%l):i-l/2,Math.round(-1*I-f))}_checkOverlayWithinViewport(u){const i=this._getItemHeight(),e=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,f=e.height-this._triggerRect.bottom-8,S=Math.abs(this._offsetY),te=Math.min(this._getItemCount()*i,Q)-S-this._triggerRect.height;te>f?this._adjustPanelUp(te,f):S>l?this._adjustPanelDown(S,l,u):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(u,i){const e=Math.round(u-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(u,i,e){const l=Math.round(u-i);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=e)return this._scrollTop=e,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const u=this._getItemHeight(),i=this._getItemCount(),e=Math.min(i*u,Q),f=i*u-e;let S;S=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),S+=(0,M.CB)(S,this.options,this.optionGroups);const I=e/2;this._scrollTop=this._calculateOverlayScroll(S,I,f),this._offsetY=this._calculateOverlayOffsetY(S,I,f),this._checkOverlayWithinViewport(f)}_getOriginBasedOnOption(){const u=this._getItemHeight(),i=(u-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+u/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ae.\u0275fac=function(){let O;return function(i){return(O||(O=t.n5z(Ae)))(i||Ae)}}(),Ae.\u0275cmp=t.Xpm({type:Ae,selectors:[["mat-select"]],contentQueries:function(u,i,e){if(1&u&&(t.Suo(e,je,5),t.Suo(e,M.ey,5),t.Suo(e,M.K7,5)),2&u){let l;t.iGM(l=t.CRH())&&(i.customTrigger=l.first),t.iGM(l=t.CRH())&&(i.options=l),t.iGM(l=t.CRH())&&(i.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(u,i){1&u&&t.NdJ("keydown",function(l){return i._handleKeydown(l)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&u&&(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:se.Eo,useExisting:Ae},{provide:M.HF,useExisting:Ae}]),t.qOj],ngContentSelectors:Me,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(u,i){if(1&u&&(t.F$t(De),t.TgZ(0,"div",0,1),t.NdJ("click",function(){return i.toggle()}),t.TgZ(3,"div",2),t.YNc(4,D,2,1,"span",3),t.YNc(5,Ee,3,2,"span",4),t.qZA(),t.TgZ(6,"div",5),t._UZ(7,"div",6),t.qZA()(),t.YNc(8,Te,4,14,"ng-template",7),t.NdJ("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&u){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:[s.mk,s.RF,s.n9,s.ED,n.pI,n.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:[ye.transformPanelWrap,ye.transformPanel]},changeDetection:0}),Ae})(),qe=(()=>{class Ae{}return Ae.\u0275fac=function(u){return new(u||Ae)},Ae.\u0275mod=t.oAB({type:Ae}),Ae.\u0275inj=t.cJS({providers:[xe],imports:[s.ez,n.U8,M.Ng,M.BQ,E.ZD,se.lN,M.Ng,M.BQ]}),Ae})()},266:(Ue,be,a)=>{a.d(be,{AV:()=>ye,gM:()=>Te});var n=a(2561),s=a(2687),t=a(6895),M=a(4650),se=a(3238),E=a(7376),de=a(445),oe=a(1281),j=a(9521),P=a(2289),C=a(3353),L=a(4080),R=a(7579),N=a(2722),U=a(5698);a(7340);const J=["tooltip"],ve="tooltip-panel",X=(0,C.i$)({passive:!0}),x=new M.OlP("mat-tooltip-scroll-strategy"),D={provide:x,deps:[n.aV],useFactory:function v(Y){return()=>Y.scrollStrategies.reposition({scrollThrottle:20})}},he=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ke(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ee=(()=>{class Y{constructor(B,Q,le,Se,ie,Fe,F,G,ne,ue,xe,Le){this._overlay=B,this._elementRef=Q,this._scrollDispatcher=le,this._viewContainerRef=Se,this._ngZone=ie,this._platform=Fe,this._ariaDescriber=F,this._focusMonitor=G,this._dir=ue,this._defaultOptions=xe,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=ne,this._document=Le,xe&&(xe.position&&(this.position=xe.position),xe.touchGestures&&(this.touchGestures=xe.touchGestures)),ue.change.pipe((0,N.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(B){B!==this._position&&(this._position=B,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(B){this._disabled=(0,oe.Ig)(B),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(B){this._showDelay=(0,oe.su)(B)}get hideDelay(){return this._hideDelay}set hideDelay(B){this._hideDelay=(0,oe.su)(B),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(B){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=B?String(B).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(B){this._tooltipClass=B,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,N.R)(this._destroyed)).subscribe(B=>{B?"keyboard"===B&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const B=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Q,le])=>{B.removeEventListener(Q,le,X)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(B,this.message,"tooltip"),this._focusMonitor.stopMonitoring(B)}show(B=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Q=this._createOverlay();this._detach(),this._portal=this._portal||new L.C5(this._tooltipComponent,this._viewContainerRef);const le=this._tooltipInstance=Q.attach(this._portal).instance;le._triggerElement=this._elementRef.nativeElement,le._mouseLeaveHideDelay=this._hideDelay,le.afterHidden().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),le.show(B)}hide(B=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(B)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const B=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Q=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(B);return Q.positionChanges.pipe((0,N.R)(this._destroyed)).subscribe(le=>{this._updateCurrentPositionClass(le.connectionPair),this._tooltipInstance&&le.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Q,panelClass:`${this._cssClassPrefix}-${ve}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,N.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,N.R)(this._destroyed)).subscribe(le=>{this._isTooltipVisible()&&le.keyCode===j.hY&&!(0,j.Vb)(le)&&(le.preventDefault(),le.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(B){const Q=B.getConfig().positionStrategy,le=this._getOrigin(),Se=this._getOverlayPosition();Q.withPositions([this._addOffset({...le.main,...Se.main}),this._addOffset({...le.fallback,...Se.fallback})])}_addOffset(B){return B}_getOrigin(){const B=!this._dir||"ltr"==this._dir.value,Q=this.position;let le;"above"==Q||"below"==Q?le={originX:"center",originY:"above"==Q?"top":"bottom"}:"before"==Q||"left"==Q&&B||"right"==Q&&!B?le={originX:"start",originY:"center"}:("after"==Q||"right"==Q&&B||"left"==Q&&!B)&&(le={originX:"end",originY:"center"});const{x:Se,y:ie}=this._invertPosition(le.originX,le.originY);return{main:le,fallback:{originX:Se,originY:ie}}}_getOverlayPosition(){const B=!this._dir||"ltr"==this._dir.value,Q=this.position;let le;"above"==Q?le={overlayX:"center",overlayY:"bottom"}:"below"==Q?le={overlayX:"center",overlayY:"top"}:"before"==Q||"left"==Q&&B||"right"==Q&&!B?le={overlayX:"end",overlayY:"center"}:("after"==Q||"right"==Q&&B||"left"==Q&&!B)&&(le={overlayX:"start",overlayY:"center"});const{x:Se,y:ie}=this._invertPosition(le.overlayX,le.overlayY);return{main:le,fallback:{overlayX:Se,overlayY:ie}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,U.q)(1),(0,N.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(B){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=B,this._tooltipInstance._markForCheck())}_invertPosition(B,Q){return"above"===this.position||"below"===this.position?"top"===Q?Q="bottom":"bottom"===Q&&(Q="top"):"end"===B?B="start":"start"===B&&(B="end"),{x:B,y:Q}}_updateCurrentPositionClass(B){const{overlayY:Q,originX:le,originY:Se}=B;let ie;if(ie="center"===Q?this._dir&&"rtl"===this._dir.value?"end"===le?"left":"right":"start"===le?"left":"right":"bottom"===Q&&"top"===Se?"above":"below",ie!==this._currentPosition){const Fe=this._overlayRef;if(Fe){const F=`${this._cssClassPrefix}-${ve}-`;Fe.removePanelClass(F+this._currentPosition),Fe.addPanelClass(F+ie)}this._currentPosition=ie}}_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 B=[];if(this._platformSupportsMouseEvents())B.push(["mouseleave",Q=>{const le=Q.relatedTarget;(!le||!this._overlayRef?.overlayElement.contains(le))&&this.hide()}],["wheel",Q=>this._wheelListener(Q)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Q=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};B.push(["touchend",Q],["touchcancel",Q])}this._addListeners(B),this._passiveListeners.push(...B)}_addListeners(B){B.forEach(([Q,le])=>{this._elementRef.nativeElement.addEventListener(Q,le,X)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(B){if(this._isTooltipVisible()){const Q=this._document.elementFromPoint(B.clientX,B.clientY),le=this._elementRef.nativeElement;Q!==le&&!le.contains(Q)&&this.hide()}}_disableNativeGesturesIfNecessary(){const B=this.touchGestures;if("off"!==B){const Q=this._elementRef.nativeElement,le=Q.style;("on"===B||"INPUT"!==Q.nodeName&&"TEXTAREA"!==Q.nodeName)&&(le.userSelect=le.msUserSelect=le.webkitUserSelect=le.MozUserSelect="none"),("on"===B||!Q.draggable)&&(le.webkitUserDrag="none"),le.touchAction="none",le.webkitTapHighlightColor="transparent"}}}return Y.\u0275fac=function(B){M.$Z()},Y.\u0275dir=M.lG2({type:Y,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Y})(),Te=(()=>{class Y extends Ee{constructor(B,Q,le,Se,ie,Fe,F,G,ne,ue,xe,Le){super(B,Q,le,Se,ie,Fe,F,G,ne,ue,xe,Le),this._tooltipComponent=Me}}return Y.\u0275fac=function(B){return new(B||Y)(M.Y36(n.aV),M.Y36(M.SBq),M.Y36(E.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(C.t4),M.Y36(s.$s),M.Y36(s.tE),M.Y36(x),M.Y36(de.Is,8),M.Y36(he,8),M.Y36(t.K0))},Y.\u0275dir=M.lG2({type:Y,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),Y})(),De=(()=>{class Y{constructor(B,Q){this._changeDetectorRef=B,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new R.x,this._animationsDisabled="NoopAnimations"===Q}show(B){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},B)}hide(B){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},B)}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:B}){(!B||!this._triggerElement.contains(B))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:B}){(B===this._showAnimation||B===this._hideAnimation)&&this._finalizeAnimation(B===this._showAnimation)}_finalizeAnimation(B){B?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(B){const Q=this._tooltip.nativeElement,le=this._showAnimation,Se=this._hideAnimation;if(Q.classList.remove(B?Se:le),Q.classList.add(B?le:Se),this._isVisible=B,B&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const ie=getComputedStyle(Q);("0s"===ie.getPropertyValue("animation-duration")||"none"===ie.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}B&&this._onShow(),this._animationsDisabled&&(Q.classList.add("_mat-animation-noopable"),this._finalizeAnimation(B))}}return Y.\u0275fac=function(B){return new(B||Y)(M.Y36(M.sBO),M.Y36(M.QbO,8))},Y.\u0275dir=M.lG2({type:Y}),Y})(),Me=(()=>{class Y extends De{constructor(B,Q,le){super(B,le),this._breakpointObserver=Q,this._isHandset=this._breakpointObserver.observe(P.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return Y.\u0275fac=function(B){return new(B||Y)(M.Y36(M.sBO),M.Y36(P.Yg),M.Y36(M.QbO,8))},Y.\u0275cmp=M.Xpm({type:Y,selectors:[["mat-tooltip-component"]],viewQuery:function(B,Q){if(1&B&&M.Gf(J,7),2&B){let le;M.iGM(le=M.CRH())&&(Q._tooltip=le.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(B,Q){1&B&&M.NdJ("mouseleave",function(Se){return Q._handleMouseLeave(Se)}),2&B&&M.Udp("zoom",Q.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(B,Q){if(1&B&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(Se){return Q._handleAnimationEnd(Se)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&B){let le;M.ekj("mat-tooltip-handset",null==(le=M.lcZ(2,4,Q._isHandset))?null:le.matches),M.Q6J("ngClass",Q.tooltipClass),M.xp6(3),M.Oqu(Q.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}),Y})(),ye=(()=>{class Y{}return Y.\u0275fac=function(B){return new(B||Y)},Y.\u0275mod=M.oAB({type:Y}),Y.\u0275inj=M.cJS({providers:[D],imports:[s.rt,t.ez,n.U8,se.BQ,se.BQ,E.ZD]}),Y})()}}]);